unreliable reboot command [released]
While doing tinkering with phone, noticed that reboot
command is kinda unreliable
i.e. I just needed to remove battery from phone to get it back on.
heard that better way to reboot from commandline is dsmetool -b
As a workaround, i did add alias reboot='dsmetool -b'
to /etc/bashrc
but imho, reboot should be fixed to reboot phone properly.
How about..(devel-su first)
Works for me everytime..;)
foss4ever ( 2015-01-18 04:15:07 +0200 )editthis is a comment, not answering anyting :) as i didn't ask anything...
and no. i'm 5 and i want to use
reboot
however
kimmoli ( 2015-01-18 10:09:55 +0200 )editshutdown -r now
seems to do things little differently. (shouldn't reboot call shutdown -r unless forced?)Interesting, both
reboot
andshutdown
are symlinks to systemctl.Looking at systemd sources there is this:
and I wonder whether in Jolla case it gets to the kexec reboot.
simosagi ( 2015-01-18 10:53:26 +0200 )editAnyway we are in the magic world of systemd ;)
why i didn't look where it links :P
Seem
shutdown -r
makes same things asreboot
But there is a difference, with
reboot
halt_parse_argv() gets called, where is thisso
shutdown -r
does not force reboot depending on runlevel?Noticeable difference is that
kimmoli ( 2015-01-18 11:35:48 +0200 )editshutdown -r
gracefully terminates ssh session, butreboot
leaves it open.when calling
dsmetool -b
, it will finally callsystemctl --no-block reboot
and, when pressing power-key to shutdown, dsme callssystemctl --no-block shutdown
systemctl --no-block reboot
causes backlight to go bright, then display goes off and reboot cycle starts./usr/sbin/reboot
andshutdown -r now
seems to cause popup saying sim-card is removed before rebooting - sometimes.ok, got it reproduced. display off and devicelock active,
reboot
-> stuck, green led blinking few times,after ~minute it woke up (or did i press powerkey..)Display off, devicelock active
dsmetool -b
-> clean rebootmeh, i don't know. I use my alias.
kimmoli ( 2015-01-18 14:16:07 +0200 )edit