Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76993 - RQST: Enable mouse button mapping in xorg.conf
Summary: RQST: Enable mouse button mapping in xorg.conf
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-07 02:32 UTC by Thomas Scheffler
Modified: 2005-01-13 16:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Scheffler 2005-01-07 02:32:52 UTC
I know there is the tool xmodmap allready for this issue. But this tool is aware only of a single pointer. X-ORG on the other side enables the user to use more than one core pointer. You can't reassing the buttons independly for them, yet.
I have a notebook with a synaptic touchpad. It has seven buttons defined. Button 1 and 2 as normal, 3 is emulated, 4 and 5 for vertical scrolling (gliding on the right side), and 6 and 7 (gliding on the bottom). While this is perfectly configurated, I seldomly use it. Most times I use my USB mouse. Because it can be detached and I still want to work then I set the touchpad to be the CorePointer. The USB mouse can just send CoreEvents.
Now here is the point. The USB mouse is a wheel mouse with 5 buttons, which makes it a seven button mouse, too. There is no way for me to get all of them working and to have the scroll wheel be on button 4 and 5 as many application expect them.
Either I have all buttons working, then scrollwheel is on button 5 and 6. And I can use the two additional buttons for scrolling which is not so good. The second way to reconfigure it via "xsetpointer" and the with "xmodmap" the standard way, which breaks the touchpad config then. Or I simply have to configure it as a 5 button mouse. Then the scrollwheel is working, the touchpad too, but I have two useless buttons.
I want something like this (see Option ButtonMapping):
Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "mouse"
        Option          "SendCoreEvents"        "true"
        Option          "Protocol"              "evdev"
        Option          "Dev Name" "insert name here"
        Option          "Dev Phys" "usb-0000:00:01.2-1/input0"
        Option          "Buttons"               "7"
        Option          "ZAxisMapping"          "4 5"
        Option          "ButtonMapping"         "1 2 3 6 7 4 5"
EndSection

I think this is the only way to get this done the easy way(?). I know this issue can also be adapted for people who have several keyboards. But I think my use case is practically more relevant.

Reproducible: Always
Steps to Reproduce:
1. it's described in prose allready

Actual Results:  
Either the touchpad is not working correct, or the mouse is not working correct,
or the mouse can only use 5 buttons out of X, for all X>5.

Expected Results:  
Touchpad and mouse should peacefully coexist on the desktop :o)

Portage 2.0.51-r3 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r1 i686)
=================================================================
System uname: 2.6.10-gentoo-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -march=pentium3 -fomit-frame-pointer -mfpmath=sse -msse -mmmx"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -march=pentium3 -fomit-frame-pointer -mfpmath=sse -msse -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://128.213.5.34/gentoo/
http://ftp.caliu.info/pub/gentoo/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://gentoo.mirror.sdv.fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 S3TC X aac aalib acl acpi acpi4linux alsa also apache2 arts autofs avi
berkdb bitmap-fonts cdparanoia clanJavaScript clanVoice codecs crypt cups dga
directfb dvd dvdread esd evo faac faad fam fbcon flac foomaticdb gd gdbm gif
gimp gphoto2 gpm gstreamer gtk gtk2 guile hbci imagemagick imap imlib2
insecure-drivers ipv6 ithreads java javascript jce jpeg jpeg2k junit kde ldap
libcaca libwww lirc live lzo mad maildir memlimit mikmod mmx mng motif
mozcalendar mozdevelop mozilla mozp3p mozsvg mozxmlterm mpeg mysql nas ncurses
network nls nntp nptl nptlonly offensive oggvorbis ooo-kde openal opengl oss pam
pcmcia pdflib perl pic png pnp ppds pthreads python qt quicktime readline real
rtc samba sdl sis slang speex spell sse ssl svg svga tcltk tcpd tetex theora
threads tiff transcode truetype unicode usb userlocales xine xinerama xml xml2
xosd xprint xrandr xv xvid xvmc zlib"
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-13 16:20:44 UTC
This isn't the appropriate place for that request. Please file a bug at bugs.freedesktop.org in the xorg product. Thanks.