ubuntu 改屏幕分辨率命令_如何使用 命令行 更改屏幕分辨率?

源址

Question :

i installed Ubuntu and the resolution of the desktop is so big that it only shows about 50% of the screen, but is shows up normal while using command line.

what should i type in the command line to change the desktop screen resolution?Answer 1 :

this worked for me :

Enumerate the names of all your video outputs, and the possible resolutions for those currently connected to a monitor :xrandr -q

Choose the name of the output you wish to change the resolution of, and :xrandr --output --mode 1024x768

Note : if running from a text terminal, that is not running in gfx environment, you'll have to add a -d :0 parameter, i.e :xrandr -d :0 -q

xrandr -d :0 --output --mode 1024x768Answer 2 :

Change screen resolution :

Create a new resolution using cvt$> cvt 1600 900 75

1600x900 74.89 Hz (CVT 1.44M9) hsync: 70.55 kHz; pclk: 151.25 MHz

Modeline "1600x900_75.00" 151.25 1600 1704 1872 2144 900 903 908 942 -hsync +vsync

Add a new mode to the existing list (newmode is the name and remaining portion is )$ sudo xrandr --newmode "1600x900_75.00" 151.25 1600 1704 1872 2144 900 903 908 942 -hsync +vsync

Find the current display$ xrandr | grep -e " connected [^(]" | sed -e "s/([A-Z0-9]+) connected.*/1/"

Virtual1

Add new display mode where is the output from the previous command$ sudo xrandr --addmode 1600x900_75.00

this will add the new resolution to your existing list of supported resolutions.you can then choose the right option from the "display settings" or following command$ xrandr --output Virtual1 --mode "1600x900_75.00"

to make this change permanent,$ cat> ~/.xprofile

sudo xrandr --newmode "1600x900_75.00" 151.25 1600 1704 1872 2144 900 903 908 942 -hsync +vsync

sudo xrandr --addmode Virtual1 1600x900_75.00

xrandr --output Virtual1 --mode "1600x900_75.00"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值