我的配置是在macbook上的virtualbox, 装的Nvidia的驱动.
https://gist.github.com/Akagi201/7b0f51189b411a0433bc
$ cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 349.16 (buildmeister@swio-display-x86-rhel47-06) Wed Apr 8 00:52:19 PDT 2015
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from data in "/etc/conf.d/gpm"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
可能是權限問題
xhost +
可能是沒安裝桌上型系統
可以重裝一下xorg3
設定檔沒弄好. 相關設定檔應該在 ./.xinxitrc 或下./.xprofile 裡面設定