Page 1 of 1

install Nvidia driver in BookwormPup64 10.0.7 (not working)(solved)

Posted: Fri Jul 12, 2024 4:45 am
by bigpup

BookwormPup64 10.0.7 frugal install using save folder.

Using Synaptic package manager

Selected reload to get updated repository package information.

Selected nvidia-driver and all other identified items required to be downloaded and installed.

Did not compile and install.

Got a bunch of errors.

Update:
.
The fix for this is in this post by radky:
viewtopic.php?p=126131#p126131

Read this post as to exactly what you need to do after getting the Nvidia driver installed:
viewtopic.php?p=126163#p126163


Re: install Nvidia driver in BookwormPup64 10.0.7 (not working)

Posted: Fri Jul 12, 2024 5:47 am
by bigpup

Here is something I totally do not understand.

10.0.7 wants to install the Nvidia 535.183.01-1 driver package.

I took the save from the working 10.0.6 frugal install and used it to boot 10.0.7.
So it is using this save made in 10.0.6,
It has a working Nvidia driver 525.147.05-7 that was compiled with the different kernel in 10.0.6

Well, it boots OK and seems to be using this Nvidia 525.147.05-7 driver that is in the old 10.0.6 save.

Maybe when I got save update messages during boot.

It was adjusting this driver for the different kernel in 10.0.7? :idea:
Something to do with this DKMS stuff?


Re: install Nvidia driver in BookwormPup64 10.0.7 (not working)

Posted: Fri Jul 12, 2024 6:40 am
by Clarity

My problem too...but no prior session-save is used. I am using this 'pristine. Adapter-driver combo not working together in the system when apt installed. Reboot not using the driver.


Re: install Nvidia driver in BookwormPup64 10.0.7 (not working)

Posted: Mon Jul 15, 2024 12:55 pm
by jp734

Also experiencing this problem. Tried it last night. Can continue using the 525 SFS driver I created but it will not help me with bumblebee/primusrun for my hybrid graphics


Re: install Nvidia driver in BookwormPup64 10.0.7 (not working)

Posted: Tue Jul 16, 2024 4:21 am
by radky

@bigpup

It seems (in some cases) the installation of nvidia drivers >= 530 may fail due to the non-portable usage of tr in the nvidia conftest.sh script. Specifically, the Puppy busybox tr command does not support the non-portable tr command line in conftest.sh -- and the compilation of the nvidia driver fails.

https://github.com/NVIDIA/open-gpu-kern ... s/pull/609

I tried the following in BW64 10.0.7:

Code: Select all

apt update && apt install libgtk3-perl
apt install nvidia-driver

This downloaded nvidia 535.183.01 source files to /var/lib/dkms/nvidia-current/535.183.01/build

The subsequent auto-compilation proceeded for several minutes then failed with conftest errors (shown in make.log).

Then I edited /var/lib/dkms/nvidia-current/535.183.01/build/conftest.sh (as follows):

Go to line 67 and replace the non-portable tr command with the comparable awk command.

Specifically, replace line 67

Code: Select all

    file_define=NV_`echo $file | tr '/.\-a-z' '___A-Z'`_PRESENT

with

Code: Select all

    file_define=NV_`echo $file | awk '{ gsub(/\.|\/|-/, "_", $1); print toupper($0) }'`_PRESENT

Then in a terminal:

Code: Select all

cd /var/lib/dkms/nvidia-current/535.183.01/build
make

At this point, the nvidia 535.183.01 drivers compile without error.

My laptops have intel video so I can't test the generated output, but maybe you could test the above guidelines.


Re: install Nvidia driver in BookwormPup64 10.0.7 (not working)

Posted: Tue Jul 16, 2024 10:51 am
by jp734

Nice! I'll definitely try this later. Thanks @radky.


Re: install Nvidia driver in BookwormPup64 10.0.7 (not working)

Posted: Tue Jul 16, 2024 2:07 pm
by radky

As noted above, BW64 uses busybox tr (i.e., /usr/bin/tr is a symlink to /bin/busybox). Busybox tr does not support successful installation of nvidia 535.183.01.

In upsteam Debian Bookworm, the tr binary utility is part of the large coreutils_9.1-1_amd64.deb package. From this package, I extracted the small (55K) tr binary to /usr/bin (replacing the tr symlink to busybox). The small tr binary is attached below (coreutils_9.1-1_tr_binary.tar.gz).

Subsequently, running the following in a terminal will install the nividia 535.183.01 drivers:

Code: Select all

apt update && apt install libgtk3-perl
apt install nvidia-driver

In my quick test, the drivers installed to /usr/lib/modules/6.1.94/updates/dkms.

Here is a pet package for the replacement tr file:
viewtopic.php?p=126164#p126164


Re: install Nvidia driver in BookwormPup64 10.0.7 (not working)

Posted: Tue Jul 16, 2024 5:05 pm
by jp734

CONFIRMED - These steps worked :thumbup:

GREAT JOB @radky.


Re: install Nvidia driver in BookwormPup64 10.0.7 (not working)

Posted: Tue Jul 16, 2024 8:23 pm
by radky
jp734 wrote: Tue Jul 16, 2024 5:05 pm

CONFIRMED - These steps worked :thumbup:

Thanks for confirmation.

Concerning the libgtk3-perl dependency: only one file is actually required, i.e. the Gtk3.pm perl module.

The next release of BW64 (10.0.8) will include the small binary tr utility and Gtk3.pm perl module.


Re: install Nvidia driver in BookwormPup64 10.0.7 (not working)

Posted: Wed Jul 17, 2024 2:18 am
by bigpup

BookwormPup64 10.0.7, frugal install, clean fresh new save folder.

@radky
Thanks for looking into this issue and coming up with a fix!!!

Tried the first method making edits and stuff.
It did not work.

Tried your second method and it works! :thumbup: :D
viewtopic.php?p=126131#p126131

When I rebooted.
Had to run xorgwizard and manually enter nvidia as the driver to use. Set resolution and color depth.
Close xorgwizard and enter xwin to get to working desktop.

Confirmed using the 535.183.01 Nvidia driver.

Note:
This did not install the Nvidia X server settings program for configuring Nvidia driver.
To install it.

Code: Select all

apt install nvidia-settings

Puts entry in main menu ->System ->Nvidia X server settings

This is the only program to use for making setting changes to the driver operation.
It makes a settings file that the nvidia driver uses, when it is in operation.

Note:
Using this command to install the driver may get around having to run xorgwizard. (have not tried it)

Code: Select all

apt install nvidia-driver libnvidia-cfg1 nvidia-xconfig && nvidia-xconfig

.
.


Re: install Nvidia driver in BookwormPup64 10.0.7 (not working)(solved)

Posted: Wed Jul 17, 2024 3:01 am
by bigpup

Here is a pet package to use to install the replacement tr file.
.

coreutils_9.1-1_tr_binary.pet
(20.29 KiB) Downloaded 30 times