Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    lock on keyboard close

    Reply
    iceman600 | # 1 | 2010-09-29, 22:58 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    JonWW | # 2 | 2010-09-29, 23:11 | Report

    Settings - Display settings - Lock screen automatically

    Edit | Forward | Quote | Quick Reply | Thanks

     
    iceman600 | # 3 | 2010-09-30, 00:31 | Report

    lock screen automatically is checked but device doest lock if i close the keyboard...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Laughing Man | # 4 | 2010-09-30, 00:33 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Surreptitious | # 5 | 2010-11-13, 07:17 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    sebhack | # 6 | 2010-12-18, 17:48 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to sebhack For This Useful Post:
    Tiboric

     
vBulletin® Version 3.8.8
Normal Logout