Bug#731265:
Alright, I thought that conftest.h was part of the upstream NVidia driver package, and as I was comparing with a working Ubuntu driver (331.38) to figure out what was missing, I thought that this had changed between 331.38 and 340.32. I see now that this is Debian-only, and was probably never activated, as you mentioned. It explains why Nils Goroll had troubles with driver versions 331.38 and 319.76 as well. I attached the debdiff you requested. -- Beren Minor diff -Nru nvidia-graphics-drivers-340.32/debian/changelog nvidia-graphics-drivers-340.32/debian/changelog --- nvidia-graphics-drivers-340.32/debian/changelog 2014-08-17 12:20:45.0 +0200 +++ nvidia-graphics-drivers-340.32/debian/changelog 2014-09-01 08:37:11.0 +0200 @@ -1,3 +1,10 @@ +nvidia-graphics-drivers (340.32-2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix DRM support activation in conftest.h (Closes #731265) + + -- Beren Minor beren.minor+deb...@gmail.com Mon, 01 Sep 2014 08:35:48 +0200 + nvidia-graphics-drivers (340.32-1) unstable; urgency=medium * New upstream long lived branch release 340.32 (2014-08-12). diff -Nru nvidia-graphics-drivers-340.32/debian/module/conftest.h nvidia-graphics-drivers-340.32/debian/module/conftest.h --- nvidia-graphics-drivers-340.32/debian/module/conftest.h 2014-08-17 12:20:45.0 +0200 +++ nvidia-graphics-drivers-340.32/debian/module/conftest.h 2014-09-01 08:24:55.0 +0200 @@ -374,7 +374,7 @@ #endif /* Implement conftest.sh function drm_available */ -#if 0 +#if IS_ENABLED(CONFIG_DRM) || IS_ENABLED(CONFIG_DRM_MODULE) #define NV_DRM_AVAILABLE #else #undef NV_DRM_AVAILABLE
Bug#731265:
Dear Maintainer, I had the same problem on a Debian Sid, with Nvidia drivers version 340.32, ie: xrandr reporting cap: 0x0 and being unable to set the source output provider. I have found that the issue came from the drm feature that was not enabled during the dkms build of the driver. It looks like that with previous versions of the driver, the compilation of the drm support was conditionally enabled in conftest_nvidia.sh, but with 340.32, it looks like the configuration tests have been converted to a simple conftest.h using kbuild feature test macros. In this new conftest.h, the drm feature is not tested anymore, and is disabled by a #if 0. After enabling the drm support, dmesg correctly reports: [4.526558] [drm] Initialized nvidia-drm 0.0.0 20130102 for :01:00.0 on minor 1 Two dri cards show up in Xorg.0.log instead of one: [59.114] (II) xfree86: Adding drm device (/dev/dri/card1) [59.114] (II) xfree86: Adding drm device (/dev/dri/card0) Xorg detects the nvidia-drm driver: [59.271] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102) And xrandr correctly reports Source Output capability for the NVIDIA card: xrandr -d :0 --listproviders Providers: number : 2 Provider 0: id: 0x2e4 cap: 0x1, Source Output crtcs: 0 outputs: 0 associated providers: 1 name:NVIDIA-0 Provider 1: id: 0x46 cap: 0x2, Sink Output crtcs: 3 outputs: 4 associated providers: 1 name:modesetting Cheers, -- Beren Minor
Bug#731265:
Hi Beren, On Sun, Aug 31, 2014 at 8:05 AM, Beren Minor beren.mi...@gmail.com wrote: Dear Maintainer, I had the same problem on a Debian Sid, with Nvidia drivers version 340.32, ie: xrandr reporting cap: 0x0 and being unable to set the source output provider. I have found that the issue came from the drm feature that was not enabled during the dkms build of the driver. It looks like that with previous versions of the driver, the compilation of the drm support was conditionally enabled in conftest_nvidia.sh, but with 340.32, it looks like the configuration tests have been converted to a simple conftest.h using kbuild feature test macros. In this new conftest.h, the drm feature is not tested anymore, and is disabled by a #if 0. Hmmm, I'm a bit flummoxed about why NV_DRM_AVAILABLE is being unconditionally disabled; I can't find anything in d/changelog about this (other than saying this new conftest.sh function was added in 319.17-1), and Andreas doesn't seem to be around nowadays to answer any questions I might have. I'd point out that this drm feature being disabled has been around for a long time, e.g. it's been there since wheezy [1] and perhaps earlier? So it doesn't look like it only affects 340.32, and it should affect earlier versions? Could you please attach a debdiff with your changes? All that you had to change to fix this was debian/module/conftest.h, right? Regards, Vincent [1] http://sources.debian.net/src/nvidia-graphics-drivers/304.117-1/debian/module/conftest.h/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#731265: confirmed
I believe this report is correct, i am having the same problem. The issue here is that the nvidia xrandr provider does not have cap: 0x1, Source Output slink@haggis:~$ xrandr --listproviders Providers: number : 2 Provider 0: id: 0x32e cap: 0x0 crtcs: 4 outputs: 2 associated providers: 0 name:NVIDIA-0 Provider 1: id: 0x48 cap: 0x2, Sink Output crtcs: 3 outputs: 6 associated providers: 0 name:modesetting I do not yet understand why this is happening. This is on a lenovo thinkpad w540 with nvidia K2100M. root@haggis:~# uname -a Linux haggis 3.13-trunk-amd64 #1 SMP Debian 3.13-1~exp1 (2014-01-20) x86_64 GNU/Linux also reproduced on 3.12-1 nvidia driver 331.38 and 319.76 This thread has good coverage of the topic: https://forums.gentoo.org/viewtopic-p-7413808.html Nils -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#731265: nvidia-driver: Nvidia Optimus Try 3
Package: nvidia-driver Version: 319.76-1 Followup-For: Bug #731265 Dear Maintainer, I did a new try today. I do not use slim/gdm/xdm, i connect me on the tty1 and i launch startx to launch my session. for this new try, i used .xinitrc and .xsessionrc files in my HOME folder. In this file, there are only : xrandr --setprovideroutputsource Intel NVIDIA-0 xrandr --auto - In the tty1, if i launch startx with the .xinitrc file, the result is a X crash server + message told me randr: unrecognized option --auto - In the tty1, if i launch startx with the .sessionrc file, X server does not crash but the black still black. I don't understand the difference between ArchLinux and Debian. I do the same installation and configuration. (the packages version are the same) -- Package-specific info: uname -a: Linux debian64 3.11-2-amd64 #1 SMP Debian 3.11.10-1 (2013-12-04) x86_64 GNU/Linux /proc/version: Linux version 3.11-2-amd64 (debian-ker...@lists.debian.org) (gcc version 4.8.2 (Debian 4.8.2-7) ) #1 SMP Debian 3.11.10-1 (2013-12-04) /proc/driver/nvidia/version: NVRM version: NVIDIA UNIX x86_64 Kernel Module 319.76 Fri Nov 22 13:33:19 PST 2013 GCC version: gcc version 4.8.2 (Debian 4.8.2-10) lspci 'VGA compatible controller [0300]': 00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller]) Subsystem: Micro-Star International Co., Ltd. Device [1462:10d9] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast TAbort- TAbort- MAbort- SERR- PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 47 Region 0: Memory at f640 (64-bit, non-prefetchable) [size=4M] Region 2: Memory at d000 (64-bit, prefetchable) [size=256M] Region 4: I/O ports at f000 [size=64] Expansion ROM at unassigned [disabled] Capabilities: access denied Kernel driver in use: i915 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK104M [GeForce GTX 670MX] [10de:11a1] (rev a1) (prog-if 00 [VGA controller]) Subsystem: Micro-Star International Co., Ltd. Device [1462:10d9] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast TAbort- TAbort- MAbort- SERR- PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 16 Region 0: Memory at f500 (32-bit, non-prefetchable) [size=16M] Region 1: Memory at e000 (64-bit, prefetchable) [size=256M] Region 3: Memory at f000 (64-bit, prefetchable) [size=32M] Region 5: I/O ports at e000 [size=128] [virtual] Expansion ROM at f600 [disabled] [size=512K] Capabilities: access denied Kernel driver in use: nvidia dmesg: [0.00] No AGP bridge found [0.00] No AGP bridge found [0.00] Console: colour VGA+ 80x25 [0.642979] vgaarb: device added: PCI::00:02.0,decodes=io+mem,owns=io+mem,locks=none [0.642983] vgaarb: device added: PCI::01:00.0,decodes=io+mem,owns=none,locks=none [0.642984] vgaarb: loaded [0.642985] vgaarb: bridge control possible :01:00.0 [0.642986] vgaarb: no bridge control possible :00:02.0 [0.912701] Linux agpgart interface v0.103 [5.239826] nvidia: module license 'NVIDIA' taints kernel. [5.246033] nvidia :01:00.0: enabling device (0006 - 0007) [5.246086] vgaarb: device changed decodes: PCI::01:00.0,olddecodes=io+mem,decodes=none:owns=none [5.246153] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 319.76 Fri Nov 22 13:33:19 PST 2013 OpenGL and NVIDIA library files installed: lrwxrwxrwx 1 root root 15 Dec 16 18:13 /etc/alternatives/glx - /usr/lib/nvidia lrwxrwxrwx 1 root root 41 Dec 16 18:13 /etc/alternatives/glx--libGL.so.1-i386-linux-gnu - /usr/lib/i386-linux-gnu/nvidia/libGL.so.1 lrwxrwxrwx 1 root root 41 Dec 16 18:13 /etc/alternatives/glx--libGL.so.1-i386-linux-gnu - /usr/lib/i386-linux-gnu/nvidia/libGL.so.1 lrwxrwxrwx 1 root root 43 Dec 16 18:13 /etc/alternatives/glx--libGL.so.1-x86_64-linux-gnu - /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1 lrwxrwxrwx 1 root root 43 Dec 16 18:13 /etc/alternatives/glx--libGL.so.1-x86_64-linux-gnu - /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1 lrwxrwxrwx 1 root root 49 Dec 16 18:13 /etc/alternatives/glx--libnvidia-cfg.so.1-i386-linux-gnu - /usr/lib/i386-linux-gnu/nvidia/libnvidia-cfg.so.1 lrwxrwxrwx 1 root root 51 Dec 16 18:13 /etc/alternatives/glx--libnvidia-cfg.so.1-x86_64-linux-gnu - /usr/lib/x86_64-linux-gnu/nvidia/libnvidia-cfg.so.1 lrwxrwxrwx 1 root root 25 Dec 16 18:13 /etc/alternatives/glx--linux-libglx.so - /usr/lib/nvidia/libglx.so lrwxrwxrwx 1 root root 42 Dec 16 18:13 /etc
Bug#731265: nvidia-driver: Optimus + Nvidia : try 2
Package: nvidia-driver Version: 331.20-2 Followup-For: Bug #731265 Dear Maintainer, It's my 2nd try to install Optimus on Debian Sid as explained in my first message in this report bug. And there is still an error when i want to launch X server. When i launch startx, X crash with this error : Errors from xkbcomp are not fatal to the X server Could not find provider with name NVIDIA-0 not found ; ignoring to xinit: connection to the X server lost Waiting for the X server to shut down (EE) Server terminated successfully (0). Closing log file. It was done on a fresh installation of Debian Sid. -- Package-specific info: uname -a: Linux debian64 3.11-2-amd64 #1 SMP Debian 3.11.10-1 (2013-12-04) x86_64 GNU/Linux /proc/version: Linux version 3.11-2-amd64 (debian-ker...@lists.debian.org) (gcc version 4.8.2 (Debian 4.8.2-7) ) #1 SMP Debian 3.11.10-1 (2013-12-04) /proc/driver/nvidia/version: NVRM version: NVIDIA UNIX x86_64 Kernel Module 331.20 Wed Oct 30 17:43:35 PDT 2013 GCC version: gcc version 4.8.2 (Debian 4.8.2-10) lspci 'VGA compatible controller [0300]': 00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller]) Subsystem: Micro-Star International Co., Ltd. Device [1462:10d9] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast TAbort- TAbort- MAbort- SERR- PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 46 Region 0: Memory at f640 (64-bit, non-prefetchable) [size=4M] Region 2: Memory at d000 (64-bit, prefetchable) [size=256M] Region 4: I/O ports at f000 [size=64] Expansion ROM at unassigned [disabled] Capabilities: access denied Kernel driver in use: i915 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK104M [GeForce GTX 670MX] [10de:11a1] (rev a1) (prog-if 00 [VGA controller]) Subsystem: Micro-Star International Co., Ltd. Device [1462:10d9] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast TAbort- TAbort- MAbort- SERR- PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 16 Region 0: Memory at f500 (32-bit, non-prefetchable) [size=16M] Region 1: Memory at e000 (64-bit, prefetchable) [size=256M] Region 3: Memory at f000 (64-bit, prefetchable) [size=32M] Region 5: I/O ports at e000 [size=128] [virtual] Expansion ROM at f600 [disabled] [size=512K] Capabilities: access denied Kernel driver in use: nvidia dmesg: [0.00] No AGP bridge found [0.00] No AGP bridge found [0.00] Console: colour VGA+ 80x25 [0.646872] vgaarb: device added: PCI::00:02.0,decodes=io+mem,owns=io+mem,locks=none [0.646876] vgaarb: device added: PCI::01:00.0,decodes=io+mem,owns=none,locks=none [0.646877] vgaarb: loaded [0.646878] vgaarb: bridge control possible :01:00.0 [0.646879] vgaarb: no bridge control possible :00:02.0 [0.918044] Linux agpgart interface v0.103 [4.930564] vgaarb: device changed decodes: PCI::00:02.0,olddecodes=io+mem,decodes=none:owns=io+mem [4.930565] vgaarb: transferring owner from PCI::00:02.0 to PCI::01:00.0 [5.442795] nvidia: module license 'NVIDIA' taints kernel. [5.450913] nvidia :01:00.0: enabling device (0006 - 0007) [5.450977] vgaarb: device changed decodes: PCI::01:00.0,olddecodes=io+mem,decodes=none:owns=none [5.451053] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 331.20 Wed Oct 30 17:43:35 PDT 2013 [ 28.406017] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 350.332134] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 384.259926] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 598.832412] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 635.868864] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 726.797291] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 821.531251] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 843.831989] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 893.510868] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 1000.244640] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 1123.883532] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 1216.077990] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 1246.954188] nvidia :01:00.0: irq 48 for MSI/MSI-X [ 1311.165362] nvidia :01:00.0: irq 48 for MSI/MSI-X OpenGL and NVIDIA library files installed: lrwxrwxrwx 1 root root 15 Dec 15 10:57 /etc/alternatives/glx - /usr/lib/nvidia lrwxrwxrwx 1 root root 41 Dec 15 10:57 /etc/alternatives/glx--libGL.so.1-i386-linux-gnu - /usr/lib/i386-linux-gnu/nvidia/libGL.so.1 lrwxrwxrwx 1 root root 41 Dec 15 10:57 /etc/alternatives/glx--libGL.so.1
Bug#731265: Optimus from Nvidia does not works
On 2013-12-03 20:01, LOMBARD Maxime wrote: PS : Actually i'm on Arch because it works but i love Debian so... Thanks to help ;) You should have run reportbug in your Debian installation after that error occurred. It would have collected information about your system that might have been helpful for debugging. Just giving an X Error is useless. Andreas PS: you need to install nvidia-driver, not just libgl1-nvidia-glx -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#731265: Optimus from Nvidia does not works
Package: nvidia-glx Version: 319.76 Dear Mainteners, Since nvidia driver 320.x, Nvidia has implemented partially Optimus in their driver. Earch users which have a laptop with Optimus technology can enabled the Nvidia card to display the desktop rendered instead of the Intel card. For more explainations, you can read the readme here : http://us.download.nvidia.com/XFree86/Linux-x86/319.76/README/randr14.html So, i tried this solution in Debian Sid because there are the minimal requirements : - Kernel 3.11 ( 3.9) - Xrandr 1.4.1 - Xorg 1.14.3 - Nvidia drivers 319.76 I follow the explainations in the readme after to install a fresh Debian Sid : 1- Install modesetting driver (aptitude install xserver-xorg-video-modesetting) - Xorg and Xrandr are installed too. 2- Install Nvidia driver (aptitude install libgl1-nvidia-glx libgl1-nvidia-glx:i386) 3- Create a /etc/X11/xorg.conf as explained. I replace the BUSID example by the good ID (BUSID PCI:1:0:0 for me) and i uncomment the UseDisplayDevice line. 4- Install the rest (mate etc...) 5- Create a ~/.xinitrc with the xrandr command + exec mate-session 6- Reboot, log-in, startx and ... FAILURE !!! The problem is after the startx. It seems to work but i have a X server crash like this : X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 35 () Value in failed request: 0x2bf Serial number of failed request: 16 Current serial number in output stream: 17 To try to know if it's a problem with my laptop, i installed Archlinux and i follow the same way like previously. Result, it works without problem. PS : Actually i'm on Arch because it works but i love Debian so... Thanks to help ;)