Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xorg 7 Extra Mouse buttons
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sun Jul 09, 2006 2:40 am    Post subject: Xorg 7 Extra Mouse buttons Reply with quote

There is a new way to map mouse buttons in Xorg 7. which can be used to replace xmodmap. It may have in some ways made xmodmap deprecated (don't quote me on that I'm not sure).

xorg 7.1 broke evdev for me (which causes X to crash) so for the time being I'm using the normal drivers for my mx1000.
Code:
Section "InputDevice"

# Identifier and driver
    Identifier  "Mouse1"
    Driver      "mouse"
    Option      "Protocol"      "Auto"  # Auto detect
    Option      "Device"        "/dev/input/mice"
    Option      "Buttons"       "12"
    Option      "ZAxisMapping"  "4 5"
    Option      "ButtonMapping" "1 3 2 8 9 6 7 10 11 12"
EndSection


Identifier
is a string that can be set however you choose. However it must match the string in the server layout section. I don't recommend changing it from the default unless you have reason to.

Driver
Possible settings :
"mouse" # a generic mouse driver. good enough for most people
"evdev" # the event device interface, used for horizontal scrolling. you must have this in your kernel to use. stable in 7.0. but broken for me in 7.1
"synaptic" #used for touchpads. doubt you'll have extra buttons if your'e using this :wink:
... help me fill in others or if I have errors

Option "Protocol"
Possible settings:
"auto" #should be good enough for most people auto detects protocol needed.
... Help me fill in others

Option "Device"
Most Common setting is going to be "/dev/input/mice" if you're using udev however if you aren't using udev or created a special rule it may be something else.

Option "Buttons"
The number of button events your mouse generates. a standard mouse with a wheel has 5 buttons (left, right, middle, scroll up, scroll down) so what would be considered a "5-button mouse" has 7 buttons in X.

Option "ZAxisMapping"
This maps the wheel. I think it should be set to "4 5" on all mice that even works on my 12 button mouse. try it... if it doesn't work let me know. I know in the past It would often be set to higher numbers if you had more buttons.

Option "ButtonMapping"
leave the wheel mapping out of this. varies based on mouse and system.
troubleshooting your button mapping
Code:
emerge xev xmodmap
xev used to be packaged with xorg (I think) but now it's a seperate package. if you run it from the command line
Code:
xev
it should pop a box up on your desktop which if you click in it it will tell you what event you button is mapped to.
Code:
ButtonRelease event, serial 27, synthetic NO, window 0x1e00001,
    root 0x4c, subw 0x0, time 1361751085, (171,177), root:(204,231),
    state 0x210, button 2, same_screen YES
you can see on the third line of my click it says button 2. originaly I noted it was set to button 3 so I had to change the first three numbers in my "ButtonMapping" from 1 2 3 to 1 3 2 because I noted that right click was not generating the proper event and that they were reversed and therefore changed the order.

xmodmap although no longer need for setting the order is usefull because It can print out what the hardware buttons are mapped to.
Code:
xmodmap -pp
gives me
Code:
There are 16 pointer buttons defined.

    Physical        Button
     Button          Code
        1              1
        2              3
        3              2
        4              4
        5              5
        6              8
        7              9
        8              6
        9              7
       10             10
       11             11
       12             12
       13             13
       14             14
       15             15
       16             16
the left collum tells you the hardware button and the right SHOULD tells you what button event its mapped to. this doesn't seem to apply if they're mapped to an already defined event... for example some of my other buttons are mapped to buttons 1 2 or 3 and that's the event they generate... I found a way to fix that once but I can't recall how now. also it may show more buttons than you actually have, I'm not sure why but this shouldn't matter, just use the numbers that you actually have. (IE if you have a 7 button mouse only worry about 1-7)
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.


Last edited by XenoTerraCide on Sun Jul 09, 2006 3:35 am; edited 3 times in total
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Jul 09, 2006 2:48 am    Post subject: Reply with quote

I've found with xorg-7.0 and the proper evdev support included in it, I don't need either of these lines anymore and things work the way they are suppose to:
Code:
Option      "Buttons"       "12"
Option      "ZAxisMapping"  "4 5"

Xorg knows how many buttons I have and which ones are the wheel mouse.

I've also read that in xorg-7.1 the Device option isn't needed anymore and a Name option that is more static is used. (Bye bye custom udev rules for mouse)

Edit: I think a lot of people will appreciate knowing about the ButtonMapping option. Should make things simple for those with issues and help diagnosing problems when people have left over xmodmap commands they forgot about.


Last edited by Headrush on Sun Jul 09, 2006 3:17 am; edited 1 time in total
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sun Jul 09, 2006 3:14 am    Post subject: Reply with quote

Quote:
I've found with xorg-7.0 and the proper evdev support included in it, I don't need either of these lines anymore and things work the way they are suppose to:
this is true but not for all people (as I understand). As I mentioned in X11R7.1 evdev breaks for me ( so I wouldn't rely on it too much ) and I don't know if it will get fixed before they mark it stable :x X won't even start if I run evdev in 7.1 it crashes. I've filed bugs upstream and with gentoo but haven't gotten anywhere.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
halfgaar
l33t
l33t


Joined: 22 Feb 2004
Posts: 781
Location: Netherlands

PostPosted: Sun Jul 09, 2006 11:04 am    Post subject: Reply with quote

I'm having loads of problems with my mouse since I upgraded to Xorg 7. The "mouse" driver is not able to handle all the buttons of my Logitec MX500; some are ignored, others act simply as button 1 for example. Using evdev solves it, but for some reason, button 6 and 7 (which are browser back and forward I believe) are nowhere to be found. They are skipped, and the highest button number reported by xev is 12, while the mouse only has 10 buttons. I of course used the logitech applet to disable "cruite control" (it's a stupid function anyway). Also, the ButtonMapping option doesn't seem to do anything.

Headrush: can you post your entire mouse section?

Quote:
I've also read that in xorg-7.1 the Device option isn't needed anymore and a Name option that is more static is used. (Bye bye custom udev rules for mouse)


I was able to do that with 6.8, like so:

Code:
#Section "InputDevice"
#    Identifier  "Mouse[0]"
#    Driver      "mouse"
#    Option      "CorePointer"
#    Option      "Protocol" "evdev"
#    Option      "Dev Name" "B16_b_02 USB-PS/2 Optical Mouse" # cat /proc/bus/input/devices
#    Option      "Dev Phys" "usb-*/input0" # cat /proc/bus/input/devices
#    Option      "Buttons" "10"
#    Option      "ZAxisMapping" "9 10"
#EndSection


But that doesn't work anymore. And, it was flakey, because it was unable to handle replugs of the mouse.

I think I would prefer a custom udev rule, because I don't think my mouse will always be /dev/input/event3. Do you have a custom rule I can adapt for my use?
Back to top
View user's profile Send private message
halfgaar
l33t
l33t


Joined: 22 Feb 2004
Posts: 781
Location: Netherlands

PostPosted: Sun Jul 09, 2006 12:31 pm    Post subject: Reply with quote

Ok, I got it partially working. My xorg.conf section looks like:

Code:
Section "InputDevice"
    Identifier  "Mouse[0]"
    Driver      "evdev"
    Option      "Device" "/dev/input/mx500"
    Option      "Buttons" "10"
EndSection


In /etc/profile I execute xmodmap (because buttonmappings doesn't work) and xbindkeys to map keys to my extra 3 mouse buttons:

Code:

# This is a dirty way to make sure this code only gets executed when loging in
# with X present and only when loging in using xdm, where the terminal is
# dumb. This should also mean that this code gets executed once.
if [ $DISPLAY ] && [ $TERM == "dumb" ]; then   
    # There is a ButtonMapping option in xorg.conf, but it does nothing.
    xmodmap -e "pointer = 1 3 2 4 5 8 9 6 7 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32" > /dev/null 2>&1

    # Load xbindkeys if not already running for this user.
    XBINDKEYS=`ps --user \`whoami\`|grep xbindkeys|grep -v grep`
    if [ ! -n "$XBINDKEYS" ]; then
        xbindkeys > /dev/null 2>&1
    fi
fi


My entry in the udev file 10-local.rules is:

Code:

# My logitech mouse
KERNEL=="event*", SYSFS{name}=="B16_b_02 USB-PS/2 Optical Mouse", SYMLINK="input/mx500"


The device name I got from /proc/bus/input/devices. Using the device name in the xorg.conf doesn't work, despite what this howto (this section) says.

The browser buttons work now, but buttons 8 and 9 are still skipped, meaning my other buttons are 10, 11 and 12, whereas it was 8, 9 and 10 with xorg 6.8. But, I guess I can live with it.

Any improvements (escpially the buttonmapping option problem) are welcome.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Jul 09, 2006 4:07 pm    Post subject: Reply with quote

halfgaar, here is my xorg.conf section for modular X for my Logitech MX510. (everything works)
Code:
Section "InputDevice"
        Identifier  "Logitech MX510"
        Driver      "evdev"
        Option      "Device"        "/dev/input/MX510"
        Option      "CorePointer"
EndSection

/de/input/MX510 is a custom udev rule I have to make a staic device node.
Code:
BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c01d", NAME="input/MX510", GROUP="kdemouse", MODE="664"

I have no xmodmap commands and don't need to turn cruise control off with the logitech-app. All 10 buttons are recognized. Numbers 6 and 7 are skipped, but this is since they are usually mapped to horizontal scroll wheels.
Back to top
View user's profile Send private message
halfgaar
l33t
l33t


Joined: 22 Feb 2004
Posts: 781
Location: Netherlands

PostPosted: Sun Jul 09, 2006 4:56 pm    Post subject: Reply with quote

As an additional suggestion, you can increase the CPI (counts per inch) of the optical sensor with the logitech applet. Without the applet, the sensors runs at only 400. Increasing the CPI is useful for todays screen resolutions, so that you don't have to enable an extreme amount of acceleration in your mouseconfig.

Anyway, you have about the same what I have now, except the modmap command.

Quote:
Numbers 6 and 7 are skipped, but this is since they are usually mapped to horizontal scroll wheels.


Ah, so that's the official function. I've got them mapped to the side buttons, which is convinient for firefox.

When using a mouse in Windows with side buttons for browsing BTW, does that also just give off horizontal scrolling signals, or do the windows drivers manipulate the IE component directly?
Back to top
View user's profile Send private message
MrNugget
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2003
Posts: 144
Location: Germany

PostPosted: Sun Jul 09, 2006 5:09 pm    Post subject: Reply with quote

I got a Logitech MX500 and used to map the buttons like this with my old xorg-installation:

Code:
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5" &
/usr/bin/imwheel -k -f -p -b 67 &


Is there any way i can get my mouse working without recompiling the kernel and using evdev?
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Jul 09, 2006 5:12 pm    Post subject: Reply with quote

halfgaar wrote:
Quote:
Numbers 6 and 7 are skipped, but this is since they are usually mapped to horizontal scroll wheels.


Ah, so that's the official function. I've got them mapped to the side buttons, which is convinient for firefox.

When using a mouse in Windows with side buttons for browsing BTW, does that also just give off horizontal scrolling signals, or do the windows drivers manipulate the IE component directly?

I'm not suggesting that it is official, but same way most apps built think buttons 4 and 5 are vertical scroll wheel, many default to 6 and 7 for horizontal. Its more an app default than anything else.

My guess is on Windows if it works out of the box, they have setup that feature in IE to work on specific buttons by default.
Back to top
View user's profile Send private message
halfgaar
l33t
l33t


Joined: 22 Feb 2004
Posts: 781
Location: Netherlands

PostPosted: Sun Jul 09, 2006 5:14 pm    Post subject: Reply with quote

MrNugget wrote:
I got a Logitech MX500 and used to map the buttons like this with my old xorg-installation:

Code:
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5" &
/usr/bin/imwheel -k -f -p -b 67 &


Is there any way i can get my mouse working without recompiling the kernel and using evdev?


You can compile evdev as module, and install it.

imwheel is not necessary BTW, and is only in the way. Get rid of it :)
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sun Jul 09, 2006 5:43 pm    Post subject: Reply with quote

you get it working? with ButtonMapping were you registering button clicks with xev? you may need to stop using xmodmap and any other tools (imwheel, xbindkeys, etc).

did you try this
Code:

Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 3 2 8 9 6 7 10"


I think the virtual mapping of your buttons needs to be like this (left, middle, right, {scroll forward, scroll backward}, forward, backward, <h-scrolls here?> {don't include these if you're using button mapping}) so I would try mapping hardware in that order. and yes the forward backward is somewhat application specific. However I believe in kde you can change the mapping to match it.

the reason that you can't unplug and replug your mouse using evdev is that X doesn't support hotplugging. and if you're using an non-static udev rule it will change your event number when you plug it back in. In xorg 7.2 (not released yet) the XInputHotplug patch/module is supposed to be included and should allow for the dynamic plugging of input devices.

I reverted to xorg 7.0 I'll see what I can do to play with evdev again.

headrush that udev rule goes in /etc/udev/rules.d/50-udev.rules right? does it matter where? I've been wanting to do one for a while but never bothered. I'll try to add something about it at the top.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Jul 09, 2006 5:55 pm    Post subject: Reply with quote

XenoTerraCide wrote:
headrush that udev rule goes in /etc/udev/rules.d/50-udev.rules right? does it matter where? I've been wanting to do one for a while but never bothered. I'll try to add something about it at the top.

The rules just goes in /etc/udev/rules.d/##-udev.rules

The filename has to end in .rules The number is arbitrary, but remembers that udev scans these files lowest to highest and the first rule that matches for a device is the one it uses. So for my udev rules I add them all to /etc/udev/rules.d/10-local.rules This way my rules should always take precedence over any added by Gentoo.


Last edited by Headrush on Sun Jul 09, 2006 6:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
halfgaar
l33t
l33t


Joined: 22 Feb 2004
Posts: 781
Location: Netherlands

PostPosted: Sun Jul 09, 2006 6:02 pm    Post subject: Reply with quote

When I tried the ButtonMapping option, I did not run xmodmap or xbindkeys, although the latter wouldn't have mattered. I indeed used xev to register clicks. The ButtonMapping option in xorg.conf just doesn't seem to do anything, the mapping remained 1:1, 2:2, 3:3, 4:4 etc.

Quote:
did you try this
Code:
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 3 2 8 9 6 7 10"


I'm not sure if I've tried that exact combination, but it's very likely. I have tried all kind of combinations along these lines, including and excluding button 4 and 5.

Quote:
I think the virtual mapping of your buttons needs to be like this (left, middle, right, {scroll forward, scroll backward}, forward, backward, <h-scrolls here?>


I thought horizontal scroll and forward/backward was the same.

Quote:
However I believe in kde you can change the mapping to match it.


I can't find any option in the KDE control panel related to special mouse buttons. Konquerer also doesn't respond to button 6 and 7 (which act as forward/backward in Firefox).

Quote:
headrush that udev rule goes in /etc/udev/rules.d/50-udev.rules right? does it matter where? I've been wanting to do one for a while but never bothered. I'll try to add something about it at the top.


No, put it in 10-local.rules, or any other file with a lower prefix number than 50. If you put custom changes in system files, they get overridden when you update the software.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Jul 09, 2006 6:09 pm    Post subject: Reply with quote

I just tried the "ButtonMapping" option and it did absolutely nothing. Maybe it doesn't work with the evdev driver?

XenoTerraCide, i noticed in your first post you are using the mouse driver, not the evdev driver.
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sun Jul 09, 2006 6:13 pm    Post subject: Reply with quote

hmmm the mapping should work.... I'm going to look up my source it was on gentoo-wiki.com somewhere I stopped using xmodmap yesterday because it stopped recognizing my buttons. and know the horizontal scroll isn't the same. I once mapped those buttons to switch tabs in firefox :D I just think they are initially mapped the same. The setting in kde you are looking for is in shorcuts. and its in konqueror. just remap the forward and backward shortcuts to the mouse clicks.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sun Jul 09, 2006 6:16 pm    Post subject: Reply with quote

you might be right... like I said because they broke evdev in 7.1 and that's what I was on. :x I'll see in a minute.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Jul 09, 2006 6:19 pm    Post subject: Reply with quote

XenoTerraCide wrote:
you might be right... like I said because they broke evdev in 7.1 and that's what I was on. :x I'll see in a minute.

Doesn't matter for me, my system is working fine the way it is.

When you say evdev is broke in 7.1, what does that exactly mean? Totally, some features? What source did you get that info from?
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sun Jul 09, 2006 6:20 pm    Post subject: Reply with quote

sorry for the fast multiple posts. http://gentoo-wiki.com/HOWTO_Advanced_Mouse is where I got my info
Quote:

I believe this is the correct way to use the button mapping in XOrg 7. You have X buttons, not including the wheel up/down, only the wheel click. In the case of my IMExplorer, 2 side buttons, left, right, and wheel click... 5 buttons. Set buttons to 5. Set your wheel number with the ZAxis mapping. Then do not use those numbers in the button mapping, only the 5 buttons. This replaces the need for xmodmap. Hope this helps.


File: /etc/X11/xorg.conf
Code:

...
Section "InputDevice"
   Identifier  "Configured Mouse"
   Driver      "mouse"
   Option      "CorePointer"
   Option      "Device"          "/dev/psaux"
   Option      "Protocol"        "ExplorerPS/2"
   Option      "Buttons"         "5"
   Option      "ZAxisMapping"    "4 5"
   Option      "ButtonMapping"   "1 2 3 6 7"
EndSection

_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sun Jul 09, 2006 6:23 pm    Post subject: Reply with quote

this thread moves too fast. I mean totally when I tried running an evdev module in xorg 7.1 it CRASHED. X would NOT START. who did I get that from? ME. it may work for you.... I don't know that it's completely broke but I filed bugs upstream I filed bugs with gentoo... never got a resolution. xorg basically pisses me off about it.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Jul 09, 2006 6:27 pm    Post subject: Reply with quote

XenoTerraCide wrote:
this thread moves too fast. I mean totally when I tried running an evdev module in xorg 7.1 it CRASHED. X would NOT START. who did I get that from? ME. it may work for you.... I don't know that it's completely broke but I filed bugs upstream I filed bugs with gentoo... never got a resolution. xorg basically pisses me off about it.

I just checked the wiki article you posted. The input section you posted originally is the section for xorg-6.8.2

Edit: The buttonmapping option does seem to pertain to xorg-7.0 though.


Last edited by Headrush on Sun Jul 09, 2006 6:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sun Jul 09, 2006 6:31 pm    Post subject: Reply with quote

works in xorg 7 for me but I know most of that was for xorg 6.8. I'm going to check out to see if it works for evdev for me. and my evdev along with some other issues is why x86 didn't have xorg 7.1 marked stable the other day. A lot of architectures did.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
halfgaar
l33t
l33t


Joined: 22 Feb 2004
Posts: 781
Location: Netherlands

PostPosted: Sun Jul 09, 2006 6:33 pm    Post subject: Reply with quote

XenoTerraCide wrote:
I once mapped those buttons to switch tabs in firefox :D


How do you map mouse buttons to actions in firefox?

XenoTerraCide wrote:
The setting in kde you are looking for is in shorcuts. and its in konqueror. just remap the forward and backward shortcuts to the mouse clicks.


Strange, forward and back are configured as XF86Back and XF86Forward, but it doesn't seem to work. In firefox is works fine.

Very logical BTW that the options exist under keyboard shortcuts...
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sun Jul 09, 2006 6:49 pm    Post subject: Reply with quote

k I just tested with evedev and my mappings are still working.... do you have protocol configured with evdev you shouldnt' need that. also I tried creating a rule for udev and it didn't work.

should this work?
Code:
BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c70a, NAME="input/MX1000", GROUP="users", MODE="664"

Code:
slave-i ~ # cat /proc/bus/input/devices
I: Bus=0003 Vendor=046d Product=c70e Version=4000
N: Name="Logitech Logitech BT Mini-Receiver"
P: Phys=usb-0000:00:02.1-4.2/input0
S: Sysfs=/class/input/input2
H: Handlers=kbd event0
B: EV=120003
B: KEY=10000 7 ff800000 7ff febeffdf ffefffff ffffffff fffffffe
B: LED=1f

I: Bus=0003 Vendor=046d Product=c70a Version=4000
N: Name="Logitech Logitech BT Mini-Receiver"
P: Phys=usb-0000:00:02.1-4.3/input0
S: Sysfs=/class/input/input3
H: Handlers=kbd mouse0 event1
B: EV=f
B: KEY=c0002 400 0 0 fff0001 f80 78000 6639fa d841d7ad 9e0000 0 0 0
B: REL=1c3
B: ABS=1 0

<edit> as far as how I mapped that I think I had to map them to different keys using xbindkeys. give me a little while and I'll do it again. :wink:
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Jul 09, 2006 6:57 pm    Post subject: Reply with quote

XenoTerraCide wrote:
k I just tested with evedev and my mappings are still working.... do you have protocol configured with evdev you shouldnt' need that. also I tried creating a rule for udev and it didn't work.

should this work?
Code:
BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c70a, NAME="input/MX1000", GROUP="users", MODE="664"

You don't have a rule that takes precedence before this one do you? That looks ok. What file did you put it in?

FYI: An easier way to find Vendor and Product IDs is to use lsusb

I did a little testing to see why the buttonmappings wasn't doing anything, so I check the xorg log /var/log/Xorg.0.log
One way or the other, something should be there even if it isn't a recognized option. The weird part, not a mention of it even seeing the option. Very odd.
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sun Jul 09, 2006 7:00 pm    Post subject: Reply with quote

same here and yet my mappings work... I'll check to see if I get something using the mouse driver in a minute...

its in /etc/udev/rules.d/10-local.rules and I had to create that file nothing else in it.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum