You are not logged in.

#1 2008-08-23 08:22:39

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

[solved]Failing to make my mouse work properly

Hello community,

I have a mouse with two side buttons which I would like to use in Firefox and Nautilus to go back and forward. I've tried configuring it as it is said in the Wiki but none of the configurations did work. I'll just list what I've tried and maybe somebody finds the mistake or has a better proposal. smile

1. The first thing I tried was to take my xorg.conf from my Ubuntu install (there the mouse worked):

Section "InputDevice"
    Identifier   "Mouse1"
    Driver        "mouse"
    Option        "Buttons"        "7"
    Option        "ButtonNumber"   "7"
    Option        "SendCoreEvents" "true"
    Option        "Protocol"       "ExplorerPS/2"
    Option        "Device"         "/dev/input/mice"
    Option        "ZAxisMapping"   "4 5"
EndSection

This hasn't worked, I got this in xev for the both buttons:

LeaveNotify event, serial 31, synthetic NO, window 0x3600001,
    root 0x1a6, subw 0x0, time 1455324, (130,144), root:(134,244),
    mode NotifyGrab, detail NotifyAncestor, same_screen YES,
    focus YES, state 0

EnterNotify event, serial 31, synthetic NO, window 0x3600001,
    root 0x1a6, subw 0x0, time 1455492, (130,144), root:(134,244),
    mode NotifyUngrab, detail NotifyAncestor, same_screen YES,
    focus YES, state 0

KeymapNotify event, serial 31, synthetic NO, window 0x0,
    keys:  4294967206 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

LeaveNotify event, serial 31, synthetic NO, window 0x3600001,
    root 0x1a6, subw 0x0, time 1456204, (130,144), root:(134,244),
    mode NotifyGrab, detail NotifyAncestor, same_screen YES,
    focus YES, state 0

EnterNotify event, serial 31, synthetic NO, window 0x3600001,
    root 0x1a6, subw 0x0, time 1456380, (130,144), root:(134,244),
    mode NotifyUngrab, detail NotifyAncestor, same_screen YES,
    focus YES, state 0

KeymapNotify event, serial 31, synthetic NO, window 0x0,
    keys:  4294967206 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

So I think it hasn't worked since there is no "button[number]" in this output.

2. Secondly I tried the wiki config with evdev: http://wiki.archlinux.org/index.php/Get … ev_Drivers It hasn't worked at all, since after this config the mouse didn't even move. big_smile

3. Then I tried the alternate methods in the wiki: http://wiki.archlinux.org/index.php/Get … te_Methods The ExplorerPS2 config had the same result as my Ubuntu one. The ImPS2 was the best one. I even got output with button number in xev for the two buttons, but their numbers were 2 and 3 which are already taken by the middle and right mouse buttons. I tried different button mapping options like 1 2 3 4 5 6 7, 1 2 3 6 7 or 1 6 7 big_smile but none of them worked.

Does anyone has any suggestions? smile

PhotonX

Last edited by PhotonX (2008-08-24 17:19:22)


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#2 2008-08-23 16:37:07

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: [solved]Failing to make my mouse work properly

PhotonX,

you dont say whats your mouse model. In my case, with a Logitech G5 mouse, I also followed the link
http://wiki.archlinux.org/index.php/Get … ev_Drivers ,
and the only way to get it working was with:

        Identifier  "Mouse0"
        Driver      "evdev"
        Option      "Device"          "/dev/input/by-id/usb-Logitech_USB_Gaming_Mouse-event-mouse"
        Option      "ZAxisMapping" "7 6 8 4 5"
        Option      "Emulate3Buttons" "false"
        Option      "Buttons" "8"
        Option      "CorePointer"

This is described on above link.

You get the Device name with: ls -l /dev/input/by-id/

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#3 2008-08-23 17:47:21

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

Re: [solved]Failing to make my mouse work properly

Well, my mouse is a Typhoon Wireless Optical Mouse, listed as "usb-Cypress_Semi._Cypress_Ultra_Mouse-mouse".  Do you have to enter it like in your codeblock with "/dev/input/by-id/..." or is it enough just to enter the name itself (maybe this was my mistake)? smile

