Active Topics

 


Reply
Thread Tools
iceman600's Avatar
Posts: 324 | Thanked: 65 times | Joined on Jun 2008 @ FL
#1
the last tablet i own N810 i remember i have an app that when i close the keyboard whatever im doing will lock the device...
is there a same app for the N900?
 
JonWW's Avatar
Posts: 623 | Thanked: 289 times | Joined on Jan 2010 @ UK
#2
Settings - Display settings - Lock screen automatically
 
iceman600's Avatar
Posts: 324 | Thanked: 65 times | Joined on Jun 2008 @ FL
#3
lock screen automatically is checked but device doest lock if i close the keyboard...
 
Posts: 4,556 | Thanked: 1,624 times | Joined on Dec 2007
#4
That setting only works if the screen is locked, you slide open the keyboard and close it pretty quickly (say within a minute).

Anytime after that and it won't lock. Anyway there was an application that did something like that but it wasn't updated for PR1.2.
__________________
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...
 
Posts: 41 | Thanked: 11 times | Joined on Nov 2010
#5
Is there currently an application for PR1.3 that causes the screen to lock when the keyboard is shut?

Its a bit of a pain to lock manually nearly everytime
 
Posts: 4 | Thanked: 6 times | Joined on Dec 2010 @ Cologne
#6
Here is my (indeed very ugly) solution to this:

You'll need dbus-scripts. Install if you don't already have it:

Code:
# wget http://repository.maemo.org/extras-devel/pool/fremantle/free/d/dbus-scripts/dbus-scripts_1.0+maemo-5_armel.deb
# dpkg -i dbus-scripts_1.0+maemo-5_armel.deb
Create this script under /usr/bin/closelock.sh:

Code:
#!/bin/sh

if [ "$4" == "tklock_mode_ind" ]; then
	echo $5 > /tmp/lockmode
fi

if [ "$6" == "cover" ]; then
	if [ `cat /tmp/lockmode` == "unlocked" ]; then
		dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"locked"
	fi
fi
Append the following rules to /etc/dbus-scripts.d/dbus-scripts:

Code:
/usr/bin/closelock.sh * * org.freedesktop.Hal.Device Condition ButtonPressed cover
/usr/bin/closelock.sh * * com.nokia.mce.signal tklock_mode_ind
The script saves the locking state (locked or unlocked) in /tmp/lockmode. Whenever the "ButtonPressed cover" occurs (i.e. the keyboard has been closed or opened) and if lockmode is unlocked, a dbus event is sent to lock the screen.

Use at your own risk
 

The Following 2 Users Say Thank You to sebhack For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 15:11.