debian分辨率自定义

一、通过xrandr手动添加

1.通过cvt 1920 1080查看console输出内容,获取modeline后面的部分,我这里是:"1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

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

3.xrandr --addmode Virtual1 "1920x1080_60.00",其中Virtual1是显示器,可以输入xrandr查看

但这种方法重启失效,可以写成脚本放在桌面开机手动启动:

#!/bin/bash

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"

二、添加/etc/X11/xorg.conf

添加 /etc/X11/xorg.conf 文件,将此模式保存为默认分辨率

$ sudo gedit /etc/X11/xorg.conf

粘贴以下内容:

Section "Monitor"

Identifier "Configured Monitor"

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

Option "PreferredMode" "1920x1080_60.00"

EndSection

Section "Screen"

Identifier "Default Screen"

Monitor "Configured Monitor"

Device "Configured Video Device"

EndSection

Section "Device"

Identifier "Configured Video Device"

EndSection

保存重启后默认使用设置分辨率

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值