lsmi-keyhack.1 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. .\" Hey, EMACS: -*- nroff -*-
  2. .\" First parameter, NAME, should be all caps
  3. .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
  4. .\" other parameters are allowed: see man(7), man(1)
  5. .TH LSMI-KEYHACK 1 "May 15, 2012"
  6. .\" Please adjust this date whenever revising the manpage.
  7. .\"
  8. .\" Some roff macros, for reference:
  9. .\" .nh disable hyphenation
  10. .\" .hy enable hyphenation
  11. .\" .ad l left justify
  12. .\" .ad b justify to both left and right margins
  13. .\" .nf disable filling
  14. .\" .fi enable filling
  15. .\" .br insert line break
  16. .\" .sp <n> insert n+1 empty lines
  17. .\" for manpage-specific macros, see man(7)
  18. .SH NAME
  19. lsmi-keyhack \- Linux Pseudo MIDI Input -- Keyboard Hack
  20. .SH SYNOPSIS
  21. .B lsmi-keyhack
  22. .RI [ options ] " files" ...
  23. .SH DESCRIPTION
  24. This driver is for a hacked AT / PS/2 keyboard functioning as a MIDI
  25. controller.
  26. It is somewhat specific to the author's own hardware, but, since it relies a learning
  27. capability rather than a fixed keymap, it should be equally useful for
  28. others wishing to build their own fake MIDI keyboard. Of course, such a
  29. keyboard will not be velocity sensitive, but this project is a good way to
  30. salvage both an old QWERTY keyboard and a manual from a decrepit analog
  31. organ or cheap PCM noise-maker.
  32. The driver supports up to 88 musical keys, three footswitches, and several
  33. additional buttons for control and data entry. It has the rather unfortunate
  34. side-effect of rendering the console useless, unless, of course you have
  35. another (USB) keyboard to type on.
  36. .SH USAGE
  37. Distribution specific init scripts are not included. The drivers may be
  38. started from init, your .bashrc, by qjackctl, etc. In order to be run by a
  39. non-root user the drivers must have access to the device files in /dev/input.
  40. This may be accomplished by adding a group 'input', adding desired users to
  41. this group, and configuring udev to assign the appropriate ownership to files
  42. in /dev/input. It should be perfectly safe to run the drivers as root,
  43. however.
  44. For realtime scheduling (the \-R option), either use set_rlimits, or set the
  45. appropriate POSIX capabilities on the executable:
  46. .P
  47. /sbin/setcap cap_ipc_lock,cap_sys_nice=ep /usr/bin/lsmi-joystick
  48. .P
  49. The lsmi.SlackBuild script already includes RT scheduling support.
  50. .SH OPTIONS
  51. .TP
  52. .B \-h, \-\-help
  53. Show summary of options.
  54. .TP
  55. .B \-d, \-\-device specialfile
  56. Event device to use (instead of event0).
  57. .TP
  58. .B \-R, \-\-realtime rtprio
  59. Use realtime priority 'rtprio' (requires privs).
  60. .TP
  61. .B \-v, \-\-verbose
  62. Be verbose (show note events).
  63. .TP
  64. .B \-c, \-\-channel n
  65. Initial MIDI channel.
  66. .TP
  67. .B \-p, \-\-port client:port
  68. Connect to ALSA Sequencer client on startup.
  69. .TP
  70. .B \-k, \-\-keydata file
  71. Name file to read/write key mappings (instead of ~/.keydb).
  72. .SH SEE ALSO
  73. .BR lsmi-joystick (1),
  74. .BR lsmi-monterey (1),
  75. .BR lsmi-mouse (1).
  76. .br
  77. .SH AUTHOR
  78. lsmi was written by Jonathan Moore Liles.
  79. .PP
  80. This manual page was written by Ariel Errera <ariel@musix.org.ar>,
  81. for the Debian project (but may be used by others). It was then modified
  82. by B. Watson for the SlackBuilds.org project.