剛買了一台裝有 NVidia GForce N430 的新計算機,並安裝了全新的 Ubuntu 11.10 amd64。
我還使用“附加驅動程式”apt 啟用了 nvidia 驅動程序,並且在“正常”模式下一切正常,但是,我想旋轉螢幕,但無法通過。
IIRC,在先前的安裝中,UI 中曾經有一個用於旋轉的條目nvidia-settings
,但在這個版本中沒有。
我正在使用兩個螢幕,並且願意將它們順時針旋轉 90 度(縱向與橫向)。
我正在轉儲我的 X11/xorg.cong 文件,如果有人知道在哪裡添加該Option "RandRRotation" "True"
行,我將不勝感激。
順便一提,
$ xrandr -o right
列印出來
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 153 (RANDR)
Minor opcode of failed request: 2 (RRSetScreenConfig)
Serial number of failed request: 14
Current serial number in output stream: 14
/etc/X11/xorg.conf 的內容
$ cat /etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 280.13 (buildd@allspice) Thu Aug 11 20:54:45 UTC 2011
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Unknown"
ModelName "Philips 225P"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
Option "DPMS"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Philips 225P"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 430"
BusID "PCI:4:0:0"
Screen 1
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 430"
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
# Removed Option "TwinView" "0"
# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "metamodes" "DFP-0: nvidia-auto-select +1680+0, DFP-1: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
答案1
您需要在設備部分之後添加以下行,其中驅動程式在 xorg.conf 檔案中列為“nvidia”
Option "RandRRotation" "on"
例子:
Section "Device"
Identifier "Default Device"
Driver "nvidia"
Option "RandRRotation" "on"
EndSection
儲存文件,然後登出並重新登入以重新啟動 Xserver。
使用以下 xrandr 指令來旋轉螢幕;
xrandr -o left
向左旋轉、
xrandr -o right
向右旋轉、
xrandr -o normal
返回正常畫面、
xrandr -o inverted
上下翻轉畫面。
答案2
我在 Gist 創建了一個適用於 Lenovo Yoga 2 的腳本,因此您必須調整標識符字串:
旋轉螢幕.sh(在 gist.github.com 上)