I am having some trouble using games that use joysticks because my laptop has an accelerometer (I don't have the slightest idea why this might be useful on a laptop), and it's interfeering with joysticks. Linux finds it in /dev/input/js0
I would like to know how to disable/enable this so games or other things don't detect it.
Thank you very much.
This is the information in /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="ST LIS3LV02DL Accelerometer"
P: Phys=lis3lv02d/input0
S: Sysfs=/devices/platform/lis3lv02d/input/input11
U: Uniq=
H: Handlers=event10 js0
B: PROP=0
B: EV=9
B: ABS=7
Best Answer
A better solution is to unload hp_accel module:
sudo modprobe -r hp_accel
If you don't want your system to load the module at every boot, simply blacklist it adding the following line to /etc/modprobe.d/blacklist.conf:
blacklist hp_accel