Last edited by PhotonX (2008-08-23 17:48:08)


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#4 2008-08-23 18:05:45

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: [solved]Failing to make my mouse work properly

Hi, PhotonX,

give it a try. In my case in /dev/input/by-id/ I have 2 names. The important one is the one symbolic
linked to an "event" character device.

Also, for some reason I can't recall, the line:

        Option      "CorePointer"

was important.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#5 2008-08-23 19:25:10

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

Re: [solved]Failing to make my mouse work properly

It's a shame... I tried the following config:

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc105"
    Option        "XkbLayout"    "de,ru"
    Option        "XkbVariant"    ",winkeys"
    Option        "XkbOptions"    "grp: ctrl_shift_toggle"
EndSection

Section "InputDevice"
    Identifier   "Mouse1"
    Driver        "mouse"
    Option        "Buttons"        "7"
    Option        "ButtonNumber"   "7"
    Option        "SendCoreEvents" "true"
    Option        "Protocol"       "ImPS2"
    Option        "Device"         "/dev/input/mice"
    Option        "ZAxisMapping"   "4 5"
    Option        "ButtonMapping"  "1 2 3 6 7"
#    Identifier  "Mouse0"
#    Driver      "evdev"
#    Option      "Device" "/dev/input/by-id/usb-Cypress_Semi._Cypress_Ultra_Mouse-mouse"
#    Option      "ZAxisMapping" "4 5"
#    Option      "Emulate3Buttons" "false"
#    Option      "Buttons" "7"
#    Option      "CorePointer"
EndSection

Section "Device"
    Identifier    "Configured Video Device"
    Driver        "nvidia"
    Option        "NoLogo"    "True"
EndSection

Section "Monitor"
    Identifier    "Configured Monitor"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Monitor        "Configured Monitor"
    Device        "Configured Video Device"
    Defaultdepth    24
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
  screen "Default Screen"
EndSection
Section "Module"
    Load        "glx"
EndSection

