no events in /dev/input/event* under x

Asked by Andreas-C. Bernstein

Since upgrading to Intrepid, i can't read anything from /dev/input/event* under X. For example take the mouse under event1:

sudo hexdump -Cv /dev/input/event1

works fine on a virtual terminal but not under X. Its very important for us to read via the event interface since we use a lot of self made devices for our research. What changed from ubuntu 8.04 to 8.10 ?

Is this a bug ? Or do i have to install additional packages ? Or do i have to reinstall ubuntu 8.04 to use the event interface ?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
James (achand007) said :
#1

Hi Andreas,

Did you find a solution to your problem? I am facing a very similar problem.

I could read /dev/input/mouse0 under Ubuntu 7.10 but can`t do it in Ubuntu 8.10.

Were u able to read /dev/input/mouse0 in 8.10?

Thx

Revision history for this message
Andreas-C. Bernstein (andreas-bernstein) said :
#2

Hi James,

I can't read anything from /dev/input/ since the X server grabs everything under Ubuntu 8.10. I read somewhere that this is a bug in evdev which is fixed in the newest evdev release. So i am waiting for an update which fixes this bug. Till then i am using Ubuntu 8.04.

Andreas

Revision history for this message
Andreas-C. Bernstein (andreas-bernstein) said :
#3

Hey,

I have a fix for Ubuntu 8.10. I added the following to xorg.conf

Section "ServerFlags"
  Option "AutoAddDevices" "false"
EndSection

This prevents HAL from adding devices.

Andreas

Revision history for this message
James (achand007) said :
#4

Hi Andreas,

Thanks for your replies.

I will try out your suggestion but if i may ask, after applying your fix, does it mean that /dev/input~ can be read?

Thanks

Revision history for this message
Andreas-C. Bernstein (andreas-bernstein) said :
#5

Yes, with this option /dev/input/* can be read (with proper permissions set of cause). i also added sections for my keyboard and mouse in xorg.conf.

This is just a temporary fix for me, until canonical has fixed it.

Andreas

Revision history for this message
James (achand007) said :
#6

Thanks a lot!!!

It worked like a charm! after abt 3 weeks!!!

Can you help with this problem?

Provide an answer of your own, or ask Andreas-C. Bernstein for more information if necessary.

To post a message you must log in.