Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289975 - gnome-base/gnome-panel: moving panel and other glitches (xrandr issues)
Summary: gnome-base/gnome-panel: moving panel and other glitches (xrandr issues)
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Low normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-21 10:06 UTC by paolo muratore-ginanneschi
Modified: 2010-10-13 20:32 UTC (History)
0 users

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


Attachments
Xorg.0.log (Xorg.0.log,23.36 KB, text/plain)
2009-10-21 10:07 UTC, paolo muratore-ginanneschi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paolo muratore-ginanneschi 2009-10-21 10:06:09 UTC
When dual output is on in extension mode, I observe several glitches

1) at boot the laptop login screen is not correctly detected
2) gnome top and bottom panel are set by xrandr in random positions 
   e.g. bottom on latop screen, top on external monitor.

System info:

x11-base/xorg-server-1.6.3.901-r2
sys-kernel/gentoo-sources-2.6.30-r5

emerge --info:

Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9400_@_2.40GHz-with-gentoo-1.12.11.1
Timestamp of tree: Wed, 21 Oct 2009 08:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
qdev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
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.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="  ftp://trumpetti.atm.tut.fi/gentoo/  http://trumpetti.atm.tut.fi/gentoo/  ftp://ftp.linux.ee/pub/gentoo/  ftp://ftp.ing.umu.se/linux/gentoo/  http://ftp.ing.umu.se/linux/gentoo/  ftp://ftp.ds.karen.hj.se/gentoo/  http://ftp.ds.karen.hj.se/gentoo/  ftp://mirror.mdfnet.se/gentoo/  http://mirror.mdfnet.se/mirror/gentoo/  ftp://de-mirror.org/distro/gentoo/  http://de-mirror.org/distro/gentoo/  ftp://ftp.unina.it/pub/linux/distributions/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli consolekit cracklib crypt cups dbus dell dri dts dvd dvdr eds emacs emboss encode evo exif fam ffmpeg firefox flac fortran gcj gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg jpeg2k laptop ldap libnotify lm_sensors mad mikmod mjpeg mmap mmx modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pmu png ppds pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcl tcpd tetex thunar tiff tk truetype unicode usb vorbis wmf x264 xine xinerama xinetd xml xorg xprint xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel usb-audio" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

*********************
xorg.conf:
Section "ServerLayout"
        Identifier      "X.org configured"
        Screen          "Laptop Screen" 0 0
        InputDevice     "Mouse0"        "CorePointer"
        InputDevice     "Keyboard0"     "CoreKeyboard"
        InputDevice     "Synaptics Touchpad"
EndSection

Section "Files"
        ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
# by hand
        FontPath     "/usr/share/fonts/arkpandora/"
        FontPath     "/usr/share/fonts/artwiz-aleczapka-en/"
        FontPath     "/usr/share/fonts/corefonts/"
        FontPath     "/usr/share/fonts/cyrillic/"
        FontPath     "/usr/share/fonts/default/"
        FontPath     "/usr/share/fonts/encodings/"
        FontPath     "/usr/share/fonts/dejavu/"
        FontPath     "/usr/share/fonts/freefonts/"
        FontPath     "/usr/share/fonts/liberation-fonts/"
        FontPath     "/usr/share/fonts/mathematica-fonts/"
        FontPath     "/usr/share/fonts/terminus/"
        FontPath     "/usr/share/fonts/ttf-bitstream-vera/"
        FontPath     "/usr/share/fonts/util/"
        FontPath     "/usr/share/fonts/urw-fonts/"
EndSection

Section "Module"
# Commented modules are loaded by default
        Load  "xtrap"
#       Load  "extmod"
#       Load  "dbe"
        Load  "record"
        Load  "GLcore"
#       Load  "dri"
#       Load  "glx"
        Load  "synaptics"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel"   "pc102"        
        Option      "XkbLayout"  "gb"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection


Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
        Option          "HorizScrollDelta"      "0"
        Option          "SHMConfig"             "on"
EndSection

Section "Monitor"
        Identifier      "Laptop Monitor"
        VendorName      "Dell"
        ModelName       "Widescreen LCD Monitor for Latitude E4300"
        Option          "DPMS"
#
#http://en.gentoo-wiki.com/wiki/X.Org/Dual_Mon:
#
        Option          "Position"  "0 0"
        Option          "PreferredMode"  "1280x800"
EndSection

# Xrandr: ADD THIS IF YOUR LAPTOP DOES NOT HAVE A TV CONNECTOR or DOCKING STATION 
#   Section "Monitor" 
#       Identifier      "TV" 
#       Option          "Ignore" "True" 
#   EndSection 


Section "Device"
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "Mobile 4 Series Chipset Integrated Graphics Controller"
        BusID       "PCI:0:2:0"
        Option      "monitor-LVDS"      "Laptop Monitor" 
#        Option     "monitor-TV"        "TV" 
EndSection

Section "Screen"
        Identifier "Laptop Screen"
        Device     "Card0"
        Monitor    "Laptop Monitor"
        DefaultDepth       24

        SubSection "Display"
                Viewport   0 0
                Depth      1            
        SubSection "Display"
                Viewport   0 0
                Depth      1            
