织梦CMS - 轻松建站从此开始!

欧博ABG官网-欧博官方网址-会员登入

Force startx to run X in a specific resolution an

时间:2025-08-31 09:24来源: 作者:admin 点击: 7 次
Before saying anything, I should recommend you backup xorg.conf file using the command sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup Next,

Before saying anything, I should recommend you backup xorg.conf file using the command

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup

Next, to make any changes it is recommended to stop Xorg (which will bring you to a text-only screen) using the command

sudo /etc/init.d/lightdm stop

(Hopefully you are running Ubuntu 12.04 or 11.10. If not, just substitute lightdm for gdm or kdm if running kde). After that, you can edit your configuration file via

sudo nano /etc/X11/xorg.conf

From there, look for the Subsection Display, then navigate down to modes where you will type in your custom resolution with the refresh rate. Then save it, and restart X.

If none of that worked, and I completely screwed your xorg over, you can restore the backup (thank god for backups) using the command

sudo /etc/X11/xorg.conf_backup /etc/X11/xorg.conf

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2025-09-03 18:09 最后登录:2025-09-03 18:09
栏目列表
推荐内容