! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Mouse lefthand is not working.
Status:
RESOLVED: MOVED
Product:
Xfce4-settings
Component:
Mouse Settings

Comments

Description Gleidson Echeli 2009-02-28 16:19:31 CET
By configuring mouse in new xfconf to change mouse to lefthand mode, the mouse hand is not changed to left hand. It stays in righthand mode.
Comment 1 Olivier Fourdan editbugs 2009-02-28 18:55:44 CET
Yes, not sure it's a "major" issue but it's reproducible here...
Comment 2 Nick Schermer editbugs 2009-02-28 20:12:48 CET
Yeah here too, but it's weird because the button map is good...
Comment 3 Nick Schermer editbugs 2009-02-28 20:13:35 CET
Created attachment 2195 
Patch to print the button map

This will print the button map. Use 'xfce4-settings-helper -d'.
Comment 4 Nick Schermer editbugs 2009-02-28 20:26:48 CET
Looks like a problem with evdev driver, works fine on a synaptics based driver. Also get errors when i try to change the map with xinput utility (for the evdev devices):

xinput set-button-map 'Logitech USB-PS/2 Optical Mouse' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 10
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  147 (XInputExtension)
  Minor opcode of failed request:  29 (X_SetDeviceButtonMapping)
  Value in failed request:  0xa
  Serial number of failed request:  14
  Current serial number in output stream:  14
