Ubuntu restarts after saying power off

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu 22.04

Which version of system do you use? Khadas official images, self built images, or others?

I use self built images

Please describe your issue below:

I run sudo poweroff
but the khadas start again.
I can’t turn Khadas off without unplugging the power.

@ozgedurgut can you share the serial console logs during the reboot ?



Are the logs correct?

@ozgedurgut is this from latest fenix image ?
what modifications have you made ?

This is my own image, I changed some things. base image is ubuntu 22.04
I started encountering this problem after doing the following:
I connected the bios battery to khadas. I set date and time. Then, I disabled and stopped the network manager service to test the bios.

sudo hwclock --systohc
apt install systemd-timesyncd
sudo systemctl status systemd-timesyncd
sudo timedatectl set-ntp true
sudo timedatectl set-local-rtc 1

And there are applications I deleted to shorten the boot time;

and I disable and stop these services;
snapd.seeded.service
snapd.service
snapd.socket

@ozgedurgut btw there is no bios in the systems.

Maybe these operations could cause the issue, I will check and let you know.

Try

$sudo shutdown now

@foxsquirrel It didn’t work. It shut down and then started again.

@Electr1 I enabled these and started;

snapd.seeded.service
snapd.service
snapd.socket

but nothing has changed.
Also,
I disabled and stopped this service but again nothing has changed.
systemd-timesyncd

Since I wanted the Khadas clock to stay updated even when it was not connected to the internet, I used RTC Battery and set the clock. When I say bios, I mean this, sorry.
sudo hwclock --systohc
apt install systemd-timesyncd
sudo systemctl status systemd-timesyncd
sudo timedatectl set-ntp true
sudo timedatectl set-local-rtc 1
That’s why I did these steps. Is there no need for these then?

It might be set up to do that, when power drops you want the system to reboot by itself. I know the big metal box servers are configured in bios for restart. Sorry, I just cannot remember where or if that is even possible with ARM boards.

Connect a ttl adapter to the linux debug port.
Use gtkterm and log the boot up and then shut down. You should see where it is restarting and find what to change.

@ozgedurgut there doesn’t seem to be any configuration that can do that.

Can you build latest fenix kernel-deb and check if the situation persists with updated kernel ?