Reply
Thread Tools
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#491
Originally Posted by caimanjosh View Post
I still have my tablet set to use softpoweroff (short press = softpoweroff, long press = wake).
You have MCE set to softpoweroff instead of powerkeymenu? Not sure how well ASUI would work if the power button always blanks the screen.

@ tso, caimanjosh
When the screen is unlocked does power+dpad center perform whatever lock action you have set? I thought we had the that part working which would mean ASUI has the correct keycode for dpad center and should be able to unlock the screen with it as well. If you get the "press dpad center" notification when pressing hardware buttons it means the keys are unlocked, you just aren't pressing the correct key.

Could both of you try installing the debug binary, produce the problem and send me the log?
 

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
#492
Yes, using dpad center to lock works. For a while i wondered if perhaps asui where quickly unlocking and locking the N800, but neither removing the lock settings on dpad center nor setting asui to hide on lock had any effect on the behavior.

i will try the debug build as soon as possible.
__________________
Be warned, posts are often line of thoughts at highway speeds...
 

The Following User Says Thank You to tso For This Useful Post:
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#493
i think this should hold a log of the event in question.
Attached Files
File Type: txt asui-debug-20110407-191947-r2.txt (16.8 KB, 95 views)
__________________
Be warned, posts are often line of thoughts at highway speeds...
 

The Following User Says Thank You to tso For This Useful Post:
Posts: 1,101 | Thanked: 1,185 times | Joined on Aug 2008 @ Spain
#494
There are some funny race conditions around hardware keys and touchscreen locking
- once the cursor keys were inverted (left to right, up to down), I had to rotate the screen up to down and then back to normal to get them working right
- sometimes it says I have to press the key to unlock but the touchscreen is not locked
- sometimes the touchscreen is locked but not the keys
Unrelated, may be already not relevant, on monday I've seen abnormally high battery comsumption with 0.5.2, about 0.8%/hour, with the device completely idle. It hasn't repeated again with 0.5.3, so may be you fixed the cause, or it is another race condition.
 

The Following User Says Thank You to maacruz For This Useful Post:
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#495
Originally Posted by tso View Post
i think this should hold a log of the event in question.
[2] [8.476104] [DBUS] power button pressed (blank=0)
[2] [10.190857] event 4 (screen press)
[2] [10.367950] event 5 (screen release)
[2] [11.911529] event 4
[2] [12.115478] event 5 (another screen tap)
[2] [13.247558] event 4
[2] [13.326446] event 5 (and a third time to unmap ASUI)
[2] [13.326446] window_unmap()
[2] [30.369629] [DBUS] power button pressed (blank=0)
[2] [30.376190] window_map() - can't get keyboard, unmap
[2] [31.483551] [DBUS] signal: com.nokia.mce.signal.tklock_mode_ind (lock)
[2] [34.750763] displayed turns off briefly, until power button is pressed
[2] [36.074096] [DBUS] power button pressed (blank=0)
[2] [36.265930] [DBUS] signal: com.nokia.mce.signal.tklock_mode_ind (unlock)

You pressed power button three times, a menu or something prevented it from mapping ASUI on the second press but it did lock the screen&keys and the third press unlocked the screen&keys. It didn't receive any key events so you should've only seen the "press dpad" notification when pressing power button, was it also appearing when pressing the keys? Or was it continuously reappearing when not pressing keys?

When power button is pressed the screen and keys are unlocked but MCE remains in a locked state so there would be no sounds. ASUI must then tell MCE to unlock if no secondary key or manually disables the screen and makes sure keys are not disabled so you can press the secondary key. It could be that my functions to control keypad and screen aren't working correctly on n800.

Can you confirm via SSH with device unlocked and working correctly that the following locks and then unlocks the hardware keys (n800)?
Code:
echo 1 > /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_kp
echo 0 > /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_kp
Does /sys/devices/platform/i2c_omap.2/i2c-0/0-0045/disable_kp (n810) exist and does it lock/unlock keys when writing 1 and 0 to it?

Does writing 1 and 0 to /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_ts lock (n800 and n810) and unlock the screen?

I have been rewriting all of the power button handler code in an attempt to only have it activate on short presses. It failed to work since MCE doesn't send the short press signal when device is locked, screen is locked or when alarm is active. It did however result in much cleaner handling code and eliminated several issues but I need to test it more before breaking anyones tablets and I doubt it would resolve your current problem.


Originally Posted by maacruz View Post
There are some funny race conditions around hardware keys and touchscreen locking
- once the cursor keys were inverted (left to right, up to down), I had to rotate the screen up to down and then back to normal to get them working right
The dpad arrows should only change orientation when the screen is rotated and never when locking the screen. I'll look at the rotate code and make sure it always adjusts the arrows.


Originally Posted by maacruz View Post
- sometimes it says I have to press the key to unlock but the touchscreen is not locked
- sometimes the touchscreen is locked but not the keys
Let me know if this is still a problem after I release the new code, and if it is try to let me know what conditions cause it.

Originally Posted by maacruz View Post
Unrelated, may be already not relevant, on monday I've seen abnormally high battery comsumption with 0.5.2, about 0.8%/hour, with the device completely idle. It hasn't repeated again with 0.5.3, so may be you fixed the cause, or it is another race condition.
Kroll mentioned some abnormal battery drain a couple releases back and I optimized a few of the hardware polls but none of the changes shouldv'e made any noticable changes in battery life. The loop goes to sleep when screen is off or ASUI is unmapped and only dbus signals will wake it briefly. You can test this by installing the debug binary and watching its log while the screen is off or ASUI is unmapped.

