首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Ubuntu18.04LTS中将显示比例设置为150%?

如何在Ubuntu18.04LTS中将显示比例设置为150%?
EN

Ask Ubuntu用户
提问于 2019-11-12 16:00:33
回答 3查看 12.3K关注 0票数 3

我刚在我的15英寸(1920x1080)笔记本电脑上安装了ubuntu,看起来很小。它显示的东西就像我有一个更大的显示器。

在我的windows分区中,事情看上去很好,当我检查se祝贺时,我注意到显示缩放设置被设置为"150% (推荐)“。但是Ubuntu只允许我进行100%或200%的缩放,这是异常大的。

在googling时,每个人都建议使用以下命令:

代码语言:javascript
复制
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"

但这不是我的工作,我仍然只有100%和200%的比例设置。

在通用访问上设置“大文本”设置,会使事情变得更好,但它看起来并不完美,只会影响字体。

是否有实际解决问题的解决方案,而不是围绕这个问题(例如增加字体大小)?

EN

回答 3

Ask Ubuntu用户

发布于 2020-04-14 08:31:00

我也有同样的问题,并且用xrandr解决了它。我遵循以下步骤:

  1. 找出目前正在使用的分辨率。运行xrandr。它将列出所有可能的决议,并用星号(*)标记当前的决议。这是我的输出:
代码语言:javascript
复制
▶xrandr
Screen 0: minimum 320 x 200, current 2560 x 1600, maximum 16384 x 16384
eDP-1 connected primary 2560x1600+0+0 (normal left inverted right x axis y axis) 286mm x 179mm
   2560x1600     60.00*+  59.99    59.97  
   2560x1440     59.99    59.99    59.96    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.99    59.98    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     60.01    59.97    59.96    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
  1. xrandr -s 7设置所需的分辨率,其中7表示第一步显示的列表中的第8项(计数从0开始)。

这应该能胜任这份工作。要再次检查结果,您可以再次运行xrandr以验证星号已移动到数字7。这个答案是基于这段youtube视频 i找到的。

票数 1
EN

Ask Ubuntu用户

发布于 2019-11-12 16:43:58

我认为您可以使用gnome-tweak-tool修改很多东西。

安装时使用:

代码语言:javascript
复制
sudo apt update
sudo apt install gnome-tweak-tool

然后以tweaks的形式在搜索栏中搜索并打开它。

单击Fonts部分并修改您想要的任何可自定义的内容,例如文本缩放因子。

您还可以发现许多在Settings中通常不可见的高级定制,它对于自定义系统视图非常有用。

票数 0
EN

Ask Ubuntu用户

发布于 2019-11-12 17:16:13

你可以用克朗来做这个。

获取内置屏幕的标识符:xrandr --current,您应该得到如下内容:

代码语言:javascript
复制
LVDS-1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 277mm x 156mm
   1366x768      60.02*+
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 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)

所以现在我们知道LVDS-1是连接的,它是内置的屏幕(因为我没有外部监视器)。

现在只需缩放一下:xrandr --output LVDS-1 --scale 0.66x0.66

为什么是0.66?因为100%是150%的66%。

如果希望它在启动时运行,请将其添加到~/.Xsession中。

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

https://askubuntu.com/questions/1188205

复制
相关文章

相似问题

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