You are not logged in.

#1 2017-10-28 17:14:07

goral09
Member
Registered: 2017-10-28
Posts: 5

[SOLVED] Dell XPS 9560 bbswitch installation problem

First of all I would like to say "Hi" as it's my first post on the forum.

I will try to be as concise as I can think about.

My setup:

Dell XPS 15 9560
kernel 4.13.10-1-zen

I am trying to follow the guide disabling the discrete gpu. I installed and enabled the bumblebeed.service but I continue to fail installing bbswitch. I have tried installing bbswitch but bumblebeed does not seem to work with it.

[mateusz@arch-dell-xpsp:~]$ sudo pacman -Q bbswitch                                                                                                                        
bbswitch 0.8-81
[mateusz@arch-dell-xpsp:~]$ sudo systemctl status bumblebeed.service                                                                                                        
● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2017-10-28 19:10:21 CEST; 1min 19s ago
 Main PID: 13388 (bumblebeed)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bumblebeed.service
           └─13388 /usr/bin/bumblebeed

Oct 28 19:10:21 arch-dell-xpsp systemd[1]: Started Bumblebee C Daemon.
Oct 28 19:10:21 arch-dell-xpsp bumblebeed[13388]: modprobe: FATAL: Module bbswitch not found in directory /lib/modules/4.13.10-1-zen
Oct 28 19:10:21 arch-dell-xpsp bumblebeed[13388]: [ 3314.800756] [ERROR]Module bbswitch could not be loaded (timeout?)
Oct 28 19:10:21 arch-dell-xpsp bumblebeed[13388]: [ 3314.800765] [WARN]No switching method available. The dedicated card will always be on.
Oct 28 19:10:21 arch-dell-xpsp bumblebeed[13388]: [ 3314.801637] [INFO]/usr/bin/bumblebeed 3.2.1 started

I have searched high and low but failed to find a solution.

Last edited by goral09 (2017-10-28 21:08:17)

Offline

#2 2017-10-28 17:37:05

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] Dell XPS 9560 bbswitch installation problem

Welcome to the arch linux forums goral09.

/lib/modules/4.13.10-1-zen

So you need bbswitch-dkms instead of bbswitch or make a custom package for the zen kernel.

Offline

#3 2017-10-28 18:28:22

goral09
Member
Registered: 2017-10-28
Posts: 5

Re: [SOLVED] Dell XPS 9560 bbswitch installation problem

Hello @loqs,

thanks your the advice. Ok, I have tried installing bbswitch-dkms.

First I removed completely the bbswitch:

sudo pacman -Rns bbswitch

then I tried installing bbswitch-dkms:

sudo pacman -Syu bbswitch-dkms

[…]
:: Running post-transaction hooks...
(1/2) Install DKMS modules
==> dkms install bbswitch/0.8 -k 4.13.10-1-zen
Error! Bad return status for module build on kernel: 4.13.10-1-zen (x86_64)
Consult /var/lib/dkms/bbswitch/0.8/build/make.log for more information.
==> dkms install bbswitch/0.8 -k 4.13.9-1-ARCH
Error! Bad return status for module build on kernel: 4.13.9-1-ARCH (x86_64)
Consult /var/lib/dkms/bbswitch/0.8/build/make.log for more information.
(2/2) Arming ConditionNeedsUpdate...

and here's a content of the file:

[mateusz@arch-dell-xpsp:~][130]$ cat /var/lib/dkms/bbswitch/0.8/build/make.log                                                                                                  
DKMS make.log for bbswitch-0.8 for kernel 4.13.9-1-ARCH (x86_64)
Sat Oct 28 20:26:58 CEST 2017
make -C /lib/modules/4.13.9-1-ARCH/build M="$(pwd)" modules
make[1]: Entering directory '/usr/lib/modules/4.13.9-1-ARCH/build'
  CC [M]  /var/lib/dkms/bbswitch/0.8/build/bbswitch.o
fixdep: error opening depfile: /var/lib/dkms/bbswitch/0.8/build/.bbswitch.o.d: No such file or directory
make[2]: *** [scripts/Makefile.build:309: /var/lib/dkms/bbswitch/0.8/build/bbswitch.o] Error 2
make[1]: *** [Makefile:1512: _module_/var/lib/dkms/bbswitch/0.8/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.13.9-1-ARCH/build'
make: *** [Makefile:13: default] Error 2
/var/lib/dkms/bbswitch/0.8/build/.bbswitch.o.d: No such file or directory

it looks like there's some kind of problem during the installation process?

Last edited by goral09 (2017-10-28 18:29:21)

Offline

#4 2017-10-28 19:02:35

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] Dell XPS 9560 bbswitch installation problem

