Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194055 - x11-drivers/xf86-input-mouse: VT switch generates middle click
Summary: x11-drivers/xf86-input-mouse: VT switch generates middle click
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
Keywords: Inclusion
Depends on:
Reported: 2007-09-28 06:22 UTC by Michal 'vorner' Vaner
Modified: 2008-03-25 04:27 UTC (History)
2 users (show)

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

emerge --info output (info,9.17 KB, text/plain)
2007-09-28 06:24 UTC, Michal 'vorner' Vaner
xorg.conf (xorg.conf,3.97 KB, text/plain)
2007-11-08 15:13 UTC, Matthias Dahl
xorg.log (xorg.log,30.11 KB, text/plain)
2007-11-08 15:14 UTC, Matthias Dahl
Patch from upstream fixing this (1.2.3-dont-paste-on-vt-switch.patch,1.22 KB, patch)
2008-03-22 06:03 UTC, Gautam Iyer
Details | Diff
Ebuild to use the above patch (xf86-input-mouse-1.2.3-r1.ebuild,640 bytes, text/plain)
2008-03-22 06:04 UTC, Gautam Iyer

Note You need to log in before you can comment on or make changes to this bug.
Description Michal 'vorner' Vaner 2007-09-28 06:22:07 UTC
Whenever I switch from other VT (with console or other X server), X server generates a middle click event (usually causing a clipboard paste to console).

This is my Xorg:
[ebuild   R   ] x11-base/xorg-server-1.4-r1  USE="debug dri hal ipv6 nptl sdl xorg -3dfx -dmx -kdrive -minimal -xprint" INPUT_DEVICES="keyboard mouse synaptics -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -evdev -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="i810 vesa -amd -apm -ark -chips -cirrus -cyrix -dummy -epson -fbdev -glint -i128 -i740 (-impact) -imstt -mach64 -mga -neomagic (-newport) -nsc -nv -nvidia% -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vermilion -vga -via -vmware -voodoo -xgi" 0 kB

Does anyone has idea, what this might be caused by/what other info could I get?

emerge --info coming in next post, bugzilla does not allow appending it to the first one.

Thank you
Comment 1 Michal 'vorner' Vaner 2007-09-28 06:24:51 UTC
Created attachment 132061 [details]
emerge --info output
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-09-28 07:03:52 UTC
Did you upgrade to xkeyboard-config-1.1? Or did this happen before as well?
Comment 3 Michal 'vorner' Vaner 2007-09-28 07:58:52 UTC
> Did you upgrade to xkeyboard-config-1.1? Or did this happen before as well?

No, portage didn't offer me that one (I can try to upgrade as soon as I have usable Internet connection).

It happened after upgrade of the xserver itself to new version.

But, it is mouse middle click, does it have anything to do with keyboard? By the way, I use my own, modified, keyboard config. Should I suspect problem there?
Comment 4 Matthias Dahl 2007-11-08 15:10:21 UTC
Unfortunately, I can second that. Happens here too... started with xorg 7.3 and it is really bothersome.

Here the emerge --info output:

Portage (default-linux/amd64/2006.1/desktop, gcc-4.2.2, glibc-2.6.1-r0, 2.6.23 x86_64)
System uname: 2.6.23 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5600+
Timestamp of tree: Thu, 08 Nov 2007 14:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.5.1-r3
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=athlon64 -mtune=athlon64 -msse3 -O2 -pipe -fweb -frename-registers -fgcse-after-reload -freorder-blocks-and-partition"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -mtune=athlon64 -msse3 -O2 -pipe -fweb -frename-registers -fgcse-after-reload"
FEATURES="ccache collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
LDFLAGS=" -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,combreloc -Wl,-z,now"
LINGUAS="en en_GB en_US uk"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
USE="16bit 3dnowex 64bit X a52 aac acl acpi acpi4linux activefilter additions aiglx aim aio alsa amd64 amr animgif ansi aotuv apm artworkextra asf async athena audiofile bash-completion beepmp berkdb bigpatch bitmap-fonts blender-game bluetooth bonobo branding browserplugin bzip2 bzlib cairo cdb cdda cddb cdinstall cdio cdparanoia cdr cdrom chardet chroot cisco clanJavaScript clanVoice cli cmdsubmenu codecs contrib cracklib crypt css cups curl curlwrappers custom-cflags cutterlimit cutterqueue cvs d dbus de_tvtoday devil dga dhcp dio distribution divx dmi dnd doc dolby-record-switch dolbyinrec dpms dri dts dvb dvbplayer dvbsetup dvd dvdarchive dvdchapjump dvdnav dvdr dvdread dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer editor edl emboss emoticon encode erandom evo evo2 expat ext-png ext-zlib extensions faad fame ffmpeg fftw firefox flac flash fmod foomaticdb fortran fpx freetype ftp fuse gb gcj gd gd-external gdbm gif gimp gimpprint glade glibc-omitfp glitz glut gmedia gmp gnomedb gnutls gpm graphtft graphviz gs gstreamer gtk gtk2 gtkhtml hal hbci hddtemp hybrid-auth iconv icq idea idn imagemagick imap imlib imlib2 inherit-graph ipod irc irda isdnlog ithreads j2ee jabber java javacomm javamail javascript jce jikes jpeg jpeg2k jumpplay kde kdeenablefinal kdehiddenvisibility kickoff kqemu lcms libdsk libgcrypt libsamplerate libwww liemikuutio linuxthreads-tls live livebuffer lm_sensors lua lzo mad maildir mainmenuhooks mapeditor maps math matroska md5sum midi mikmod mime ming mixer mjpeg mng modplug monkey mozbranding mozdevelop moznocompose moznoirc moznomail mozsvg mp2 mp3 mp4 mp4live mpeg mpeg4 mplayer msn mudflap music native ncurses neXt network newspr nls no-old-linux noamazon nptl nptlonly nsplugin nvidia offensive ogg oggvorbis opengl openmp operanom2 oscar osdmaxitems pam pcap pch pcntl pcre pdf perl pertty physfs pic playlist png pnm povray ppds pppd projectx python qt3 qt3support qt4 quicktime rar readline realmedia recode reflection remix rhythmbox rle rss rtc rtsp samba sasl sdl session setup setup-plugin sftplogging silc skey slang smime smp sndfile sortrecords sounds sourceview sox speedo speex spell spl ssl startup-notification stencil-buffer stream submenu subp subtitles subversion svg svgz switchtimer syncearly syslog tcpd tetex tga themes theora threads threadsafe thumbnail tidy tiff timerinfo timidity tools transcode transparency truetype truetype-fonts twolame type1 type1-fonts unicode urandom utf8 uudeview v4l v4l2 valgrind validinput vcd vcdimager videos visualization vlm voice vorbis vorbis-psy wareagleicon wma wma123 wmf x264 xanim xatrix xcb xchatdccserver xcomposite xforms xine xml xml2 xmlrpc xorg xrandr xscreensaver xslt xulrunner xv xvid xvmc yaepg yahoo yv12 zeroconf zlib zvbi" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US uk" USERLAND="GNU" VIDEO_CARDS="nvidia nv v4l vesa"

I'll also attach my xorg.conf and xorg server log in a few minutes, just in case it's helpful to someone.
Comment 5 Matthias Dahl 2007-11-08 15:13:26 UTC
Created attachment 135490 [details]
Comment 6 Matthias Dahl 2007-11-08 15:14:11 UTC
Created attachment 135492 [details]
Comment 7 Matthias Dahl 2007-11-08 15:33:11 UTC
FYI: just filed a bug report over at freedesktop's bugzilla (#13144).
Comment 8 Ulrich Müller gentoo-dev 2007-11-21 20:05:06 UTC
There's a patch from upstream available at <>.
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2007-11-23 11:50:18 UTC
Please reopen once the patch gets committed upstream.
Comment 10 Ilya Eremin 2007-12-07 19:06:25 UTC
Pushed to xf86-input-mouse.
commit 6a03e8bd9699a33dabcdd2bbcf51a001ddfd5534
Comment 11 Ulrich Müller gentoo-dev 2007-12-07 19:23:32 UTC
(In reply to comment #9)
> Please reopen once the patch gets committed upstream.

Comment 12 Gautam Iyer 2008-03-22 06:03:28 UTC
Created attachment 146840 [details, diff]
Patch from upstream fixing this

I had the same issue when I switched to xorg-1.4. The patch from upstream fixes everything for me.
Comment 13 Gautam Iyer 2008-03-22 06:04:31 UTC
Created attachment 146841 [details]
Ebuild to use the above patch
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2008-03-22 22:04:07 UTC
Once I bump the mouse driver to 1.3.0, that should fix this.
Comment 15 Donnie Berkholz (RETIRED) gentoo-dev 2008-03-25 04:27:35 UTC
Please test 1.3.0, it's ~arch. Reopen if that doesn't fix this issue.