我刚刚安装了 Ubuntu 14.04,但我的屏幕分辨率设置得太低:我试图添加一个新的,但我一直得到
xrandr: Failed to get size of gamma for output default
我试过 :
$ xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 640 x 480, maximum 640 x 480
default connected primary 640x480+0+0 0mm x 0mm
640x480 73.0*
1024x768_60.00 (0x194) 63.5MHz
h: width 1024 start 1072 end 1176 total 1328 skew 0 clock 47.8KHz
v: height 768 start 771 end 775 total 798 clock 59.9Hz
(我在 Ubuntu 13.10 13.04 12.04 上没有遇到这个问题)
$ xrandr --newmode "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
xrandr: Failed to get size of gamma for output default
$ lspci | grep VGA
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 771/671 PCIE VGA Display Adapter (rev 10)
================================================================================= 我昨天更新了我的 Ubuntu 12.04,由于以下原因,我的屏幕分辨率被破坏了1204_HWE_EOL
我回到了 Ubuntu 14.04,获得良好屏幕分辨率的唯一方法是从恢复菜单启动,然后恢复启动。
答案1
我在分辨率方面也遇到了同样的问题。我使用的是 VirtualBox,分辨率只有一个选项。
- 我打开搜索栏,搜索附加驱动程序
- 接下来,我点击了使用 x86 虚拟化解决方案 - dkms 的客户机添加模块源
- 最后,我重新启动了运行 Ubuntu 的虚拟机。
一旦重新启动,分辨率就已经修复。
答案2
创建/编辑/etc/X11/xorg.conf
:
Section "Device"
Identifier "Generic Video Card"
VendorName "Silicon Integrated Systems [SiS]"
BoardName "771/671 PCIE VGA Display Adapter"
Busid "PCI:1:0:0"
Driver "vesa"
Screen 0
Option "UseFBDev" "true"
Option "DPMS"
Option "ShadowFB"
Option "MaxXFBMem"
VideoRam 262016
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
Option "backingstore" "true"
Option "AddARGBGLXVisuals" "True"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
Vendorname "Generic LCD Display"
Modelname "LCD Panel 1280x800"
HorizSync 20-107
VertRefresh 50-185
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "1280x768@60" 80.14 1280 1344 1480 1680 768 769 772 795 -hsync +vsync
modeline "1280x720@60" 74.48 1280 1336 1472 1664 720 721 724 746 -hsync +vsync
modeline "1280x800@60" 83.46 1280 1344 1480 1680 800 801 804 828 -hsync +vsync
Gamma 1.0
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Defaultdepth 24
SubSection "Display"
Depth 24
Virtual 1280 768
Modes "1280x768@60" "1280x720@60" "800x600@60" "1280x800@60" "800x600@56"
EndSubSection
EndSection
Section "Module"
Load "dri"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
Load "GLcore"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "int10"
Load "vbe"
Load "speedo"
Load "record"
EndSection
Section "DRI"
Mode 0666
EndSection
这对我有用。(看到Ubuntu 论坛上的这个帖子)