LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2020, 06:33 PM   #1
LegionOfHell
Member
 
Registered: Jul 2020
Posts: 41

Rep: Reputation: Disabled
bbswitch module(external module) does not survive kernel upgrades


Here is how I Installed bbswitch for turning my dGPU off...and it used to work flawlessly:

Code:
(0) blacklist - uninstall nouveau
(1) xbps-install -S bbswitch
(2) nano -w /etc/modprobe.d/bbswitch.conf
    options bbswitch load_state=0 unload_state=1
(3) nano -w /etc/modules-load.d/bbswitch.conf
    bbswitch
(4) search /lib/modules/ to see which kernel has bbswitch
(5) install the kernel in step (4) 
(6) depmod -a
(7) xbps-reconfigure --force linuxX.Y
(8) cat /proc/acpi/bbswitch <-----this reported that dGPU is off
However during a kernel upgrade, this happens:

https://ibb.co/5kdzFCb

What is wrong here ?

EDIT: Here is the dkms log for bbswitch: https://pastebin.com/ACV0Nh87

Last edited by LegionOfHell; 07-26-2020 at 07:44 PM.
 
Old 07-28-2020, 01:31 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,290

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
The module you have is installed in /lib/modules/kernel_version/misc/. So if you upgrade the kernel, you need a fresh module.

Upgrade kernel, kernel source, kernel modules and kernel headers. Then copy your new kernel's config-version to your new kernel's source as /usr/src/linux-version/.config and compile it. Something like
Code:
sudo cp /boot/config-N.N.NN/usr/src/linux-N.N.NN/.config
cd /usr/src/linux-<version>
sudo make clean; sudo make all
You don't have to install it. But now your new module will compile. No automatic was to do this, I'm afraid. After your module is compiled and installed, you can run 'make clean' again to save disk space, if you're embarrassed for that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackpkg complains because two versions of both bbswitch and nvidia-kernel are installed gnw Slackware 3 08-03-2019 12:43 PM
Using bumblebee and bbswitch, discrete video card (Nvidia) is still on by default. me_h Slackware 7 12-11-2016 03:47 AM
DI 15.3 Error message on start bbswitch: No discrete VGA device found heffo_j Linux Deepin 4 11-06-2016 09:19 PM
Bumblebee [Optimus] BBswitch wont load anymore n4rf Linux - General 2 10-09-2015 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration