View Single Post
Posts: 571 | Thanked: 980 times | Joined on Dec 2012
I you have new enough sensorfw and you proximity driver support enabling via sysfs then you can try add similar lines to your /etc/sensorfw/primaryuse.conf
powerstate_path = /sys/module/ct406/parameters/prox_enable
There is also unblank-restart-sensors which restarts sensorfw when display wakes up. It cause brightness change so on photon q I use simple app which stop/start/stop QProximitySensor (sic!) instead and it works in 98% cases.
My Thumb repo

The Following 4 Users Say Thank You to elros34 For This Useful Post: