[Gta04-owner] Kernel update for gta04
Neil Jerram
neil at ossau.homelinux.net
Sun Jul 8 11:13:59 CEST 2012
NeilBrown <neilb at suse.de> writes:
> 1/ my phone would often crash on resume. I found one bug which is already
> fixed in 3.3, and another that is still present in mainline.
> More details can be found at http://neil.brown.name/blog/20120706122934
I think I've seen that - except does it (or did it) make sense that
sometime later the phone will wake up again?
My experience was:
- Phone was suspended.
- I heard the QtMoko beeps as for a message arriving.
- Went to the phone, saw that it was off, pressed power button: no
effect.
- Guessed that the beeps were actually a critical battery alert, and
that the battery had run out; went to bed.
- Following morning, heard beeps again.
- Went to the phone, saw that it was off, pressed power button: phone
lit up as it should.
BTW, there's one typo in your blog: "should be be" -> "should not be".
> 2/ I added 'wakeup_sources' for the buttons, RTC alarm, and 3G interrupt.
> This means that if one of these happens while an auto-suspend is happening,
> the suspend will abort. It is probably quite rare than an alarm will fire
> or a TXT will arrive just as the phone is suspending, but it can happen and it
> is good to be able to avoid it.
>
> 3/ I've also updated to the latest -stable version for each.
Nice, thanks.
> The simplest way to avoid races with suspend is:
> - read /sys/power/wakeup_count and record the number
> - final check that no buttons are pressed etc
> - write the recorded number to /sys/power/wakeup_count
> - If that succeeds, write "mem" to /sys/power/state
>
> though it works better is the platform is enhanced to to auto-suspend
> properly.
I don't get this. Is this more detailed exposition of how you made
'wakeup_sources' work, or is it an alternative to the 'wakeup_sources'
work mentioned above?
> I haven't played much more with 3.5-rc. The power usage is still way too
> high. I've seen some messages on the linux-omap list which suggest that
> might be fixed soon. So I'll probably get back to it at the next -rc, or
> maybe 3.5-final.
Thanks for keeping this mainline tracking going!
Out of interest, what is your personal plan for user space?
Regards,
Neil
More information about the Gta04-owner
mailing list