On Mon, Jul 25, 2011 at 11:03 PM, Peter Hutterer <peter.hutte...@who-t.net> wrote: > On Mon, Jul 25, 2011 at 09:41:34PM -0400, K Vanw wrote: >> I'm trying to get my "ORtek Wireless Touchpad keyboard" to emulate 3 >> buttons. If I use xinput to set the "Evdev Middle Button Emulation" to >> true, it works fine. But I can't get X to set that property from >> x.config. I have this file (55-3button.conf) in my x.config.d/ folder: >> >> Section "InputClass" >> Identifier "Middle button emulation class" >> MatchIsPointer "on" >> MatchProduct "ORtek Wireless Touchpad Keyboard" >> Option "Emulate3Buttons" "on" >> Option "Emulate3Timeout" "51" >> EndSection >> >> The relevant lines in Xorg.0.log are: >> >> [104142.299] (**) ORtek Wireless Touchpad Keyboard: Applying >> InputClass "Middle button emulation class" >> [104142.300] (--) ORtek Wireless Touchpad Keyboard: Found 3 mouse buttons >> [104142.300] (--) ORtek Wireless Touchpad Keyboard: Found scroll wheel(s) >> [104142.300] (--) ORtek Wireless Touchpad Keyboard: Found relative axes >> [104142.300] (--) ORtek Wireless Touchpad Keyboard: Found x and y relative >> axes >> [104142.300] (--) ORtek Wireless Touchpad Keyboard: Found keys >> [104142.300] (II) ORtek Wireless Touchpad Keyboard: Configuring as mouse >> [104142.300] (II) ORtek Wireless Touchpad Keyboard: Configuring as keyboard >> [104142.300] (II) ORtek Wireless Touchpad Keyboard: Adding scrollwheel >> support >> [104142.300] (**) Option "Emulate3Buttons" "on" >> [104142.300] (**) Option "Emulate3Timeout" "51" >> [104142.300] (**) ORtek Wireless Touchpad Keyboard: YAxisMapping: >> buttons 4 and 5 >> [104142.300] (**) ORtek Wireless Touchpad Keyboard: >> EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: >> 200 >> >> Note that X reports that it 'Found 3 mouse buttons', but in fact there >> are only 2 real buttons. > > That information comes from the kernel. > >> After X starts, xinput reports: >> >> # xinput list-props 'pointer:ORtek Wireless Touchpad Keyboard' >> Device 'ORtek Wireless Touchpad Keyboard': >> Device Enabled (134): 1 >> Coordinate Transformation Matrix (136): 1.000000, 0.000000, 0.000000, >> 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 >> Device Accel Profile (261): 0 >> Device Accel Constant Deceleration (262): 1.000000 >> Device Accel Adaptive Deceleration (263): 1.000000 >> Device Accel Velocity Scaling (264): 10.000000 >> Device Product ID (253): 1444, 4096 >> Device Node (254): "/dev/input/event5" >> Evdev Axis Inversion (265): 0, 0 >> Evdev Axes Swap (267): 0 >> Axis Labels (268): "Rel X" (144), "Rel Y" (145) >> Button Labels (269): "Button Left" (137), "Button Middle" (138), >> "Button Right" (139), "Button Wheel Up" (140), "Button Wheel Down" >> (141), "Button Horiz Wheel Left" (142), "Button Horiz Wheel Right" >> (143) >> Evdev Middle Button Emulation (270): 0 >> Evdev Middle Button Timeout (271): 51 >> Evdev Wheel Emulation (272): 0 >> Evdev Wheel Emulation Axes (273): 0, 0, 4, 5 >> Evdev Wheel Emulation Inertia (274): 10 >> Evdev Wheel Emulation Timeout (275): 200 >> Evdev Wheel Emulation Button (276): 4 >> Evdev Drag Lock Buttons (277): 0 >> >> As you can see, the Middle Button Emulation is not set. but "xinput >> set-prop 10 270 1" will set it correctly. So how do I get this set via >> an xorg.conf.d file? > > try starting a plain X server without a desktop environment. does it work > then?
Interesting. I was using the Gnome wm, but switched to good old fluxbox and it worked fine (also works without a wm as Peter suggested). That is, it correctly set Emulate3Buttons from my xorg.conf.d file. So the question is, why/how is gnome turning it off? Not really an X11 question, but maybe someone here knows. _______________________________________________ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com