Random system halt/crash with Ubuntu 20.04 on Raspberry Pi 4

5,100

Solution 1

I have put some more time into this problem. After running stable for 24h hours now I am quite certain the issue is related to the suspend feature offered by the hardware and several desktop environments. The Raspberry Pi either fails to wake from suspend or fails to suspend.

What solved the issue for me was turning off Auto-suspend. For example, Gnome allows you to set suspend under System Settings -> Power. The Auto-suspend setting there is enabled by default. If you change that setting to Never, the Raspberry will run stable.

On a somewhat related note, it would be very nice to have kdump/kexec work on the Pi. Did someone ever figure out an initramfs/cmdline that works?

Solution 2

I replaced Gnome with XFCE and it works without crashing. I made this decision because with the remote access via ssh it still worked, unfortunately a BUG in Gnome causes this to crash, even disabling the items with reference to power did not solve the problem.

Share:
5,100

Related videos on Youtube

icolumbro
Author by

icolumbro

Updated on September 18, 2022

Comments

  • icolumbro
    icolumbro over 1 year

    I installed Ubuntu 20.04 with Xfce4 DE (xubuntu-desktop) on a Raspberry Pi 4 4GB.

    System runs good but randomly it shutdowns/halts, I don't known exactly what happens because I use it as headless server and connect via SSH or VNC. When I can't connect to it, I go where the Pi is and I find it with both leds (activity and power) off. There is a little fan connected to +3.3 V pin of GPIO for cooling and it is on...

    I'm sure there aren't hardware failure because the Pi runs like a charm with Raspbian Buster OS!

    • Lamberto Basti
      Lamberto Basti almost 4 years
      Having the same problem. I am running Ubuntu Server, therefore I assume the desktop is not the issue. Also The crashes/freezes/deadlocks/whatever started after an apt upgrade I did today. I was running Focal since the release day and only today it has started to crash. Happens on both my Rpi4s.
  • icolumbro
    icolumbro almost 4 years
    I've solved my problems unistalling tightvncserver and dummy video (xserver-xorg-video-dummy) I was using to connect via VNC when no real monitor is attached to HDMI output. Now I'm using NoMachine with gnome and no problems, the same with xfce.
  • Error404
    Error404 over 2 years
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
  • BeastOfCaerbannog
    BeastOfCaerbannog over 2 years
    How would this help solve OP's issue? Can you please edit your answer and explain with more details?
  • Greenonline
    Greenonline over 2 years
    This is the same as your other answer: askubuntu.com/a/1372545/348964