Closed ehelms closed 9 years ago
AFAIK the rpmfusion nvidia packages do not support optimus hybrid graphics laptops. They are only suitable for desktop PCs. I created my own solution called "bumblebee-nvidia"
It is mentioned in the instructions you referred to.
Also, just to be thorough in my explanation. The bumblebee-nvidia package referred to handles the client and the kernel module. It is rebuilt by systemd every time there is a kernel update and you reboot into the new kernel. (/usr/sbin/bumblebee-nvidia)
@gsgatlin to make sure I understand, bumble-nvidia is essentially the same as the RPMfusion packages in how it works except that its built with the hybrid graphics support? I did install that package, but sounds like I made the bad assumption that it was simply some sort of "driver" for Bumblebee to use the nvidia drivers installed from somewhere else.
Hmnn. Well, it doesn't work the same way. Its not pre compiled or anything. It runs the "blob" with special arguments and safeguards to keep nvidia's installer from trashing the system libraries. It also blacklists nvdia and nouveau which is required. I would suggest you remove the rpmfusion akmod and reboot. Then if its still not working you can run:
bumblebee-nvidia --check
And it may give clues as to what has gone wrong.
This should give clues about what has gone wrong.
I ran: yum remove xorg-x11-drv-nvidia
and rebooted. So now I have:
[ehelms@war Downloads]$ yum list installed | grep nvidia
bumblebee-nvidia.x86_64 346.47-1.fc21 @bumblebee-nonfree
kmod-nvidia-3.19.7-200.fc21.x86_64.x86_64 1:346.47-2.fc21 @/kmod-nvidia-3.19.7-200.fc21.x86_64-346.47-2.fc21.x86_64
[ehelms@war Downloads]$
Same issue running optirun or primusrun.
[ehelms@war Downloads]$ bumblebee-nvidia --check
nvidia.ko compiled into in the kernel tree ok.
modinfo output for NVIDIA:
filename: /lib/modules/3.19.7-200.fc21.x86_64/kernel/drivers/video/nvidia.ko
alias: char-major-195-*
version: 346.47
supported: external
license: NVIDIA
alias: pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias: pci:v000010DEd00000AA3sv*sd*bc0Bsc40i00*
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: drm
vermagic: 3.19.7-200.fc21.x86_64 SMP mod_unload
parm: NVreg_Mobile:int
parm: NVreg_ResmanDebugLevel:int
parm: NVreg_RmLogonRC:int
parm: NVreg_ModifyDeviceFiles:int
parm: NVreg_DeviceFileUID:int
parm: NVreg_DeviceFileGID:int
parm: NVreg_DeviceFileMode:int
parm: NVreg_RemapLimit:int
parm: NVreg_UpdateMemoryTypes:int
parm: NVreg_InitializeSystemMemoryAllocations:int
parm: NVreg_UsePageAttributeTable:int
parm: NVreg_MapRegistersEarly:int
parm: NVreg_RegisterForACPIEvents:int
parm: NVreg_CheckPCIConfigSpace:int
parm: NVreg_EnablePCIeGen3:int
parm: NVreg_EnableMSI:int
parm: NVreg_MemoryPoolSize:int
parm: NVreg_RegistryDwords:charp
parm: NVreg_RmMsg:charp
parm: NVreg_AssignGpus:charp
Check bbswitch kernel module...
bbswitch is loaded into the current kernel ok.
All checks completed successfully! NVIDIA driver appears to have compiled ok.
Ok, remove any rpmfusion nvidia driver such as xorg-x11-drv-nvidia-kmodsrc which I did not see before. There should be no rpms from rpmfusion that do driver stuff. Hope we are clear on that.
If it still fails after a reboot run the check again. If it gives the everything is ok message then please provide logs on pastebin or fpaste.org or similar sites from
/var/log/messages
and
/var/log/Xorg.8.log
after trying to run
optirun glxgears -info
and
primusrun glxgears -info
remove kmod-nvidia
Here is what it looks like on my box. [gsgatlin@t540p ~]$ rpm -qa | grep nvidia bumblebee-nvidia-346.47-1.fc21.x86_64 [gsgatlin@t540p ~]$
The RPMFusion site was a little misleading, I had to do a yum remove kmod-nvidia*
to get it to remove that package. And I am happy to report, everything works after I also reinstalled the bumlebee-nvidia package and rebooted! @gsgatlin thanks so much for your help!
I would suggest adding a note (and if its there and I missed it, shame on me) to the Fedora wiki page to remove the nvidia drivers and to not install them.
Yeah. I'm going to try to figure out how to edit that site next week. I'll make sure to add that. I actually didn't write any of it. I kind of suck at documentation. But out techies wiki has died at NCSU (php 5.6 killed it) so I'll also try to recreate the docs in wordpress. But first I'll try to get the fedora wiki updated. Glad its working for you.
Was this developed at NCSU?
Well, I mostly worked on it in my spare time because there was no RHEL/fedora solution at the time for my laptop. And I did not want to have to compile bumbleee, primus, etc by hand every time I re-install. And the person who ran install.linux.ncsu.edu at the time did not object to my placing yum repos there. I am required to spend some time at my job to develop Linux desktop solutions (chromium, firefox from rawhide, etc) and laptops are pretty important these days. So we'll just says its that. Mostly we have to worry about stuff like openAFS on Linux and lots of closed source software. OpenAFS is another of those "out of tree kernel modules" things. Cheers.
Fedora 21
Linux war.eagle 3.19.7-200.fc21.x86_64 #1 SMP Thu May 7 22:00:21 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
baseboard-manufacturer: LENOVO baseboard-product-name: 20EGS0R600 baseboard-version : Not Defined system-manufacturer : LENOVO system-product-name : 20EGS0R600 system-version : ThinkPad W541 bios-vendor : LENOVO bios-version : GNET71WW (2.19 ) bios-release-date : 02/05/2015
optirun (Bumblebee) 3.2.1 Copyright (C) 2011 The Bumblebee Project License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
[root@war Diablo III]# yum list installed | grep nvidia akmod-nvidia.x86_64 1:346.47-2.fc21 @rpmfusion-nonfree-updates bumblebee-nvidia.x86_64 346.47-1.fc21 @bumblebee-nonfree kmod-nvidia-3.19.7-200.fc21.x86_64.x86_64 1:346.47-2.fc21 @/kmod-nvidia-3.19.7-200.fc21.x86_64-346.47-2.fc21.x86_64 xorg-x11-drv-nvidia-kmodsrc.x86_64 1:346.47-1.fc21 @rpmfusion-nonfree-updates
Issue
I followed https://fedoraproject.org/wiki/Bumblebee to install and configure Bumblebee. I also installed the RPM fusion akmod-nvidia drivers to the same version as the Bumblebee client. Whenever I attempt to either test
vblank_mode=0 primusrun glxspheres
or run Diablo 3/Battlenet (optirun wine Diablo III.exe) I end up with a core dump.journalctl
dmesg
Xorg.8.log