[Android] Can't power off

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Radek Polak
Date: Thursday, December 18, 2008 - 1:04 am

Hi,
while playing with android i realized that i can't power off the phone. 
I was trying turing off either from menu (this just shows progress 
dialog, that never ends) or via reboot -p command from adb shell (seems 
to do nothing).

Rebooting from abd shell via reboot command works fine.

I had a look at source code in system/core/toolbox/reboot.c. It looks 
like the problem is in this call:

__reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, 
LINUX_REBOOT_CMD_POWER_OFF, NULL);

Any idea what can be wrong here?

I was also unable to find difference between LINUX_REBOOT_CMD_POWER_OFF 
and LINUX_REBOOT_CMD_HALT. The first one is used in android and the 
second one seems to be used in busybox for halting system. Any ideas here?

Cheers

Radek

_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Android] Converting a brick into a phone, Rui Castro, (Wed Dec 10, 6:58 am)
Re: [Android] Converting a brick into a phone, Andreas Fischer, (Wed Dec 10, 7:44 am)
Re: [Android] Converting a brick into a phone, DJDAS, (Wed Dec 10, 8:43 am)
Re: [Android] Converting a brick into a phone, Michel, (Wed Dec 10, 8:48 am)
Re: [Android] Converting a brick into a phone, Andreas Fischer, (Wed Dec 10, 9:05 am)
Re: [Android] Converting a brick into a phone, arne anka, (Wed Dec 10, 9:17 am)
Re: [Android] Converting a brick into a phone, Gothnet, (Wed Dec 10, 11:09 am)
My 2 cent, drac2000, (Wed Dec 10, 11:23 am)
Re: [Android] Converting a brick into a phone, Andreas "Cyberfrag" ..., (Wed Dec 10, 11:31 am)
Re: [Android] Converting a brick into a phone, Warren Baird, (Wed Dec 10, 2:48 pm)
Re: [Android] Converting a brick into a phone, Warren Baird, (Wed Dec 10, 2:52 pm)
Re: [Android] Converting a brick into a phone, Rui Castro, (Wed Dec 10, 4:52 pm)
Re: [Android] Converting a brick into a phone, "Marco Trevisan (Tre ..., (Wed Dec 10, 5:36 pm)
Re: [Android] Converting a brick into a phone, Steve Mosher, (Wed Dec 10, 11:29 pm)
Re: [Android] Converting a brick into a phone, rakshat hooja, (Thu Dec 11, 12:08 am)
Re: [Android] Converting a brick into a phone, Michel, (Thu Dec 11, 4:17 am)
Re: [Android] Converting a brick into a phone, Vasco , (Thu Dec 11, 5:24 am)
Re: [Android] Converting a brick into a phone, Andreas Fischer, (Thu Dec 11, 5:32 am)
Re: [Android] Converting a brick into a phone, rakshat hooja, (Thu Dec 11, 6:23 am)
Re: [Android] Converting a brick into a phone, Steve Mosher, (Thu Dec 11, 8:06 pm)
[Android] Can't boot from current git, Radek Polak, (Thu Dec 18, 12:47 am)
[Android] Can't power off, Radek Polak, (Thu Dec 18, 1:04 am)
Re: [Android] Can't boot from current git, Jim Ancona, (Thu Dec 18, 11:41 am)
Re: [Android] Can't boot from current git, Radek Polak, (Fri Dec 19, 4:00 am)