pipが上手くいかなかったことに端を発し、sudo apt dist-upgradeでOSのバージョンを切り替えた事でGUIの起動ができなくなった。
動作モデルは Raspberry Pi 3 Model B Rev 1.2
sudo raspi-config
からGUIへの切り替え、再起動は行ったがGUIで起動しない。
Wi-Fiには接続されている。
startx
や
xinit
を実行すると、
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.0-0.bpo.4-armmp armv7l Raspbian
Current Operating System: Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l
Kernel command line: coherent_pool=1M 8250.nr_uarts=1 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait splash plymouth.ignore-serial-consoles quiet
Build Date: 23 October 2023 05:03:02PM
xorg-server 2:1.20.4-1+deb10u10 (https://www.debian.org/support)
Current version of pixman: 0.36.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Thu Feb 14 15:00:01 2019
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/home/pi/.local/share/xorg/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
という文を吐き出して切り替わらない。
出力に書かれている通りのログファイルを見る。
[ 11482.952]
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[ 11482.952] Build Operating System: Linux 4.9.0-0.bpo.4-armmp armv7l Raspbian
[ 11482.952] Current Operating System: Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l
[ 11482.952] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait splash plymouth.ignore-serial-consoles quiet
[ 11482.953] Build Date: 23 October 2023 05:03:02PM
[ 11482.953] xorg-server 2:1.20.4-1+deb10u10 (https://www.debian.org/support)
[ 11482.953] Current version of pixman: 0.36.0
[ 11482.953] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 11482.953] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 11482.953] (==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Thu Feb 14 15:00:01 2019
[ 11482.953] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 11482.954] (==) No Layout section. Using the first Screen section.
[ 11482.954] (==) No screen section available. Using defaults.
[ 11482.954] (**) |-->Screen "Default Screen Section" (0)
[ 11482.954] (**) | |-->Monitor "<default monitor>"
[ 11482.955] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 11482.955] (**) | |-->Device "Allwinner A10/A13 FBDEV"
[ 11482.955] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 11482.955] (==) Automatically adding devices
[ 11482.955] (==) Automatically enabling devices
[ 11482.955] (==) Automatically adding GPU devices
[ 11482.955] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 11482.955] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 11482.955] Entry deleted from font path.
[ 11482.955] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 11482.955] Entry deleted from font path.
[ 11482.956] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 11482.956] Entry deleted from font path.
[ 11482.956] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
built-ins
[ 11482.956] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 11482.956] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 11482.956] (II) Loader magic: 0x1fdf80
[ 11482.956] (II) Module ABI versions:
[ 11482.956] X.Org ANSI C Emulation: 0.4
[ 11482.956] X.Org Video Driver: 24.0
[ 11482.956] X.Org XInput driver : 24.1
[ 11482.956] X.Org Server Extension : 10.0
[ 11482.958] (++) using VT number 1
[ 11482.964] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[ 11482.965] (II) no primary bus or device found
[ 11482.965] (II) LoadModule: "glx"
[ 11482.965] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 11482.980] (II) Module glx: vendor="X.Org Foundation"
[ 11482.980] compiled for 1.20.4, module version = 1.0.0
[ 11482.980] ABI class: X.Org Server Extension, version 10.0
[ 11482.980] (II) LoadModule: "fbturbo"
[ 11482.980] (WW) Warning, couldn't open module fbturbo
[ 11482.981] (EE) Failed to load module "fbturbo" (module does not exist, 0)
[ 11482.981] (EE) No drivers available.
[ 11482.981] (EE)
Fatal server error:
[ 11482.981] (EE) no screens found(EE)
[ 11482.981] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 11482.981] (EE) Please also check the log file at "/home/pi/.local/share/xorg/Xorg.0.log" for additional information.
[ 11482.981] (EE)
[ 11483.001] (EE) Server terminated with error (1). Closing log file.
Failed to load module "fbturbo" (module does not exist, 0)
No drivers available.
no screens found
抜粋すると、このようなことが書いてある。
検索をかけると同じ状況の質問が出てきた。リンク先にある方法を試す。(リンク先の方も解決はしていない?)
sudo apt-get install xserver-xorg-video-fbturbo
を実行。変化なし。
https://tomikyblog.com/raspberry-pi-os-stretch-to-buster/#toc3
この記事の解決方法を試す。
sudo mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf ~
を実行。変化なし。
https://w.atwiki.jp/takeone/pages/118.html
この記事の内容に沿って、/usr/share/X11/xorg.conf.d/99-fbturbo.confを確認。
# This is a minimal sample config file, which can be copied to
# /etc/X11/xorg.conf in order to make the Xorg server pick up
# and load xf86-video-fbturbo driver installed in the system.
#
# When troubleshooting, check /var/log/Xorg.0.log for the debugging
# output and error messages.
#
# Run "man fbturbo" to get additional information about the extra
# configuration options for tuning the driver.
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
EndSection
このファイルを全行コメント化するとよいとのことで、コメント化を行うとGUIが動いた。
sudo raspi-config
からデフォルト設定をGUIにすると、GUIで起動した。
リンク先に2D描画に対する懸念が書いてあるため今後何か問題になる可能性がある。