sudo pacman -Syu bbswitch-dkms

[…]

Unfortunately omitting that part I can not see if the optional dependencies on the packages linux-headers and linux-zen-headers showed as installed or not.

Offline

#5 2017-10-28 20:48:04

goral09
Member
Registered: 2017-10-28
Posts: 5

Re: [SOLVED] Dell XPS 9560 bbswitch installation problem

Sorry, it seemed to me irrelevant so I omitted it for verbosity. Here's the full output:

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                                                     [--------------------------------------------------------------------] 100%
(1/1) checking package integrity                                                                                   [--------------------------------------------------------------------] 100%
(1/1) loading package files                                                                                        [--------------------------------------------------------------------] 100%
(1/1) checking for file conflicts                                                                                  [--------------------------------------------------------------------] 100%
(1/1) checking available disk space                                                                                [--------------------------------------------------------------------] 100%
:: Processing package changes...
(1/1) installing bbswitch-dkms                                                                                     [--------------------------------------------------------------------] 100%
ldconfig: File /usr/lib/libopcodes-2.29.so is empty, not checked.
ldconfig: File /usr/lib/libcc1.so.0 is empty, not checked.
ldconfig: File /usr/lib/libmpc.so.3 is empty, not checked.
ldconfig: File /usr/lib/libmpc.so.3.0.0 is empty, not checked.
ldconfig: File /usr/lib/libmpc.so is empty, not checked.
ldconfig: File /usr/lib/libcc1.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libbfd-2.29.so is empty, not checked.
ldconfig: File /usr/lib/libcc1.so is empty, not checked.
:: Running post-transaction hooks...
(1/2) Install DKMS modules
==> dkms install bbswitch/0.8 -k 4.13.10-1-zen
Error! Bad return status for module build on kernel: 4.13.10-1-zen (x86_64)
Consult /var/lib/dkms/bbswitch/0.8/build/make.log for more information.
==> dkms install bbswitch/0.8 -k 4.13.9-1-ARCH
Error! Bad return status for module build on kernel: 4.13.9-1-ARCH (x86_64)
Consult /var/lib/dkms/bbswitch/0.8/build/make.log for more information.
(2/2) Arming ConditionNeedsUpdate..

Offline

#6 2017-10-28 20:54:43

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] Dell XPS 9560 bbswitch installation problem

So the dkms package was already installed so it did not show if linux-headers or linux-zen-headers were already installed.
So what is the output of

$ pacman -Q linux-headers linux-zen-headers

Separate issue but you should consider checking the package supplying the following files for corruption

ldconfig: File /usr/lib/libopcodes-2.29.so is empty, not checked.
ldconfig: File /usr/lib/libcc1.so.0 is empty, not checked.
ldconfig: File /usr/lib/libmpc.so.3 is empty, not checked.
ldconfig: File /usr/lib/libmpc.so.3.0.0 is empty, not checked.
ldconfig: File /usr/lib/libmpc.so is empty, not checked.
ldconfig: File /usr/lib/libcc1.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libbfd-2.29.so is empty, not checked.
ldconfig: File /usr/lib/libcc1.so is empty, not checked.

edit:
changed check to consider checking

Last edited by loqs (2017-10-28 20:55:53)

Offline

#7 2017-10-28 20:57:35

goral09
Member
Registered: 2017-10-28
Posts: 5

Re: [SOLVED] Dell XPS 9560 bbswitch installation problem

Output:

[mateusz@arch-dell-xpsp:~]$ pacman -Q linux-headers linux-zen-headers
linux-headers 4.13.9-1
linux-zen-headers 4.13.10-1

Offline

#8 2017-10-28 21:07:19

goral09
Member
Registered: 2017-10-28
Posts: 5

Re: [SOLVED] Dell XPS 9560 bbswitch installation problem

@loqs

It turns out that after all it wasn't a separate issue. I had improperly installed gcc. Removing old one and installing newest version ( had to use --force though because of problems with signature ) I was able to install bbswitch-dkms properly.

I think that installation process wanted to compile the bbswitch-dkms for my kernel but because of corrupted gcc it wasn't compling c++ files ( the .o files ) and that's why it couldn't find them in later steps of the installation process.

Thank you very much for your help once again. I wouldn't have done it without it. I was considering giving up and leaving the GPU turned on.

edit.

I marked the thread as [SOLVED].

Last edited by goral09 (2017-10-28 21:12:59)

Offline

Board footer

Powered by FluxBB