升级到 14.10 搞乱了分辨率

升级到 14.10 搞乱了分辨率

从 14.04 升级到 14.10 消除了 14.04 下使用的 1920x1080 屏幕设置。我使用英特尔显卡,没有额外的显卡。显示器被列为“内置显示器”,未检测类型。分辨率停留在 1024x768。尝试过这个:

xrandr --newmode "1920x1080"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -
hsync +vsync
xrandr --addmode default 1920x1080
xrandr --output default --mode 1920x1080
rebert@rebert-4790:~$ more xprofile
xrandr --newmode "1920x1080"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
xrandr --addmode default 1920x1080
xrandr --output default --mode 1920x1080

这会导致出现 1920x1080 选项,但在应用时会生成错误消息:

required virtual size does not fit available size: requested=(1920, 1080), minimum=(1024, 768), maximum=(1024, 768)

从非答案导入的编辑:

root@rebert-4790:/home/rebert# cat fixres
#!/bin/bash

# run this script, 
# then select the appropriate display size in the display manager

# remove HD mode in case it exists
##xrandr --rmmode extHD &> /dev/null
##xrandr --rmmode extSD &> /dev/null

# add HD as additional mode
modeParam=$(cvt 1920 1080 60 | grep Mode | sed -e 's/.*"/r1920/')
echo "modeParam=$modeParam"
echo ""
xrandr --newmode $modeParam && xrandr --addmode VGA2 r1920
xrandr --newmode \"$(cvt 1366 768 60 | grep Mode | sed -e 's/.*"/1366/')\" && xrandr --addmode VGA2 1366
xrandr --newmode \"$(cvt 1280 720 60 | grep Mode | sed -e 's/.*"/1280/')\" && xrandr --addmode VGA2 1280
xrandr --newmode \"$(cvt 1024 576 60 | grep Mode | sed -e 's/.*"/1024/')\" && xrandr --addmode VGA2 1024

Output:

root@rebert-4790:/home/rebert# ./fixres
modeParam=r1920  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

xrandr: Failed to get size of gamma for output default
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  16 (RRCreateMode)
  Serial number of failed request:  19
  Current serial number in output stream:  19
xrandr: Failed to get size of gamma for output default
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  16 (RRCreateMode)
  Serial number of failed request:  19
  Current serial number in output stream:  19
xrandr: Failed to get size of gamma for output default
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  16 (RRCreateMode)
  Serial number of failed request:  19
  Current serial number in output stream:  19
xrandr: Failed to get size of gamma for output default
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  16 (RRCreateMode)
  Serial number of failed request:  19
  Current serial number in output stream:  19

系统是Intel 4790。

最近报告的结果使用 HDMI 端口。我还没有在 DVI 上尝试过,但过去在两者上都得到了相同的结果。我知道英特尔图形支持从 14.10 开始消失,对吗?这就是这些问题的原因吗?我以后不太愿意进行不解决某些特定问题的升级,但使用 15.04 会更好吗?感谢您的回复,几个月来一直在为此苦苦挣扎。

答案1

#!/bin/bash

# run this script, 
# then select the appropriate display size in the display manager

# remove HD mode in case it exists
##xrandr --rmmode extHD &> /dev/null
##xrandr --rmmode extSD &> /dev/null

# add HD as additional mode
modeParam=$(cvt 1920 1080 60 | grep Mode | sed -e 's/.*"/r1920/')
xrandr --newmode $modeParam && xrandr --addmode VGA2 r1920
#xrandr --newmode \"$(cvt 1366 768 60 | grep Mode | sed -e 's/.*"/1366/')\" && xrandr --addmode VGA2 1366
#xrandr --newmode \"$(cvt 1280 720 60 | grep Mode | sed -e 's/.*"/1280/')\" && xrandr --addmode VGA2 1280
#xrandr --newmode \"$(cvt 1024 576 60 | grep Mode | sed -e 's/.*"/1024/')\" && xrandr --addmode VGA2 1024

答案2

如果您通过显示端口使用 VGA 适配器,系统将无法正确检测您的分辨率(不要问我为什么)。如果可能,请尝试使用 DVI 适配器。

当我遇到分辨率问题时解决了我的问题。

相关内容