View Single Post
Posts: 1,101 | Thanked: 1,185 times | Joined on Aug 2008 @ Spain
#590
Originally Posted by auouymous View Post
It is a moving window and is configurable by number of days 0-7. Events older than the configured time are removed. If ASUI crashes or is restarted it will lose all event data since it isn't saved.
Ok, nice
Originally Posted by auouymous View Post
There is only a signal that is sent whenever the power button is touched, short or long. MCE calls a systemui powerkyemenu_open method when the button is short pressed and the TODO page documents the problems I had when trying to convert from the signal to this method call. As far as I know there is no signal or method call when the button is long pressed, MCE handles the shutdown internally. But if you know of a way to read the raw power button events...
I'll look into it.
Originally Posted by auouymous View Post
BTW, why do you want ASUI to handle shutdown? ASUI does listen for the shutdown signal and switches to its charging UI.
I've had a couple of kernel crashes in the events/0 kernel thread. Buttons and keyboard position sensor stopped working except for the power button, which brings ASUI, but I was unable to shutdown because the touchscreen was locked and I couldn't unlock it. So it occurred to me that there may be other circumstances where a power key shutdown could be desirable.