我在尝试调整屏幕分辨率时遇到问题。我正在运行以下命令:
xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
xrandr --addmode eDP-1 1600x900_60.00
xrandr --output eDP-1 --mode 1600x900_60.00
前两个命令运行良好,但在最后一个命令中,我的显示屏冻结,迫使我按住电源按钮重新启动计算机。在我在计算机上运行更新之前,所有三个命令都运行良好。
我使用这篇文章作为这些命令的指南:https://askubuntu.com/questions/377937/how-to-set-a-custom-resolution
关于如何解决这个问题有什么建议吗?
以下是有关我的系统和我正在使用的平铺窗口管理器的一些信息:
[me]/me$ uname -a
Linux me 4.13.3-1-ARCH #1 SMP PREEMPT Thu Sep 21 20:33:16 CEST 2017 x86_64 GNU/Linux
[me]/me$ xmonad --version
xmonad 0.13
额外细节:
第一行的模式是通过运行获得的cvt 1600 900 60
,给出以下输出:
[me]/me$ cvt 1600 900 60
Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
xrandr
这是前两个命令之后的输出(请注意1600x900_60.00
我添加的新条目):
[me]/me$ xrandr
Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 8192 x 8192
eDP-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 310mm x 174mm
2560x1440 60.00*+
1920x1440 60.00
1856x1392 60.01
1792x1344 60.01
1600x1200 60.00
1400x1050 59.98
1280x1024 60.02
1280x960 60.00
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
800x600 60.00 60.32 56.25
700x525 59.98
640x512 60.02
640x480 60.00 59.94
512x384 60.00
400x300 60.32 56.34
320x240 60.05
1600x900_60.00 59.95
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)
这是我的驱动程序的一些信息:
[me]/me$ lspci
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (3) I218-LM (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #2 (rev e3)
00:1c.1 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3)
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
00:1f.6 Signal processing controller: Intel Corporation Wildcat Point-LP Thermal Management Controller (rev 03)
04:00.0 Network controller: Intel Corporation Wireless 7265 (rev 99)
答案1
xf86-video-intel
我设法通过安装 pacman 解决了这个错误libva-intel-driver
。以下是这些包的相关文档:https://01.org/linuxgraphics/community/xf86-video-intel和https://01.org/linuxmedia/vaapi
我还发现这个资源很有帮助:https://wiki.archlinux.org/index.php/Intel_graphics
我认为这个错误也可能相关:https://bbs.archlinux.org/viewtopic.php?pid=1623936#p1623936
另外,安装这些软件包后,我发现默认1600x900
情况下存在一种模式xrandr
,并且我不再需要为该分辨率创建新模式。所以我一直在使用它,这也避免了这个错误。