You are not logged in.

#1 2021-06-03 16:36:29

buzzwallard
Banned
Registered: 2021-05-29
Posts: 53

[SOLVED]Removing non-pacman NVIDIA drivers

I installed NVIDIA via https://download.nvidia.com/XFree86/Lin … 4/390.143/ (NVIDIA-Linux-x86_64-465.31.run) I had to do this because the gpu  is so old that I have to go to NVIDIA's basement for it.

I'm having a number of issues with this driver so now want to roll back to the nouveau -- already installed.  However pacman doesn't know about the driver so how do I get rid of it other than hacking about madly. The wiki is up-to-date with the available drivers so where do I go?

Last edited by buzzwallard (2021-06-03 19:58:46)

Offline

#2 2021-06-03 16:42:21

loqs
Member
Registered: 2014-03-06
Posts: 19,010

Re: [SOLVED]Removing non-pacman NVIDIA drivers

Did you try:

./NVIDIA-Linux-x86_64-465.31.run --help

Did you missing the warning from NVIDIA#Installation,  when you installed the driver directly from nvidia.com?

Offline

#3 2021-06-03 16:58:03

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED]Removing non-pacman NVIDIA drivers

When you have uninstalled the drivers from the website bear in mind that there are older versions packaged for Arch available in the AUR.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2021-06-03 17:12:32

buzzwallard
Banned
Registered: 2021-05-29
Posts: 53

Re: [SOLVED]Removing non-pacman NVIDIA drivers

loqs wrote:

Did you try:

./NVIDIA-Linux-x86_64-465.31.run --help

Did you missing the warning from NVIDIA#Installation,  when you installed the driver directly from nvidia.com?

I saw that warning but I needed a driver not available through pacman. Perhaps I misunderstood. Much new information here to process.

So :

"--advanced-options" reveals "--uninstall".

Thanks.

However...

After running that nugget it looks like I'm real trouble.

Yah. Coming to you from an entirely different machine.

Last edited by buzzwallard (2021-06-03 17:13:28)

Offline

#5 2021-06-03 17:19:25

loqs
Member
Registered: 2014-03-06
Posts: 19,010

Re: [SOLVED]Removing non-pacman NVIDIA drivers

If it is X failing try Ctrl+Alt+F2 or Systemd#Change_current_target to multi-user.target.  Then post the output of:

# pacman -Qkk 2>&1 | grep -Fv '0 altered files'

See the tip box from pastebin to post from the console.

Offline

#6 2021-06-03 19:14:54

buzzwallard
Banned
Registered: 2021-05-29
Posts: 53

Re: [SOLVED]Removing non-pacman NVIDIA drivers

loqs wrote:

If it is X failing try Ctrl+Alt+F2 or Systemd#Change_current_target to multi-user.target.  Then post the output of:

# pacman -Qkk 2>&1 | grep -Fv '0 altered files'

See the tip box from pastebin to post from the console.


The NVIDIA uninstall left a lot of nviidia files in /lib

pacman's altered files:

https://pastebin.com/80L9wwja

/var/log/Xorg.0.log

https://pastebin.com/U0P67XGF

Offline

#7 2021-06-03 19:50:46

loqs
Member
Registered: 2014-03-06
Posts: 19,010

Re: [SOLVED]Removing non-pacman NVIDIA drivers

[    28.388] (WW) NVIDIA(0): The NVIDIA GeForce GTX 560M GPU installed in this system is
[    28.388] (WW) NVIDIA(0):     supported through the NVIDIA 390.xx Legacy drivers. Please
[    28.388] (WW) NVIDIA(0):     visit http://www.nvidia.com/object/unix.html for more
[    28.388] (WW) NVIDIA(0):     information.  The 465.31 NVIDIA driver will ignore this
[    28.388] (WW) NVIDIA(0):     GPU.  Continuing probe... 

After you uninstalled the .run file from nvidia.com did you install nvidia and nvidia-utils and not mention it?

Offline

#8 2021-06-03 19:58:13

buzzwallard
Banned
Registered: 2021-05-29
Posts: 53

Re: [SOLVED]Removing non-pacman NVIDIA drivers

- ran the nvidia installer ./NVIDIA-Linux-x86_64-version.run --uninstall

- deleted the blacklisting files in /etc/modprobe.d/  (there was another somewhere under /lib but I missed putting it to my notes.)

- added a nouveau.conf (empty file) to /etc/modprobe.d

- Ran find from root for all files with iname nvidia and deleted every damn one of them.

There was a bit of extra coaxing required but they were always obvious from the log files.

Offline

#9 2021-06-03 20:03:22

loqs
Member
Registered: 2014-03-06
Posts: 19,010

Re: [SOLVED]Removing non-pacman NVIDIA drivers

You still have nvidia and nvidia-utils tracked by pacman because you manually removed the files?  If so the files will be replaced on the next update of those packages.

Offline

#10 2021-06-03 20:28:17

buzzwallard
Banned
Registered: 2021-05-29
Posts: 53

Re: [SOLVED]Removing non-pacman NVIDIA drivers

I did not use pacman to install the nvidia driver. Is it watching anyway?

Offline

#11 2021-06-03 20:35:10

loqs
Member
Registered: 2014-03-06
Posts: 19,010

Re: [SOLVED]Removing non-pacman NVIDIA drivers

buzzwallard wrote:

I did not use pacman to install the nvidia driver. Is it watching anyway?

warning: nvidia-utils: /usr/lib/libEGL_nvidia.so.0 (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libGLESv1_CM_nvidia.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libGLESv1_CM_nvidia.so.1 (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libGLESv2_nvidia.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libGLESv2_nvidia.so.2 (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libGLX_nvidia.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libGLX_nvidia.so.0 (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libcuda.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libcuda.so.1 (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvcuvid.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvcuvid.so.1 (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-cfg.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-cfg.so.1 (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-eglcore.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-encode.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-encode.so.1 (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-fbc.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-fbc.so.1 (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-glcore.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-glsi.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-ifr.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-ifr.so.1 (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-ml.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-ml.so.1 (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-ptxjitcompiler.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-ptxjitcompiler.so.1 (Modification time mismatch)
warning: nvidia-utils: /usr/lib/libnvidia-tls.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/vdpau/libvdpau_nvidia.so (Modification time mismatch)
warning: nvidia-utils: /usr/lib/vdpau/libvdpau_nvidia.so.1 (Modification time mismatch)
pacman -Qs nvidia

Edit:
No pacman does not monitor file activity.  Check /var/log/pacman.log to see what caused nvidia-utils to be installed.

Last edited by loqs (2021-06-03 20:36:58)

Offline

#12 2021-06-03 21:31:42

buzzwallard
Banned
Registered: 2021-05-29
Posts: 53

Re: [SOLVED]Removing non-pacman NVIDIA drivers

Ah, yes. It does not tell me why it was installed through pacman but it certainly was so I removed it. The log shows many pacman -R for nvidia which I don't remember running so I'm guessing that was called by some other de-installer.

It looks clean now, but perhaps there's something else I should be checking?

root@asgl:/var/log# pacman -Ss | grep -i nvidia | grep installed
root@asgl:/var/log#

Last edited by buzzwallard (2021-06-03 21:32:12)

Offline

#13 2021-06-03 22:05:51

loqs
Member
Registered: 2014-03-06
Posts: 19,010

Re: [SOLVED]Removing non-pacman NVIDIA drivers

If there are no nvidia packages installed you can remove /etc/modprobe.d/nouveau.conf it would have been overriding /usr/lib/modprobe.d/nvidia.conf owned by the nvidia package.
Avoid running installers other than pacman as root that way they can not remove packages or overwrite system files.

Last edited by loqs (2021-06-03 22:06:12)

Offline

Board footer

Powered by FluxBB