[maemo-developers] N800 Power cycles

From: Frantisek Dufka dufkaf at seznam.cz
Date: Wed Jun 10 15:33:44 EEST 2009
Faheem Pervez wrote:
> I do not know what provides /proc/bootreason but (if it's the kernel, 
> like I'm hoping), it may be easier to not make it say "charger" in 
> bootreason if it's booted with a charger.

linux/arch/arm/plat-omap/bootreason.c

cfg = omap_get_config(OMAP_TAG_BOOT_REASON, struct 
omap_boot_reason_config);
strncpy(boot_reason, cfg->reason_str, sizeof(cfg->reason_str)); 


Should be easy to replace "charger" for "pwr_key" there.

More information about the maemo-developers mailing list