For a couple months now I've had a 0.4%/minute drain, with no load and screen off, after turning off wifi or entering flight mode. Even happened after I reformated and hadn't yet installed ASUI. I had to reboot every time I used wifi. Recently found out that if I stop ssh and all wifi services the problem goes away. So your 0.8%/hour is nothing!
 
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#496
Originally Posted by auouymous View Post
[2] [8.476104] [DBUS] power button pressed (blank=0)
[2] [10.190857] event 4 (screen press)
[2] [10.367950] event 5 (screen release)
[2] [11.911529] event 4
[2] [12.115478] event 5 (another screen tap)
[2] [13.247558] event 4
[2] [13.326446] event 5 (and a third time to unmap ASUI)
[2] [13.326446] window_unmap()
[2] [30.369629] [DBUS] power button pressed (blank=0)
[2] [30.376190] window_map() - can't get keyboard, unmap
[2] [31.483551] [DBUS] signal: com.nokia.mce.signal.tklock_mode_ind (lock)
[2] [34.750763] displayed turns off briefly, until power button is pressed
[2] [36.074096] [DBUS] power button pressed (blank=0)
[2] [36.265930] [DBUS] signal: com.nokia.mce.signal.tklock_mode_ind (unlock)

You pressed power button three times, a menu or something prevented it from mapping ASUI on the second press but it did lock the screen&keys and the third press unlocked the screen&keys. It didn't receive any key events so you should've only seen the "press dpad" notification when pressing power button, was it also appearing when pressing the keys? Or was it continuously reappearing when not pressing keys?
Not sure. At best there is was a slight flicker on the message popup each time i pressed the dpad center.

When power button is pressed the screen and keys are unlocked but MCE remains in a locked state so there would be no sounds. ASUI must then tell MCE to unlock if no secondary key or manually disables the screen and makes sure keys are not disabled so you can press the secondary key. It could be that my functions to control keypad and screen aren't working correctly on n800.

Can you confirm via SSH with device unlocked and working correctly that the following locks and then unlocks the hardware keys (n800)?
Code:
echo 1 > /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_kp
echo 0 > /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_kp
works.

Does /sys/devices/platform/i2c_omap.2/i2c-0/0-0045/disable_kp (n810) exist and does it lock/unlock keys when writing 1 and 0 to it?
not existent on my N800.

Does writing 1 and 0 to /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_ts lock (n800 and n810) and unlock the screen?
works.
__________________
Be warned, posts are often line of thoughts at highway speeds...
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#497
New ASUI and settings binaries.
  • fix: increased minimum alarm duration to 20 seconds to eliminate a divide by zero error
  • fix: devlock_open handler properly relocks screen and keys if they were locked before the signal
  • fix: power button no longer unmaps ASUI it used to wake an unlocked screen
  • fix: power button no longer turns screen on and then back when used to wake an unlocked secure keypad
  • fix: secure keypad is no longer briefly unmapped when power button used to blank screen
  • fix: charging runlevel will dismiss alarms immediately to prevent problems, this also causes the device to boot
  • settings app can now go fullscreen
  • minor cosmetic fixes on secure keypad code dots and brightness icon
  • short tap markers for battery and brightness buttons on secure keypad
  • screen&keys active notification whenever the screen turns on and is not locked

Snoozing alarms in charging runlevel prevents device from booting or shutting off even when disconnected from charger. Dismissing the alarm causes device to boot up and all of my attempts to force the device to boot and then handle the alarm failed with it keeping the screen from blanking so I gave up and just dismissed it outright. Everything functioning properly is more important than playing an alarm in the charging runlevel. If you use alarms either keep the device off or boot it up to charge, until I get around to fixing this.

@ tso, did I unknowningly fix your problem with this?

Any new problems?
 

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
#498
Nope, dpad center seems to still be unable to unlock screen.
__________________
Be warned, posts are often line of thoughts at highway speeds...
 
Posts: 48 | Thanked: 2 times | Joined on Jan 2010 @ New York, NY
#499
Originally Posted by auouymous View Post

You pressed power button three times, a menu or something prevented it from mapping ASUI on the second press but it did lock the screen&keys and the third press unlocked the screen&keys. It didn't receive any key events so you should've only seen the "press dpad" notification when pressing power button, was it also appearing when pressing the keys? Or was it continuously reappearing when not pressing keys?
I think I can answer that from memory. When this occurred, the "press dpad center" notification would appear any time I pushed any hardware key. If no key was pushed, then it wouldn't appear.

Originally Posted by maacruz
- sometimes the touchscreen is locked but not the keys
This is actually what I would consider the "Holy Grail" of N800 media player usage! Ever since I got the N800, I wanted to find a way to lock the screen but leave the buttons unlocked so that I could adjust the volume while listening to music without needing to unlock. Alas, I've not found a way. Any chance this "mode" could be made a part of ASUI? I'm sure many would find this useful.
 
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#500
given that it can be done by setting the disable_ts to 1 while leaving disable_kp as 0, yes i think it can.
__________________
Be warned, posts are often line of thoughts at highway speeds...
 
Reply

Tags
bada blows, bada rox


 
Forum Jump


All times are GMT. The time now is 06:50.