Reply
Thread Tools
Posts: 1,255 | Thanked: 393 times | Joined on Oct 2009 @ US
#11
"0" here too. How can you not power off and just reboot? I see no reboot option, just "Switch off!".

Oh... terminal command. Got it
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#12
@Rushmore: I'm guessing this will mainly be in connection with the 'automatic reboot' problems some people are experiencing.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Posts: 117 | Thanked: 10 times | Joined on Oct 2009 @ Wolverhampton
#13
erm..Where do i put his code?
 
Posts: 355 | Thanked: 566 times | Joined on Nov 2009 @ Redstone Canyon, Colorado
#14
Originally Posted by Laughingstok View Post
Mine says 0. What happens if I hard code a 50 in there? It will not boot? What reason?
If you put a 50 in there (or maybe 51) and reboot, your system will hang like:

* (*) * * *

(picture those bootup dots or "balloons")

From the bug report:
The root cause appears to be that when we during Fremantle development switched to Upstart, it didn't anymore provide shutdown runlevel (runlevel is now a dummy script) so that the device would have been correctly powered off when max reboot count is reached (as it did earlier).
Also from report:
The updated version of getbootstate package & binary will have also some other improvements (in testing currently)
AFAICT "testing" in this case is internal Nokia testing, not Maemo's extras-testing.

Also, the bug report provides a temporary workaround:

To prevent that issue, power users could probably quickfix /sbin/preinit scriptwith something like this:

Code:
echo_g "Houston, we have a problem, powering off..."
+sleep 10
+poweroff
def_runlevel=0

-Jeff
 
Posts: 31 | Thanked: 1 time | Joined on Dec 2009 @ Miami
#15
Originally Posted by TA-t3 View Post
Mine is currently zero, so I'm in the clear for a while. I'll make a note of the info though, it could come in useful.
where can i check that ? thanx
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#16
Mine is at 0, and the file date reflects the time I last did a switch off via the power switch menu (no power cable connected). I guess that must be enough to reset it, then.


Why couldn't you just put

Code:
      echo 0 > /var/lib/dsme/boot_count
      ;;
in the currently empty stop) case in the /etc/init.d/zzinitdone file?

Looking at the getbootstate binary, there's the line:

Unexpected reset count %d exceeds maximum (%d)
which suggests that any reboot which doesn't set the boot_count to 0 is an "unexpected reset".

So maybe this is to avoid endless reboot cycles when something is seriously broken.

In that case, just making one of the normal init.d shutdown scripts set the count to 0 might be the right fix?

Edit: Or, maybe I've got the wrong end of the stick here.. does rebooting "normally" actually increment the count in this file at the next boot, or is it just kernel crashes that do this? If the latter, maybe something resetting the count in the zzinitdone start) case might be better, on the assumption that getting that far is far enough to count as a normal startup? Maybe I should leave this to actual Nokia devs Can't help being curious though!

Further edit: Ok, so if there's no shutdown runlevel, I guess the K00zzinitdone script in /etc/rc2.d/ isn't going to get invoked at shutdown. In which case pretty much all of the above can be ignored.

Last edited by kwotski; 2009-12-16 at 19:24.
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#17
Originally Posted by smolomiami View Post
where can i check that ? thanx
In X-Terminal, do:

cat /var/lib/dsme/boot_count
 

The Following User Says Thank You to kwotski For This Useful Post:
Posts: 92 | Thanked: 22 times | Joined on Dec 2009
#18
aff my at 3, btw can someone give me the command for fully poweroff the device
 
Posts: 5,335 | Thanked: 8,187 times | Joined on Mar 2007 @ Pennsylvania, USA
#19
Originally Posted by bltcool View Post
...can someone give me the command for fully poweroff the device
  1. If your N900 is connected to a USB cable, disconnect that cable.
  2. Press the power button on your N900.
  3. Tap "Switch off!"
__________________
maemo.org profile
 
Posts: 92 | Thanked: 22 times | Joined on Dec 2009
#20
Originally Posted by sjgadsby View Post
  1. If your N900 is connected to a USB cable, disconnect that cable.
  2. Press the power button on your N900.
  3. Tap "Switch off!"
thanks , lol forgot that each boot add 3 count , got me worrie for a sec
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:56.