lost Xorg with new nvidia drivers  [SOLVED]

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

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: 15
Joined: Mon Jan 14, 2019 9:17 am
Has thanked: 3 times
Been thanked: 0

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: 5
Joined: Tue Apr 14, 2020 3:44 pm
Has thanked: 0
Been thanked: 1 time

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
These users thanked the author linunix for the post:
dismas (Wed Apr 29, 2020 1:16 am)
Rating: 33.33%

User avatar
ericbsd
Developer
Posts: 1525
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 47 times
Been thanked: 78 times

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.
These users thanked the author ericbsd for the post:
dismas (Wed Apr 29, 2020 1:16 am)
Rating: 33.33%

linunix
Posts: 5
Joined: Tue Apr 14, 2020 3:44 pm
Has thanked: 0
Been thanked: 1 time

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: 1525
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 47 times
Been thanked: 78 times

Re: lost Xorg with new nvidia drivers

Post by ericbsd »

Yes

linunix
Posts: 5
Joined: Tue Apr 14, 2020 3:44 pm
Has thanked: 0
Been thanked: 1 time

Re: lost Xorg with new nvidia drivers

Post by linunix »

ericbsd wrote:
Mon Apr 27, 2020 4:20 pm
Yes
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: 2
Joined: Sun Apr 26, 2020 6:45 am
Has thanked: 0
Been thanked: 0

Re: lost Xorg with new nvidia drivers  [SOLVED]

Post by stephane »

ok

this is solved , after reload 771 pkg

User avatar
ericbsd
Developer
Posts: 1525
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 47 times
Been thanked: 78 times

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: 15
Joined: Mon Jan 14, 2019 9:17 am
Has thanked: 3 times
Been thanked: 0

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