首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >设置默认分辨率系统宽

设置默认分辨率系统宽
EN

Ask Ubuntu用户
提问于 2016-06-30 10:08:56
回答 1查看 7.7K关注 0票数 4

我用的是Ubuntu 16.04

代码语言:javascript
复制
addicted@ADDICTED:~$ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      70.07 +  60.00  
   1920x1080     59.93* 
   1680x1050     59.95    59.88  
   1440x900      59.89  
   1400x1050     59.98  
   1360x768      59.96    59.80  
   1280x1024     60.02  
   1280x960      60.00  
   1152x864      70.00    60.00  
   960x540       59.99  
   840x525       60.01    59.88  
   800x600       72.19    60.32    56.25  
   720x450       59.89  
   700x525       59.98  
   680x384       59.96    59.80  
   640x480       59.94  
   512x384       70.07    60.00  
   400x300       72.19  
   320x240       60.05  
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)

我想设置1920x1080系统的分辨率与用户无关。

如果我删除~/.config/monitors.xml,我的分辨率就会更改为1024x768 (可能是因为1024x768是xrandr中的第一项)

如果我运行xrandr --output HDMI-0 --primary --mode 1920x1080,它将设置为1920x1080。但只是暂时的。

唯一的永久解决方案是使用~/.config/monitors.xml。但这也不会改变登录屏幕上的分辨率。

如何设置1920x1080分辨率系统宽?

到目前为止我尝试过的是:

  1. 更改/etc/lightdm/lightdm.conf &添加xrandr command.so,它将在lightdm服务启动时执行xrandr --output HDMI-0 --primary --mode 1920x1080。这不管用。
  2. 硬链接~/.config/monitor.xml到`/var/lib/lightdm/..config/monor.xml。由于跨设备链接无效,链接失败。
  3. 将模式添加到/etc/X11/xorg.conf中,这会导致问题。这在“输入设备不受支持”中失败,然后我不得不启动到恢复模式&重置那个xorg.conf。
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2016-07-04 19:24:37

sudo cp --preserve=timestamps /home/CorrectUser/.config/monitors.xml /var/lib/lightdm/.config/

这解决了我在登录屏幕上的分辨率。当我尝试硬链接而不是复制时,它没有工作。(硬链接操作失败)奇怪

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/793089

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档