Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#591
I have power button working on the n810 using events from /dev/input/event1 and long presses are ignored by ASUI allowing MCE to shutdown with them. Only problem is that mcow says it doesn't work on n800 so I need someone with an n800 to figure this out. Are there a bunch of numbered event files in /dev/input? If you run cat /dev/input/event1 and press/release power button it should spew garbage to console, repeat this by changing the 1 to different values until one of them works.
 
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#592
Long press with ASUI showing works on my N800 (without the latest test version installed btw). But i have seen from time to time when that is not the case, mostly related to being unable to unlock the keys and screen.
__________________
Be warned, posts are often line of thoughts at highway speeds...
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#593
Originally Posted by tso View Post
Long press with ASUI showing works on my N800 (without the latest test version installed btw). But i have seen from time to time when that is not the case, mostly related to being unable to unlock the keys and screen.
The problem is that ASUI always performs its action when the power button is touched, even for long presses, and for some reason MCE won't shutdown if the screen state is changing. If you secure lock the device and try long pressing it won't work unless you get lucky. Same thing happens all the time if you set the power button to lock&blank instead of mapping/unmapping ASUI. With raw power button events I can see down and up events and only trigger on the up event if it isn't a long press. It'll also allow ASUI to have another action bound to power button double taps.
 
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#594
event0 produced a response here.
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#595
New test binary.
  • fix: charging point on battery graph only resets when capacity increases more than 1% above previous capacity
  • fix: bluetooth state is preserved when exiting flight mode
  • fix: don't show long tap marker or drain rate in charging runlevel
  • fix: power button key events are used instead of the HAL signal, long press will always work now
  • an external shutdown (long press power button) now displays the "shutting down" dialog

Let me know if this works on n800.

@tso, bluetooth will now turn back on when exiting flight mode.
 

The Following 2 Users Say Thank You to auouymous For This Useful Post:
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#596
I can confirm the bluetooth bit, but i am unsure about the long press. Is it supposed to work when touchscreen and such is locked?

if i long press with the unlock set to require a extra button press i get the backlight popup.
__________________
Be warned, posts are often line of thoughts at highway speeds...
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#597
I forgot to properly unlock/relock the screen on long presses which caused the blanking pause timer to activate and interfer with MCE's shutdown.

New test binary should work in all cases and if it doesn't its probably MCE's fault but let me know.
 
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#598
well i no longer see the blanking popup, but it only seemed to go into shutdown once i unlocked.
__________________
Be warned, posts are often line of thoughts at highway speeds...
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#599
New test binary and settings.
  • fix: don't display negative battery drain values
  • fix: screen is properly unlocked/relocked if power button long press doesn't shutdown
  • setting to shutdown system when power button is long pressed and screen is locked

It appears that MCE won't shutdown if screen is locked, I confirmed this with SystemUI. So I added a setting to enable ASUI to shutdown when screen is locked and power button is long pressed. This setting is disabled by default because SystemUI didn't support it and also because some might have changed MCE's long press action.
 

The Following User Says Thank You to auouymous For This Useful Post:
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#600
ok. Technically i only bumped into the issue as it was the quickest scenario i could think of for testing long press under a "non-responsive" style scenario.

Another reason for me testing it was that i had a issue with unlocking after installing diablo-turbo. A issue that seemed to have gone away before the latest test binaries of ASUI tho.
__________________
Be warned, posts are often line of thoughts at highway speeds...

Last edited by tso; 2011-05-13 at 04:35.
 
Reply

Tags
bada blows, bada rox

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:13.