State of upstreaming?
Timo Juhani Lindfors
timo.lindfors at iki.fi
Wed Sep 22 11:21:25 CEST 2010
Radek Polak <psonek2 at seznam.cz> writes:
> I have this file:
>
> /sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/resume_reason
>
> it reads value 0002000000
>
> I am not using this file for anything so i dont know if it works correctly
In 2.6.29 you have two files
$ cat /sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/neo1973-resume.0/resume_reason
EINT00_ACCEL1
EINT01_GSM
EINT02_BLUETOOTH
EINT03_DEBUGBRD
EINT04_JACK
EINT05_WLAN
EINT06_AUXKEY
EINT07_HOLDKEY
EINT08_ACCEL2
* EINT09_PMU
EINT10_NULL
EINT11_NULL
EINT12_GLAMO
EINT13_NULL
EINT14_NULL
EINT15_NULL
$ cat /sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/resume_reason
0002000000
In this case the first one tells you that you woke up because of PMU
and the second one because PMU reacted to the power button. If you
don't have both files then it is not possible to distinguish between
GSM and PMU wake up reasons for example.
$ om resume-reason
EINT09_PMU:button
More information about the community
mailing list