Bug 21736 - impossible to stop wheel mouse scrolling
Summary: impossible to stop wheel mouse scrolling
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/Mouse (show other bugs)
Version: 7.4 (2008.09)
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2009-05-14 06:18 UTC by Maciej Pilichowski
Modified: 2009-09-14 22:41 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
xorg.conf (9.93 KB, text/plain)
2009-09-08 00:56 UTC, Maciej Pilichowski
no flags Details
/var/log/Xorg.2.log (24.01 KB, text/plain)
2009-09-08 06:00 UTC, Maciej Pilichowski
no flags Details
the latest xorg.conf (10.68 KB, text/plain)
2009-09-09 23:12 UTC, Maciej Pilichowski
no flags Details
the latest Xorg log (36.65 KB, text/x-log)
2009-09-09 23:13 UTC, Maciej Pilichowski
no flags Details

Description Maciej Pilichowski 2009-05-14 06:18:43 UTC
Normally linux users wonder how to enable wheel scrolling. I have problem with turning scrolling __off__. I have touchpad, trackpoint and BT mouse with scroll wheel.

BT mouse xorg.conf section:

Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[1]"
  Option       "ButtonMapping" "3 2 1"
  Option       "Buttons" "3"
  Option       "Device" "/dev/input/mouse2"
  Option       "Name" "Dell USB Mouse"
  Option       "Protocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" ""
EndSection

To connect to BT mouse I use bluez and just to keep it awake I run kbluetooth4.

I tried with device /dev/input/mice, with removing option ZAxisMapping, scrolling always scroll.

The original report was posted here for opensuse:
https://bugzilla.novell.com/show_bug.cgi?id=503021
Comment 1 Peter Hutterer 2009-09-03 17:28:14 UTC
Button Mapping "3 2 1 0 0 0 0"

buttons 4 5 6 7 are interpreted as scroll events, if you set the buttons to 0 these events won't get sent
Comment 2 Maciej Pilichowski 2009-09-04 01:05:31 UTC
Thank you, but scrolling still occurs.

Hardware: Dell E6500, touchpad (scroll off by setting 0 scroll areas), trackpoint and BT mouse. The aim is to turn scroll for BT mouse too.
Comment 3 Peter Hutterer 2009-09-06 18:10:16 UTC
Please post your Xorg.log. Do you have AutoAddDevices turned off in your xorg.conf? If not, the device is picked up through HAL, not through the xorg.conf and your configuration is ignored by the server.

For a quick guide how to configure it with HAL, please look at
https://fedoraproject.org/wiki/Input_device_configuration
Comment 4 Maciej Pilichowski 2009-09-08 00:55:11 UTC
I didn't have such option, but now I added it, and scrolling still occurs.  xorg.conf in attachment.
Comment 5 Maciej Pilichowski 2009-09-08 00:56:46 UTC
Created attachment 29328 [details]
xorg.conf
Comment 6 Peter Hutterer 2009-09-08 01:03:36 UTC
please post your Xorg.log.
Comment 7 Maciej Pilichowski 2009-09-08 06:00:06 UTC
Created attachment 29338 [details]
/var/log/Xorg.2.log

I started X session, then another one, I quit, and started another X session. Since the last one was with all the options I attach Xorg.2.log not Xorg.0.log.
Comment 8 Peter Hutterer 2009-09-08 21:56:57 UTC
urgh. it's really hard to help if the files you submit are inconsistent. the log refers to a Mouse[2] but that cannot be seen in the xorg.conf.
Mouse[1] is picked up by the synaptics driver although your config sets the mouse driver. Mouse[3] is synaptics in the config and mouse in the log.

Please submit your xorg.conf and your Xorg.log from the same session, without editing either in between.

anyway, looking at the mouse driver source code, it seems that the button map parsing doesn't take 0s. So your 3 2 1 0 0 0 config is shortened to 3 2 1, leaving the rest intact. try running xmodmap -e "pointer = 3 2 1 0 0 0 0". does that work?
Comment 9 Maciej Pilichowski 2009-09-09 23:12:41 UTC
Created attachment 29362 [details]
the latest xorg.conf
Comment 10 Maciej Pilichowski 2009-09-09 23:13:21 UTC
Created attachment 29363 [details]
the latest Xorg log
Comment 11 Peter Hutterer 2009-09-13 16:27:58 UTC
Wow, that source is messy. Please try ZAxisMapping "0 0" instead of an empty string, it seems that the button mapping and the z-axis mapping are separate so it overwrites it with the defaults if not explicitly set to 0 0.
Comment 12 Maciej Pilichowski 2009-09-14 22:41:15 UTC
Thank you Peter, now it finally does (not) work.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.