Re: Xorg EmulateWheel stopped working

2011-11-13 Thread Matthieu Herrb
On Sat, Nov 12, 2011 at 01:39:37PM +0100, LEVAI Daniel wrote:
 Hi!
 
 It seems that the wheel emulation stopped working for me, after removing
 /usr/X11R6 and updating to a fresh -current.

It didn't stop working. You configuration is now beeing ignored due to
the input device auto-configuration changes that was mentionned in
current.html back in june. It's missing from the upgrade FAQ:

2011/06/29 - [Xenocara] New input device configuration code
A new autoconfiguration mechanism for input devices has been
implemented in the X server. It provides even better support for
various input devices: synaptics touchpads (not yet ready) or
touchscreens without a configuration file. The InputDevice sections
can be removed from xorg.conf in most cases.
To override the autoconfiguration with an InputDevice section for an
input device that would normally be auto-configured, the following
needs to be added to /etc/X11/xorg.conf:


Section ServerFlags
Option AutoAddDevices Falsk
EndSection


You can also convert you InputDevice section to an InputClass section
to setup the wheel emulation. See xorg.conf(4) for details.

Section InputDevice
Identifier  TrackPoint
Driver  mouse
Option  Device/dev/wsmouse
Option  Emulate3Buttons   false
Option  EmulateWheel  true
Option  EmulateWheelButton2
#Option ZAxisMapping  4 5 6 7
Option  XAxisMapping  6 7
Option  YAxisMapping  4 5
EndSection
 
 This won't enable wheel emulation for me anymore.
 
 I see this in Xorg.log:
 
 [2546504.763] (--) checkDevMem: using aperture driver /dev/xf86
 [2546504.783] (--) Using wscons driver on /dev/ttyC4 in pcvt compatibility 
 mode (version 3.32)
 [2546504.795] 
 X.Org X Server 1.11.2
 Release Date: 2011-11-04
 [2546504.795] X Protocol Version 11, Revision 0
 [2546504.795] Build Operating System: OpenBSD 5.0 i386 
 [2546504.795] Current Operating System: OpenBSD digidani 5.0 GENERIC.MP#116 
 i386
 [2546504.795] Build Date: 09 November 2011  06:03:50PM
 [2546504.795]  
 [2546504.795] Current version of pixman: 0.22.2
 [2546504.795] Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
 [2546504.795] Markers: (--) probed, (**) from config file, (==) default 
 setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 [2546504.795] (==) Log file: /var/log/Xorg.0.log, Time: Sat Nov 12 13:37:44 
 2011
 [2546504.795] (==) Using config file: /etc/X11/xorg.conf
 [2546504.795] (==) Using system config directory 
 /usr/X11R6/share/X11/xorg.conf.d

-- 
Matthieu Herrb



Re: Xorg EmulateWheel stopped working

2011-11-13 Thread LEVAI Daniel
On Sun, Nov 13, 2011 at 11:28:24 +0100, Matthieu Herrb wrote:
 On Sat, Nov 12, 2011 at 01:39:37PM +0100, LEVAI Daniel wrote:
  Hi!
  
  It seems that the wheel emulation stopped working for me, after removing
  /usr/X11R6 and updating to a fresh -current.
 
 It didn't stop working. You configuration is now beeing ignored due to
 the input device auto-configuration changes that was mentionned in
 current.html back in june. It's missing from the upgrade FAQ:
[...]
 You can also convert you InputDevice section to an InputClass section
 to setup the wheel emulation. See xorg.conf(4) for details.

Thanks! Really useful stuff that InputClass section. Managed to
configure the wheel emulation with that.

However, I must mention that the MatchDevicePath won't match
/dev/wsmouse, although in the Xorg.log the autodetected device name for
the mouse driver is /dev/wsmouse.


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: Xorg EmulateWheel stopped working

2011-11-13 Thread Matthieu Herrb
On Sun, Nov 13, 2011 at 01:06:45PM +0100, LEVAI Daniel wrote:
 On Sun, Nov 13, 2011 at 11:28:24 +0100, Matthieu Herrb wrote:
  On Sat, Nov 12, 2011 at 01:39:37PM +0100, LEVAI Daniel wrote:
   Hi!
   
   It seems that the wheel emulation stopped working for me, after removing
   /usr/X11R6 and updating to a fresh -current.
  
  It didn't stop working. You configuration is now beeing ignored due to
  the input device auto-configuration changes that was mentionned in
  current.html back in june. It's missing from the upgrade FAQ:
 [...]
  You can also convert you InputDevice section to an InputClass section
  to setup the wheel emulation. See xorg.conf(4) for details.
 
 Thanks! Really useful stuff that InputClass section. Managed to
 configure the wheel emulation with that.
 
 However, I must mention that the MatchDevicePath won't match
 /dev/wsmouse, although in the Xorg.log the autodetected device name for
 the mouse driver is /dev/wsmouse.

Yes, more or less knwon problem. I'd also like to add hardware
dependend id attributes (like USB vendor/device ids) to the input
device, but haven't found the good way for that.
-- 
Matthieu Herrb