FreeSandal 樹莓派, 樹莓派之學習, 樹莓派之教育 【鼎革‧革鼎】︰ RASPBIAN STRETCH 《四‧二》 2017-10-22 | 懸鉤子 | 發表迴響 為了方便觀察 X Window 啟動錯誤,且先安裝 sudo apt install xserver-xorg-legacy ,修改預設值︰ 1 pi@raspberrypi:~ $ more /etc/X11/Xwrapper.config 2 # Xwrapper.config (Debian X Window System server wrapper configuration file) 3 # 4 # This file was generated by the post-installation script of the 5 # xserver-xorg-legacy package using values from the debconf database. 6 # 7 # See the Xwrapper.config(5) manual page for more information. 8 # 9 # This file is automatically updated on upgrades of the xserver-xorg-legacy 10 # package *only* if it has not been modified since the last upgrade of that 11 # package. 12 # 13 # If you have edited this file but would like it to be automatically updated 14 # again, run the following command as root: 15 # dpkg-reconfigure xserver-xorg-legacy 16 17 #allowed_users=console 18 19 needs_root_rights=yes 20 allowed_users=anybody 21 pi@raspberrypi:~ $ 在確定 lightdm 當下組構後︰ 1 pi@raspberrypi:~ $ /usr/sbin/lightdm --show-config 2 [Seat:*] 3 B greeter-session=pi-greeter 4 B greeter-hide-users=false 5 A session-wrapper=/etc/X11/Xsession 6 B autologin-user=pi 7 8 Sources: 9 A /usr/share/lightdm/lightdm.conf.d/01_debian.conf 10 B /etc/lightdm/lightdm.conf 11 pi@raspberrypi:~ $ 啟動 lightdm.service systemd 服務,果以失敗告終︰ 1 pi@raspberrypi:~ $ sudo systemctl start lightdm.service 2 pi@raspberrypi:~ $ sudo systemctl status lightdm.service 3 ● lightdm.service - Light Display Manager 4 Loaded: loaded (/lib/systemd/system/lightdm.service; enabled; vendor preset: enabled 5 Active: failed (Result: exit-code) since Fri 2017-10-20 17:05:45 CST; 2s ago 6 Docs: man:lightdm(1) 7 Process: 709 ExecStart=/usr/sbin/lightdm (code=exited, status=1/FAILURE) 8 Process: 705 ExecStartPre=/bin/sh -c [ "$(cat /etc/X11/default-display-manager 2>/dev/null)" 9 Main PID: 709 (code=exited, status=1/FAILURE) 10 11 10月 20 17:05:45 raspberrypi systemd[1]: lightdm.service: Main process exited, code=exited 12 10月 20 17:05:45 raspberrypi systemd[1]: lightdm.service: Unit entered failed state. 13 10月 20 17:05:45 raspberrypi systemd[1]: lightdm.service: Failed with result 'exit-code' 14 10月 20 17:05:45 raspberrypi systemd[1]: lightdm.service: Service hold-off time over, scheduling 15 10月 20 17:05:45 raspberrypi systemd[1]: Stopped Light Display Manager. 16 10月 20 17:05:45 raspberrypi systemd[1]: lightdm.service: Start request repeated too quickly 17 10月 20 17:05:45 raspberrypi systemd[1]: Failed to start Light Display Manager. 18 10月 20 17:05:45 raspberrypi systemd[1]: lightdm.service: Unit entered failed state. 19 10月 20 17:05:45 raspberrypi systemd[1]: lightdm.service: Failed with result 'exit-code' 20 pi@raspberrypi:~ $ 為明原因,因此用 xinit 直接執行 X11/Starting Sessions 也。 1 pi@raspberrypi:~ $ xinit /usr/bin/startlxde-pi 2 3 4 X.Org X Server 1.19.2 5 Release Date: 2017-03-02 6 X Protocol Version 11, Revision 0 7 Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian 8 Current Operating System: Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l 9 Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=800 bcm2708_fb 10 Build Date: 18 October 2017 04:55:30PM 11 xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support) 12 Current version of pixman: 0.34.0 13 Before reporting problems, check http://wiki.x.org 14 to make sure that you have the latest version. 15 Markers: (--) probed, (**) from config file, (==) default setting, 16 (++) from command line, (!!) notice, (II) informational, 17 (WW) warning, (EE) error, (NI) not implemented, (??) unknown. 18 (==) Log file: "/var/log/Xorg.0.log", Time: Fri Oct 20 17:06:44 2017 19 (==) Using system config directory "/usr/share/X11/xorg.conf.d" 20 modprobe: FATAL: Module g2d_23 not found in directory /lib/modules/4.9.41-v7+ 21 xf86TslibControlProc 22 xf86TslibControlProc 23 /usr/lib/xorg/Xorg: symbol lookup error: /usr/lib/xorg/modules/input/tslib_drv.so: undefined 24 xinit: giving up 25 xinit: unable to connect to X server: Connection refused 26 xinit: server error 27 pi@raspberrypi:~ $ 再加上 python3 ~/kivy/examples/demo/pictures/main.py ,運作正常。 當真懸疑的很呦! 嘗聞樹莓派論壇曾經有人談起︰ Boot: ‘Failed to start Light Display Manager.’ Tue Feb 23, 2016 12:09 pm Yesterday I started my RasPi 2 and it booted up normally, but then it shows the text ‘[FAILED] Failed to start Light Display Manager. See “systemctl status lightdm.service” for details.’ The result can be found here: https://www.dropbox.com/s/e1kaqldzo9hz9 … 9.jpg?dl=0. ‘journalctl -u lightdm’ returns ‘No journal �les were found.’. The internet didn’t help so I hope some of you guys can help me out. 那時不以為意,誰知眼前就遇之矣? 竟然換個螢幕就 OK 了呦◎ .
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages6 Page
-
File Size-