LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Who owns /dev/input/event0 ? (https://www.linuxquestions.org/questions/linux-hardware-18/who-owns-dev-input-event0-496811/)

Xaphoid 10-30-2006 01:13 AM

Who owns /dev/input/event0 ?
 
I've purchased a new Acer Laptop and it has a bunch of buttons (some of them Fn+button) that don't currently do much under Linux. I started digging and some, but not all, report an event to the X server. However they do report events through /dev/input/event0. I would like to put together an interface to actually have them do something. Although I am now stuck. I believe that 'event0' is controlled through HAL and/or D-BUS but I can't find any reference to such. Is this the case or is there a kernel level driver that actually handles it?

:confused:

Any help would be appreciated!

ak99505 10-30-2006 06:22 PM

the answer to your question is root owns it, just do
Code:

ls -l /dev/input/event0
that will tell you who owns it and who can read and write to it, what you want to find out is who is listening to it. probably nobody, but you can find out by using
Code:

xev
that should bring up a screen and you can type any key on your keyboard and you should get a report back saying what the code for that key is.

come to think of it it might be xenv not xev, i don't remember, i'm not on my linux box, to check i can never rememeber the command, i'll check when i get home


All times are GMT -5. The time now is 10:10 PM.