Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471396 - x11-libs/libX11-1.5.99.902, gnome-desktop background is black with Gallium 0.4 on NV86
Summary: x11-libs/libX11-1.5.99.902, gnome-desktop background is black with Gallium 0....
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-27 09:52 UTC by Juergen Rose
Modified: 2015-02-22 02:19 UTC (History)
0 users

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


Attachments
Not refreshed desktop background after moving a window with fallback mode (Bildschirmfoto vom 2013-05-27 11:51:26.png,13.92 KB, image/png)
2013-05-27 09:52 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2013-05-27 09:52:56 UTC
Created attachment 349338 [details]
Not refreshed desktop background after moving a window with fallback mode

After installing libX11-1.5.99.902 and libXau-1.0.8 I see strange effects. The desktop background is set to a green gradient, but only a black background is shown at the first system which is a Thinkpad T61, where Systems settings reports
Gallium 04 on NV86.
At the second system, Systems settings says Gallium 0.4 on NVD9 Fallback modus On. And here the desktop background is not refreshed.
Comment 1 Juergen Rose 2013-05-27 09:54:14 UTC
BTW., At a system with Gallium 0.4 on NV94 everything is fine.
Comment 2 Juergen Rose 2013-05-27 10:03:05 UTC
If I remove the fallback mode at NVD9 system (NVIDIA Corporation GF119 [GeForce GT 520]) the background is again refreshed. But the 3D mode as this card was not stable in the past. And I prefer the fallback mode, because it is for me much more ergonomic than the new 3D mode.
Comment 3 Juergen Rose 2013-05-27 10:15:06 UTC
If I force the system with NV86 (NVIDIA Corporation G86M [Quadro NVS 140M]) into the fallback mode, I can't login into Gnome. I get "O No! Something goes wrong!" How can I switch of the forced fallback mode, if I can't login into ?
Comment 4 Juergen Rose 2013-05-27 11:25:43 UTC
OK, with an intermediate cinnamon session I was able to switch off the forced fallback modus and I can again login into a gnome session. But background is still back in contrast to the settings.
Comment 5 Juergen Rose 2013-05-27 16:25:13 UTC
If I don't use the fallback mode for the NVIDIA Corporation GF119 [GeForce GT 520] card x11 is still often crashing. At the last crash dmesg showed:

...
[ 1265.798097] nouveau E[   PFIFO][0000:01:00.0] write fault at 0x00024a0000 [PAGE_NOT_PRESENT] from PGRAPH/GPC0/PROP on channel 0x001fe10000 [Xorg[7980]]
[ 1302.073460] nouveau E[     DRM] GPU lockup - switching to software fbcon
[ 1305.089978] nouveau E[Xorg[7980]] failed to idle channel 0xcccc0001 [Xorg[7980]]
[ 1308.091454] nouveau E[Xorg[7980]] failed to idle channel 0xcccc0001 [Xorg[7980]]
[ 1310.092763] nouveau E[   PFIFO][0000:01:00.0] playlist update failed
[ 1312.388980] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1313.093906] nouveau E[Xorg[7980]] failed to idle channel 0xcccc0000 [Xorg[7980]]
[ 1316.095366] nouveau E[Xorg[7980]] failed to idle channel 0xcccc0000 [Xorg[7980]]
[ 1316.095504] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000d
[ 1318.096517] nouveau E[   PFIFO][0000:01:00.0] channel 1 [Xorg[7980]] kick timeout
[ 1318.096668] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000d
[ 1320.097685] nouveau E[   PFIFO][0000:01:00.0] playlist update failed
[ 1320.097736] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000001: 0x0000000b
[ 1320.173347] SHCLIP[10483]: segfault at 19075e00 ip 00007f07cf690073 sp 00007f07b4639a50 error 4 in libc-2.17.so[7f07cf655000+1a1000]
[ 1324.395009] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1325.047764] nouveau E[gnome-shell[8797]] failed to idle channel 0xcccc0000 [gnome-shell[8797]]
[ 1327.048926] nouveau E[   PFIFO][0000:01:00.0] channel 3 [gnome-shell[8797]] kick timeout
[ 1327.049087] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000d
[ 1329.050104] nouveau E[   PFIFO][0000:01:00.0] playlist update failed
[ 1329.135514] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000d
[ 1331.136560] nouveau E[   PFIFO][0000:01:00.0] playlist update failed
[ 1331.146377] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000d
[ 1333.147398] nouveau E[   PFIFO][0000:01:00.0] playlist update failed
[ 1335.443685] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1339.741004] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1344.038324] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1348.335641] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1352.632957] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1356.930272] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1360.479144] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000d
[ 1362.480182] nouveau E[   PFIFO][0000:01:00.0] playlist update failed
[ 1364.776416] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1369.073666] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1373.370948] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1377.668230] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1381.965513] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1386.262788] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1390.560077] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1394.857359] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1399.154641] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1403.451922] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
[ 1407.749193] nouveau W[   PFIFO][0000:01:00.0] INTR 0x00000100: 0x0000000a
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-05-27 20:45:29 UTC
Please also report this at https://bugs.freedesktop.org/ and provide the link here.

