View Issue Details

IDProjectCategoryView StatusLast Update
0000594channel: elrepo/el7bumblebeepublic2015-09-14 11:56
Reporterwolfy Assigned Totoracat  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0000594: bumblebee requires kmod-nvidia but the system might need kmod-nvidia-340xx
DescriptionWe just had a user in #centos with an Asus ul50vt laptop. It's an Optimus system based (according to the user) on a Nvidia GeForce G210M Cuda 512MB card.
The whole system worked ok with the following set of packages
- VirtualGL from EPEL
- kmod-nvidia-340xx (installed via yum install $(nvidia-detect) ), kmod-bbswitch and bumblebee from ElRepo.

Problem is that we had to rpm -i --nodeps bumblebee because currently it requires kmod-nvidia which conflicts with (the needed) kmod-nvidia-340xx
TagsNo tags attached.
Reported upstream

Activities

toracat

2015-09-12 17:58

administrator   ~0004469

Thanks for reporting this. So, Requires: in bumblebee needs to accommodate other kmod-nvidia-XXX as well, it seems.

wolfy

2015-09-12 18:01

developer   ~0004470

That is correct. And on top of that, the "other(s)" might conflict. And AFAIK there is no "Requires: A or B" :(

pperry

2015-09-12 18:09

administrator   ~0004471

The simplest solution would be to add a Requires for a file the nvidia driver packages provide. Something from the nvidia-x11-drv package, e.g:

Requires: %{_libdir}/xorg/modules/drivers/nvidia_drv.so

and remove the Requires for kmod-nvidia.

That way any package set that provides nvidia_drv.so will meet the dependency and ensure nvidia drivers are installed.

wolfy

2015-09-12 18:15

developer   ~0004472

That looks like a good idea but we'll need to make sure that the CORRECT nvidia driver gets installed. And, if I am not mistaken, kmod-nvidia will be picked in favour of kmod-nvidia-340xx when none is already installed.

I guess we should address that in http://elrepo.org/tiki/bumblebee ( which should also mention that for EL7 the VirtualGL packages exist in both EPEL and ElRepo, there is no need to use Virtual.org or Springdale (formerly PUIAS) ).

pperry

2015-09-12 18:25

administrator   ~0004473

True, there is the possibility the wrong nvidia package might get pulled in if not already installed where two different packages meet a dependency. But if you want either package to meet the dep that is unavoidable.

toracat

2015-09-12 18:38

administrator   ~0004474

We will first release the updated package to testing. Will also update the bumblebee page.

toracat

2015-09-13 06:08

administrator   ~0004475

Rob Mokkink (maintainer of bumblebee) thinks it's best to remove the requirement for kmod-nvidia. What do others think?

pperry

2015-09-13 08:31

administrator   ~0004476

Removing the requirement for kmod-nvidia will resolve this bug. The question is whether or not you want to replace it with a Requires for a file provided by the nvidia drivers to at least ensure nvidia drivers are installed. I'm easy on that, whichever way Rob/toracat decide to go.

toracat

2015-09-13 10:13

administrator   ~0004477

By fixing one issue, we'd introduce another one that was described by wolfy. Which is more serious is a matter of debate, I think. I guess Rob did not want either problem to happen. I tend to agree for the following reasons.

(1) Users who want to use bumblebee are presumably aware that they need a driver for Nvidia.

(2) A new release of the Nvidia driver is expected to be out in a not so distant future. Compatibility mapping around multiple versions becomes more "complex".

Therefore it would be best if they start with nvidia-detect especially if this is a new installation.

pperry

2015-09-13 10:31

administrator   ~0004478

The way I see it:

As it stands there is a bug, described herein, and the only fix is to remove the Requires for kmod-nvidia.

The potential problem that introduces is then not a packaging issue, but one of the end user's own making and can be mitigated with good documentation.

Also, removing the packaging Requires allows for the case where the end user may want to use the upstream NVIDIA installer to install the nvidia drivers. Having a Requires prevents that as RPM would not be aware the drivers are installed (no entry in the rpm database).

So I'd simply remove the Requires from bumblebee and mark this bug as resolved. Then update the bumblebee docs to be clear that installed nvidia drivers are a prerequisite.

toracat

2015-09-13 10:36

administrator   ~0004479

In fact, I meant to talk about the possible use of Nvidia's installer by users (but missed it in my previous note).

Looks like this is a done deal now. :) I will update bumblebee accordingly and close this bug when all is done.

toracat

2015-09-14 11:56

administrator   ~0004480

The updated version of bumblebee released. The wiki page updated. Closing as 'resolved' now.

Issue History

Date Modified Username Field Change
2015-09-12 17:44 wolfy New Issue
2015-09-12 17:44 wolfy Status new => assigned
2015-09-12 17:44 wolfy Assigned To => toracat
2015-09-12 17:58 toracat Note Added: 0004469
2015-09-12 18:01 wolfy Note Added: 0004470
2015-09-12 18:09 pperry Note Added: 0004471
2015-09-12 18:15 wolfy Note Added: 0004472
2015-09-12 18:25 pperry Note Added: 0004473
2015-09-12 18:38 toracat Note Added: 0004474
2015-09-13 06:08 toracat Note Added: 0004475
2015-09-13 08:31 pperry Note Added: 0004476
2015-09-13 10:13 toracat Note Added: 0004477
2015-09-13 10:31 pperry Note Added: 0004478
2015-09-13 10:36 toracat Note Added: 0004479
2015-09-14 11:56 toracat Note Added: 0004480
2015-09-14 11:56 toracat Status assigned => resolved
2015-09-14 11:56 toracat Resolution open => fixed