You are not logged in.

#1 2020-04-10 11:01:00

lakamit
Member
Registered: 2020-04-07
Posts: 15

[SOLVED] bbswitch-dkms: Bad return status for module build on kernel

Hello,

I am trying to install bbswitch-dkms to turn my gpu off.

sudo pacman -S bbswitch-dkms

But it gives me this error:

Error! Bad return status for module build on kernel: 5.6.3-arch1-1 (x86_64)
Consult /var/lib/dkms/bbswitch/0.8/build/make.log for more information.

Where is the issue?

Thank you.

Last edited by lakamit (2020-04-10 19:53:59)

Offline

#2 2020-04-10 16:59:24

YCH
Member
Registered: 2014-01-28
Posts: 53

Re: [SOLVED] bbswitch-dkms: Bad return status for module build on kernel

any specific reason for install dkms version?


YCH

Offline

#3 2020-04-10 17:00:15

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] bbswitch-dkms: Bad return status for module build on kernel

So have you read the suggested log?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2020-04-10 19:44:36

lakamit
Member
Registered: 2020-04-07
Posts: 15

Re: [SOLVED] bbswitch-dkms: Bad return status for module build on kernel

YCH wrote:

any specific reason for install dkms version?

Yes, when I install the normal bbswitch version, it gives me this error, when I try to load it:
modprobe: FATAL : Module bbswitch not found in directory /lib/modules/5.6.3-arch1-1

It was working yesterday. But today I have reinstalled arch and also got the new kernel version. So I think it does not work on the new kernel atm.

Slithery wrote:

So have you read the suggested log?

Yes, it says me that the 4th argument of proc_create in bbswitch.c is a incompatible pointer type.

acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_fops)

But this does not help me unfortunately.


Edit: pacman -Syu solved the issue.
Sorry, I thought the system is already up to date, because I have installed it today.

Last edited by lakamit (2020-04-10 19:53:19)

Offline

#5 2020-04-10 21:18:53

YCH
Member
Registered: 2014-01-28
Posts: 53

Re: [SOLVED] bbswitch-dkms: Bad return status for module build on kernel

what's the ouput of

pacman -Ql bbswitch

is that actually match with current kernel version?


YCH

Offline

#6 2020-04-11 00:28:05

lakamit
Member
Registered: 2020-04-07
Posts: 15

Re: [SOLVED] bbswitch-dkms: Bad return status for module build on kernel

YCH wrote:

what's the ouput of

pacman -Ql bbswitch

is that actually match with current kernel version?

pacman -Syu solved the issue to install dkms-bbswitch

I have reinstalled arch now and can install the normal bbswitch, too.

What is the difference between them? I didnt really understand.
I thought that dkms-bbswitch will persist kernel updates and the normal one not.

Offline

#7 2020-04-11 00:44:29

YCH
Member
Registered: 2014-01-28
Posts: 53

Re: [SOLVED] bbswitch-dkms: Bad return status for module build on kernel

lakamit wrote:
YCH wrote:

what's the ouput of

pacman -Ql bbswitch

is that actually match with current kernel version?

pacman -Syu solved the issue to install dkms-bbswitch

I have reinstalled arch now and can install the normal bbswitch, too.

What is the difference between them? I didnt really understand.
I thought that dkms-bbswitch will persist kernel updates and the normal one not.


- bbswitch <- prebuilted module in sync with current 'linux' kernel package by arch maintainer
- bbswitch-dkms <- if you are using another kernel that not managed by arch, e.g. 'linux-ck', 'linux-clear'. you should compile moudule manually everytime that kernel updated. dkms is automate that part. when new kernel arrived, rebuild module.

so no need to use dkms variant if you don't use any custom kernel. just slowing down install process.


YCH

Offline

#8 2020-04-11 01:04:51

lakamit
Member
Registered: 2020-04-07
Posts: 15

Re: [SOLVED] bbswitch-dkms: Bad return status for module build on kernel

Alright, thank you!

Offline

Board footer

Powered by FluxBB