You are not logged in.

#1 2016-11-29 23:00:51

senex
Member
Registered: 2016-11-10
Posts: 11

[solved]setting up bumblebee (nvidia dependency problems)

Hi,
i got a problem with my XPS9550 while enabling bimblebee.

I need the packages bumblebee, mesa, xf-video-intel and nvidia for my setup. But while trying to installing nvidia I got some errors:

$ yaourt -S nvidia
resolving dependencies...
looking for conflicting packages...
:: nvidia-utils and nvidia-304xx-utils are in conflict. Remove nvidia-304xx-utils? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: lib32-nvidia-304xx-utils: removing nvidia-304xx-utils breaks dependency 'nvidia-304xx-utils'

But when I try to remove nvidia-304xx-utils than their comes:

$ yaourt -R nvidia-304xx-utils 
[sudo] password for senex: 
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: lib32-nvidia-304xx-utils: removing nvidia-304xx-utils breaks dependency 'nvidia-304xx-utils'

I didn't understand that. I think I maybe installed the drivers in the beginning of my arch system...

regards
seNex

Last edited by senex (2016-12-01 07:14:16)

Offline

#2 2016-11-29 23:31:25

RhiobeT
Member
Registered: 2016-11-28
Posts: 5

Re: [solved]setting up bumblebee (nvidia dependency problems)

If you take a look at the errors you get, they state that the reason you can't remove nvidia-304xx-utils is because another package depends on it : lib32-nvidia-304xx-utils.
And you can't remove a package if another one needs it, so you first need to delete lib32-nvidia-304xx-utils.

But it is actually strange that you have nvidia-304xx-utils installed.
Did you change your GPU? If not, could you tell us what it is? Depending on your answer, you may need to use the package nvidia-304xx instead of nvidia.

Offline

#3 2016-11-30 10:02:47

senex
Member
Registered: 2016-11-10
Posts: 11

Re: [solved]setting up bumblebee (nvidia dependency problems)

I have a nvida 960M inside. I thought that I need the nvidia package.

nvidia arch wiki

For GeForce 400 series cards and newer [NVCx and newer], install the nvidia or nvidia-lts package along with nvidia-libgl.

I never changed my GPU, maybe I installed when setting up the wrong drivers...

Offline

#4 2016-11-30 11:15:27

RhiobeT
Member
Registered: 2016-11-28
Posts: 5

Re: [solved]setting up bumblebee (nvidia dependency problems)

Okay, so yeah you need the nvidia package ^^'
Just remove lib32-nvidia-304xx-utils and your installation should work.

Offline

#5 2016-11-30 11:28:39

senex
Member
Registered: 2016-11-10
Posts: 11

Re: [solved]setting up bumblebee (nvidia dependency problems)

just...

$ yaourt -R lib32-nvidia-304xx-utils
[sudo] password for senex: 
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: lib32-nvidia-304xx-libgl: removing lib32-nvidia-304xx-utils breaks dependency 'lib32-nvidia-304xx-utils'

Offline

#6 2016-11-30 11:47:32

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

Re: [solved]setting up bumblebee (nvidia dependency problems)

You need to remove all of the *nvidia-304xx* packages on your system at the same time. You can find out what these are with...

pacman -Qq nvidia-304xx

Why on earth are you using yaourt for packages in the official repositories?


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

#7 2016-11-30 11:58:44

svnset
Member
Registered: 2016-07-31
Posts: 75

Re: [solved]setting up bumblebee (nvidia dependency problems)

First question, why do you use yaourt?! not recommended, only use it for aur packages.

You have to learn how to solve dependency issues...
Have a look at the package you want to remove:

pacman -Qi lib32-nvidia-304xx-utils

You can see what other packages depend on the package you want to remove, you have to solve the whole dependency ring.

Another question, are you on a 64bit machine and using multilib on purpose? My guess is you just need it for primusrun 32bit and steam?

My approach would be removing all 32bit packages and start over from a clear 64bit system: https://wiki.archlinux.org/index.php/multilib
I'm not a fan of fiddling around with too many unnecessary lib32 packages and you have clearly issues here to distinguish...

Last edited by svnset (2016-11-30 12:00:58)


After one has played a vast quantity of notes and more notes,
it is simplicity that emerges as the crowning reward of art. - Chopin

Offline

#8 2016-11-30 15:33:53

senex
Member
Registered: 2016-11-10
Posts: 11

Re: [solved]setting up bumblebee (nvidia dependency problems)

pacman -Qq

sudo pacman -Qq nvidia-304xx
error: package 'nvidia-304xx' was not found

pacman -Qi

$ sudo pacman -Qi lib32-nvidia-304xx-utils 
Name            : lib32-nvidia-304xx-utils
Version         : 304.132-1
Description     : NVIDIA drivers utilities (32-bit)
Architecture    : x86_64
URL             : http://www.nvidia.com/
Licenses        : custom
Groups          : None
Provides        : None
Depends On      : lib32-libxvmc  lib32-zlib  lib32-gcc-libs  lib32-libxext  nvidia-304xx-utils
Optional Deps   : lib32-opencl-nvidia-304xx
Required By     : lib32-nvidia-304xx-libgl
Optional For    : None
Conflicts With  : lib32-nvidia-utils
Replaces        : None
Installed Size  : 43.75 MiB
Packager        : Felix Yan <felixonmars@archlinux.org>
Build Date      : Fri Oct 21 09:37:23 2016
Install Date    : Tue Nov 8 00:28:49 2016
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

okay, now I have do remove all required by packages:

$ sudo pacman -Qi lib32-nvidia-304xx-libgl
Name            : lib32-nvidia-304xx-libgl
Version         : 304.132-1
Description     : NVIDIA drivers libraries symlinks (32-bit)
Architecture    : x86_64
URL             : http://www.nvidia.com/
Licenses        : custom
Groups          : None
Provides        : lib32-libgl
Depends On      : lib32-nvidia-304xx-utils  lib32-mesa
Optional Deps   : None
Required By     : lib32-cairo  lib32-glew1.10  lib32-glu  lib32-pango
                  lib32-sdl2
Optional For    : None
Conflicts With  : lib32-libgl
Replaces        : None
Installed Size  : 1024.00 B
Packager        : Felix Yan <felixonmars@archlinux.org>
Build Date      : Fri Oct 21 09:37:47 2016
Install Date    : Tue Nov 8 00:28:51 2016
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

and have to do:

pacman -R lib32-cairo  lib32-glew1.10  lib32-glu  lib32-pango lib32-sdl2

so I will get:

$ sudo pacman -R lib32-cairo lib32-glew1.10 lib32-glu lib32-pango
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: lib32-gtk2: removing lib32-pango breaks dependency 'lib32-pango>=1.28.0'
:: lib32-gtk2: removing lib32-cairo breaks dependency 'lib32-cairo>=1.10.0'

is there a way to force removing packages?

My approach would be removing all 32bit packages and start over from a clear 64bit system: https://wiki.archlinux.org/index.php/multilib
I'm not a fan of fiddling around with too many unnecessary lib32 packages and you have clearly issues here to distinguish...

I already "unlocked" multilib before but how I can get a clear 64bit system from now?

Offline

#9 2016-11-30 16:27:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,452

Re: [solved]setting up bumblebee (nvidia dependency problems)

Just use

pacman -Rdd nvida-304xx nvida-304xx-utils  lib32-nvida-304xx-utils lib32-nvida-304xx-libgl

(if you want to use bumblebee you shouldn't have the nvidia-libgls installed at all) so that pacman ignores dependencies for that transaction, as detailed here: https://wiki.archlinux.org/index.php/Pa … g_packages

Then pacman -S all the corresponding nvidia packages. Ignore the not using multilib part, if you want to play games you are not going to get around it.

(Technically

pacman -S nvidia nvidia-utils lib32-nvidia-utils lib32-mesa-libgl

should work as well and ask you to replace all other components, but this is a bit unstable since the dependency definitions might change and make this fail anyway.)

Last edited by V1del (2016-11-30 16:43:41)

Offline

#10 2016-11-30 18:12:30

svnset
Member
Registered: 2016-07-31
Posts: 75

Re: [solved]setting up bumblebee (nvidia dependency problems)

senex wrote:

My approach would be removing all 32bit packages and start over from a clear 64bit system: https://wiki.archlinux.org/index.php/multilib
I'm not a fan of fiddling around with too many unnecessary lib32 packages and you have clearly issues here to distinguish...

I already "unlocked" multilib before but how I can get a clear 64bit system from now?

It's there in the wiki link about multilib I posted, just scroll down... You don't have to do it like V1del mentioned, just if you have the feeling you got too confused with lib32 and installed alot of unnecessary packages. If we are just talking about the nvidia packages, no need to do it.


EDIT:

V1del wrote:

Ignore the not using multilib part, if you want to play games you are not going to get around it.

Noone said to not use mutlilib smile Just an option if things get too messy...

Last edited by svnset (2016-11-30 18:37:06)


After one has played a vast quantity of notes and more notes,
it is simplicity that emerges as the crowning reward of art. - Chopin

Offline

#11 2016-11-30 22:08:15

senex
Member
Registered: 2016-11-10
Posts: 11

Re: [solved]setting up bumblebee (nvidia dependency problems)

Thank you very much, there was a strange Error but now are all packages installed:

$ sudo pacman -Rdd nvida-304xx nvida-304xx-utils  lib32-nvida-304xx-utils lib32-nvida-304xx-libgl
error: target not found: nvida-304xx
error: target not found: nvida-304xx-utils
error: target not found: lib32-nvida-304xx-utils
error: target not found: lib32-nvida-304xx-libgl

$ sudo pacman -S nvidia nvidia-utils lib32-nvidia-utils lib32-mesa-libgl
resolving dependencies...
looking for conflicting packages...
:: lib32-mesa-libgl and lib32-nvidia-304xx-libgl are in conflict (lib32-libgl). Remove lib32-nvidia-304xx-libgl? [y/N] y
:: lib32-nvidia-utils and lib32-nvidia-304xx-utils are in conflict. Remove lib32-nvidia-304xx-utils? [y/N] y
:: nvidia-utils and nvidia-304xx-utils are in conflict. Remove nvidia-304xx-utils? [y/N] y

Packages (9) lib32-libglvnd-0.1.1.20161028-1  lib32-nvidia-304xx-libgl-304.132-1 [removal]  lib32-nvidia-304xx-utils-304.132-1 [removal]  libglvnd-0.1.1.20161028-1
             nvidia-304xx-utils-304.132-1 [removal]  lib32-mesa-libgl-13.0.1-1  lib32-nvidia-utils-375.20-1  nvidia-375.20-3  nvidia-utils-375.20-1

Total Download Size:    47.64 MiB
Total Installed Size:  202.05 MiB
Net Upgrade Size:       84.90 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 ... ... ...

hm, later I have to clean up all unneeded packages, I will see. The important thing now, is that it will work. smile

Offline

#12 2016-11-30 22:17:57

senex
Member
Registered: 2016-11-10
Posts: 11

Re: [solved]setting up bumblebee (nvidia dependency problems)

You are great, after a restart I tried:

$ optirun glxgears --info
Usage:
  -display <displayname>  set the display to run on
  -stereo                 run in stereo mode
  -samples N              run in multisample mode with at least N samples
  -fullscreen             run in fullscreen mode
  -info                   display OpenGL renderer info
  -geometry WxH+X+Y       window geometry
walther@optilux ~  
$ optirun glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GTX 960M/PCIe/SSE2
199.666936 frames/sec - 198.549600 Mpixels/sec
200.315126 frames/sec - 199.194162 Mpixels/sec
199.818228 frames/sec - 198.700045 Mpixels/sec
200.314362 frames/sec - 199.193403 Mpixels/sec
203.426643 frames/sec - 202.288267 Mpixels/sec
200.269878 frames/sec - 199.149168 Mpixels/sec
202.716102 frames/sec - 201.581703 Mpixels/sec
199.765528 frames/sec - 198.647640 Mpixels/sec
203.752711 frames/sec - 202.612511 Mpixels/sec
201.086326 frames/sec - 199.961047 Mpixels/sec
185.941860 frames/sec - 184.901330 Mpixels/sec
183.273088 frames/sec - 182.247492 Mpixels/sec

It looks well! But, how can I ensure, that the GPU core is running and not the intel card?

Offline

#13 2016-11-30 22:24:04

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

Re: [solved]setting up bumblebee (nvidia dependency problems)

It's in the output you just posted...

OpenGL Renderer: GeForce GTX 960M/PCIe/SSE2

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

#14 2016-11-30 23:46:12

senex
Member
Registered: 2016-11-10
Posts: 11

Re: [solved]setting up bumblebee (nvidia dependency problems)

hm, but every other application throws following error:

ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libvglfaker.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

from problem to problem ...

Offline

#15 2016-12-01 00:38:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,452

Re: [solved]setting up bumblebee (nvidia dependency problems)

Use primusrun instead optirun is buggy with current nvidia drivers, and next time you run into something, make some effort to help yourself and look through https://wiki.archlinux.org/index.php/bumblebee to see if the problem you have doesn't already turn up there. As this threads original purpose has been served, you may want to edit your original post's title and prepend [SOLVED], open new threads for new problems

Offline

Board footer

Powered by FluxBB