Regarding nvd9 problems with acceleration you may want to try
http://cgit.freedesktop.org/nouveau/linux-2.6/commit/?id=f33d4326ace73b1f0a2c66f474924919aff29267
Comment 7 Juergen Rose 2013-05-29 08:24:48 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #6)
> Please also report this at https://bugs.freedesktop.org/ and provide the
> link here.
> 
> Regarding nvd9 problems with acceleration you may want to try
> http://cgit.freedesktop.org/nouveau/linux-2.6/commit/
> ?id=f33d4326ace73b1f0a2c66f474924919aff29267

After switching the NV9 system to 3D mode the desktop is again crashing every day several times. I will try the patches and report.
Comment 8 Juergen Rose 2013-05-29 08:55:10 UTC
(In reply to Juergen Rose from comment #7)
> (In reply to Chí-Thanh Christopher Nguyễn from comment #6)
...
> > Regarding nvd9 problems with acceleration you may want to try
> > http://cgit.freedesktop.org/nouveau/linux-2.6/commit/
> > ?id=f33d4326ace73b1f0a2c66f474924919aff29267
> 
> After switching the NV9 system to 3D mode the desktop is again crashing
> every day several times. I will try the patches and report.

If I understand http://cgit.freedesktop.org/nouveau/linux-2.6/commit/?id=f33d4326ace73b1f0a2c66f474924919aff29267 correctly, the patches are kernel patches. What is the gentoo way to apply kernel patches?
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-05-29 09:02:50 UTC
You can apply the patch to the kernel source directory in /usr/src, or put it in /etc/portage/patches/sys-kernel/gentoo-sources where epatch_user can find it.
Comment 10 Juergen Rose 2013-05-29 10:27:17 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #9)
> You can apply the patch to the kernel source directory in /usr/src, or put
> it in /etc/portage/patches/sys-kernel/gentoo-sources where epatch_user can
> find it.

I used 
http://cgit.freedesktop.org/nouveau/linux-2.6/snapshot/linux-2.6-f33d4326ace73b1f0a2c66f474924919aff29267.tar.gz
to install a linux-3.10.0-rc2. In the forced fallback mode I have the same problems as before, i.e. the gnome desktop background is not refreshed. So I am testing the 3D mode. Until now, for 30 minutes, the desktop is not yet crashed.
Comment 11 Juergen Rose 2013-06-04 10:46:45 UTC
(In reply to Juergen Rose from comment #10)
...
> I used 
> http://cgit.freedesktop.org/nouveau/linux-2.6/snapshot/linux-2.6-
> f33d4326ace73b1f0a2c66f474924919aff29267.tar.gz
> to install a linux-3.10.0-rc2. In the forced fallback mode I have the same
> problems as before, i.e. the gnome desktop background is not refreshed. So I
> am testing the 3D mode. Until now, for 30 minutes, the desktop is not yet
> crashed.

During the last week gnome desktop running under linux-3.10.0-rc2 was at least two times freezing. Last time was some minutes ago. At the end of /var/log/Xorg.0.log I found:

...
[  1365.575] (II) NOUVEAU(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[  1365.575] (II) NOUVEAU(0): Modeline "1280x960"x0.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz e)
[ 84332.614] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 84332.649] (II) NOUVEAU(0): NVLeaveVT is called.
Comment 12 Juergen Rose 2013-06-04 10:50:32 UTC
BTW., nvidia-drivers-319.23 does not more compile with linux-3.10.0-rc2. It fails with:
...
 * Found kernel object directory:
 *     /lib/modules/3.10.0-rc2/build
 * Found sources for kernel version:
 *     3.10.0-rc2
 * Gentoo supports kernels which are supported by NVIDIA
 * which are limited to the following kernels:
 * <sys-kernel/gentoo-sources-3.10
 * <sys-kernel/vanilla-sources-3.10
...
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
...

In file included from /usr/src_leopard/linux-2.6-f33d4326ace73b1f0a2c66f474924919aff29267/arch/x86/include/asm/uaccess.h:539:0,
                 from /usr/src_leopard/linux-2.6-f33d4326ace73b1f0a2c66f474924919aff29267/include/linux/poll.h:11,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-319.23/work/kernel/nv-linux.h:115,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-319.23/work/kernel/nv-mmap.c:15:
/usr/src_leopard/linux-2.6-f33d4326ace73b1f0a2c66f474924919aff29267/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/usr/src_leopard/linux-2.6-f33d4326ace73b1f0a2c66f474924919aff29267/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-319.23/work/kernel] Error 2
Comment 13 Matt Turner gentoo-dev 2015-02-22 02:19:04 UTC
There's not really anything Gentoo developers can do to solve this. Please ping the upstream bug.