[Share Experiences] 命令行方式修改 UOS Deepin 分辨率 Resolved
Tofloor
poster avatar
zizdong
deepin
Forum Operations
2023-07-21 21:48
Author

转载自:李昊哲小课 

1.可以通过xrandr命令来设置屏幕分辨率。先查询当前分辨率,及当前支持的分辨率。

xrandr -q

显示结果如下:

Virtual1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00*+  60.00  
   2560x1600     59.99  
   1920x1440     60.00  
   1856x1392     60.00  
   1792x1344     60.00  
   1920x1200     59.88  
   1600x1200     60.00  
   1680x1050     59.95  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      60.02  
   1280x800      59.81  
   1152x864      75.00  
   1280x768      59.87  
   800x600       60.32  
   640x480       59.94  
Virtual2 disconnected (normal left inverted right x axis y axis)
Virtual3 disconnected (normal left inverted right x axis y axis)
Virtual4 disconnected (normal left inverted right x axis y axis)
Virtual5 disconnected (normal left inverted right x axis y axis)
Virtual6 disconnected (normal left inverted right x axis y axis)
Virtual7 disconnected (normal left inverted right x axis y axis)
Virtual8 disconnected (normal left inverted right x axis y axis)

xrandr -q当前分辨率为1024x768

9aa6e4668fe949aaae4be45dc53e9124.png

2.可以通过-s参数来设置为1920x1080

cvt 1920 1080

显示如下:

# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

注:1920 1080 即你想使用的分辨率 (modeline为扫描频率)

49b58b39c00741258bc8d18c53b0668f.png

xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

xrandr --addmode Virtual1 "1920x1080_60.00"

xrandr --output Virtual1 --mode "1920x1080_60.00"

xrandr -s 1920x1080

6653120d01a94bed9c417ab120b277c6.png

3.同样也可以通过-s 0,来设置为默认的分辨率

xrandr -s 0

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-07-21 21:51
#1

like

Reply View the author
浅色默
deepin
2023-07-21 22:31
#2

我之前的台式机有个显卡驱动装不上,就这么试过,用没问题,就是每次开机都需要输一遍,后来买个亮机卡,驱动装上就没弄过了

Reply View the author
hanzn-zzx
deepin
2023-07-21 22:41
#3

like

已收进整理 @pzm9012

Reply View the author
jjcui8595
Moderator
2023-07-26 23:47
#4

学习了

Reply View the author
TXOS-C.User
deepin
2023-07-27 04:15
#5
浅色默

我之前的台式机有个显卡驱动装不上,就这么试过,用没问题,就是每次开机都需要输一遍,后来买个亮机卡,驱动装上就没弄过了

每次进入系统后都要再输入的话,个人还是建议更新内核版本,这样就可以在控制中心选择相应的最佳分辨率了(集显没有问题,核显不一定适用)
Reply View the author
berners
deepin
2023-07-27 18:45
#6

假如我的最高支持到 1920x1440,但是我强行设置为2560x1600

会发生什么事?

Reply View the author
187******68
deepin
2023-07-27 20:33
#7
请教一下,无此命令,怎么处理?
Reply View the author
阿尼樱奈奈
Moderator
2023-07-27 21:42
#8
187******68
请教一下,无此命令,怎么处理?

你用的是V23,V23没有cvt这个命令

这个命令只有20.9有
截图_deepin-terminal_20230727135353.png

Reply View the author
安洛
deepin
2023-07-28 06:09
#9
berners

假如我的最高支持到 1920x1440,但是我强行设置为2560x1600

会发生什么事?

设置失败。即使使用某些欺骗手段绕过限制,如果硬件不支持也无法生效。

Reply View the author
昨夜的星辰
deepin
2023-07-30 07:10
#10

出现这种情况一般是显卡驱动没装好,虽然可以通过这个方法设置,但是比较麻烦,以前我也曾试过,驱动搞不好这玩意儿也搞不定,不能设置到显示器的正常分辨率,低一些的是可以的。

建议还是弄好驱动根上解决问题,当然这个方法可以做为应急

Reply View the author
dgmenghuan
deepin
2023-07-31 16:46
#11

tail

Reply View the author
mkuiwu
deepin
2023-08-03 00:19
#12

xrandr 可以设置分数缩放吗? 看了一下其他人的教程,我有2k和4k显示器,如果要设置不同的缩放,貌似还得计算,有没有经验分享一下。doubt

Reply View the author
lihaozhe
deepin
2023-08-03 01:15
#13

感谢官方的认可和推荐

Reply View the author
zizdong
deepin
Forum Operations
2023-08-03 01:29
#14
lihaozhe

感谢官方的认可和推荐

欢迎原作者来到deepin论坛like

Reply View the author
yanjuner
Super Moderator
2023-08-03 02:07
#15
lihaozhe

感谢官方的认可和推荐

哇哦~大佬

Reply View the author
mardou
deepin
2023-08-05 05:44
#16

这个是用于20。9版本上的,非常值得学习。收藏了。

Reply View the author
dgmenghuan
deepin
2023-08-07 23:25
#17

tail

Reply View the author
宇翱
deepin
2023-09-17 01:42
#18
187******68
请教一下,无此命令,怎么处理?

用gtf

Reply View the author