If you would like to disable USB keyboard for the player, please issue the following command from the piShell against the player name.
echo 'SUBSYSTEMS=="usb", DRIVERS=="usbhid", ACTION=="add", ATTR{authorized}="0"' | sudo tee /etc/udev/rules.d/97-disablekb.rules
sudo reboot
After that keyboard and mouse won't work. To enable them again, please remove the file from piShell or ssh
sudo rm /etc/udev/rules.d/97-disablekb.rules
sudo reboot
Comments
2 comments
====
EDIT
====
Wouuups! Sorry, it's work. Caution, CASE is quite important! Thanks a lot
-------
Hi sir,
Thanks for the tip.
I wanted to use it for a dynamic display on a highschool's TV but its not working. I don't get any error for the first cmd, the echo look good but the keyboard and mouse are still functionnal, even after a reboot.
Any other tip ?
Best Regards, Adrien
Thanks! Linux commands are case-sensitive
Please sign in to leave a comment.