Bumblebee-Project / Bumblebee

Bumblebee daemon and client rewritten in C
http://www.bumblebee-project.org/
GNU General Public License v3.0
1.3k stars 142 forks source link

Feature request: auto detect graphics driver name #874

Open TheTesla opened 7 years ago

TheTesla commented 7 years ago

Installing bumblebee generates a bumblebee.conf with: KernelDriver = nvidia-current I think it would be better to say: KernelDriver = auto having a script/program search for the right name of the driver.

bluca commented 7 years ago

I think this is much better handled by the driver packages themselves - in Debian we ship modprobe aliases so that nvidia-current is always correct.

bluca commented 7 years ago

But feel free to send a PR to implement it if you feel like it would be useful

TheTesla commented 7 years ago

On Ubuntu 16.04.2 I tried:

stefan@stefan-ThinkPad-W520:~$ modprobe -R nvidia-375
nvidia_375
stefan@stefan-ThinkPad-W520:~$ modprobe -R nvidia-current
modprobe: FATAL: Module nvidia-current not found in directory /lib/modules/4.4.0-78-generic

Is this good? Maybe Ubuntu is not providing the nvidia-current alias?

TheTesla commented 7 years ago

I found out, it works also, if I write nvidia.

bluca commented 7 years ago

That's the default value in the PPA and in newer Ubuntu versions, but from my experience on Ubuntu that might or might not work depending on the packages versions, unfortunately.