3

I have wireless USB keyboard and mouse combo.

I need a way to disable mouse while leaving keyboard function working and a way to enable it again after some time.

I don't use X and I can't make it in desktop space as I use plain EGL, so it has to be done deeper, I guess in kernel space.

I tried to play with /sys/bus/usb/* stuff and I managed only to disable whole USB device, but that wasn't what I need as both keyboard and mouse were disabled.

Any ideas?

1
  • Could you post the output of lsusb -t
    – user.dz
    Feb 23 '15 at 21:05
1

Maybe zap the driver:

sudo modprobe -r psmouse #run without the -r to reenable
3
  • This would work if I use psmouse module, but I don't :(
    – 10robinho
    Sep 7 '15 at 7:10
  • Then find what module you're using. lsmod | grep -iP '(mouse|touch|pointer)' or something like that.
    – PSkocik
    Sep 7 '15 at 7:16
  • I don't use it as module, it's build it kernel as HID USB driver. But that is good idea, I will investigate in that way.
    – 10robinho
    Sep 7 '15 at 9:11
-1

Does your mouse have an off switch on the bottom of it? I used to use a logitech m185 and both the keyboard and the mouse came as a combination with 1 usb. Both also had an on and off switch.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.