Advertisement
Guest User

joystick-daemon

a guest
Mar 16th, 2012
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.11 KB | None | 0 0
  1. #!/bin/ash
  2. # a lot of the modprobe commands can be commented out, with a # at the start of the line
  3. # see output of the `dmesg` command to identify required modules/drivers
  4. # also get hardware info from: lspci, lshwd, Pup-SysInfo, Pupscan, Hardinfo
  5. # this script was made with info from:
  6. # http://ubuntuforums.org/showthread.php?t=330607
  7. # https://wiki.archlinux.org/index.php/Joystick
  8. # http://tldp.org/HOWTO/html_single/Webcam-HOWTO/
  9.  
  10. # load modules
  11. insmod joydev &>/dev/null
  12. insmod hid &>/dev/null
  13. insmod input &>/dev/null
  14. depmod -a
  15. modprobe joydev &>/dev/null
  16. #gameports - top are most common
  17. modprobe ns558 &>/dev/null
  18. modprobe gameport &>/dev/null
  19. modprobe pcigame &>/dev/null
  20. modprobe emu10k1-gp &>/dev/null
  21. modprobe cs461x &>/dev/null
  22. # serial ports/devices
  23. modprobe serport &>/dev/null
  24. # usb devices
  25. modprobe hid &>/dev/null
  26. modprobe usbhid &>/dev/null
  27. # joypads - most of these, except 'analog', are brand/model specific and can be commented out
  28. modprobe analog &>/dev/null
  29. modprobe a3d &>/dev/null
  30. modprobe adi &>/dev/null
  31. modprobe cobra &>/dev/null
  32. modprobe gf2k &>/dev/null
  33. modprobe guillemot &>/dev/null
  34. modprobe grip &>/dev/null
  35. modprobe interact &>/dev/null
  36. modprobe tmdc &>/dev/null
  37. modprobe sidewinder &>/dev/null
  38. modprobe snd_ens1371 || modprobe snd_ens1371 joystick_port=1 &>/dev/null
  39. modprobe xpad || modprobe snd_ens1371 joystick_port=1 &>/dev/null
  40. # force feedback - also usbhid for 2.6.25.16
  41. modprobe iforce &>/dev/null
  42. modprobe evdev &>/dev/null
  43. # webcams
  44. modprobe videodev &>/dev/null
  45. modprobe quickcam &>/dev/null
  46. modprobe ibmcam &>/dev/null
  47. # wacom tablets
  48. modprobe wacom &>/dev/null
  49. # DVB TV devices
  50. modprobe dibx000_common &>/dev/null
  51. modprobe dib3000mc &>/dev/null
  52. modprobe dvb-core &>/dev/null
  53. modprobe dvb-usb &>/dev/null
  54. modprobe dvb-usb-dibusb-common &>/dev/null
  55. modprobe dvb-usb-nova-t-usb2 &>/dev/null
  56. modprobe mt2060 &>/dev/null
  57. modprobe dvb-pll &>/dev/null
  58. modprobe v4l1_compat &>/dev/null
  59. # map kb to joypad, if settings found, and not empty
  60. [  -s /root/.rejoystickrc ] && [ -x /usr/local/bin/rejoystick ] && exec /usr/local/bin/rejoystick -d
  61. #quit
  62. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement