lost Xorg with new nvidia drivers

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
stephane
Posts: 7
Joined: Sun Apr 26, 2020 6:45 am

lost Xorg with new nvidia drivers

Post by stephane »

i have made update today ,
i received in the liste update nvidia to 440.82 version
but not the linux kernel
--> on reboot , nvida drivers are load and unload for version mismatch

each time nvidia versions , we need also a KLD linux compiled to avoid that

that is this BIG main problem that any GUI with FreeBSD
dismas
Posts: 20
Joined: Mon Jan 14, 2019 9:17 am

Re: lost Xorg with new nvidia drivers

Post by dismas »

Hello,
I confirm X does not start after updating to nvidia-driver-440.82_1 :
KLD nvidia-modeset.ko: depends on kernel - not available or version mismatch
linker_load_file: /boot/modules/nvidia-modeset.ko - unsupported file type.
KLD nvidia.ko: depends on kernel - not available or version mismatch
linker_load_file: /boot/modules/nvidia.ko - unsupported file type.
Both files are present in /boot/modules/. I tried to pkg delete nvidia-driver and pkg install nvidia-driver but same thing...
Is there a way to downgrade or fix the issue ? Thanks in advance.
:arrow: Sorry for my bad English : I'm French
linunix
Posts: 19
Joined: Tue Apr 14, 2020 3:44 pm

Re: lost Xorg with new nvidia drivers

Post by linunix »

The same problem.
Upgrade nvidia-driver from 440.82 to 440.82_1.
Then can't start Xorg.

Found a temp solution for this issue.
1. login with command line interface
2. Ensure you keep the previous nvidia driver txz package on your local

Code: Select all

ls /var/cache/pkg/nvidia-driver-440.82.txz
3. remove current installed nvidia-driver which has problem, version 440.82_1

Code: Select all

pkg remove nvidia-driver
4. Install previous version nvidia-driver package offline

Code: Select all

pkg add /var/cache/pkg/nvidia-driver-440.82.txz
5. reboot and GUI started again

I believe there is an issue on the latest version nvidia_driver-440.82_1
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: lost Xorg with new nvidia drivers

Post by ericbsd »

The time stamp on the OS packages was wrong, so the update manager did not do OS upgrade and the new Nvidia packages were built for the new kernel, pkg upgrade was needed to fix the issue. I have fixed the time stamp issue and the update manager should update it properly now.

if anyone does not have GUI do.

Code: Select all

sudo pkg upgrade -fy
you will get back on the GUI when the upgrade is done and rebooted.
linunix
Posts: 19
Joined: Tue Apr 14, 2020 3:44 pm

Re: lost Xorg with new nvidia drivers

Post by linunix »

ericbsd wrote: Mon Apr 27, 2020 9:52 am The time stamp on the OS packages was wrong, so the update manager did not do OS upgrade and the new Nvidia packages were built for the new kernel, pkg upgrade was needed to fix the issue. I have fixed the time stamp issue and the update manager should update it properly now.

if anyone does not have GUI do.

Code: Select all

sudo pkg upgrade -fy
you will get back on the GUI when the upgrade is done and rebooted.
Thanks Eric
I tried to run pkg upgrade -f and see following, is it expected?

Code: Select all

root@philip-ghostbsd-pc:~ # pkg upgrade -f
Updating GhostBSD repository catalogue...
GhostBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (725 candidates): 100%
Processing candidates (725 candidates): 100%
The following 725 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
	nvidia-driver: 440.82 -> 440.82_1 [GhostBSD]

Installed packages to be REINSTALLED:
	CoinMP-1.8.4_3 [GhostBSD]
	GentiumBasic-1102_1 [GhostBSD]
	ImageMagick6-6.9.11.6,1 [GhostBSD]
	.......(omit 700+ packages list)
	zh-fcitx-configtool-0.4.9 [GhostBSD]
	zip-3.0_1 [GhostBSD]
	zsh-5.8 [GhostBSD]

Number of packages to be upgraded: 1
Number of packages to be reinstalled: 724

1 GiB to be downloaded.

Proceed with this action? [y/N]: 
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: lost Xorg with new nvidia drivers

Post by ericbsd »

Yes
linunix
Posts: 19
Joined: Tue Apr 14, 2020 3:44 pm

Re: lost Xorg with new nvidia drivers

Post by linunix »

ericbsd wrote: Mon Apr 27, 2020 4:20 pmYes
After run

Code: Select all

sudo pkg update -f
sudo pkg upgrade -f
Looks good. Xorg is back
Version number is changed

Code: Select all

uname -U
1201513
Thanks!
stephane
Posts: 7
Joined: Sun Apr 26, 2020 6:45 am

Re: lost Xorg with new nvidia drivers

Post by stephane »

ok

this is solved , after reload 771 pkg
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: lost Xorg with new nvidia drivers

Post by ericbsd »

This should not happen again not that we fix the time stamp problem and sorry for the problem that has caused you all.
dismas
Posts: 20
Joined: Mon Jan 14, 2019 9:17 am

Re: lost Xorg with new nvidia drivers

Post by dismas »

No problem and many thanks ! All is OK for me now. I am fully up-to-date.
By the way, linunix's workaround worked for me. Thanks to him too. I was not aware of this pkg cache.
:arrow: Sorry for my bad English : I'm French
Post Reply