[maemo-developers] N800 Power cycles
From: Frantisek Dufka dufkaf at seznam.czDate: Wed Jun 10 15:33:44 EEST 2009
- Previous message: N800 Power cycles
- Next message: N800 Power cycles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: N800 Power cycles
- Next message: N800 Power cycles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]