nvidia proprietary driver package #1
Comments
Other than editing the module paths, I see no issues. Currently, the Ubuntu package of Bumblebee is already patched to handle these crazy module paths, but now it is getting worse. If the package is from now on called "nvidia-experimental-XXX", then we can use globbing to find out the new paths. |
The issue on dependencies is that bumblebee-nvidia installs nvidia-current, and when you try to install an other one, it uninstall nvidia-current, and bumblebee-nvidia by the way. But maybe that's a weird dpkg/apt behaviour. |
Is that really happening right now? Isn't dpkg smart enough to see that nvidia-experimental-XXX provides nvidia-current? |
Yeah, it's really happening, I tested it my self. If you try to install an other driver than nvidia-current after having installed bumblebee+nvidia, it's uninstalling nvidia-current and bumblebee-nvidia (because depending on the former one) before installing the new nvidia package, without reinstalling nvidia-current. However I didn't check wether resinstalling bumblebee-nvidia afterwards does work or not, I guess so, but I'll make some tests to be sure of all results. |
I have done some testing and I can't make bumblebee work with anything else than bumblebee-nvidia -> nvidia-current Ubuntu 12.10: bumblebee-nvidia -> nvidia-current = OK Install nvidia-current-updates force uninstall of nvidia-current and bumblebee-nvidia = Desktop black screen without menus. With nvidia-current-updates installed (no desktop) try to install bumblebee-nvidia forces uninstall nvidia-current-updates but Desktop is usable again. |
@ArchangeGabriel can you have a look at this? I don't see why nvidia-current gets installed if it is provided. Maybe it is because of the explicit version dependency |
@Lekensteyn I've told you that before, dpkg has a weird behaviour with this. I will try several possiblities (including those you're proposing) to make this work. |
There is dpkg log and package headers at: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-experimental-310/+bug/1085044 The reason it doesn't work as intended seems to be due to the fact that nvidia-experimental-310 package lists nvidia-current in "Conflicts:" section (in addition to "Provides:"). Jeez. |
A comment from the Launchpad bug that could make sense, from Dave Gilbert: " So I'd agree with Jibel that Bumblebee is trying to do something that won't work; so it is Bumblebee's bug. Having said that; what Bumblebee wants to do is reasonable - i.e. make sure it has at least a particular version of the nvidia driver; I just don't see there is a way to do that. OTOH, I don't know much about these things, just want to get this fixed asap, and willing to help :) |
Ok, thanks for those informations, I was lacking time to investigate but you've bring the solution. So only Lucid is concerned with a driver older than 260 currently, however this release doesn't any other flavour of nvidia driver (no -updates version). I will remove version dependency on newer release, and only let this for Lucid. Will try do so today or tomorrow at worse. |
Gee, glad to be of help! Willing to test the new version as soon as it hits the repository, thanks for support, keep up the good work |
Hm, any progress? At least I haven't seen an update to bumblebee to appear yet in the repos |
Sorry, I was more busy than I first though, and I've just updated the package. So they're waiting on testing for building, and I will copy them to stable when done. |
with nvidia experimental :/ [ 152.202108] [ERROR]Aborting because fallback start is disabled. |
Confirmed, on nvidia-experimental-310 and newest bumblebee, bumblebee-nvidia [ 5701.891877] [ERROR]Aborting because fallback start is disabled. |
Yes, this is because nvidia-experimental is not supported currently in Bumblebee. Could you please provide the output of @Lekensteyn I'm guessing it will be something like nvidia-experimental-304, nvidia-experimental-310, ... Should we hardcode each of them in the fallback patch or do you have a better idea for them ? |
This is what I get, though I'm not sure if the Nvidia card is ON as you specified (no setting in BIOS to force either way) walther@affogato:~$ sudo lspci -v -s 01:00.0 walther@affogato:~$ modinfo nvidia_experimental_310 |
lspci -v -s 01:00.0 modinfo nvidia-experimental-310 |
Ok, thank you, the issue is the one I was thinking about. So just wait for Lekensteyn for coming with a shiny idea, else I will hardcode this driver in the patch. |
@ArchangeGabriel Hardcoding the version numbers is not a nice solution that will work in the future. What about giving instructions to the user so he can change KernelDriver in bumblebee.conf? That configuration file exists for a reason. If a user installs nvidia-experimental, he is accepting the risk. Any chance that Ubuntu is going to provide a modprobe.conf alias for nvidia-experimental-xxx? |
I think WebUpd8 has made a How-to for this scenario: https://plus.google.com/u/0/101912980608854649615/posts/Y74VXb7HRAW gksu gedit /etc/bumblebee/bumblebee.conf
I haven´t tested it but no one complaints in the comments. |
@Marzal Those instructions are correct, I forgot to mention the solution here since it is just a matter of reading the comments in the configuration file. |
Ok, at this time I finally went into only relaxing nvidia-current version number dependency. I'm going to add info on the ppa page about using nvidia-experimental-nnn and will now consider this issue as closed. |
@Lekensteyn BTW, since LibraryPath and XorgModulePath have to be adjusted for nvidia-current-updates in bumblebee.conf, do we need to keep it in the fallback probe patch ? Or maybe we should had the feature requested by Thulinma, i.e. auto-detect LibraryPath (and XorgModulePath then). What do you think about that ? What should Bumblebee auto-detect and set, what should be at the sole discretion of the user ? |
I modified the bumblebee.conf to accept the nvidia-experimental-XXXX, and an optirun command does work. But, a primusrun command doesn't. I don't get to find a similar primus.conf file :( |
You have to edit primusrun script to adjust libGLa and LD paths. |
After writing my issue, I got the answer here: http://steamcommunity.com/app/221410/discussions/0/846938350770109358/#c846939071079333610 |
@Lekensteyn So, LD_PATH auto-detect or patch removing ? |
It was decided to remove the patch for now on. An option could be to autodetect the driver at daemon start through an udev rule for example. |
@Lekensteyn Could we do something on this ? If I understand well, we're having more and more nvidia driver flavor on Ubuntu, all with different module names and library paths... How could we properly detect which one to use, or is there a wrapper fo all of them ? |
Oh, damn that is right. Now that the kernel module name is solved, we still have the paths (ModulePath and LibraryPath) that needs to be updated... checking things (I am on IRC in a minute). |
Other problem: bumblebee.conf file for blacklisting modules does not blacklist all these new flavors... |
nvidia-313 works just fine with Bumblebee if you set the conf files right |
@ArchangeGabriel can you try my changes in the bumblebee-3.1-proposed branch? (mainly the init thing). It should work, but I have not tested it since I am not using Ubuntu. @starks Yes, if you set the conf files right, but now there exist nvidia-310, nvidia-experimental-304 and whatnot. I have changed the initscript to "fix" this for ease of maintenance. |
Fixed by @Lekensteyn in bumblebee-3.1-proposed (except for blacklisting, which we do manually). |
I've open an issue tracker on this repo to have a common place for sharing ideas about packaging.
First thing to be disscussed here is the nvidia driver package. We currently depend on nvidia-current. But...
There is also nvidia-current-updates (which is quite supported inside Bumblebee), and the new nvidia-experimental, which appends the version number: it currently exists nvidia-experimental-304 and nvidia-experimental-310.
Problems:
However, I know that at least some users want to be able to choose the one they want within this list, and not be forced to use nvidia-current.
What do we have to do in order to support all those variations ?
The text was updated successfully, but these errors were encountered: