在Debian虚拟机中设置分辨率可以通过多种方法实现,以下是一些常见的方法:
xrandr -q
这将显示当前所有可用的显示器和分辨率。
<width>
和<height>
替换为你想要设置的分辨率):xrandr --output HDMI2 --mode <width>x<height>
例如,设置为1920x1080:
xrandr --output HDMI2 --mode 1920x1080
sudo Xorg -configure
vim
)编辑生成的xorg.conf
文件:sudo vim /etc/X11/xorg.conf
Monitor
和Screen
部分添加或修改分辨率设置,例如: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
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>