Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mouse And Xorg
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Raistlin
l33t
l33t


Joined: 17 May 2004
Posts: 691
Location: Boston, MA

PostPosted: Thu Jan 25, 2007 11:36 pm    Post subject: Mouse And Xorg Reply with quote

Hi there,

I've browsed through the internet now but did not find an answer to my question...
The problem is that if I use a bluetooth mouse or my USB mouse and disconnect it from the computer the next time the device is plugged in again it is not used any more.

In my xorg.conf I specified for every external mouse a section, so for example for my USB mouse:
Code:

Section "InputDevice"
        Identifier      "USBMouse"
        Driver  "mouse"
        Option  "Protocol"      "ImPS/2
        Option  "Device"        "/dev/usbmouse"
        Option  "ZAxisMapping"  "4 5"
EndSection

As you can see the devices use special device names that are created by udev because I cannot hard-code the device name for a usb mouse: depending on what jack it is plugged in the name changes....
First: why do I want to do this? Because I want to be able to specify different parameters (Options) for my mice

The "solution" I found is to specify "dev/input/mice" as the Device... Well, this might by but in my understanding /dev/input/mice simply collects all mouse-X inputs... So modifications (Options) I make then will affect _all_ mouse devices and not only the currently mentioned (right? )

Especially my bluetooth mouse is rather high so that I want to change the "Resolution" for this device (but it did not work so far - independent on what device I used.... Anyone any solution? )

I can change the "speed" of the mouse by first using
Code:
xsetpointer BluetoothMouse
and then using xset to change the acceleration... But this seems as a rather cumbersome hack to me ;) Anybody a solution?

Best,
R.
_________________
Zwei Was Eins Initially

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
Back to top
View user's profile Send private message
bertaboy
l33t
l33t


Joined: 05 Nov 2004
Posts: 604

PostPosted: Fri Jan 26, 2007 3:08 am    Post subject: Reply with quote

Create a udev rule that symbolically links to the new device point. Here's mine for my mp3 player:

cat /etc/udev/rules.d/10-local.rules
KERNEL=="sd?1", BUS=="usb", SYSFS{product}=="Sansa e260", NAME="%k", SYMLINK+="sansae260"

Or you could refer to the mouse by name instead of device within xorg.conf

Here's my relevant portion of xorg.conf for my usb mouse:

Code:
Section "InputDevice"

        Identifier  "Mouse1"
        Option      "Name"      "Microsoft Microsoft Wireless Optical Mouse* 1.0A"
        Driver      "evdev"



Just use whatever you see under Manufacturer= and Product= in /proc/bus/usb/devices
e.g.
Code:
T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=1.5 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=045e ProdID=008c Rev= 0.57
S:  Manufacturer=Microsoft
S:  Product=Microsoft Wireless Optical Mouse<AE> 1.0A
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 50mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
Back to top
View user's profile Send private message
Raistlin
l33t
l33t


Joined: 17 May 2004
Posts: 691
Location: Boston, MA

PostPosted: Fri Jan 26, 2007 9:08 pm    Post subject: Reply with quote

Hi,

strangely my bluetooth mouse does not announce itself correctly - at least here I cannot see any really helpful informaiton:

Code:
cat /proc/bus/usb/devices

raistlin: ~>cat /proc/bus/usb/devices

T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc= 23/900 us ( 3%), #Int=  1, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.19-suspend2-r1 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 28 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=e0(unk. ) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1668 ProdID=0441 Rev= 5.46
C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr= 90mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=1ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
E:  Ad=03(O) Atr=01(Isoc) MxPS=   0 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=   0 Ivl=1ms
I:  If#= 1 Alt= 1 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
E:  Ad=03(O) Atr=01(Isoc) MxPS=   9 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=   9 Ivl=1ms
I:  If#= 1 Alt= 2 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
E:  Ad=03(O) Atr=01(Isoc) MxPS=  17 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  17 Ivl=1ms
I:  If#= 1 Alt= 3 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
E:  Ad=03(O) Atr=01(Isoc) MxPS=  25 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  25 Ivl=1ms
I:  If#= 1 Alt= 4 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
E:  Ad=03(O) Atr=01(Isoc) MxPS=  33 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  33 Ivl=1ms
I:  If#= 1 Alt= 5 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=(none)
E:  Ad=03(O) Atr=01(Isoc) MxPS=  49 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  49 Ivl=1ms
I:  If#= 2 Alt= 0 #EPs= 0 Cls=fe(app. ) Sub=01 Prot=00 Driver=(none)

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.19-suspend2-r1 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.19-suspend2-r1 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 6
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.19-suspend2-r1 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0000:00:1d.7
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms


Maybe I've screwed my bluetooth configuration up? Or do the logitech v270 mice have some issues?

R.
_________________
Zwei Was Eins Initially

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
Back to top
View user's profile Send private message
bertaboy
l33t
l33t


Joined: 05 Nov 2004
Posts: 604

PostPosted: Fri Jan 26, 2007 11:11 pm    Post subject: Reply with quote

Raistlin wrote:
strangely my bluetooth mouse does not announce itself correctly - at least here I cannot see any really helpful informaiton:
...
Maybe I've screwed my bluetooth configuration up? Or do the logitech v270 mice have some issues?


The only way I'd imagine the bluetooth mouse showing up in /proc/bus/usb/devices is if you plug in a bluetooth usb dongle. But at that, I would think the only device to register would be the dongle and not whatever devices communicate with the dongle. I would try taking a look at http://gentoo-wiki.com/HOWTO_mobile_phone,_Bluetooth_and_GNOME and figure out what you can apply to your situation in terms of udev rules. Sorry, but I have no experience with bluetooth devices; maybe somebody else can help you with that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum