Linux

Gentoo Linux openbox dual-GPU configuration (intel-nvidia)

System version: Gentoo 2.2 Kernel: Gentoo-sources 3.10.4 Configure the kernel Add the following line to /etc/portage/make.conf: VIDEO\_CARDS="nvidia intel" Conf

System version: Gentoo 2.2 Kernel: Gentoo-sources 3.10.4

  1. Configure the kernel

Add the following line to /etc/portage/make.conf:

VIDEO_CARDS="nvidia intel"

Configure only the Intel card in the kernel:

Device Drivers ---> Graphics support ---> Intel 8xx/9xx/G3x/G4x/HD Graphics [*] Enable modesetting on intel by default

  1. Install the required software

emerge -avt bumblebee

Add the required keywords and flags beforehand.

  1. Modify /etc/conf.d/vgl

Find the "XAUTHORITY" line, comment it out, and change it to:

XAUTHORITY=ps ww -C X,Xorg -o args= --sort=-stime | cut -d " " -f 6

  1. Add bumblebee to the system startup

rc-update add bumblebee default

  1. Test

glxspheres

If the discrete GPU is not enabled, the result is roughly 53M pixels per second.

/etc/init.d/bumblebee start # Start the bumblebee service

optirun glxspheres

At this point, with roughly 150M pixels per second, the test has succeeded.

  1. Usage

$ optirun *

N
norvyn

独立 iOS 开发者,写字的人。在一座有海的城市,慢慢地做一些小而确定的东西。An independent iOS developer and writer — slowly making small, certain things in a city by the sea.

评论Comments

加载中…Loading…

留下评论Leave a comment