Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

On my Rpi I want to disable USB keyboard and mouse input completely. The RPi should respond only to ssh, not on local USB HID inputs. (other USB devices should still be allowed)

The following failed:

$ modprobe -r usbhid
FATAL: Module usbhid is builtin.

How can I disable the USB HID module, so that keyboard and mouse are no longer recognized?

share|improve this question
    
You can't disable it that way if the module is compiled into the kernel. You might be able to do something with "udev rules"... –  goldilocks Feb 18 '13 at 18:23
2  
You can disable local login for users - see linuxquestions.org/questions/linux-general-1/… . Do you have a reason to keep HIDs connected in the first place? –  Lord Loh. Feb 19 '13 at 22:32
    
udev no longer supports disabling devices by their ID or type. I also want to disable input devices on RPi. RPi works as unattended card and USB-drive reader, so USB socket is freely available to users. I want them to use mass storage devices only. As for now, I find no way of blocking USB input devices. Any hints? –  user8491 Jul 15 '13 at 15:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.