Ubuntu16.04的图形化界面无法启动问题

昨晚在 Ubuntu 下试图安装笔记本触控板的驱动的时候,突然 Ubuntu 的图形化界面不见了,尝试了 Ctrl + Alt + F1、F2、F3...无果,又在一些博客的指导下尝试在命令行使用 startx 命令,也以 error 1 结束。

自己看了很多博客后觉得有可能是图形化界面被破坏了,准备重装图形化界面或者重装系统。在询问了多位高人之后,最终在 LHT 偶像的帮助下通过查看日志的方式发现 /etc/X11/xorg.conf.d/50-synaptics.conf 在昨晚有了变动,vim 打开后发现里面内容被修改,在 GitHub 上竟然找到了,直接将文件内容进行替换问题就解决了。

现将 50-synaptics.conf 的内容贴在这里:

 1 Section "InputClass"
 2     Identifier "touchpad custom settings"
 3     Driver "synaptics"
 4     MatchIsTouchpad "on"
 5 # This option is recommend on all Linux systems using evdev, but cannot be
 6 # enabled by default. See the following link for details:
 7 # http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
 8     MatchDevicePath "/dev/input/event*"
 9     Option "VertScrollDelta" "-111"
10     Option "HorizTwoFingerScroll" "0"
11     Option "VertEdgeScroll" "0"
12     Option "PalmDetect" "1"
13     Option "PalmMinWidth" "5"
14     Option "PalmMinWidth" "80"
15     Option "FingerLow" "10"
16     Option "CoastingSpeed" "10"
17 EndSection

再次感谢这位分享者(https://github.com/elin-y/thinkpad-t460-ubuntu-16.04/blob/master/etc/X11/xorg.conf.d/50-synaptics.conf),以及从昨天到今天花时间耐心帮助我的 LHT、TY、MZX、MX、WJY五位恩人。