View Single Post
sampppa's Avatar
Posts: 166 | Thanked: 191 times | Joined on Dec 2007 @ Oulu, Finland
#2
You can read proximity sensor from sysfs entry:

cat /sys/devices/platform/gpio-switch/proximity/state

but this only gives you 2 states, "open" and "closed"