Настроил официальный NVIDIA Optimus. Тем кто зашёл в эту тему из будущего объясняю что в 2013 году он работал двумя способами: полноценно неофициально (Bumblebee) и неполноценно официально (драйвер 319.xx, ядро Linux 3.9, X-Server 1.13, Xrandr 1.4). Я настроил второй способ.
- openSUSE 12.2 x86_64
- Linux 3.10.20
- X-Server 1.14.3.901
- xf86-video-modesetting 0.8.0
- Xrandr 1.4.2
- NVIDIA 331.20
/etc/X11/xorg.conf
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia" 0 0
Inactive "intel"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Monitor "Monitor0"
Option "UseDisplayDevice" "none"
SubSection "Display"
Modes "nvidia-auto-select"
EndSubSection
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
/etc/X11/xinit/xinitrc
#!/bin/bash
#
# Sample .xinitrc for SuSE Linux
# This script is called from 'startx' when you start an X session
#
#
# In case everything goes wrong, we at least fall back to a plain xterm
#
failsafe="xterm -ls -T Failsafe -geometry 80x24-0-0"
trap "exec $failsafe" EXIT SIGHUP SIGINT SIGPIPE SIGTERM SIGIO
#
# Some bash (1 and 2) settings to avoid trouble on a
# failed program call.
#
set +e > /dev/null 2>&1
set +u > /dev/null 2>&1
set +o posix > /dev/null 2>&1
...
# day planer deamon
# pland &
#
# finally start the window manager
#
# Вставил сюда команды из руководства NVIDIA Optimus
#
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
unset WINDOW_MANAGER STARTUP
exec $WINDOWMANAGER ${1+"$@"}
# call failsafe
exit 0
Иногда фризы. Если комп не трогать, то их нет, пока что они возникали только если я двигал мышкой и клавиатурой. Без Optimus их нет. Но их можно победить. Раньше жал Ctrl-ALT-F1 и Ctrl-Alt-Delete, теперь Ctrl-Alt-F1 и Ctrl-Alt-F7, и всё работает дальше.