The Following User Says Thank You to auouymous For This Useful Post: | ||
![]() |
2011-04-07
, 17:14
|
|
Posts: 4,783 |
Thanked: 1,253 times |
Joined on Aug 2007
@ norway
|
#492
|
The Following User Says Thank You to tso For This Useful Post: | ||
![]() |
2011-04-07
, 17:32
|
|
Posts: 4,783 |
Thanked: 1,253 times |
Joined on Aug 2007
@ norway
|
#493
|
The Following User Says Thank You to tso For This Useful Post: | ||
![]() |
2011-04-07
, 19:35
|
Posts: 1,101 |
Thanked: 1,185 times |
Joined on Aug 2008
@ Spain
|
#494
|
The Following User Says Thank You to maacruz For This Useful Post: | ||
![]() |
2011-04-08
, 01:54
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#495
|
echo 1 > /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_kp echo 0 > /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_kp
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.
![]() |
2011-04-08
, 06:44
|
|
Posts: 4,783 |
Thanked: 1,253 times |
Joined on Aug 2007
@ norway
|
#496
|
[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?
![]() |
2011-04-08
, 12:58
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#497
|
![]() |
2011-04-08
, 14:59
|
|
Posts: 4,783 |
Thanked: 1,253 times |
Joined on Aug 2007
@ norway
|
#498
|
![]() |
2011-04-08
, 15:38
|
Posts: 48 |
Thanked: 2 times |
Joined on Jan 2010
@ New York, NY
|
#499
|
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?
- sometimes the touchscreen is locked but not the keys
![]() |
2011-04-08
, 16:23
|
|
Posts: 4,783 |
Thanked: 1,253 times |
Joined on Aug 2007
@ norway
|
#500
|
![]() |
Tags |
bada blows, bada rox |
|
@ 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?