Bug#909218: nvidia-xconfig: Files section missing ModulePath entries break GLX upon installing libgl1-nvidia-glx (required by Steam)

Miguel Angel Vilela miguev at gmail.com
Sun Sep 30 08:31:12 BST 2018


Apologies for the long time it took me to get back to you, as well as for
probably having file the wrong bug entirely.

I run the following commands on TTY1 and gather the logs. After starting X
with no Xorg.conf I logged in and tried locking the screen again to confirm
the bug reproduces and indeed it did, but the sleep+stop trick let me out:

# /etc/init.d/lightdm stop
# cd /etc/X11/
# mv xorg.conf xorg.conf.nvidia-xconfig
# vi xorg.conf
# cat xorg.conf
Section "Files"
    ModulePath     "/usr/lib/xorg/modules/linux"
    ModulePath     "/usr/lib/xorg/modules"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
EndSection
# cd /var/log/
# /etc/init.d/lightdm start
(log into XFCE)
# cp Xorg.0.log Xorg.0.log-minimal-xorg.conf
(log out of XFCE)
# /etc/init.d/lightdm stop
# mv /etc/X11/xorg.conf /etc/X11/xorg.conf.minimal
# /etc/init.d/lightdm start
(log into XFCE)
# cp Xorg.0.log Xorg.0.log-no-xorg.conf
# sleep 60 && /etc/init.d/lightdm stop
(run xflock4)
# cp Xorg.0.log Xorg.0.log-xflock4

I'm attaching copies of the files without timestamps (-nots.conf) for
easier diffing, and noticed many lines in the logs for no Xorg.conf about
the nouveau driver (unexpected?) even though both logs show the nvidia
driver is loading just fine from /usr/lib/xorg/modules/drivers/nvidia_drv.so

With the minimal Xorg.conf everything seems to work very well, xflock4 does
not cause any problems and the most demanding tests I could think for for
the NVidia drivers (specific games) pass.
Even
https://github.com/ValveSoftware/Proton/issues/248#issuecomment-425700602
passed, which isn't supposed to.

Thank you!


On Thu, Sep 20, 2018 at 5:17 PM Andreas Beckmann <anbe at debian.org> wrote:

> Control: severity -1 serious
> Control: tag -1 sid buster
>
> Maybe it's time to phase nvidia-xconfig out for buster ...
>
> On 2018-09-19 22:26, miguev wrote:
>
> > 2. System freezes after locking screen with xflock4, can't even get to
> tty.
> > https://unix.stackexchange.com/questions/411900/after-installing-nvidia-
> > drivers-computer-freezes-after-locking-cant-even-get
>
> Can we try to analyze and fix this bug instead of fixing nvidia-xconfig?
>
> Does the following minimal Xorg.conf work for you?
>
> Section "Files"
>     ModulePath     "/usr/lib/xorg/modules/linux"
>     ModulePath     "/usr/lib/xorg/modules"
> EndSection
>
> Section "Device"
>     Identifier     "My GPU"
>     Driver         "nvidia"
> EndSection
>
> Since X seems to work without xorg.conf (unless you lock your screen)
> please get Xorg logs from both no xorg.conf and a working minimal xorg.conf
>
>
> > Workaround is to generate /etc/X11/xorg.conf by running nvidia-xconfig
> > # nvidia-xconfig
> > # /etc/init.d/lightdm restart
>
> >    * What exactly did you do (or not do) that was effective (or
> >      ineffective)?
> >
> > Adding NVidia’s drivers path in /etc/X11/xorg.conf in the otherwise empty
> > “Files” section:
> > Section "Files"
> >     ModulePath     "/usr/lib/nvidia"
>
> NEVER EVER add "/usr/lib/nvidia" as a search path.
> This tree will also contain incompatible legacy modules.
> Use /usr/lib/xorg/modules/linux instead. There will be a symlink to the
> correct module.
>
> >     ModulePath     "/usr/lib/xorg/modules"
> > EndSection
> >
> > The paths are those that contain libglx.so
> > # find /usr/ -name libglx.so
> > /usr/lib/nvidia/libglx.so
> > /usr/lib/nvidia/current/libglx.so
> > /usr/lib/xorg/modules/extensions/libglx.so
> > /usr/lib/xorg/modules/linux/libglx.so
> >
> > Found this idea in the NVidia Dveloper forum:
> > https://devtalk.nvidia.com/default/topic/800059/linux/glxinfo-command-
> > returning-quot-badwindow-invalid-window-parameter-quot-error/
>
>
> Andreas
>


-- 
There are 10 types of geeks: 1s and 0s.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20180930/5c3d995e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xorg.0.log-minimal-xorg-nots.conf
Type: application/octet-stream
Size: 21010 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20180930/5c3d995e/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xorg.0.log-no-xorg.conf
Type: application/octet-stream
Size: 29236 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20180930/5c3d995e/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xorg.0.log-minimal-xorg.conf
Type: application/octet-stream
Size: 25716 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20180930/5c3d995e/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xorg.0.log-xflock4
Type: application/octet-stream
Size: 42947 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20180930/5c3d995e/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xorg.0.log-no-xorg-nots.conf
Type: application/octet-stream
Size: 23620 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20180930/5c3d995e/attachment-0009.obj>


More information about the pkg-nvidia-devel mailing list