背景:
ubuntu16.04 在远程anydesk登录过程中,操作太卡,但连上显示屏后又正常了。
解决方案
- 物理方式欺骗:购买假负载HDMI dummy plug虚拟显示器
- 软件方式欺骗:安装虚拟显示器(非常有风险,劝退)
sudo apt-get install xserver-xorg-video-dummy
配置虚拟显示器
sudo gedit /usr/share/X11/xorg.conf.d/xorg.conf
Section "Monitor"
Identifier "Monitor0"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
# https://arachnoid.com/modelines/
# 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
EndSection
Section "Device"
Identifier "Card0"
Driver "dummy"
VideoRam 256000
EndSection
Section "Screen"
DefaultDepth 24
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Depth 24
Modes "1920x1080_60.00"
EndSubSection
EndSection
最后重启即可
期间遇到的问题
-
安装了xserver-xorg-core-hwe-16.04,且配置文件不正确导致系统无法检测到显示器,无法进入桌面系统。
可以apt-get remove xserver-xorg-core包 以及 删除xorg.conf里的内容。重启后进入桌面端再来操作一次即可。 -
操作更加有错误,期间更是遇到了iwlwifi 0000:01:00.0: BIOS contains WGDS but no WRDS的wifi驱动问题。
bios的boot恢复原来的设置后,可以重新进入了tty的界面,我以为像之前一样卸载所有xorg包后,再安装xserver-xorg-video-dummy 、xserver-xorg-core-hwe-16.04、xserver-xorg-core、xorg openbox就可以了。这一次却在登录ubuntu系统时发现只能bios控制键盘,却在系统里面无法控制键盘,看来是xserver-xorg-input-all没有装。我也是醉了,搞崩了这么多次系统,最后只能重装,这些问题以后怎么解决吧。