View Single Post
Posts: 5 | Thanked: 9 times | Joined on May 2008 @ Minneapolis
#2
If you have python installed you could try:

Code:
#!/usr/bin/env python
import dbus

def main():
	bus = dbus.SystemBus()
	tklock = bus.get_object('com.nokia.mce','/com/nokia/mce/request')
	tklock.req_tklock_mode_change(dbus.String("unlocked"))

if __name__ == "__main__":
	main()
Save to /unlock.py and chmod a+x it.

Currently I can't test it as I haven't got the n810's USB networking up on my XP machine, but the script is able to lock the device through xterm when i change the dbus.String to "lock".

BTW this is a direct rip from emjays's sliderotate.py available here.
 

The Following 3 Users Say Thank You to superfisch For This Useful Post: