昨晚在 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五位恩人。