Shake to wake for Nokia N900. Idea from http://maemo.org/community/brainstorm/view/shake_to_wake/
Python script uses acceleration sensors to detect shake, then dbus command to open up the screen. It wont open the screen if proximity sensor says it’s closed. This is to prevent unwanted openings. For example if you have your N900 in your pocket
Python script is available here
To install, copy script to your phone, /home/user/shake/shake.py and start it by running command
python shake.py &
I’m working on a deb-file. Please note that script is very very resource hungry so it will drain your battery.
Once again, I do not take responsibility if you accidentally throw your N900 to the ground. I myself did that while testing so be CAREFUL
[...] Blog ufficiale. [...]
[...] Niklaksen Blogi 0 I like This Post Bookmark and [...]
Really cool. Can you add some kind of license/copy{left,right} in the header so I can add it to my utils repository at Github?
[...] http://iskuri.org/niklas/blogi/2010/shake-to-wake/ Posted in Software | Tags: N900, python, shake « Handleiding om de [...]
Script is in public domain. I added the statement to the script
[...] written on Python, the script is available here. The author writes that a deb-file is in the works as the script is very battery [...]
[...] written on Python, the script is available here. The author writes that a deb-file is in the works as the script is very battery [...]
Excelent program !! I liked a lot
[...] non entrerà in azione quando il telefono è in tasca (o in borsa). Al momento è presente uno script che però sembra essere molto esoso di batteria. Presto dovrebbe arrivare una versione [...]
[...] di fase embrionale perchè per ora è solo uno script. Script che tra l’altro pare esssere goloso di batteria! Presto comunque ci sarà una prima [...]
Hi,
awesome work, best unlocking method of all!
Can you add a package, so it can be installed form app-manager?
Thanks!
I was modding the script, but I’m new to scripting so I was unsure about a couple things. I noticed your script uses 40% CPU when the screen is unlocked and you’re actually trying to use the N900, so I added some time.sleep()’s in. 5 seconds after every check of the accelerometer, 30 seconds after every wake up, and 10 seconds every time it thinks it’s in a pocket.
Next thing is that I think it should be checking to make sure the screen is actually locked before trying to unlock it. I don’t know how to script that part though. And on top of that I added another ‘while’ to make it check if I still want it running every 5 times it wakes up my phone.
Any chance you could write in the part that asks whether the screen is already locked?
Wake,
I remember I was struggling that part too when developing this script. I’m sorry but I cannot help you
I’m currently developing CallerID for N900 which fetches unknown caller number from number directory. Here in Finland it already works quite nice
hello,
just wanted to check whether or not you’re still considering making this awesome script into a .deb file. I would really enjoy not having to use the unlock slider anymore!