Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434572 - x11-base/xorg-server-1.13.0 - mouse handling fails with separate X screen configuration
Summary: x11-base/xorg-server-1.13.0 - mouse handling fails with separate X screen con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on: 434912
Blocks:
  Show dependency tree
 
Reported: 2012-09-10 11:27 UTC by ismohaa
Modified: 2012-11-10 23:23 UTC (History)
8 users (show)

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


Attachments
0001-dix-fix-zaphod-screen-scrossing-54654.patch (0001-dix-fix-zaphod-screen-scrossing-54654.patch,1.37 KB, patch)
2012-11-08 14:45 UTC, Matthew Schultz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ismohaa 2012-09-10 11:27:36 UTC
When starting up X everything works fine until you try to drag the mouse pointer to another screen. When you do, the mouse pointer completely disappears. Even using keyboard shortcuts doesn't offer much help, since they are now tied to the screen you tried to drag the pointer to.

Reproducible: Always

Steps to Reproduce:
1.Drag mouse pointer to another X screen than the one it started on by default.

Actual Results:  
The mouse pointer completely disappears, rendering the entire graphical environment almost completely useless.

Expected Results:  
The mouse pointer should seamlessly appear on the screen it was dragged to.

xorg-server-1.12.99.905 did *not* have this problem. Blocking 1.13.0 in package.mask causes portage to downgrade all the way to 1.12.4, which does not have this problem either.

In case it would have been a driver issue, (like the update to 1.12.99.905 caused) I tried running "for driver in `qlist -IC x11-drivers` ; do emerge -1 $driver ; done", but this did not solve the issue.

emerge --info:
Portage 2.1.11.14 (default/linux/amd64/10.0/no-multilib, gcc-4.6.3, glibc-2.15-r2, 3.5.0-gentoo x86_64)
=================================================================
System uname: Linux-3.5.0-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4800+-with-gentoo-2.2
Timestamp of tree: Sun, 09 Sep 2012 10:45:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.3
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"                                                                                                                          
DISTDIR="/usr/portage/distfiles"                                                                                                                              
FCFLAGS="-O2 -pipe"                                                                                                                                           
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"                                                                                                    
FFLAGS="-O2 -pipe"                                                                                                                                            
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://archive.mmu.edu.my/gentoo rsync://gentoo.bloodhost.ru/gentoo-distfiles ftp://gentoo.mirrors.tds.net/gentoo ftp://ftp.halifax.rwth-aachen.de/gentoo/ rsync://mirror.neolabs.kz/gentoo http://ftp.gentoo.bg/ http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/"                                                                          
LANG="sv_FI.UTF-8"                                                                                                                                            
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                             
LINGUAS="sv sv_SE"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl alsa amd64 bash-completion berkdb branding bzip2 cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups cxx dbus dga dri dv dvb dvd dvdr dvdread dvi encode exif faac fat ffmpeg firefox flac fortran ftp gdbm geoip gif gimp gnutls gphoto2 gpm gzip handbook iconv imap java6 jpeg kde kdeenablefinal kdehiddenvisibility lame latex libass lm_sensors mad matroska mjpeg mmx mmxext modules mozilla mp3 mp4 mpeg mplayer mudflap mule ncurses nls nocd nptl ogg openal opengl openmp oss pam pcre pdf png policykit posix postscript ppds pppd qt3support qt4 rar readline reiserfs sdl session smp socks5 spell sse sse2 ssl svg tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vdpau vlc vorbis wavpack wmf x264 xine xinerama xprint xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="sv sv_SE" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev vesa radeon nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


