SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Gerardo Zamudio,
The SBo release does not yet target current. I have to move some stuff around to take into account that libglvnd is in Slackware-current. The symlinks will be adjusted appropriately since with libglvnd we can now have multiple drivers installed without everybody stomping on everybody else. I will not do that until RC1 hits and the final kernel is locked down. If you want to use Nvidia SBo on current, some issues may arise until I can sort everything out.
FWIW I just installed the new mesa-19.1.0 (in testing), built nvidia-430.26 driver (Slack64-current w/ Plasma 5) and so far everything is running just fine.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,098
Original Poster
Rep:
Quote:
Originally Posted by 3rensho
FWIW I just installed the new mesa-19.1.0 (in testing), built nvidia-430.26 driver (Slack64-current w/ Plasma 5) and so far everything is running just fine.
Since there are relatively frequent kernel updates I just want to be clear on what to do (when running the Nvidia blob) after building and booting the new kernel. It looks like -
nvidia-switch --remove
build and reinstall nvidia-kernel and nvidia-driver
reinstall mesa
startx
If I have missed something or one or more of these steps are not needed please let me know. I don't want to mess this up. Thanks in advance.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,098
Original Poster
Rep:
Quote:
Originally Posted by 3rensho
Since there are relatively frequent kernel updates I just want to be clear on what to do (when running the Nvidia blob) after building and booting the new kernel. It looks like -
nvidia-switch --remove
build and reinstall nvidia-kernel and nvidia-driver
reinstall mesa........
Shouldn't mesa be installed before installing the Nvidia blob?
Last edited by cwizardone; 06-14-2019 at 04:23 AM.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
Rep:
Quote:
Originally Posted by 3rensho
Since there are relatively frequent kernel updates I just want to be clear on what to do (when running the Nvidia blob) after building and booting the new kernel. It looks like -
nvidia-switch --remove
build and reinstall nvidia-kernel and nvidia-driver
reinstall mesa
startx
If I have missed something or one or more of these steps are not needed please let me know. I don't want to mess this up. Thanks in advance.
I just run 'sh NVIDIA-Linux-x86_64-430.26.run' after booting the new kernel or after a mesa upgrade.
The installer removes the installed driver and installs everything needed I think.
I don't reinstall mesa.
I think the SBo NVidia package is usefull when you have more than one kernel installed.
NVidia blob needs to be reinstalled every time you boot a different kernel.
I just run 'sh NVIDIA-Linux-x86_64-430.26.run' after booting the new kernel or after a mesa upgrade.
The installer removes the installed driver and installs everything needed I think.
I don't reinstall mesa.
I think the SBo NVidia package is usefull when you have more than one kernel installed.
NVidia blob needs to be reinstalled every time you boot a different kernel.
Just FTR that's how I install nVidia,too. It takes less than 5 minutes to let the .run file do it's work and always works great. However the need for reinstallation appears to be diminishing in importance. I have successfully tried merely modprobing nvidia where versioning was chosen to be ignored 3 out of 5 last kernel upgrades. Currently it is inconsistent and rather a rolling of the dice, but even that 5 minutes may be avoidable, hopefully even moreso as variations are reduced.
Since there are relatively frequent kernel updates I just want to be clear on what to do (when running the Nvidia blob) after building and booting the new kernel. It looks like -
nvidia-switch --remove
build and reinstall nvidia-kernel and nvidia-driver
reinstall mesa
startx
If I have missed something or one or more of these steps are not needed please let me know. I don't want to mess this up. Thanks in advance.
You don't have to rebuild the nvidia-driver package every time the kernel is upgraded just rebuild the nvidia-kernel package. If you are using the .run file you can specify the -K advanced option to just build the kernel module if the driver is already installed e.g:
Code:
sh NVIDIA-Linux-x86_64-340.107.run -K 4.19.50
I only rebuild the driver if the mesa and/or xorg-server packages are upgraded.
Last edited by mats_b_tegner; 06-16-2019 at 08:50 AM.
You don't have to rebuild the nvidia-driver package every time the kernel is upgraded just rebuild the nvidia-kernel package. If you are using the .run file you can specify the -K advanced option to just build the kernel module if the driver is already installed e.g:
Code:
sh NVIDIA-Linux-x86_64-340.107.run -K 4.19.50
I only rebuild the driver if the mesa and/or xorg-packages are upgraded.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
Rep:
Quote:
Originally Posted by mats_b_tegner
You don't have to rebuild the nvidia-driver package every time the kernel is upgraded just rebuild the nvidia-kernel package. If you are using the .run file you can specify the -K advanced option to just build the kernel module if the driver is already installed e.g:
Code:
sh NVIDIA-Linux-x86_64-340.107.run -K 4.19.50
I only rebuild the driver if the mesa and/or xorg-server packages are upgraded.
Then if I have two kernel versions (I have the stock -current kernel and 5.1.x) I can first install the, let's say,
"main entire" NVidia blob by running "sh NVIDIA-Linux-x86_64-430.26.run" under any kernel,
and then I can put "sh NVIDIA-Linux-x86_64-430.26.run -K $(uname -r)" in /etc/rc.d/rc.local, this way only
the kernel driver will be built every boot for that particular kernel version.
Will this work?
edit-
This could be better, just build the driver if it doesn't exist.
Code:
if ! [ -e /lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko ]; then
sh NVIDIA-Linux-x86_64-430.26.run -K $(uname -r)
fi
Then if I have two kernel versions (I have the stock -current kernel and 5.1.x) I can first install the, let's say,
"main entire" NVidia blob by running "sh NVIDIA-Linux-x86_64-430.26.run" under any kernel,
and then I can put "sh NVIDIA-Linux-x86_64-430.26.run -K $(uname -r)" in /etc/rc.d/rc.local, this way only
the kernel driver will be built every boot for that particular kernel version.
Will this work?
edit-
This could be better, just build the driver if it doesn't exist.
Code:
if ! [ -e /lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko ]; then
sh NVIDIA-Linux-x86_64-430.26.run -K $(uname -r)
fi
From my understanding, this is basically what dkms will do automatically if you have it installed with programs that utilize it (I believe at least Nvidia and VirtualBox support dkms). Make sure you read dkms's README.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.