Re: [gentoo-user] xorg can't work with hotplugged mice?
Mick: > My touchpad does not seem to have a problem: > = > Section "InputDevice" > Identifier "Mouse0" > Driver "synaptics" > Option "Protocol" "SynPS/2" > Option "InputFashion" "Mouse" > Option "Device" "/dev/input/mice" > Option "Name" "SynPS/2 Synaptics TouchPad" > Option "SHMConfig" "on" > Option "Vendor" "0002" > Option "ZAxisMapping" "4 5" > Option "Emulate3Buttons" "True" > Option "Buttons" "3" > EndSection > = > > On the other hand I have not tried (yet) a USB mouse to see if/how > it will be picked up. No problem with PS/2 mice though. They are > detected as soon as I plug them in. No problem with my touchpad (HP Pavilion dv200z) and my Logitech USB mouse (even if I plug and unplug it). $ cat /proc/bus/input/devices ... I: Bus=0011 Vendor=0002 Product=0007 Version= N: Name="SynPS/2 Synaptics TouchPad" P: Phys=isa0060/serio4/input0 S: Sysfs=/class/input/input3 H: Handlers=mouse0 event2 B: EV=b B: KEY=6420 7 0 0 0 0 B: ABS=1103 I: Bus=0003 Vendor=046d Product=c016 Version=0340 N: Name="Logitech Optical USB Mouse" P: Phys=usb-:00:0b.0-6/input0 S: Sysfs=/class/input/input5 H: Handlers=mouse1 event3 B: EV=7 B: KEY=7 0 0 0 0 B: REL=103 $ less /etc/X11/xorg.conf .. Section "InputDevice" Identifier "Mouse1" Driver "mouse" Option "Protocol""auto" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5 6 7" EndSection Section "InputDevice" Identifier "TouchPad" Driver "synaptics" Option "Device""/dev/input/mouse0" Option "Protocol" "auto-dev" Option "LeftEdge" "1700" Option "RightEdge" "5300" Option "TopEdge" "1700" Option "BottomEdge""4200" Option "FingerLow" "25" Option "FingerHigh""30" Option "MaxTapTime""180" Option "MaxTapMove""220" Option "VertScrollDelta" "100" Option "MinSpeed" "0.09" Option "MaxSpeed" "0.18" Option "AccelFactor" "0.0015" Option "SHMConfig" "on" EndSection Cheers, Sergio -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] xorg can't work with hotplugged mice?
On Monday 23 October 2006 00:44, Iain Buchanan wrote: > On Wed, 2006-10-18 at 14:41 +0200, Alan McKinnon wrote: > > On Wednesday 18 October 2006 14:15, Iain Buchanan wrote: > > I don't see why you can't use /dev/input/mice - I have the same mouse > > setup as you and it works for me. Unless you have problematic hardware > > that is > > because the touchpad has to be configured differently to the usb mice, > otherwise things like "emulate3buttons" don't always work (on the > touchpad). Also, I have different acceleration settings on different > mice, so I couldn't do that if they all used the same > "/dev/input/mice"... My touchpad does not seem to have a problem: = Section "InputDevice" Identifier "Mouse0" Driver "synaptics" Option "Protocol" "SynPS/2" Option "InputFashion" "Mouse" Option "Device" "/dev/input/mice" Option "Name" "SynPS/2 Synaptics TouchPad" Option "SHMConfig" "on" Option "Vendor" "0002" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "True" Option "Buttons" "3" EndSection = On the other hand I have not tried (yet) a USB mouse to see if/how it will be picked up. No problem with PS/2 mice though. They are detected as soon as I plug them in. -- Regards, Mick pgpZwxp3AtlkS.pgp Description: PGP signature
Re: [gentoo-user] xorg can't work with hotplugged mice?
On 10/22/06, Iain Buchanan <[EMAIL PROTECTED]> wrote: but I can't use /dev/input/mice. I may not have been clear before, but if I use /dev/input/mice, then the touchpad looses its Emulate3Buttons when I use a real third button on a usb mouse... Even if you don't use /dev/input/mice for the touchpad? -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] xorg can't work with hotplugged mice?
On Sun, 2006-10-22 at 21:12 -0700, Richard Fish wrote: > On 10/22/06, Iain Buchanan <[EMAIL PROTECTED]> wrote: > > because the touchpad has to be configured differently to the usb mice, > > otherwise things like "emulate3buttons" don't always work (on the > > touchpad). Also, I have different acceleration settings on different > > mice, so I couldn't do that if they all used the same > > "/dev/input/mice"... > > So don't use /dev/input/mice for "all" mice, just for the USB mouse > that you plug in. but I can't use /dev/input/mice. I may not have been clear before, but if I use /dev/input/mice, then the touchpad looses its Emulate3Buttons when I use a real third button on a usb mouse... thanks, -- Iain Buchanan He who slings mud generally loses ground. -- Adlai Stevenson -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] xorg can't work with hotplugged mice?
On 10/22/06, Iain Buchanan <[EMAIL PROTECTED]> wrote: because the touchpad has to be configured differently to the usb mice, otherwise things like "emulate3buttons" don't always work (on the touchpad). Also, I have different acceleration settings on different mice, so I couldn't do that if they all used the same "/dev/input/mice"... So don't use /dev/input/mice for "all" mice, just for the USB mouse that you plug in. Use /dev/input/eventX for the synaptics trackpad. Here is what I have for my two mouse entries in xorg.conf, and it hotplugs USB mice perfectly: Section "ServerLayout" Identifier "Default" Screen 0 "LCD" InputDevice"touchpad" "CorePointer" InputDevice"usbmouse" InputDevice"keyboard" "CoreKeyboard" EndSection Section "InputDevice" Identifier "touchpad" Driver "synaptics" Option "Device" "/dev/input/trackpad_evt" Option "Protocol" "event" Option "SHMConfig" "On" Option "LeftEdge" "1500" Option "TopEdge" "1300" Option "RightEdge" "5400" Option "BottomEdge" "4400" Option "EdgeMotionUseAlways" "On" Option "EdgeMotionMinZ" "70" Option "EdgeMotionMaxZ" "85" Option "EdgeMotionMinSpeed" "25" Option "EdgeMotionMaxSpeed" "700" Option "MinSpeed" "0.0" Option "MaxSpeed" "0.3" Option "AccelFactor" "0.3" Option "UpDownScrolling" "On" Option "LeftRightScrolling" "On" Option "Buttons" "8" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" Identifier "usbmouse" Driver "mouse" Option "Protocol" "ExplorerPS/2" Option "Device" "/dev/input/mice" Option "Buttons" "8" Option "ZAxisMapping" "4 5" Option "SendCoreEvents" "On" EndSection I use a custom udev rule to make the "trackpad_evt" device, otherwise my keyboard and trackpad event nodes get mixed up between event0 and event1: BUS=="input", KERNEL=="event*", SYSFS{phys}=="isa0060/serio1/input0", NAME:="input/trackpad_evt", SYMLINK="input/%k" Either this, or you have to wait for a version of X.org that truly supports mouse hot plugging. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] xorg can't work with hotplugged mice?
On Wed, 2006-10-18 at 14:41 +0200, Alan McKinnon wrote: > On Wednesday 18 October 2006 14:15, Iain Buchanan wrote: > > Hi all, > > > > from time to time I remove mice and plug them in, as I move my laptop > > around locations. Sometimes I also start my laptop without a mouse > > plugged in, and then plug one in after boot. > > [snip] > > > I can't use the generic /dev/input/mice, (the one-for-all device) > > because I have a synaptic driver for the touchpad > > (/dev/input/mouse1), and "auto" for any other mouse plugged in > > (/dev/input/mouse2). > > I don't see why you can't use /dev/input/mice - I have the same mouse > setup as you and it works for me. Unless you have problematic hardware > that is because the touchpad has to be configured differently to the usb mice, otherwise things like "emulate3buttons" don't always work (on the touchpad). Also, I have different acceleration settings on different mice, so I couldn't do that if they all used the same "/dev/input/mice"... > [snip] > > > does _anyone_ reading use X and _not_ the /dev/input/mice device? I > > would be interested to hear from you!!! > > Well, fwiw, I'll give you the config I have and that works for me (with > irrelevant bits snipped out). Maybe it'll work for you too... [snip] > It's been a long long time since I set this up but I believe the > critical settings at the time were "CorePointer" and "AlwaysCore" in > the ServerLayout Thanks. I do indeed have CorePointer, and AlwaysCore for my various mice - and it works, so I don't think changing the xorg.conf file will fix it. It's just when I unplug a working usb mouse, it won't work when I plug it back in, UNLESS I switch to a console first. any other ideas? -- Iain Buchanan 3rd Law of Computing: Anything that can go wr fortune: Segmentation violation -- Core dumped -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] xorg can't work with hotplugged mice?
On Wednesday 18 October 2006 14:15, Iain Buchanan wrote: > Hi all, > > from time to time I remove mice and plug them in, as I move my laptop > around locations. Sometimes I also start my laptop without a mouse > plugged in, and then plug one in after boot. [snip] > I can't use the generic /dev/input/mice, (the one-for-all device) > because I have a synaptic driver for the touchpad > (/dev/input/mouse1), and "auto" for any other mouse plugged in > (/dev/input/mouse2). I don't see why you can't use /dev/input/mice - I have the same mouse setup as you and it works for me. Unless you have problematic hardware that is [snip] > does _anyone_ reading use X and _not_ the /dev/input/mice device? I > would be interested to hear from you!!! Well, fwiw, I'll give you the config I have and that works for me (with irrelevant bits snipped out). Maybe it'll work for you too... Section "ServerLayout" Identifier "FGLRX" Screen0 "aticonfig-Screen[0]" 0 0 InputDevice "Mouse0""CorePointer" InputDevice "Mouse1""AlwaysCore" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "CorePointer" Option "Protocol" "IMPS/2" Option "Device""/dev/input/mice" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" EndSection Section "InputDevice" Identifier "Mouse1" Driver "synaptics" Option "Device""/dev/psaux" Option "Protocol" "auto-dev" [snip synaptic config stuff] Option "SendCoreEvents""true" Option "ZAxisMapping" "4 5 6 7" Option "Emulate3Buttons" EndSection It's been a long long time since I set this up but I believe the critical settings at the time were "CorePointer" and "AlwaysCore" in the ServerLayout alan -- gentoo-user@gentoo.org mailing list
[gentoo-user] xorg can't work with hotplugged mice?
Hi all, from time to time I remove mice and plug them in, as I move my laptop around locations. Sometimes I also start my laptop without a mouse plugged in, and then plug one in after boot. But every time I do so, X doesn't recognise the "new" mouse. I have /dev/input/mouse[0-3] set up in /etc/X11/xorg.conf. I have to either restart X, or (this is interesting): switch to a console, unplug then replug the mouse, then switch back to X, and allofasudden the mouse works again. I can't use the generic /dev/input/mice, (the one-for-all device) because I have a synaptic driver for the touchpad (/dev/input/mouse1), and "auto" for any other mouse plugged in (/dev/input/mouse2). Now, the fact that switching to a console and re-plugging the mouse works is strange - this tells me that X "can" do it without restarting, but I don't know how to make it recognise the mouse... I can't (and don't want to) use custom udev rules for two reasons: 1. I want to plug in any mouse and have it used straight away as /dev/input/mouse2 2. This is such a simple problem, and udev seems like such a complicated solution :) And lastly, if I have X running with a working usb mouse (/dev/input/mouse2), and then unplug the mouse, then /dev/input/mouse2 stays there. Until I restart X or switch to a console and back (then it disappears)... strange!! does _anyone_ reading use X and _not_ the /dev/input/mice device? I would be interested to hear from you!!! thanks, -- Iain Buchanan Everyone writes on the walls except me. -Said to be graffiti seen in Pompeii -- gentoo-user@gentoo.org mailing list