Comment 5 Mike Massonnet editbugs 2009-02-28 20:44:23 CET
Quick comment to let you know that the "inverse scroll wheel" doesn't work either.
Comment 6 Nick Schermer editbugs 2009-03-01 08:36:15 CET
(In reply to comment #5)
> Quick comment to let you know that the "inverse scroll wheel" doesn't work
> either.

Yes I know, but there be generated button map is good too, it's just that X does not apply it on the driver (evdev drivers here).
Comment 7 Nick Schermer editbugs 2009-03-01 10:51:51 CET
Opened a bug in the freedesktop bugzilla, maybe it really is an evdev bug or they can provide us with some info what we're doing wrong. http://bugs.freedesktop.org/show_bug.cgi?id=20400
Comment 8 Olivier Fourdan editbugs 2009-03-01 12:12:15 CET
It works in gnome though, so it might be worth checking implementation.
Comment 9 Pascal Gervais 2009-03-01 17:53:42 CET
Hi

I just wanted to let you know that lefthand mouse and inverse scroll wheel work as expected for me on a fresh self compiled Xfce 4.6 on Debian Lenny/stable with a Logitech PS/2 mouse.
Comment 10 Olivier Fourdan editbugs 2009-03-01 20:48:01 CET
Created attachment 2206 
Proposed patch

This patch seems to improve things for me, please test.
Comment 11 Mike Massonnet editbugs 2009-03-01 21:35:46 CET
Switching between left and right works fine. But as soon as you play with "inverse scroll wheel" things start getting awkward.

- select left
- check inverse scroll wheel
=> the mouse is right hand again
Comment 12 Nick Schermer editbugs 2009-03-02 08:50:46 CET
(In reply to comment #10)
> Created an attachment (id=2206) [details]
> Proposed patch
> 
> This patch seems to improve things for me, please test.

Patch looks fine, dunno about 1 button mouses tho. Anyway the extra error traps are good and, so I'll commit the patch.
Comment 13 Olivier Fourdan editbugs 2009-03-02 09:06:56 CET
Nick, beware, there is more than just the error catches.

The "real" change come from the use of XGetPointerMapping() instead of XGetDeviceButtonMapping() to read the current mapping.

So that might be a WIP more than a final patch. It's worth noting that gnome implementation (which works here) does not use XGetDeviceButtonMapping()/XSetDeviceButtonMapping() but XGetPointerMapping()/XSetPointerMapping()
Comment 14 Nick Schermer editbugs 2009-03-02 09:09:55 CET
(In reply to comment #13)
> Nick, beware, there is more than just the error catches.
> 
> The "real" change come from the use of XGetPointerMapping() instead of
> XGetDeviceButtonMapping() to read the current mapping.
> 
> So that might be a WIP more than a final patch. It's worth noting that gnome
> implementation (which works here) does not use
> XGetDeviceButtonMapping()/XSetDeviceButtonMapping() but
> XGetPointerMapping()/XSetPointerMapping()

O yeah sorry, missed that. Then I won't commit the patch. I want the settings to work per device, that's why I wrote all the code.
Comment 15 Nick Schermer editbugs 2009-03-03 17:52:43 CET
Just updated my xorg-server to 1.6.0 and now this works again.
Comment 16 Justin Clift 2009-04-25 00:44:04 CEST
Just upgraded to 4.6.0, and yep, the left handed mouse has stopped working for me too.

Using the settings manager, changing the setting to be left handed, then closing the dialog makes no change.  Going back into the settings manager... it shows the mouse is still right handed.

As a short term workaround, I'm having to use xmodmap and remap the pointer buttons.  (ugh)
Comment 17 Justin Clift 2009-04-25 06:30:59 CEST
Added a bug for this to the Gentoo bug tracker as well, pointing to this bug.
Comment 18 charlie-tca 2010-03-12 20:27:05 CET
Are there any updates to this bug? It is still not working in Xfce4-settings version 4.6.4.
Comment 19 Nick Schermer editbugs 2011-05-17 23:12:54 CEST
First check if xfce4-settings-helper is running.

If you still have this problem, paste the output of "xinput list" and "xinput get-button-map <id>", replace id with the device's id from the list.
Comment 20 David Levine 2013-03-09 17:54:02 CET
This stopped working for me in Fedora 18, xfce4-settings-4.10.0-4.fc18.i686.  It worked fine in Fedora 17 with the same hardware.

$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Dell Dell USB Mouse                       id=8    [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)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=9    [slave  keyboard (3)]

$ xinput get-button-map 8
1 2 3 4 5 6 7

The only output I see when running xfce4-mouse-settings from the command line is:
    Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.

The only device it shows is "Dell Dell USB Mouse".

This does change to left-handed mouse:
$ xmodmap -e "pointer = 3 2 1"
Comment 21 David Levine 2013-07-07 16:08:05 CEST
Solution found to my problem, described in previous comment:

  $ rm ~/.config/xfce4/xfconf/xfce-perchannel-xml/pointers.xml

Its contents are shown below.  I don't know how the Macintosh_mouse_button_emulation section got in there.  I used to have a Logitech wireless but removed it (the hardware) years ago.

With just a Dell_Dell_USB_Mouse section, everything works properly.  That includes being able to configure the mouse to be left handed.  And it includes a lot more than that.  I rebooted, and after logging in, I could not move the mouse cursor at all.  It ignored the pointer completely.  It only affected me, not other users.  Again, removing that pointers.xml file fixed the problem.


<?xml version="1.0" encoding="UTF-8"?>

<channel name="pointers" version="1.0">
  <property name="Macintosh_mouse_button_emulation" type="empty">
    <property name="RightHanded" type="bool" value="true"/>
    <property name="Threshold" type="int" value="4"/>
    <property name="Acceleration" type="double" value="2.000000"/>
  </property>
  <property name="Logitech_USB_Receiver" type="empty">
    <property name="RightHanded" type="bool" value="false"/>
    <property name="Threshold" type="int" value="4"/>
    <property name="Acceleration" type="double" value="1.500000"/>
  </property>
  <property name="Dell_Dell_USB_Mouse" type="empty">
    <property name="Threshold" type="int" value="4"/>
    <property name="Acceleration" type="double" value="2.000000"/>
    <property name="ReverseScrolling" type="bool" value="false"/>
    <property name="Properties" type="empty">
      <property name="Device_Enabled" type="int" value="0"/>
    </property>
    <property name="RightHanded" type="bool" value="false"/>
  </property>
</channel>
Comment 22 Git Bot editbugs 2020-05-28 22:52:17 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-settings/-/issues/2.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #5004

Reported by:
Gleidson Echeli
Reported on: 2009-02-28
Last modified on: 2020-05-28

People

Assignee:
Nick Schermer
CC List:
8 users

Version

Attachments

Patch to print the button map (671 bytes, patch)
2009-02-28 20:13 CET , Nick Schermer
no flags
Proposed patch (1.69 KB, patch)
2009-03-01 20:48 CET , Olivier Fourdan
no flags

Additional information