Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia Optimus on OpenBox (x86_64)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Duralex
n00b
n00b


Joined: 11 May 2013
Posts: 1

PostPosted: Sat May 11, 2013 10:28 pm    Post subject: Nvidia Optimus on OpenBox (x86_64) Reply with quote

Like a lot of other people with Optimus tech in their laptop I had been trying to desperately get bumblebee to function[/code] but nothing seemed to be working (I tried both vgl and primus but both stubbornly output something along the lines that the display could not be opened no matter how many solutions I tried). While scouring the net for solutions I actually came across an article in Phoronix article mentioning that starting with version 319.12, Nvidia actually supports this setup through RandR 1.4:

http://us.download.nvidia.com/XFree86/Linux-x86_64/319.17/README/randr14.html

Unfortunately, other than the xorg.conf setup it provides, the rest is rather vague. Here's how I got it working:

First make sure you have the following in in your package.keywords and emerge them:

Code:

>=x11-drivers/nvidia-drivers-319.17 ~amd64
>=x11-apps/xrandr-1.4.0 ~amd64
>=sys-kernel/gentoo-sources-3.9.1 ~amd64
>=x11-base/xorg-server-1.14.1 ~amd64
>=x11-proto/inputproto-2.3 ~amd64
>=x11-base/xorg-drivers-1.14 ~amd64
=x11-drivers/xf86-video-modesetting-0.6.0 ~amd64


You might have to change your profile to developer to be able to grab the latest gentoo source and you will need to use layman to add an overlay such as init6 for the latest Nvidia drivers (at least 319.12 should work but I'm using 319.17).

When you are configuring your kernel you have to make sure that you have:
Code:

Device Drivers --->
  <*> /dev/agpgart (AGP Support) --->
    <*>  Intel 440LX/BX/GX, I8xx and E7x05 chipset support
  <*> Intel 8xx/9xx/G3x/G4x/HD Graphics
  [*]   Enable modesetting on intel by default


I placed the xrandr lines from their guide in my autostart.sh (I use openbox) but it should work in .Xinitrc.

Also when you are debugging the setup you might want to have another computer handy. That way you can ssh into the system you are setting up with X forwarding so you can start the Xserver remotely and see the output of xrandr (it will not show up in the Xorg log and if Xorg locks you can then gracefully reboot the system).

Using these steps and those provided in NVIDIA's guide I got Optimus working on an Xotic Force 1762 with a 680M. Good luck :).
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1566
Location: U.S.A.

PostPosted: Tue May 14, 2013 4:15 am    Post subject: Reply with quote

nvidia-drivers-319.17 is in the main portage tree.

Thanks for sharing the tips. :)
_________________
pjp wrote:
I didn't misquote you, I just misunderstood you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum