您尚未登录。

#1 2013-06-23 23:09:40

uucp7z
会员
注册时间: 2013-05-27
帖子: 54

「求教」如何限制gnome啟動後使用特定分辨率?

RT,通過 vga 接口連接電視機後,默認會使用1920*1080的分辨率,但是,這時電視機會提示“模式不支持”!Windows 下測試後發現最高支持到1280*1024,再大就出錯!
請教,gnome 如何限制啟動後使用特定分辨率?

謝謝!

离线

#2 2013-06-23 23:51:47

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,469
个人网站

Re: 「求教」如何限制gnome啟動後使用特定分辨率?

我只会 xrandr。而且从来使用自动模式,没遇到过显示器不支持的情况。

离线

#3 2013-07-10 15:19:00

Aaron_Chen
马甲
注册时间: 2013-01-22
帖子: 43

Re: 「求教」如何限制gnome啟動後使用特定分辨率?

跟楼主情况类似。笔记本分辨率1366x768太低了。在单位接1920x1080显示器,在家接1920x1200显示器。用了个很土的办法,自己的情况够用了:
$ cat disp
#!/bin/bash
# Run cvt to determing newmode, then add newmode line below

sleep 15s
unset VGA
VGA=`xrandr | grep 1920 | awk '{print $1}'`
case $VGA in
    1920x1200)
    xrandr --newmode "1920x1200"  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync
    xrandr --addmode VGA1 "1920x1200"
    xrandr --output LVDS1 --off
    xrandr --output VGA1 --mode 1920x1200
        ;;
    1920x1080)
    xrandr --newmode "1920x1080"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
    xrandr --addmode VGA1 "1920x1080"
    xrandr --output LVDS1 --off
    xrandr --output VGA1 --mode 1920x1080
        ;;
    *)
esac
exit 0

e17桌面。让disp脚本在e17启动时自动启动。有大概10%的概率会切换分辨率失败,X桌面锁死。


马甲与本尊同在

离线

#4 2013-07-25 10:44:48

uucp7z
会员
注册时间: 2013-05-27
帖子: 54

Re: 「求教」如何限制gnome啟動後使用特定分辨率?

可以试试!

离线

页脚