Just inverse the commenting in the input device section. smile The first part was commented out, the second one active. The mouse didn't move. After I commented it like it is now it still didn't move! I renamed the file (so it didn't find any xorg.conf at all) and then the mouse moved. And the best thing ist: As I was browsing to this thread without any xorg.conf I noticed that the two buttons worked in Firefox! But every configuration in the xorg.conf fails... I'd leave it like this, but I want to use the nvidia driver so that's no solution either...


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#6 2008-08-23 21:58:59

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: [solved]Failing to make my mouse work properly

Try exactly the configuration above, but uncomment

#    Option      "CorePointer"

Faintly I remenber I had to do that.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#7 2008-08-24 07:40:00

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

Re: [solved]Failing to make my mouse work properly

Like this it doesn't move again. sad  Maybe there must be an entry about the mouse in the ServerLayout section?


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#8 2008-08-24 11:37:59

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: [solved]Failing to make my mouse work properly

PhotonX wrote:

Like this it doesn't move again. sad  Maybe there must be an entry about the mouse in the ServerLayout section?

It should be the same. Anyhow, I have the following:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    RgbPath         "/usr/lib/X11/rgb"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/75dpi"
    FontPath        "/usr/share/fonts/100dpi"
    FontPath        "/usr/share/fonts/TTF"
    FontPath        "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/artwiz-fonts"
    FontPath        "/usr/share/fonts/cyrillic"
    FontPath        "/usr/share/fonts/local"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "freetype"
    Load           "glx"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

## Section "InputDevice"
##     # generated from default
##     Identifier     "Mouse0"
##     Driver         "mouse"
##     Option         "Protocol" "auto"
##     Option         "Device" "/dev/psaux"
##     Option         "Emulate3Buttons" "no"
## ##  Option          "ZAxisMapping" "7 6 8 4 5"
##     Option         "ZAxisMapping" "4 5"
## EndSection


Section "InputDevice"
Identifier  "Mouse0"
        Driver      "evdev"
#       Option        "Name" "Logitech USB Gaming Mouse"
#       Option      "Device"          "/dev/input/event5" # (cat /proc/bus/input/devices)
       Option      "Device"          "/dev/input/by-id/usb-Logitech_USB_Gaming_Mouse-event-mouse"
       Option        "ZAxisMapping" "7 6 8 4 5"
       Option        "Emulate3Buttons" "false"
       Option        "Buttons" "8"
#      Option        "CorePointer"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option       "XkbLayout" "pt"
    Option       "XkbModel" "pc105"
EndSection

Section "Monitor"
.....................

Note that I have 2 monitors om my nvidia.

Hope this helps somehow.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#9 2008-08-24 16:33:39

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

Re: [solved]Failing to make my mouse work properly

Wow, it's getting better! smile Following config now:

Section "InputDevice"
    Identifier    "Mouse0"
        Driver        "evdev"
#       Option        "Name" "Logitech USB Gaming Mouse"
#    Option        "Device"          "/dev/input/event5" # (cat /proc/bus/input/devices)
    Option        "Device"          "/dev/input/by-id/usb-Cypress_Semi._Cypress_Ultra_Mouse-event-mouse"
    Option        "ZAxisMapping" "7 6 4 5"
    Option        "Emulate3Buttons" "false"
    Option        "Buttons" "7"
#    Option        "CorePointer"

EndSection

Section "ServerLayout"
    Identifier    "Layout0"
    Screen "Default Screen"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Now the mouse moves and everything works - except the two side buttons which still give following output in xev:

LeaveNotify event, serial 34, synthetic NO, window 0x3000001,
    root 0x1a6, subw 0x0, time 105323, (80,99), root:(143,638),
    mode NotifyGrab, detail NotifyAncestor, same_screen YES,
    focus YES, state 0

EnterNotify event, serial 34, synthetic NO, window 0x3000001,
    root 0x1a6, subw 0x0, time 105579, (80,99), root:(143,638),
    mode NotifyUngrab, detail NotifyAncestor, same_screen YES,
    focus YES, state 0

KeymapNotify event, serial 34, synthetic NO, window 0x0,
    keys:  4294967206 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

LeaveNotify event, serial 34, synthetic NO, window 0x3000001,
    root 0x1a6, subw 0x0, time 106051, (80,99), root:(143,638),
    mode NotifyGrab, detail NotifyAncestor, same_screen YES,
    focus YES, state 0

EnterNotify event, serial 34, synthetic NO, window 0x3000001,
    root 0x1a6, subw 0x0, time 106267, (80,99), root:(143,638),
    mode NotifyUngrab, detail NotifyAncestor, same_screen YES,
    focus YES, state 0

KeymapNotify event, serial 34, synthetic NO, window 0x0,
    keys:  4294967206 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

I'll experiment with the ZAxis and ButtonMapping options and report whether some of them work. smile


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#10 2008-08-24 16:59:58

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

Re: [solved]Failing to make my mouse work properly

Eureka!  This was the solution: http://ubuntuforums.org/showpost.php?p= … stcount=99 xbindkeys has messed up the xev output. So now I get the two buttons recognized as button8 and button9. Now I just need to configure xbindkeys. Now it's configured via xte:

# Back
"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'"
  b:8
# Forward
"xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'"
  b:9

But I don't find xte neither in pacman nor in the AUR...

edit: I found a solution it works with xvkbd like this:

# Back
"xvkbd -xsendevent -text "\[Alt_L]\[Left]""
  m:0x10 + b:8
# Forward
"xvkbd -xsendevent -text "\[Alt_L]\[Right]""
  m:0x10 + b:9

Thanks for your help!

Last edited by PhotonX (2008-08-24 17:18:54)


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#11 2008-09-06 20:34:30

bostonvaulter
Member
Registered: 2008-07-17
Posts: 36

Re: [solved]Failing to make my mouse work properly

Just wanted to add a note that xte is currently in the AUR in the xautomation package.

Offline

#12 2008-09-07 07:31:38

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

Re: [solved]Failing to make my mouse work properly

Thanks! "Never change a running system!", so I won't change it now, but if I happen to reinstall Arch, I'll use xte. smile


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

Board footer

Powered by FluxBB