After updating to the latest pi os (bullseye lite 22-09-2022) and testing it on several pi 4Bs, I'm having an issue where the x server crashes if anything is plugged into one of the USB ports. Nothing is otherwise connected to the pi except for a DSI screen 480*800 (the issue doesn't affect HDMI) that I've been using for a few years now without issue. I tried a beefy 3A USB-C power supply and a supply through GPIO pins which made no difference. I had a friend try this himself and he had the same issue (different pi/supply/DSI-screen). The steps to reproduce the problem are very simple:
- I start with a clean os lite image
- I enable ssh and wifi
sudo apt updatesudo apt-get install xserver-xorgsudo apt-get install xinit- I set /etc/rc.local to
sudo xinit - I set /root/.xinitrc to
touch /home/pi/test(not required, just to confirm whether the script is executed)
That's it. If I reboot with something plugged in a USB port (keyboard, USB stick...) I get one of two errors in /var/log/Xorg.0.log:
(EE) Backtrace:
[ 9.873] (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x188) [0x557232d438]
[ 9.873] (EE) unw_get_proc_info failed: no unwind info found [-10]
[ 9.873] (EE)
[ 9.873] (EE)
Fatal server error:
[ 9.873] (EE) Caught signal 6 (Aborted). Server aborting
or
[ 7.441] (EE) open /dev/fb0: No such file or directory
[ 7.441] (EE) No devices detected.
[ 7.442] (EE)
Fatal server error:
[ 7.442] (EE) no screens found(EE)
[ 7.442] (EE)
If nothing is plugged in, there is no crash and the log reports that the server terminated successfully.
Any ideas of what could be happening?