如何设置成大于显示器的最大分辨率?[已解决]
Tofloor
poster avatar
28******22@qq.com
deepin
2020-02-22 21:09
Author
本帖最后由 actan 于 2020-2-22 14:57 编辑

现在用向日葵远程办公中..蛋疼的是办公室显示器最大分辨率才1600*900,家里的电脑分辨率是1920*1080
全屏吧整个显示都发虚,不全屏吧桌面使用不全,小窗口看时间长眼睛疼
反正办公室显示器也没开着是黑屏,求大神指点怎么把办公室的deepin分辨率设置大些,最好和家里的一样
不知是否可行?


Reply Favorite View the author
All Replies
avatar
28******22@qq.com
deepin
2020-02-22 22:54
#1
本帖最后由 actan 于 2020-2-22 14:58 编辑

研究了一下,估计很简单,几条命令就搞定了,我还以为要给办公室电脑换个大屏呢

主要依赖于xrandr 和cvt 2和命令
xrandr用来查询,设置分辨率
cvt用来新建分辨率

1. 先运行 xrandr 列出来当前的显示信息
Screen 0: minimum 320 x 200, current 1600 x 900, maximum 16384 x 16384
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1600x900+0+0 (normal left inverted right x axis y axis) 443mm x 249mm
   1600x900      60.00*+  75.00  
   1920x1080     60.00    59.94  
   1280x1024     70.00    60.02  
   1440x900      59.90  
   1360x768      59.95  
   1152x864      75.00  
   1280x720      60.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    60.00    59.94  
   720x400       70.08  
DVI-0 disconnected (normal left inverted right x axis y axis)
DVI-1 disconnected (normal left inverted right x axis y axis)


可以看出来最高支持 16384 x 16384,不过我没试更大的,因为超过我现在的显示器最佳分辨率看着也不方便


2. 用cvt新建我想要的分辨率 1920*1080,刷新率设 60
cvt 1920 1080 60
返回分辨率设置信息:
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz


3.新建我想要的mode
xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
就是把xrandr --newmode 后面嗖上cvt返回的设置信息


4. 添加我想要的mode
xrandr --addmode HDMI-0 1920x1080_60.00
如果不报错即证明支持

5. 生效!
xrandr --output HDMI-0 --mode 1920x1080_60.00

HDMI-0是我想要输出的设置,第一步就查出来的

至此,完美!

Reply View the author
avatar
chufan886
deepin
2020-02-23 00:48
#2
hk@hk-PC:~$ xrandr
Screen 0: minimum 8 x 8, current 1024 x 768, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VGA1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00*
   800x600       60.32    56.25  
   848x480       60.00  
   640x480       59.94  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
  1920x1080_60.00 (0x14e) 173.000MHz -HSync +VSync
        h: width  1920 start 2048 end 2248 total 2576 skew    0 clock  67.16KHz
        v: height 1080 start 1083 end 1088 total 1120           clock  59.96Hz
hk@hk-PC:~$

大佬,我的解决不了,你指点一下,是不是不能用VGA线
Reply View the author
avatar
28******22@qq.com
deepin
2020-02-23 03:19
#3
https://bbs.deepin.org/post/189181
hk@hk-PC:~$ xrandr
Screen 0: minimum 8 x 8, current 1024 x 768, maximum 32767 x 32767
DP1 disconnect ...

VGA按理说应该是可以的,你是到哪一步不成功?
如果是向日葵远程的话最后一步以后不会立马看到效果,需要重新连接一次向日葵
Reply View the author