[Gta04-owner] Further 3.17 kernel development for GTA04

Neil Jerram neil at ossau.homelinux.net
Tue Nov 11 22:45:30 CET 2014


NeilBrown <neilb at suse.de> writes:

> One thing you could try is to log the output of
>
>   date ; cat /sys/kernel/debug/wakeup_sources
>
> immediately before and after writing "mem" to "/sys/power/state".
> That will tell you how long it was in suspend for, and any change in
> 'wakeup_sources' might tell you why it woke up ... or might not.

Here's what I see:

/root/autolock/autolock.sh started Tue Nov 11 21:31:26 GMT 2014
+ xautolock -disable
+ ls -A /root/autolock/stayalive.d
+ [  ]
+ : Suspending is allowed
+ read AC_ONLINE
+ read USB_ONLINE
+ [ x0 != x1 -a x0 != x1 ]
+ date
Tue Nov 11 21:31:26 GMT 2014
+ cat /sys/kernel/debug/wakeup_sources
name		active_count	event_count	wakeup_count	expire_count	active_since	total_time	max_time	last_change	prevent_suspend_time
gpio-keys-incoming	0		0		0		0		0		0		0		1353		0
gpio-keys   	0		0		0		0		0		0		0		1301		0
bq27000-battery	995		995		0		0		0		60369		116		76861067		0
twl4030_usb 	19		19		0		0		0		141		11		76832346		0
twl4030_ac  	19		19		0		0		0		76		5		76832339		0
48070000.i2c:twl at 48:rtc	0		0		0		0		0		0		0		499		0
48070000.i2c:twl at 48:pwrbutton	0		0		0		0		0		0		0		496		0
musb-hdrc.0.auto	0		0		0		0		0		0		0		466		0
49042000.serial	0		0		0		0		0		0		0		365		0
49020000.serial	0		0		0		0		0		0		0		364		0
4806c000.serial	0		0		0		0		0		0		0		362		0
4806a000.serial	0		0		0		0		0		0		0		360		0
alarmtimer  	0		0		0		0		0		0		0		341		0
autosleep   	0		0		0		0		0		0		0		160		0
+ echo mem
sh: echo: I/O error
+ date
Tue Nov 11 21:34:12 GMT 2014
+ cat /sys/kernel/debug/wakeup_sources
name		active_count	event_count	wakeup_count	expire_count	active_since	total_time	max_time	last_change	prevent_suspend_time
gpio-keys-incoming	0		0		0		0		0		0		0		1353		0
gpio-keys   	0		0		0		0		0		0		0		1301		0
bq27000-battery	995		995		0		0		0		60369		116		76861067		0
twl4030_usb 	21		21		0		0		0		306		83		76884318		0
twl4030_ac  	21		21		0		0		0		183		63		76884297		0
48070000.i2c:twl at 48:rtc	0		0		0		0		0		0		0		499		0
48070000.i2c:twl at 48:pwrbutton	0		0		0		0		0		0		0		496		0
musb-hdrc.0.auto	0		0		0		0		0		0		0		466		0
49042000.serial	0		0		0		0		0		0		0		365		0
49020000.serial	0		0		0		0		0		0		0		364		0
4806c000.serial	0		0		0		0		0		0		0		362		0
4806a000.serial	0		0		0		0		0		0		0		360		0
alarmtimer  	0		0		0		0		0		0		0		341		0
autosleep   	0		0		0		0		0		0		0		160		0
+ xautolock -unlocknow
+ xautolock -enable

To my untutored eye, 'twl4030_usb' and 'twl4030_ac' indicate something
to do with charging - but both USB and AC were definitely disconnected
at the time when this happened.

Regards,
        Neil


More information about the Gta04-owner mailing list