Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

how to best reinstall x-windows and nvidia drivers? No DE

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
keithostertag
Posts: 39
Joined: 2011-07-29 18:29

how to best reinstall x-windows and nvidia drivers? No DE

#1 Post by keithostertag »

After I recently made changes (got rid of systemd, upgrade then dist-upgrade) my desktop x-windows works for root user but not my personal user account. I recently did the same procedure for a laptop with no problems, but this nvidia card is difficult.

I'm using Debian Stretch with a dual monitor system with a NVIDIA Corporation GM107 [GeForce GTX 750 Ti].

I'm using the i3 window manager. I am not interested in using a DE. I have always booted to the command line then used startx when I need the gui.

I've spent a week trying various things to fix this problem, and have posted a query on Linux Questions, but still no joy. I've spent a lot of time attempting to make both accounts use x and the nvidia drivers in the same way, and trying to find permissions differences.

At this point I'd like to find out how to remove the correct files in order to do a fresh install of the nvidia software and the x system. Can someone tell me the correct way to do this?

I need to ask this because there seems to be a lot of inter-related files involved with the x-system, and I don't know how to best uninstall all of them.

Code: Select all

keith@ada:~$ uname -a
Linux ada 4.9.0-2-amd64 #1 SMP Debian 4.9.13-1 (2017-02-27) x86_64 GNU/Linux

Code: Select all

when x hangs under user:
keith@ada:~$ ps aux |grep x
root       246  0.0  0.0      0     0 ?        S<   Mar24   0:00 [ext4-rsv-conver]
root      1131  0.0  0.0      0     0 ?        S<   Mar24   0:00 [ext4-rsv-conver]
root      1145  0.0  0.0      0     0 ?        S<   Mar24   0:00 [ext4-rsv-conver]
root      1155  0.0  0.0      0     0 ?        S<   Mar24   0:00 [ext4-rsv-conver]
root      1496  0.0  0.0      0     0 ?        S<   Mar24   0:00 [xprtiod]
keith     2264  0.0  0.0   4288  1484 tty1     S+   18:07   0:00 /bin/sh /usr/bin/startx
keith     2286  0.0  0.0  22312  1120 tty1     S+   18:07   0:00 xinit /etc/X11/xinit/xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.23OzRbhqZU
keith     2287  5.6  0.2 240124 46300 tty1     Sl   18:07   0:02 /usr/lib/xorg/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.23OzRbhqZU
keith     2295  0.0  0.0  58464  2508 tty1     S    18:07   0:00 /usr/bin/ck-launch-session /usr/bin/im-launch x-window-manager
keith     2345  0.0  0.0  47992   408 tty1     S    18:07   0:00 /usr/bin/dbus-launch --exit-with-session --sh-syntax
keith     2371  0.0  0.0  11084   332 ?        Ss   18:07   0:00 /usr/bin/ssh-agent /usr/bin/ck-launch-session /usr/bin/im-launch x-window-manager
keith     2380  0.0  0.0 125020 11204 tty1     S    18:07   0:00 x-window-manager
keith     2412  0.0  0.0   4288   780 ?        S    18:07   0:00 /bin/sh -c i3bar --bar_id=bar-0 --socket="/tmp/i3-keith.M7xDS1/ipc-socket.2380"
keith     2414  0.0  0.0 106156  9464 ?        S    18:07   0:00 i3bar --bar_id=bar-0 --socket=/tmp/i3-keith.M7xDS1/ipc-socket.2380
keith     2418  0.0  0.0  14688  1700 tty1     S    18:07   0:00 /usr/lib/x86_64-linux-gnu/uim/uim-helper-server
keith     2489  0.0  0.0  38300  3336 pts/0    R+   18:07   0:00 ps aux
keith     2490  0.0  0.0  12784   972 pts/0    S+   18:07   0:00 grep x

Code: Select all

keith@ada:~$ sudo dpkg -l nvidia* | grep ii
ii  nvidia-alternative              375.39-1     amd64        allows the selection of NVIDIA as GLX provider
ii  nvidia-driver                   375.39-1     amd64        NVIDIA metapackage
ii  nvidia-driver-bin               375.39-1     amd64        NVIDIA driver support binaries
ii  nvidia-driver-libs:amd64        375.39-1     amd64        NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
ii  nvidia-driver-libs:i386         375.39-1     i386         NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
ii  nvidia-driver-libs-i386:i386    375.39-1     i386         NVIDIA metapackage (OpenGL/GLX/EGL/GLES 32-bit libraries)
ii  nvidia-egl-common               375.39-1     amd64        NVIDIA binary EGL driver - common files
ii  nvidia-egl-icd:amd64            375.39-1     amd64        NVIDIA EGL installable client driver (ICD)
ii  nvidia-egl-icd:i386             375.39-1     i386         NVIDIA EGL installable client driver (ICD)
ii  nvidia-installer-cleanup:i386   20151021+4   i386         cleanup after driver installation with the nvidia-installer
ii  nvidia-kernel-common            20151021+4   amd64        NVIDIA binary kernel module support files
ii  nvidia-kernel-dkms              375.39-1     amd64        NVIDIA binary kernel module DKMS source
ii  nvidia-kernel-support           375.39-1     amd64        NVIDIA binary kernel module support files
ii  nvidia-legacy-check:i386        375.39-1     i386         check for NVIDIA GPUs requiring a legacy driver
ii  nvidia-modprobe                 375.26-1     amd64        utility to load NVIDIA kernel modules and create device nodes
ii  nvidia-persistenced             375.26-2     amd64        daemon to maintain persistent software state in the NVIDIA driver
ii  nvidia-settings                 375.26-3     amd64        tool for configuring the NVIDIA graphics driver
ii  nvidia-support                  20151021+4   amd64        NVIDIA binary graphics driver support files
ii  nvidia-vdpau-driver:amd64       375.39-1     amd64        Video Decode and Presentation API for Unix - NVIDIA driver
ii  nvidia-vulkan-common            375.39-1     amd64        NVIDIA Vulkan driver - common files
ii  nvidia-vulkan-icd:amd64         375.39-1     amd64        NVIDIA Vulkan installable client driver (ICD)
ii  nvidia-vulkan-icd:i386          375.39-1     i386         NVIDIA Vulkan installable client driver (ICD)
ii  nvidia-xconfig                  375.26-1     amd64        deprecated X configuration tool for non-free NVIDIA drivers

Code: Select all

keith@ada:~$ dpkg -l "x*" | grep ii
ii  x11-apps                       7.7+6+b1                 amd64        X applications
ii  x11-common                     1:7.7+18                 all          X Window System (X.Org) infrastructure
ii  x11-utils                      7.7+3+b1                 amd64        X11 utilities
ii  x11-xkb-utils                  7.7+3+b1                 amd64        X11 XKB utilities
ii  x11-xserver-utils              7.7+7+b1                 amd64        X server utilities
ii  x11proto-bigreqs-dev           1:1.1.2-1                all          X11 Big Requests extension wire protocol
ii  x11proto-composite-dev         1:0.4.2-2                all          X11 Composite extension wire protocol
ii  x11proto-core-dev              7.0.31-1                 all          X11 core wire protocol and auxiliary headers
ii  x11proto-damage-dev            1:1.2.1-2                all          X11 Damage extension wire protocol
ii  x11proto-dmx-dev               1:2.3.1-2                all          X11 Distributed Multihead X extension wire protocol
ii  x11proto-dri2-dev              2.8-2                    all          X11 DRI2 extension wire protocol
ii  x11proto-dri3-dev              1.0-1                    all          X11 DRI3 extension wire protocol
ii  x11proto-fixes-dev             1:5.0-2                  all          X11 Fixes extension wire protocol
ii  x11proto-fonts-dev             2.1.3-1                  all          X11 font extension wire protocol
ii  x11proto-gl-dev                1.4.17-1                 all          X11 OpenGL extension wire protocol
ii  x11proto-input-dev             2.3.2-1                  all          X11 Input extension wire protocol
ii  x11proto-kb-dev                1.0.7-1                  all          X11 XKB extension wire protocol
ii  x11proto-present-dev           1.1-1                    all          X11 Present extension wire protocol
ii  x11proto-randr-dev             1.5.0-1                  all          X11 RandR extension wire protocol
ii  x11proto-record-dev            1.14.2-1                 all          X11 Record extension wire protocol
ii  x11proto-render-dev            2:0.11.1-2               all          X11 Render extension wire protocol
ii  x11proto-resource-dev          1.2.0-3                  all          X11 Resource extension wire protocol
ii  x11proto-scrnsaver-dev         1.2.2-1                  all          X11 Screen Saver extension wire protocol
ii  x11proto-video-dev             2.3.3-1                  all          X11 Video extension wire protocol
ii  x11proto-xcmisc-dev            1.2.2-1                  all          X11 XC-Miscellaneous extension wire protocol
ii  x11proto-xext-dev              7.3.0-1                  all          X11 various extension wire protocol
ii  x11proto-xf86bigfont-dev       1.2.0-3                  all          X11 Big Fonts extension wire protocol
ii  x11proto-xf86dga-dev           2.1-3                    all          X11 Direct Graphics Access extension wire protocol
ii  x11proto-xf86dri-dev           2.1.1-2                  all          X11 DRI extension wire protocol
ii  x11proto-xf86vidmode-dev       2.3.1-2                  all          X11 Video Mode extension wire protocol
ii  x11proto-xinerama-dev          1.2.1-2                  all          X11 Xinerama extension wire protocol
ii  xauth                          1:1.0.9-1+b2             amd64        X authentication utility
ii  xbitmaps                       1.1.1-2                  all          Base X bitmaps
ii  xdg-user-dirs                  0.15-2+b1                amd64        tool to manage well known user directories
ii  xdg-utils                      1.1.1-1                  all          desktop integration utilities from freedesktop.org
ii  xdm                            1:1.1.11-3               amd64        X display manager
ii  xfonts-base                    1:1.0.4+nmu1             all          standard fonts for X
ii  xfonts-encodings               1:1.0.4-2                all          Encodings for X.Org fonts
ii  xfonts-terminus                4.40-2                   all          Fixed-width fonts for fast reading
ii  xfonts-utils                   1:7.7+4                  amd64        X Window System font utility programs
ii  xinit                          1.3.4-3+b1               amd64        X server initialisation tool
ii  xkb-data                       2.19-1                   all          X Keyboard Extension (XKB) configuration data
ii  xml-core                       0.17                     all          XML infrastructure and XML catalog file support
ii  xmlto                          0.0.28-1                 amd64        XML-to-any converter
ii  xorg-dev                       1:7.7+18                 all          X.Org X Window System development libraries
ii  xorg-sgml-doctools             1:1.11-1                 all          Common tools for building X.Org SGML documentation
ii  xpdf                           3.04-4                   amd64        Portable Document Format (PDF) reader
ii  xserver-common                 2:1.19.2-1               all          common files used by various X servers
ii  xserver-xorg                   1:7.7+18                 amd64        X.Org X server
ii  xserver-xorg-core              2:1.19.2-1               amd64        Xorg X server - core server
ii  xserver-xorg-dev               2:1.19.2-1               amd64        Xorg X server - development files
ii  xserver-xorg-input-evdev       1:2.10.5-1               amd64        X.Org X server -- evdev input driver
ii  xserver-xorg-input-kbd         1:1.9.0-1+b1             amd64        X.Org X server -- keyboard input driver
ii  xserver-xorg-video-ati         1:7.8.0-1+b1             amd64        X.Org X server -- AMD/ATI display driver wrapper
ii  xserver-xorg-video-fbdev       1:0.4.4-1+b5             amd64        X.Org X server -- fbdev display driver
ii  xserver-xorg-video-intel       2:2.99.917+git20161206-1 amd64        X.Org X server -- Intel i8xx, i9xx display driver
ii  xserver-xorg-video-mach64      6.9.5-1+b2               amd64        X.Org X server -- ATI Mach64 display driver
ii  xserver-xorg-video-nvidia      375.39-1                 amd64        NVIDIA binary Xorg driver
ii  xserver-xorg-video-r128        6.10.2-1                 amd64        X.Org X server -- ATI r128 display driver
ii  xserver-xorg-video-radeon      1:7.8.0-1+b1             amd64        X.Org X server -- AMD/ATI Radeon display driver
ii  xserver-xorg-video-vesa        1:2.3.4-1+b2             amd64        X.Org X server -- VESA display driver
ii  xsltproc                       1.1.29-2                 amd64        XSLT 1.0 command line processor
ii  xtightvncviewer                1:1.3.9-9                amd64        virtual network computing client software for X
ii  xtrans-dev                     1.3.5-1                  all          X transport library (development files)
ii  xxd                            2:8.0.0197-3             amd64        tool to make (or reverse) a hex dump
ii  xz-utils                       5.2.2-1.2+b1             amd64        XZ-format compression utilities

Thanks if you can point me to a way to accomplish this- cleanly reinstall both the x-window system and the nvidia drivers.

Keith Ostertag

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: how to best reinstall x-windows and nvidia drivers? No D

#2 Post by stevepusser »

How certain are you that the nvidia dkms package built correctly?
MX Linux packager and developer

keithostertag
Posts: 39
Joined: 2011-07-29 18:29

Re: how to best reinstall x-windows and nvidia drivers? No D

#3 Post by keithostertag »

Hi Steve-

The nvidia drivers were loaded via apt-get to the depository, at least twice. Are you suggesting I should attempt to load a different version?

keithostertag
Posts: 39
Joined: 2011-07-29 18:29

Re: how to best reinstall x-windows and nvidia drivers? No D

#4 Post by keithostertag »

After more than a week trying to figure this out, I finally just put systemd back in... and now everything is working.

This is very strange... I had no problem eliminating systemd on my laptop, but then my laptop doesn't use nvidia drivers! So... what? evidently the Debian nvidia-driver package has some kind of hooks for systemd? Very aggravating!!!

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: how to best reinstall x-windows and nvidia drivers? No D

#5 Post by Segfault »

There are two requirements, no framebuffer in kernel and a four-line xorg.conf.
As described here.
If it does not work you check dmesg and Xorg log, if anything is wrong it will be in logs.

Post Reply