Home
Friday, August 18, 2017
3:26:33 AM
Users online: 0   You are here >> Home > Open Source OS

Forums | Open Source OS Forums search
Forum FAQ
   
  1  
My new Logitech G5 and changing events (help)
I_am_ME 
6/9/08 12:27:47 PM
Disciple

I have recently purchased myself a new Logitech G5 Mouse and attached it to my PC running OpenSuSE 11 (64 bit).
I have everything set up and working, that wasn't very hard.

I followed the directions at http://adterrasperaspera.com/blog/2006/06/20/logitech-g5-review-under-linux (The bit at the bottom, under "How to get it to work in Linux", and "Update:"). This works perfectly. Until I reboot. At this point my problem starts.

After I reboot (or unplug/replug) the mouse, the event handler number changes and the mouse stops working.
Even now it's easy to fix: Change to console, Log in as root, find correct event number, edit xorg.conf, restart X .
I guess it's not so much a problem, more an annoyance.

What I would like to be able to do is either
a) To force a certain event number to be associated with the mouse each and every time the system detects it.
b) Write a script that finds the event number and edits the xorg.conf, either before X loads, or that restarts X after changing xorg.conf.

I'm sure that 'b' would be possible, but I don't know enough about grep, sed, etc... to write the script myself.
I think that 'a' would probably be a better solution though, if it is possible. Maybe through HAL or UDEV?

Can anyone help please?


Edited by I_am_ME: 6/9/2008 12:29:06 PM

-----
And God said "Let there be laymen.
May they be many in number
and may they have the power to confuse Experts".
And it was!

On the web at
http://thefunnyfarm.zapto.org

Redhatter 
9/9/08 11:15:57 PM
Hero
Titan


Have a look in your /dev/input directory. If SuSE has done what many other distributions have done, the appropriate device will be symlinked to some name based on the device's ID.

stuartl@wander ~ $ ls -lR /dev/input/  
/dev/input/:
total 0
drwxr-xr-x 2 root root 80 2008-09-09 22:37 by-id
drwxr-xr-x 2 root root 120 2008-09-09 22:37 by-path
crw------- 1 root root 13, 64 2008-09-05 18:31 event0
crw------- 1 root root 13, 65 2008-09-05 18:31 event1
crw------- 1 root root 13, 66 2008-09-05 18:31 event2
crw------- 1 root root 13, 67 2008-09-05 18:31 event3
crw------- 1 root root 13, 68 2008-09-05 18:31 event4
crw------- 1 root root 13, 69 2008-09-09 22:37 event5
crw-r--r-- 1 root root 13, 63 2008-09-05 18:30 mice
crw-r--r-- 1 root root 13, 32 2008-09-09 22:37 mouse0

/dev/input/by-id:
total 0
lrwxrwxrwx 1 root root 9 2008-09-09 22:37
usb-Microsoft_Basic_Optical_Mouse-event-mouse -> ../event5
lrwxrwxrwx 1 root root 9 2008-09-09 22:37
usb-Microsoft_Basic_Optical_Mouse-mouse -> ../mouse0

/dev/input/by-path:
total 0
lrwxrwxrwx 1 root root 9 2008-09-09 22:37
pci-0000:00:1d.0-usb-0:1:1.0-event-mouse -> ../event5
lrwxrwxrwx 1 root root 9 2008-09-09 22:37
pci-0000:00:1d.0-usb-0:1:1.0-mouse -> ../mouse0
lrwxrwxrwx 1 root root 9 2008-09-05 18:31
platform-i8042-serio-0-event-kbd -> ../event0
lrwxrwxrwx 1 root root 9 2008-09-05 18:31
platform-pcspkr-event-spkr -> ../event2


That's where I'd start looking.

Edit: wiiiiide post!


Edited by Redhatter: 9/9/2008 11:17:03 PM

-----
Stuart Longland (aka. Redhatter, VK4MSL)
I haven't lost my mind it's backed up on a tape somewhere...
http://atomicdoc.yi.org <-- AtomicDOC Wiki
Resident Coolie-hatted Gentoo geek. (Gentoo MIPS & Mozilla herd member)

  1  
Forums | Open Source OS