Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283833 - x11-base/xorg-server-1.6.3.901-r1 xinerama wrong resolution on second screen
Summary: x11-base/xorg-server-1.6.3.901-r1 xinerama wrong resolution on second screen
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo X packagers
URL: https://bugs.gentoo.org/show_bug.cgi?...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-06 11:19 UTC by FRLinux
Modified: 2009-09-16 16:10 UTC (History)
0 users

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


Attachments
Xorg.0.log (Xorg.0.log,14.62 KB, text/plain)
2009-09-06 11:19 UTC, FRLinux
Details
xorg.conf (xorg.conf,4.17 KB, text/plain)
2009-09-06 11:20 UTC, FRLinux
Details
xorg.conf both virtual screens set to 1360 (Xorg.0.log,15.54 KB, text/plain)
2009-09-06 11:54 UTC, FRLinux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FRLinux 2009-09-06 11:19:17 UTC
Back on xorg 1.3 i had that issue where xinerama would not assign the correct resolution when opening a window or watching a video on second screen (which in my setup is a 32' Sony TV). The fix was this: 

--- a/randr/rrxinerama.c
+++ b/randr/rrxinerama.c
@@ -428,6 +428,14 @@ RRXineramaExtensionInit(void)
 	return;
 #endif
 
+    /*
+     * Xinerama isn't capable enough to have multiple protocol screens each
+     * with their own output geometry.  So if there's more than one protocol
+     * screen, just don't even try.
+     */
+    if (screenInfo.numScreens > 1)
+	return;
+
     (void) AddExtension(PANORAMIX_PROTOCOL_NAME, 0,0,
 			ProcRRXineramaDispatch,
 			SProcRRXineramaDispatch,

Unfortunately on xorg-server-1.6.3.901-r1, the bug is back and even though the fix is in the source, the problem is back. I have looked through forums and bugs but cannot find a solution for this.

I am also using the nvidia-drivers-185.18.31.

Here is the emerge --info stuff, I am using a few masked packages for xorg as i wanted to help debug the latest xorg on Gentoo.

Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-i686-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-1.12.11.1
Timestamp of tree: Sun, 06 Sep 2009 10:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.4.4-r13, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.heanet.ie/mirrors/gentoo.org http://ftp.esat.net/mirrors/rsync.gentoo.org/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib accessibility acl alsa apache2 berkdb bluetooth bzip2 cairo cli cpudetection cracklib crypt ctype dba dbus directfb dri dts dvb dvd dvdnav dvdr dvdread embedded encode exif fat fb flac fortran gd gdbm gimp glitz gpm gtk gtk2 h323 hal icecast iconv ipod ipv6 isdnlog java jpeg latin1 lm_sensors loop-aes mad matroska mmx mmxext mng mp3 mp4 mplayer msn mudflap ncurses njb nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl php png pppd python qt3 qt4 quicktime radio readline reflection rtc sdl session slang smp spl sqlite srt sse ssl stream subtitles svg sysfs tcpd tiff truetype ttpci unicode usb v4l v4l2 visualization vorbis webkit win32codecs wmf wxwindows x264 x86 xfs xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" SANE_BACKENDS="epson" USERLAND="GNU" VIDEO_CARDS="v4l vga nv nvidia sdl fbdev vesa apm"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Please find also attached my Xorg.0.log which might help finding the root of the problem and my xorg.conf specially crafted for my dual screen setup.


Reproducible: Always

Steps to Reproduce:
1. emerge latest xorg-server
2. connect 2 screens
3. second screen resolution scaling wrong 

Actual Results:  
scaling is sending the video to the right bottom corner of the screen instead of scaling the full screen, as if virtual resolution was detected to be the first screen's (1920x1200) instead of second (1360x768)

Expected Results:  
scaling should work on second screen taking into account its own resolution

This bug already happened on an old version of xorg, i found this link which might help you pin pointing the issue: http://ftp.eenet.ee/gentoo-portage/x11-base/xorg-server/files/1.3.0.0-fix-dual-head-screen-resolutions.patch
Comment 1 FRLinux 2009-09-06 11:19:53 UTC
Created attachment 203258 [details]
Xorg.0.log
Comment 2 FRLinux 2009-09-06 11:20:20 UTC
Created attachment 203260 [details]
xorg.conf
Comment 3 FRLinux 2009-09-06 11:28:43 UTC
As a test, I changed the resolution of the first screen to 1024x768 and can confirm that xinerama is indeed confused on the second screen. It takes the resolution of the first screen to scale the video to full screen. So even though my second screen is 1360x768, it scales the video to 1024x768 when playing full screen.
Comment 4 FRLinux 2009-09-06 11:53:37 UTC
When setting both screens to: Virtual 1360 768 in xorg.conf, correct resolution works again on second screen but then first screen also gets that size and sets its virtual resolution to 1920x1200 (its native resolution). Also please note that even though my xorg.log says 1.5.3, i have now recompiled the correct one in place. Please find attached another xorg.log with both virtual screens set to 1368.
Comment 5 FRLinux 2009-09-06 11:54:10 UTC
Created attachment 203262 [details]
xorg.conf both virtual screens set to 1360
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2009-09-06 20:00:47 UTC
This is out of my league.

Please file a bug upstream [1] and paste the url here so we can track the issue.

Thanks

[1] https://bugs.freedesktop.org
Comment 7 FRLinux 2009-09-16 01:09:07 UTC
Bug submitted on the 06th of September, awaiting some kind of validation...

https://bugs.freedesktop.org/show_bug.cgi?id=23756
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2009-09-16 06:55:47 UTC
Reopening
Comment 9 Rémi Cardona (RETIRED) gentoo-dev 2009-09-16 06:56:22 UTC
Thanks for the upstream bug report. Let's track the bug there directly.

Thanks
Comment 10 FRLinux 2009-09-16 16:10:23 UTC
I have updated the bug report on Xorg, turns out to be a KDE issue, this happened since the upgrade to 3.5.10 I believe. Is there anything we can do to chase this? (tried with XFCE and it scales as expected).