Help getting the official Optimus support working
A while back, I had NVIDIA's official Optimus support working. My xorg.conf looked like this and my .xinitrc looked like this.
I had xorg-xrandr, xorg-xinit, xf86-video-modesetting, and nvidia installed.
However, I went back to just using Intel for a while, and when I recently tried to use Nvidia again, it won't work. The only thing changed is my xorg.conf, which now looks like this as per the updated Optimus page here. When I attempt to start X, I get the "no screens found" error. The issue sees to be something involving "no matching config section for screen 0"
Has this happened to anyone else? Any suggestions?
EDIT: Just found something interesting in my Xorg.0.log, that happens before any errors:
(WW) Warning, couldn't open module intel
EDIT 2: Never mind; that seems to have been an issue with a remnant of the intel driver. Just reinstalled; now I'm noticing this:
(EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0
EDIT 3: After adding Option "UseDisplayDevice" "none" after Option "AllowEmptyInitialConfiguration, that error is gone. Now I'm getting
(EE) Screen 0 deleted because of no matching config section
Edited 31 Mar 2014. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 10 · 100% up
- Kind
- Text
- ID
- 21rye2
18 comments
Have you tried installing bumblebee?
community/bumblebee 3.2.1-3
NVIDIA Optimus support for Linux through VirtualG
Bumblebee works great for me. Been using it a while.
I had a similar error to you (Op) when trying to use bumblebee with bbswitch. This fixed it for me:
Quoting from: https://wiki.archlinux.org/index.php/bumblebee
'"Failed to initialize the NVIDIA GPU at PCI:1:0:0 (GPU fallen off the bus)
add rcutree.rcu_idle_gp_delay=1 to the GRUB_CMDLINE_LINUX_DEFAULT parameter located in /etc/default/grub (don't forget the # grub-mkconfig -o /boot/grub/grub.cfg).'
I am not sure if this kernel parameter workaround fixes a bug specific to bumblebee or not. More info here: https://github.com/Bumblebee-Project/Bumblebee/issues/455
No, I have no interest in using a third-party solution. I don't strictly need the Optimus support and I don't like using third-party hacks when there's supposed to be official support.
Even if you don't use bumblebee, the wiki entry has relevant information for resolving dependencies. Namely, reinstalling all necessary packages at once. https://wiki.archlinux.org/index.php/Bumblebee
Use intel instead of modesetting
nvidia-libgl and mesa-libgl are conflicting packages. What you suggest is impossible.
I have
xf86-video-intel,intel-dri,nvidia, andmesa-libglall happily installed together. I recall having to (re)install these together in order to avoid dependency problems.Well, that's how every other distro handles it