/etc/X11/xorg.conf (Yes, it's a scary one, I know):
Section "ServerLayout"
    Identifier     "Main Layout"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" LeftOf "Screen0"
    Screen      2  "Screen2" RightOf "Screen0"
    Option         "Xinerama" "false"
    Option         "Clone" "false"
EndSection

Section "Module"
    SubSection     "extmod"
        Option         "omit xfree86-dga"
    EndSubSection
    Load           "i2c"
    Load           "ddc"
    Load           "vbe"
    Load           "dri"
    Load           "glx"
EndSection

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "true"
EndSection

Section "Monitor"
    Identifier     "Generic Monitor"
    HorizSync       28.0 - 80.0
    VertRefresh     43.0 - 60.0
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Benq"
    ModelName      "CRT-1"
    HorizSync       31.0 - 83.0
    VertRefresh     55.0 - 76.0
    ModeLine       "640x480" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
    ModeLine       "800x600" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
    ModeLine       "1024x768" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
    ModeLine       "1280x1024" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
    ModeLine       "1400x1050" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
    ModeLine       "1600x1200" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine       "1280x800" 83.46 1280 1344 1480 1680 800 801 804 828 -hsync +vsync
    ModeLine       "1440x900" 106.47 1440 1520 1672 1904 900 901 904 932 -hsync +vsync
    ModeLine       "1680x1050" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -hsync +vsync
    ModeLine       "1920x1200" 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Mitsubishi"
    ModelName      "HC4900-HDMI"
    HorizSync       15.63-75
    VertRefresh     50-85.06
    ModeLine       "1280x720" 77.68 1280 1368 1496 1688 720 721 724 767
    ModeLine       "1920x1080" 143.55 1920 1952 2496 2528 1080 1103 1112 1135
    Option         "dpms"
    Option         "ModeValidation" "NoMaxPClkCheck"
EndSection

Section "Device"
    #Option "RenderAccel" "on"
    #Option "XAANoOffscreenPixmaps"
    #Option "BusType" "PCI"
    #Option "ColorTiling" "on"
    #Option "EnablePageFlip" "on"
    # UseEvents is causing segmentation faults with
    # NVIDIA 6xxx, 7xxx and >=275.xx.xx drivers
    #Option "UseEvents" "True"
    Identifier     "Device2"
    Driver         "ati"
    BusID          "PCI:01:05"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 210"
    BusID          "PCI:2:0:0"
#    Option         "TwinView" "true"
#    Option         "TwinViewOrientation" "LeftOf"
    Screen 0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 210"
    BusID          "PCI:2:0:0"
    Screen 1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
#    Option         "metamodes" "CRT: 1920x1200 +1920+0, DFP: 1920x1080 +0+0 ; CRT: 1920x1200, DFP: NULL ; CRT: 1280x800, DFP: NULL ; CRT: 1440x900, DFP: NULL ; CRT: 1680x1050, DFP: NULL
    Option         "metamodes" "CRT: 1920x1200 +0+0; CRT: 1024x768 +0+0; CRT: 800x600 +0+0; CRT: 640x480 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "DFP: 1920x1080 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen2"
    Device         "Device2"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2012-09-10 13:46:58 UTC
You didn't mention the version of nvidia-drivers you are using. Need to know that.
Comment 2 ismohaa 2012-09-11 11:02:11 UTC
The x11-drivers that I have installed are:

x11-drivers/nvidia-drivers-304.43
x11-drivers/xf86-input-evdev-2.7.3
x11-drivers/xf86-input-keyboard-1.6.2 
x11-drivers/xf86-input-mouse-1.8.1
x11-drivers/xf86-video-ati-6.14.6-r1
x11-drivers/xf86-video-fbdev-0.4.3
x11-drivers/xf86-video-vesa-2.3.2
Comment 3 Ulenrich 2012-09-12 21:26:22 UTC
nvidia-304.48 claims this issue solved?
"- An X.Org Server hang on input. "
Comment 4 ismohaa 2012-09-13 15:49:38 UTC
That version isn't in portage yet (not even in the unstable branch), but I'll test it when it gets there.
Comment 5 ismohaa 2012-09-14 12:28:52 UTC
I upgraded the nvidia drivers to 304.48, but no improvement. The bug is still present unchanged. And the upgrade broke something else as well, so now I can't even log in to X any more. (Posting this from my spare machine.) Oh joy.
Comment 6 Octavio Ruiz (Ta^3) 2012-09-14 18:48:58 UTC
Same issue here, just the mouse do not disappear as ismohaa@gmail.com claims, being my second monitor on the left side moving the cursor from the first monitor to the left makes the pointer appear on the right side of the first one.

x11-drivers/nvidia-drivers-304.48
x11-drivers/xf86-input-evdev-2.7.3
x11-drivers/xf86-input-keyboard-1.6.2
x11-drivers/xf86-input-mouse-1.8.1
x11-drivers/xf86-input-synaptics-1.6.2
x11-drivers/xf86-video-nv-2.1.20
x11-drivers/xf86-video-v4l-0.2.0
x11-base/xorg-drivers-1.13
x11-base/xorg-server-1.13.0
x11-misc/xorg-cf-files-1.0.4

Mouse works (it can move from screen-to-screen) when Xinerama is on or Nvidia's Twinview is activated.

There is no relevant evidence of any error on Xorg.0.log and no change at all switching from nvidia-drivers versio 304.43 to 304.48.

My xorg.conf is here http://pastebin.com/Qp0Mfer5 and it's being used on a Dell Latitude E6420 with a  "01:00.0 VGA compatible controller: NVIDIA Corporation GF119 [Quadro NVS 4200M] (rev a1)" (nv driver is not compatible with this card so I can't test with other driver, but probably the reporter can do this test).

There are some insights about this in this forum thread. http://forums.gentoo.org/viewtopic-p-7140362.html
Comment 7 Matthew Schultz 2012-11-08 14:45:28 UTC
Created attachment 328814 [details, diff]
0001-dix-fix-zaphod-screen-scrossing-54654.patch

Looks like Peter Hutterer fixed it.  It's hard to say when if it will make it in the next release though:

https://bugs.freedesktop.org/show_bug.cgi?id=54654
Comment 8 Matthew Schultz 2012-11-08 14:47:54 UTC
(In reply to comment #7)
> Created attachment 328814 [details, diff] [details, diff]
> 0001-dix-fix-zaphod-screen-scrossing-54654.patch
> 
> Looks like Peter Hutterer fixed it.  It's hard to say when if it will make
> it in the next release though:
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=54654

Since this seems like an xorg-server problem, you might want to also remove nvidia drivers from the title since it's unrelated.
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-10 23:23:50 UTC
Patch was added to 1.13.0-r1