View Single Post
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#10
Originally Posted by kojacker View Post
The actual concept is not very difficult to write even from scratch, but i wonder if the lock screen can be altered to such an extent on the N900. I believe it's closed source on maemo5 - you can change an image or the text linked in the lock screen, but not the lock screen widget/app itself. I'd like to be wrong though if someone knows better...
/etc/mce/mce.ini:
Code:
# Double press [power] behaviour
#
# Valid options:
# disabled - do nothing on double press
# menu - show the device menu
# poweroff - shutdown device
# softpoweroff - enter soft poweroff mode
# tklock - enable the touchscreen/keypad lock <default>
PowerKeyDoubleAction=tklock
Setting that to disabled and making an app which listens and waits for two power button presses makes a lock screen concept possible.

Code:
signal sender=:1.10 -> dest=(null destination) serial=945 path=/org/freedesktop/Hal/devices/computer_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
   string "ButtonPressed"
   string "power"
Edit: hmm, that option seems to deal with locks only (unlocking works even when disabled), will look into it further.

Edit 2: the lock screen is handled by systemui, as a plugin, /usr/lib/systemui/libsystemuiplugin_tklock.so, moving it breaks screen locking.

Last edited by MohammadAG; 2011-02-05 at 03:35.
 

The Following 12 Users Say Thank You to MohammadAG For This Useful Post: