View Single Post
Posts: 235 | Thanked: 86 times | Joined on Dec 2010
#3
I think what's better is a python script that listen to proximityd dbus, and toggle the screen lock with proximity sensor

I've made one myself that behave similar to this (proximity close to lock the screen, and vice versa) so I can have the phone locked automatically when I close my flip case, but unfortunately for some reason a leather flip case covering a proximity sensor is not detected by proximityd (while my thumb works pretty well)