Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522986 - gnome-base/gnome-shell: rendering screwed with nouveau driver (affects shell & gdm)
Summary: gnome-base/gnome-shell: rendering screwed with nouveau driver (affects shell ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-17 07:24 UTC by Anton Gubarkov
Modified: 2015-06-27 09:25 UTC (History)
1 user (show)

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


Attachments
photo of gdm (IMG_20140917_110628.jpg,926.96 KB, image/jpeg)
2014-09-17 07:24 UTC, Anton Gubarkov
Details
screenshot of gnome desktop 1 (normal) (Screenshot from 2014-09-17 11:07:00.jpg,280.77 KB, image/jpeg)
2014-09-17 07:28 UTC, Anton Gubarkov
Details
photo of gnome desktop 1 (screwed) (IMG_20140917_110742.jpg,444.49 KB, image/jpeg)
2014-09-17 07:30 UTC, Anton Gubarkov
Details
screenshot of gnome desktop 2 (normal) (Screenshot from 2014-09-17 11:07:27.jpg,117.04 KB, image/jpeg)
2014-09-17 07:32 UTC, Anton Gubarkov
Details
photo of gnome desktop 2 (screwed) (IMG_20140917_110800.jpg,457.95 KB, image/jpeg)
2014-09-17 07:34 UTC, Anton Gubarkov
Details
Xorg.0.intel - all working fine (Xorg.0.intel,438.34 KB, text/plain)
2014-09-18 11:28 UTC, Anton Gubarkov
Details
Xorg.0.nouveau - rendering issues (Xorg.0.nouveau,55.07 KB, text/plain)
2014-09-18 12:18 UTC, Anton Gubarkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Gubarkov 2014-09-17 07:24:52 UTC
Created attachment 384908 [details]
photo of gdm

gnome 3.12.2 env works ok when VIDEO_CARDS="intel"

when I change VIDEO_CARDS="intel nouveau" to build a nouveau driver to make use of my optimus-based laptop, I  experience issues with gnome and gdm rendering on intel.



The rendering result on screen differs from what is captured in screenshots.
Please refer to the attachments for coomparison.
Comment 1 Anton Gubarkov 2014-09-17 07:28:23 UTC
Created attachment 384912 [details]
screenshot of gnome desktop 1 (normal)

This is how the screenshot looks like. Screen shows a different picture
Comment 2 Anton Gubarkov 2014-09-17 07:30:57 UTC
Created attachment 384914 [details]
photo of gnome desktop 1 (screwed)

Here is what I see instead of screenshot desktop 1
Comment 3 Anton Gubarkov 2014-09-17 07:32:53 UTC
Created attachment 384916 [details]
screenshot of gnome desktop 2 (normal)

Activities overlay looks normal in screenshot, but not on screen
Comment 4 Anton Gubarkov 2014-09-17 07:34:28 UTC
Created attachment 384918 [details]
photo of gnome desktop 2 (screwed)

At first, when I press Super key, nothing changes at all. When I move the mouse over the positions of the icons on the left, they are repainted.
Comment 5 Anton Gubarkov 2014-09-17 07:38:09 UTC
r9-008cln ~ # emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.7.3, glibc-2.19-r1, 3.16.2-gentoo x86_64)
=================================================================
System uname: Linux-3.16.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:    16309148 total,   4139400 free
KiB Swap:   20971516 total,  20969260 free
Timestamp of tree: Wed, 17 Sep 2014 04:30:02 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo proaudio sabayon steam-overlay tlp sunrise bumblebee anders-larsson rion yuego
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
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/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://gentoo.bloodhost.ru/ http://mirror.yandex.ru/gentoo-distfiles/ http://mirror.bytemark.co.uk/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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="/var/lib/layman/pro-audio /var/lib/layman/sabayon /var/lib/layman/steam /var/lib/layman/tlp /var/lib/layman/sunrise /var/lib/layman/bumblebee /var/lib/layman/anders-larsson /var/lib/layman/rion /var/lib/layman/yuego"
USE="X a52 aac acl acpi alsa amd64 archive avx avx2 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dri3 dts dvd dvdr eds egl emboss encode evo exif fam ffmpeg firefox flac fortran frei0r g711 g722 g7221 gbm gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk http iconv ieee1394 introspection ios ipv6 jack jpeg jpeg2k lcms ldap libnotify libsecret lv2 mad mmx mmxext mng modules mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 rar raw rdp readline samba sdl session smp socialweb speex spell sse sse2 sse4_1 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb uxa v4l vaapi vdpau vorbis wayland wxwidgets x264 xa xcb xml xv xvid xvmc zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" 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 ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 6 Pacho Ramos gentoo-dev 2014-09-17 09:30:50 UTC
What packages are rebuilt when you toggle the flags with nouveau?
Comment 7 Anton Gubarkov 2014-09-17 10:13:34 UTC
r9-008cln ~ # emerge -upv --newuse --changed-use --deep  @world @system

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] games-util/steam-games-meta-0-r20140325::steam-overlay  USE="steamruntime -mono -s3tc -steamgames_defenders_quest -steamgames_dwarfs -steamgames_hammerwatch -steamgames_journey_down -steamgames_narcissu -steamgames_painkiller -steamgames_shatter -steamgames_source_engine -steamgames_tf2 -steamgames_trine2 -steamgames_unwritten_tales -steamgames_witcher2" VIDEO_CARDS="intel nouveau* -fglrx -nvidia -radeon" 0 kB
[ebuild   R   ~] x11-libs/libdrm-2.4.54  USE="-libkms -static-libs" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="intel nouveau* (-exynos) (-freedreno) (-omap) -radeon -vmware" 0 kB
[ebuild   R    ] x11-base/xorg-drivers-1.15  INPUT_DEVICES="evdev synaptics -acecad -aiptek -elographics -fpit -hyperpen -joystick -keyboard -mouse -mutouch -penmount -tslib -vmmouse -void -wacom" VIDEO_CARDS="intel nouveau* -apm -ast -chips -cirrus -dummy -epson -fbdev -fglrx (-freedreno) (-geode) -glint -i128 (-i740) -mach64 -mga -modesetting -neomagic -nv -nvidia (-omap) (-omapfb) -qxl -r128 -radeon -radeonsi -rendition -s3virge -savage -siliconmotion -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vesa -via -virtualbox -vmware (-voodoo)" 0 kB
[ebuild  N    ~] x11-drivers/xf86-video-nouveau-1.0.10-r1  USE="udev" 0 kB
[ebuild   R   ~] media-libs/mesa-10.2.7  USE="classic dri3 egl gallium gbm llvm nptl vdpau wayland xa xvmc -bindist -debug -gles1 -gles2 -opencl -openmax -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux)" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="intel nouveau* (-freedreno) -i915 -i965 -ilo -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware" 0 kB
Comment 8 Pacho Ramos gentoo-dev 2014-09-17 13:18:45 UTC
Please provide also /etc/Xorg.conf and /var/log/Xorg.0.log. How are you setting up both cards? Are you using bumblebee or what?
Comment 9 Anton Gubarkov 2014-09-18 11:26:56 UTC
I use CONFIG_VGA_SWITCHEROO in the kernel to manage the power for nvidia card. Please have a look at https://bugs.freedesktop.org/show_bug.cgi?id=78092#c18

I don't have /etc/Xorg.conf - i.e. I rely on Xorg server to do the automatic detection of the hardware.

I have no Xorg.0.log. all messages are in the common journal. Please see the attachments for Xorg.0.intel (for no nouveau driver) and Xorg.0.nouveau (for problematic config)
Comment 10 Anton Gubarkov 2014-09-18 11:28:22 UTC
Created attachment 385002 [details]
Xorg.0.intel - all working fine
Comment 11 Anton Gubarkov 2014-09-18 12:18:38 UTC
Created attachment 385010 [details]
Xorg.0.nouveau - rendering issues
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-06-25 06:39:42 UTC
Is this still a problem with Gnome 3.16 and updated nouveau driver ?
Comment 13 Anton Gubarkov 2015-06-25 07:18:30 UTC
I can no longer observe/reproduce the problem.
I'm on Gnome 3.16.2 now.
Comment 14 Pacho Ramos gentoo-dev 2015-06-27 09:25:53 UTC
Nice to know, thanks for feedback