* keyboard udev rules
@ 2010-10-29 14:35 MONDON Daniel
0 siblings, 0 replies; 2+ messages in thread
From: MONDON Daniel @ 2010-10-29 14:35 UTC (permalink / raw)
To: linux-hotplug
Hi
I think writing an udev rule is the better way of having a solution to
my problem.
I'am under Ubuntu 10.04 (live CD - kernel 2.6.32 - Xorg server 1.7.6).
My application is totally managed by touch screen.
I don't need any keyboard or mouse, and I don't want users to have
system or files access.
For that, I need to deactivate keyboard.
I know how I can do that in the xorg.conf file.
But I don't have it (don't want to generate xorg.conf).
And I have to go to the machine WITH keyboard activated in order to
maintain system, without reboot.
So, I want to write two udev rules. (because they can be run
dynamically)
One to activate keyboard (and mouse)
One to de activate keyboard.
And if keyboard is plugged at boot time, or with hot plug.
I don't know the keyboard identification.
I'm looking over web to find the kernel keyboard name ...
I'm thinking to a rule like that ... but ...
ACTION="add", NAME="%keyboard", OPTION+="ignore_device last_rule"
Can somebody help me, please?
I don't find any specific information to confirm my thinking.
What I suggest is the result of the compilation of what I found over
internet.
Thanks,
Daniel.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: keyboard udev rules
@ 2010-11-06 20:06 Martin Pitt
0 siblings, 0 replies; 2+ messages in thread
From: Martin Pitt @ 2010-11-06 20:06 UTC (permalink / raw)
To: linux-hotplug
Hello Daniel,
MONDON Daniel [2010-10-29 16:35 +0200]:
> ACTION="add", NAME="%keyboard", OPTION+="ignore_device last_rule"
These options were removed long ago, since they are just plainly
wrong. udev isn't creating devices, it just gives you information and
notifications. Thus udev is also the wrong place to try and disable
them.
Better options are:
- Disconnect the keyboard :)
- Use your xorg.conf to disable keyboard
- Build a kernel without any keyboard drivers, or rmmod them during
boot (the latter will probably not work with usbhid, though)
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-06 20:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-06 20:06 keyboard udev rules Martin Pitt
-- strict thread matches above, loose matches on Subject: below --
2010-10-29 14:35 MONDON Daniel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).