LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 08-13-2007, 02:45 PM   #1
adamruss
Member
 
Registered: Jul 2007
Posts: 44

Rep: Reputation: 15
SOLVED: help with /dev/input/ & xorg.conf


hi,

i have a laptop, so my usb logitech mouse sometimes is connected and sometimes isnt.
anyway i setup in xorg.conf so it will use the "evdev" module which works great.

my problem - the number of the /dev/input/event keeps changing! now i thought i solved it with putting in /etc/udev/rules.d/20-names.rules:

Code:
KERNEL=="event[0-9]*", SYSFS{name}=="Logitech USB Receiver", SYMLINK+="input/vxrev"
and it did make a symlink! a correct one everytime! so what is the problem - I DONT KNOW!: stupid xorg.conf is not willing to work with the symlink! i dont understand why.

Option "Device" "/dev/input/event4" - WORKS
Option "Device" "/dev/input/vxrev" - Dont Work

and...
Code:
adam@adam-laptop:/dev/input$ ls -al vx*
lrwxrwxrwx 1 root root 6 2007-08-13 19:42 vxrev -> event4
Can someone help me please? i looked at all the related threads....


SOLVED: instead of "vxrev" i called the symlink "event10" and it worked

Last edited by adamruss; 08-13-2007 at 06:25 PM.
 
Old 08-13-2007, 04:14 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by adamruss View Post
hi,

i have a laptop, so my usb logitech mouse sometimes is connected and sometimes isnt.
anyway i setup in xorg.conf so it will use the "evdev" module which works great.

my problem - the number of the /dev/input/event keeps changing! now i thought i solved it with putting in /etc/udev/rules.d/20-names.rules:

Code:
KERNEL=="event[0-9]*", SYSFS{name}=="Logitech USB Receiver", SYMLINK+="input/vxrev"
and it did make a symlink! a correct one everytime! so what is the problem - I DONT KNOW!: stupid xorg.conf is not willing to work with the symlink! i dont understand why.

Option "Device" "/dev/input/event4" - WORKS
Option "Device" "/dev/input/vxrev" - Dont Work

and...
Code:
adam@adam-laptop:/dev/input$ ls -al vx*
lrwxrwxrwx 1 root root 6 2007-08-13 19:42 vxrev -> event4
Can someone help me please? i looked at all the related threads....
You might want to try using the Name instead of Device for the config like I do for mine.

Code:
#Logitech LX7 Cordless Optical
Section "InputDevice"
        Identifier      "Mouse0"
        Driver          "evdev"
        Option          "CorePointer"
        Option          "Name"                  "Logitech USB RECEIVER"
        Option          "Emulate3Buttons"       "true"
        Option          "Resolution"            "1200"
EndSection
That way you always get the proper device you find the name by using cat /proc/bus/input/devices looking for one similar to the below you have to have it named exactly as it appears in the Name= line, although look at your post I suspect you can just copy and paste my line into your xorg.conf.

Code:
I: Bus=0003 Vendor=046d Product=c50e Version=0111
N: Name="Logitech USB RECEIVER"
P: Phys=usb-0000:00:1a.0-2/input0
S: Sysfs=/class/input/input3
U: Uniq=
H: Handlers=mouse1 event3
B: EV=20007
B: KEY=ffff0000 0 0 0 0
B: REL=143
B: LED=ff00
 
Old 08-13-2007, 06:22 PM   #3
adamruss
Member
 
Registered: Jul 2007
Posts: 44

Original Poster
Rep: Reputation: 15
no i tried that before, didnt work for me. but i got the solution, for some reason xorg.conf didnt agree with the name "vxrev" so i changed the link name to event10 and it worked
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg.conf & Event Problem with Touchscreen seattleweb Linux - Hardware 1 07-25-2007 12:41 AM
FC 6 not running after installation & can't find xorg.conf sharathg786 Fedora 2 03-05-2007 12:29 AM
Resolution -> Xorg.conf & Sound Raiwan Linux - Newbie 3 10-31-2005 08:40 PM
xorg.conf - video && touchpad problem * (Dell C640) Pear-i Linux - Laptop and Netbook 2 07-27-2005 08:12 AM
New xorg.conf & old XF86config jrittvo Fedora 1 05-18-2004 10:40 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration