NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Setting mouse acceleration and threshold in xorg.conf



On Sat, May 05, 2012 at 11:41:17PM +0100, Sad Clouds wrote:
> On Sat, 5 May 2012 22:27:05 +0200
> Petar Bogdanovic <petar%smokva.net@localhost> wrote:
> 
> > On Sat, May 05, 2012 at 09:26:25PM +0100, Sad Clouds wrote:
> > > On Sat, 5 May 2012 21:47:20 +0200
> > > Petar Bogdanovic <petar%smokva.net@localhost> wrote:
> > > 
> > > > On Sat, May 05, 2012 at 09:44:30AM +0100, Sad Clouds wrote:
> > > > > Hi I have recent Xorg installed from pkgsrc on NetBSD-6.0 Beta
> > > > > amd64.
> > > > > 
> > > > > xset m 6 2
> > > > > 
> > > > > gives me the required mouse acceleration and threshold that I
> > > > > need.
> > > > > 
> > > > > I would like to make it permanent via xorg.conf file. However
> > > > > the following options don't seem to work:
> > > > > 
> > > > > Section "InputDevice"
> > > > >         Identifier  "Mouse0"
> > > > >         Driver      "mouse"
> > > > >         Option      "Protocol" "wsmouse"
> > > > >         Option      "Device" "/dev/wsmouse"
> > > > >         Option      "ZAxisMapping" "4 5 6 7"
> > > > >         Option      "AccelerationNumerator" "6"
> > > > >         Option      "AccelerationDenominator" "1"
> > > > >         Option      "AccelerationThreshold" "2"
> > > > > EndSection
> > > > > 
> > > > > Anybody knows of suitable options for for xorg.conf that I could
> > > > > try??
> > > > 
> > > > What does xinput say? (xinput list)
> > > 
> > > I don't have xinput, is this part of some X11 utils package that
> > > needs to be install separately?
> > 
> > x11/xinput?
> 
> $ xinput list
> "Virtual core pointer"  id=0    [XPointer]
> "Virtual core keyboard" id=1    [XKeyboard]
> "Mouse0"        id=2    [XExtensionPointer]
> "Keyboard0"     id=3    [XExtensionKeyboard]
> 
> Not quite sure what those "Virtual" devices are for.

I guess your InputDevice section does not match the device.  You could
try using an InputClass section instead.

Here is how I configured my usb-mouse (on Linux):

    $ xinput list
      Virtual core pointer                              id=2    [master pointer 
 (3)]
          Virtual core XTEST pointer                    id=4    [slave  pointer 
 (2)]
          Kingsis Peripherals  Evoluent VerticalMouse 3         id=9    [slave  
pointer  (2)]
          TPPS/2 IBM TrackPoint                         id=11   [slave  pointer 
 (2)]
      Virtual core keyboard                             id=3    [master 
keyboard (2)]
          Virtual core XTEST keyboard                   id=5    [slave  
keyboard (3)]
          Power Button                                  id=6    [slave  
keyboard (3)]
          Video Bus                                     id=7    [slave  
keyboard (3)]
          Sleep Button                                  id=8    [slave  
keyboard (3)]
          AT Translated Set 2 keyboard                  id=10   [slave  
keyboard (3)]
          ThinkPad Extra Buttons                        id=12   [slave  
keyboard (3)]


    Section "InputClass"
        Identifier      "evdev pointer evm3"
        MatchProduct    "Evoluent VerticalMouse 3"
        MatchDevicePath "/dev/input/event*"
        Option          "ButtonMapping" "1 0 3 4 5 0 0 2 0 0 0 0 0"
    EndSection

MatchProduct would suffice if you don't know the devpath.

                Petar Bogdanovic


Home | Main Index | Thread Index | Old Index