Re: Turning on Automatically when connected to power

2009-10-21 Thread Kimmo Hämäläinen
On Wed, 2009-10-21 at 02:27 +0200, ext tz wrote:
 It actually boots up partially - the screen with the battery animation
 is running in something from /etc/init.d.

It's called act dead mode and it's a different init run-level (maybe
5?), so if you make /etc/rc5.d to point to the normal run-level
(/etc/rc2.d or 3?), it will boot normally.

-Kimmo

 
 I tried playing with it but didn't want to break anything, but it
 should be possible to intercept it either from the initrd or the base
 flash.
 
 On Tue, Oct 20, 2009 at 4:09 PM, Jey Han Lau
 jeyhan@transtech.net.au wrote:
  Hi all,
 
  This is for the N810. Is it possible to configure the device such that
  it will turn on automatically when it is connected to a power supply? I
  am thinking that since it knows that it is in the charging state when
  connected to power I am wondering if it is possible to tell itself to
  turn on automatically.
 
 
  Thanks,
  Jey Han
  ___
  maemo-developers mailing list
  maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Turning on Automatically when connected to power

2009-10-21 Thread Faheem Pervez
Hi,

I have my N810 booting straight into a desktop when I boot with the
charger in. Changing the runlevel number seemed like the way to go but
didn't work for one reason: mce checked to see if it was booted with
the charger in; if so, then display the charger screen. This meant
that it booted into the desktop, sure, but I would have to hold the
power key first before the touchscreen and wifi were activated (and if
you had a lock code,  entering that then) so a straight change didn't
work for me.

So, thanks to fanoush, I changed the bootreason driver in the kernel
to let me write whatever I wished to in it. (Patch is on the internet,
but it's dodgy code unless you wish to clean it up...) So I added this
to /mnt/initfs/linuxrc, before DSME starts:

bootreason=`cat /proc/bootreason`
if [ x$bootreason = xcharger ]; then
echo pwr_key  /proc/bootreason
fi

This way, DSME tells MCE that it has been started by holding the
power key, and the linuxrc script thinks likewise so it boots from
runlevel 2.

Best Regards,
Faheem
On 10/21/09, Jey Han Lau jeyhan@transtech.net.au wrote:
 Hi all,

 This is for the N810. Is it possible to configure the device such that
 it will turn on automatically when it is connected to a power supply? I
 am thinking that since it knows that it is in the charging state when
 connected to power I am wondering if it is possible to tell itself to
 turn on automatically.


 Thanks,
 Jey Han
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Turning on Automatically when connected to power

2009-10-21 Thread Frantisek Dufka
Kimmo Hämäläinen wrote:
 It's called act dead mode and it's a different init run-level (maybe
 5?), so if you make /etc/rc5.d to point to the normal run-level
 (/etc/rc2.d or 3?), it will boot normally.

No, this will not solve it completely. The /proc/bootreason is probably 
checked in some places so it still acts in a strange ways unless 
/proc/bootreason is really changed as Faheem describes.

Old discussion here
http://lists.maemo.org/pipermail/maemo-developers/2009-June/thread.html#19572

some version of the patch by kernel hacker qwerty12
http://pastebin.com/f3f36d2df
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Turning on Automatically when connected to power

2009-10-20 Thread Jey Han Lau
Hi all,

This is for the N810. Is it possible to configure the device such that 
it will turn on automatically when it is connected to a power supply? I 
am thinking that since it knows that it is in the charging state when 
connected to power I am wondering if it is possible to tell itself to 
turn on automatically.


Thanks,
Jey Han
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Turning on Automatically when connected to power

2009-10-20 Thread tz
It actually boots up partially - the screen with the battery animation
is running in something from /etc/init.d.

I tried playing with it but didn't want to break anything, but it
should be possible to intercept it either from the initrd or the base
flash.

On Tue, Oct 20, 2009 at 4:09 PM, Jey Han Lau
jeyhan@transtech.net.au wrote:
 Hi all,

 This is for the N810. Is it possible to configure the device such that
 it will turn on automatically when it is connected to a power supply? I
 am thinking that since it knows that it is in the charging state when
 connected to power I am wondering if it is possible to tell itself to
 turn on automatically.


 Thanks,
 Jey Han
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers