View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#3
What do you mean? Have the N810/N900 boot up into the desktop when the charger is plugged in instead of showing the charging/blank screen, respectively?

If so, for the N900 "flasher-3.5(.exe) --set-rd-flags=force-power-key" should do it.

For the N810, look at my changes to bootreason.c in http://qwerty12.qole.org/the_insane_kernel.diff and apply the patch to the kernel.
Once I applied that, I modified /mnt/initfs/linuxrc by adding
Code:
        bootreason=`cat /proc/bootreason`
        if [ x"$bootreason" = x"charger" ]; then
                echo pwr_key > /proc/bootreason
        fi
before the line telling it to start DSME. This did two things:
  1. Made the linuxrc script start my tablet in runlevel 2, not runlevel 5 which is where it usually starts when the charger is plugged in.
  2. Made closed-but-core programs like MCE that query DSME for the bootup status think it was started by pressing the power key. This is important because, otherwise, you'll end up at the desktop because it's started in runlevel 2 but MCE will show the charging screen and you're then still required to press the power key again.

Last edited by qwerty12; 2010-07-29 at 17:53.
 

The Following 9 Users Say Thank You to qwerty12 For This Useful Post: