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
reboothowever
kimmoli ( 2015-01-18 10:09:55 +0200 )editshutdown -r nowseems to do things little differently. (shouldn't reboot call shutdown -r unless forced?)Interesting, both
rebootandshutdownare 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 -rmakes same things asrebootBut there is a difference, with
reboothalt_parse_argv() gets called, where is thisso
shutdown -rdoes not force reboot depending on runlevel?Noticeable difference is that
kimmoli ( 2015-01-18 11:35:48 +0200 )editshutdown -rgracefully terminates ssh session, butrebootleaves it open.when calling
dsmetool -b, it will finally callsystemctl --no-block rebootand, when pressing power-key to shutdown, dsme callssystemctl --no-block shutdownsystemctl --no-block rebootcauses backlight to go bright, then display goes off and reboot cycle starts./usr/sbin/rebootandshutdown -r nowseems 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