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

Moderator: Forum moderators

Post Reply
User avatar
bigpup
Moderator
Posts: 7000
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

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

Post 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

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
bigpup
Moderator
Posts: 7000
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

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

Post 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?

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Clarity
Posts: 3843
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1633 times
Been thanked: 526 times

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

Post 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.

User avatar
jp734
Posts: 204
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 96 times
Been thanked: 97 times

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

Post 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

The Art of Magic and The Magic of Art

radky
Posts: 355
Joined: Fri May 28, 2021 2:14 am
Has thanked: 41 times
Been thanked: 320 times

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

Post 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.

Attachments
After_drivers_compiled.png
After_drivers_compiled.png (86.85 KiB) Viewed 755 times
User avatar
jp734
Posts: 204
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 96 times
Been thanked: 97 times

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

Post by jp734 »

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

The Art of Magic and The Magic of Art

radky
Posts: 355
Joined: Fri May 28, 2021 2:14 am
Has thanked: 41 times
Been thanked: 320 times

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

Post 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

Attachments
nvidia_install_folder.png
nvidia_install_folder.png (21.57 KiB) Viewed 708 times
coreutils_9.1-1_tr_binary.tar.gz
(23.18 KiB) Downloaded 40 times
Last edited by bigpup on Wed Jul 17, 2024 3:09 am, edited 1 time in total.
Reason: added link to the tr pet package
User avatar
jp734
Posts: 204
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 96 times
Been thanked: 97 times

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

Post by jp734 »

CONFIRMED - These steps worked :thumbup:

GREAT JOB @radky.

Attachments
Screenshot.jpg
Screenshot.jpg (100.89 KiB) Viewed 692 times

The Art of Magic and The Magic of Art

radky
Posts: 355
Joined: Fri May 28, 2021 2:14 am
Has thanked: 41 times
Been thanked: 320 times

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

Post 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.

User avatar
bigpup
Moderator
Posts: 7000
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

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

Post 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

.
.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
bigpup
Moderator
Posts: 7000
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

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

Post 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 37 times

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Post Reply

Return to “BookwormPup”