View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000594 | channel: elrepo/el7 | bumblebee | public | 2015-09-12 17:44 | 2015-09-14 11:56 |
Reporter | wolfy | Assigned To | toracat | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Summary | 0000594: bumblebee requires kmod-nvidia but the system might need kmod-nvidia-340xx | ||||
Description | We 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 | ||||
Tags | No tags attached. | ||||
Reported upstream | |||||
|
Thanks for reporting this. So, Requires: in bumblebee needs to accommodate other kmod-nvidia-XXX as well, it seems. |
|
That is correct. And on top of that, the "other(s)" might conflict. And AFAIK there is no "Requires: A or B" :( |
|
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. |
|
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) ). |
|
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. |
|
We will first release the updated package to testing. Will also update the bumblebee page. |
|
Rob Mokkink (maintainer of bumblebee) thinks it's best to remove the requirement for kmod-nvidia. What do others think? |
|
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. |
|
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. |
|
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. |
|
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. |
|
The updated version of bumblebee released. The wiki page updated. Closing as 'resolved' now. |
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 |