maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Transparent pocket mode (https://talk.maemo.org/showthread.php?t=72771)

Hukka 2011-05-04 11:36

Transparent pocket mode
 
I have a transparent pocket in a handlebar pack. I can operate the N900 fine when it's in the pocket, but the problem is that when someone calls, the proximity sensor doesn't see through the plastic and won't activate the screen. Is there a way to disable the "pocket protection"?

Also normally I have the "lock automatically" setting on, so that a blank screen cannot be activated via touch. I can change this from the settings, but I'd prefer to do it from my desktop. Is there a way to change settings from command line or via dbus, so I could make a small app for that (combined with a solution to the first problem)?

retsaw 2011-05-04 12:09

Re: Transparent pocket mode
 
Quote:

Originally Posted by Hukka (Post 999954)
I have a transparent pocket in a handlebar pack. I can operate the N900 fine when it's in the pocket, but the problem is that when someone calls, the proximity sensor doesn't see through the plastic and won't activate the screen. Is there a way to disable the "pocket protection"?

Also normally I have the "lock automatically" setting on, so that a blank screen cannot be activated via touch. I can change this from the settings, but I'd prefer to do it from my desktop. Is there a way to change settings from command line or via dbus, so I could make a small app for that (combined with a solution to the first problem)?

The proximity sensor relys on detecting a reflection of IR it transmits, so what you could do is find a material which absorbs rather than reflects this light, in a quick search I found it registers as open when covered with some black string and a slightly glossy black leaflet, it will be a bit trial and error finding something that works becuase something that absorbs visible light might reflect IR light. You can check the state of the sensor with the command
Code:

cat /sys/devices/platform/gpio-switch/proximity/state
open = uncovered, closed = covered.

Hukka 2011-05-05 10:10

Re: Transparent pocket mode
 
No way to set a flag somewhere to just force the proximity sensor "position" in software? I'll look into fabrics too, but so far haven't found anything that works.


All times are GMT. The time now is 03:43.

vBulletin® Version 3.8.8