# Xrandr: ADD A VIRTUAL LINE TO PROVIDE FOR THE LARGEST SCREENS YOU WILL HOTPLUG 
#               Virtual              2048 2048 
#               Virtual              2624 1200
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
# Xrandr: ADD A VIRTUAL LINE TO PROVIDE FOR THE LARGEST SCREENS YOU WILL HOTPLU$
#               Virtual              2048 2048
#               Virtual              2624 1200
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
# Xrandr: ADD A VIRTUAL LINE TO PROVIDE FOR THE LARGEST SCREENS YOU WILL HOTPLU$
#               Virtual              2048 2048
#               Virtual              2624 1200
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
# Xrandr: ADD A VIRTUAL LINE TO PROVIDE FOR THE LARGEST SCREENS YOU WILL HOTPLU$
#               Virtual              2048 2048
#               Virtual              2624 1200
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
# Xrandr: ADD A VIRTUAL LINE TO PROVIDE FOR THE LARGEST SCREENS YOU WILL HOTPLU$
#               Virtual              2048 2048
#               Virtual              2624 1200
        EndSubSection
# Xrandr: ADD A VIRTUAL LINE TO PROVIDE FOR THE LARGEST SCREENS YOU WILL HOTPLU$
#               Virtual              2048 2048
#               Virtual              2624 1200
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
# Xrandr: ADD A VIRTUAL LINE TO PROVIDE FOR THE LARGEST SCREENS YOU WILL HOTPLU$
#               Virtual              2624 1200
#               Virtual              2624 1200
        EndSubSection
EndSection
Comment 1 paolo muratore-ginanneschi 2009-10-21 10:07:14 UTC
Created attachment 207796 [details]
Xorg.0.log
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2009-10-24 10:44:07 UTC
Please rephrase your problem, I have no idea what's wrong and how it's related to the xrandr utility...

Thanks
Comment 3 paolo muratore-ginanneschi 2009-10-25 22:03:32 UTC
Thanks for your reply, it is of course a minor issue but I am curious to understand the reason. I hope I will manage to explain better the situation. 

If I start the laptop without xrandr, my session starts as I saved 
it i.e. with two gnome panels one at the bottom and the other at 
the top of each workspace. This is the expected behavior.

If I connect an external monitor and start xrandr 
(in "screen extension mode", not "mirror screen"), 
the behaviour of the panels become "random". 
Sometimes they appear both at the top of the workspace in the laptop screen
while the workspace extension on the monitor screen is empty (but otherwise
properly working), sometimes one appears at the bottom of the extended workspace in the monitor while the other stays at the top of the workspace in the laptop screen.
Furthermore in no way I can drag panels from the laptop screen 
to the external monitor screen to change the appearance. 
After some googling, It seems to me that something similar is  
described in

https://bugzilla.gnome.org/show_bug.cgi?id=562944

It is not clear to me what is the solution proposed.

I also notice that if I boot with xrandr on, the login screen appears in mirror
mode on both monitor (expected behaviour) but the resolution on the laptop monitor is not the correct one. 

All the above after upgrade to
x11-base/xorg-server-1.6.3.901-r2
sys-kernel/gentoo-sources-2.6.30-r5

Before, the behavior was the expected i.e.
login screen detected at 1280x800
gnome panels always appearing in the external monitor as
I saved them the previous session.

Thanks again for your time.
 
     

Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2009-10-25 22:36:36 UTC
Thanks for the explanation.

IMHO, all of this is purely a Gnome bug which was introduced with Gnome 2.26 rather than Xorg server 1.5. Gnome now uses the XRANDR extension rather than the older XINERAMA extension to get the layout of your monitors.

While this is much more powerful and allows much greater control over your monitors, Gnome 2.26 isn't really that good with all the basics.

The panel position being entirely controlled by Gnome (and not by Xorg), I'll reassign this bug to the Gnome herd.

Thanks
Comment 5 Pacho Ramos gentoo-dev 2010-06-13 18:09:04 UTC
Is this still valid with Gnome 2.30? (that is entering in the official tree)
Comment 6 paolo muratore-ginanneschi 2010-09-13 13:56:53 UTC
(In reply to comment #5)
> Is this still valid with Gnome 2.30? (that is entering in the official tree)
> 
Sorry for the late reply. The glitches 1) and 2) have disappeared. 
There are some other oddities though. In particular since I upgraded to 2.26 (now 2.30) 
I haven't been able anymore to drag panels to the extension screen. 

Instead I noticed that the effect of the panel hide buttons is to let the panel slide 
to the extension screen. The upper panel in such a case goes to the top 
of the extension screen (correct behavior?).
The lower would  position positions itself incorrectly in the middle of the extension
(native scree 13', extension 19').  

These are very minor things in anycase.
Comment 7 Pacho Ramos gentoo-dev 2010-09-13 14:14:43 UTC
I would suggest you to create a new user account (to be sure these strange behaviors are not caused by any old configuration inherited from old Gnome versions) and, if still appearing, report directly to upstream.
Comment 8 Pacho Ramos gentoo-dev 2010-10-12 16:25:36 UTC
(In reply to comment #7)
> I would suggest you to create a new user account (to be sure these strange
> behaviors are not caused by any old configuration inherited from old Gnome
> versions) and, if still appearing, report directly to upstream.
> 

Please get back to us
Comment 9 paolo muratore-ginanneschi 2010-10-13 20:32:46 UTC
I did not have time lately for detailed testing, this is the reason of my silence. As far as I could see I confirm that panel glitches persist if I log in a newly created account. In particular it is not possible to move them from the laptop to the extension screen. I do not know, however, what is the expected behavior under gnome 2.30.
Basics of dual output work satisfactorily well otherwise.