![]() |
[Request/Idea] enable "secure device" lock based on wifi network
Update: laasonen has made a program to do this! See this thread for details.
When I'm at home or work then there's not much point in having the lock code on my N900 but it's useful when I'm out. What would be great is if the "secure device" lock screen was disabled on certain wifi networks. I can lock the device immediately (with phone-control --unlock) and I can run scripts depending on network connections (with dbus-scripts) but if I put the 2 together then my N900 locks/unlocks immediately. Can any one point me in the right direction? I'd be appy with a command line dbus hack but a nice gui app would be even better. |
Re: [Request/Idea] enable "secure device" lock based on wifi network
I like this idea. Sorry - I can't help but I'd like to see how this progresses :)
|
Re: [Request/Idea] enable "secure device" lock based on wifi network
Have you tried out using dbus-monitor to see what the signal is to Lock the device?
That would give you the dbus commands needed and then you could possibly find a way to add that command to a script which activates based on your connection name? |
Re: [Request/Idea] enable "secure device" lock based on wifi network
Wrote simple script which unlocks the device when you click the power button when it's connected to the wlan you specified :)
Code:
#!/bin/sh Comment the first dbus-send, if you miss the slider. EDIT: Now it checks if the screen is unlocked already. |
Re: [Request/Idea] enable "secure device" lock based on wifi network
I was trying to add a smarter way to detect the lock, but I can't figure out why it says that device is locked even thought it's not?
Code:
Nokia-N900:~# dbus-send --system --type=method_call --dest="com.nokia.mce" --print-reply "/com/nokia/mce/request" com.nokia.mce.request.get_devicelock_mode Code:
Nokia-N900:~# dbus-send --system --type=method_call --dest="com.nokia.mce" --print-reply "/com/nokia/mce/request" com.nokia.mce.request.get_tklock_mode Better one: Code:
#!/bin/sh |
Re: [Request/Idea] enable "secure device" lock based on wifi network
Python version :) It is starting to be pretty decent, I'll upload it extras-devel later this week when I have time.
|
Re: [Request/Idea] enable "secure device" lock based on wifi network
That's brilliant, thanks laasonen! Giving it a go now. I'm happy with editing a Python script but if it's going into extras then it'd be nice to have a GUI to edit the SSIDs.
I love the Maemo community. |
Re: [Request/Idea] enable "secure device" lock based on wifi network
Quote:
|
Re: [Request/Idea] enable "secure device" lock based on wifi network
Any ideas for name?
|
Re: [Request/Idea] enable "secure device" lock based on wifi network
WireLock? SSIDSecure? WiLock? Wi-Lo?
|
All times are GMT. The time now is 00:08. |
vBulletin® Version 3.8.8