Alt-Linux reboot on Vim3 - rebooting the system works like a power off

Any reboot command ends as a power-off command.
I can only turn on the Vim3 by pressing the reset button or switching the power supply.
For autonomous systems, this is very bad, because when updating the system and rebooting after the update, I need to go with your feet to the server to turn it on.
In the Khadas kernel, the reboot works fine, so the error is in the Alt-Linux kernel. (I think so).
What should Alt-Linux developers pay attention to in order to fix the problem with rebooting.
Maybe I can fix it with the settings?

need to check

echo 9 > /proc/sys/kernel/printk
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger

and check logs

1 Like

what kind of logs should I look at, dmesg or what else?

By the way, this script restarts the system and I can use it as a temporary solution, thank you very much.

cat sreboot
echo 9 > /proc/sys/kernel/printk
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger

get logs from normal reboot and from this script
UART - dmesg - any

I checked, here is the result.

[root@Khadas-VIM3 ~]# date
Пн сен 6 20:53:25 MSK 2021
[root@Khadas-VIM3 ~]#
[root@Khadas-VIM3 ~]# echo 9 > /proc/sys/kernel/printk
[root@Khadas-VIM3 ~]#
[root@Khadas-VIM3 ~]# reboot
Connection to closed by remote host.
Connection to closed.

journalctl --since “2021-09-06 20:53:25” >alt-reboot.txt

The file is located here: alt-reboot.txt — Яндекс.Диск

And then I did it via sysrq

[root@Khadas-VIM3 ~]# date
Пн сен 6 21:00:50 MSK 2021
[root@Khadas-VIM3 ~]# echo 9 > /proc/sys/kernel/printk
[root@Khadas-VIM3 ~]# echo 1 > /proc/sys/kernel/sysrq

journalctl --since “2021-09-06 21:00:50” > sysrq-reboot.txt

[root@Khadas-VIM3 ~]# journalctl --since “2021-09-06 21:00:50”
– Logs begin at Thu 1970-01-01 03:00:24 MSK, end at Mon 2021-09-06 21:04:14 MSK. –
янв 01 03:00:20 Khadas-VIM3 chronyd[3116]: Selected source
янв 01 03:00:20 Khadas-VIM3 chronyd[3116]: System clock wrong by 1630951283.638227 seconds, adjustment started
сен 06 21:01:43 Khadas-VIM3 chronyd[3116]: System clock was stepped by 1630951283.638227 seconds

There’s nothing there, apparently it’s a hard reboot that immediately interrupts writing to disk, and if there were logs, they weren’t saved.

I need a UART cable so that I at least have something on the console.

Can you recommend me a UART cable for VIM3 in the Aliexpress store, which is suitable for these purposes?
And preferably not at the price of a helicopter.

The Alt Linux team has changed the kernel, and on version 5.13.19, the shutdown button, as well as the shutdown and reboot commands work correctly.
The question is removed.

i will check it soon ! and update installation scripts !