I found out that it would turn on the lpm screen during navigation, so i modified lpm.sh to check if pure-maps is running or not:
#!/bin/bash
if grep mce /sys/power/wake_lock >/dev/null 2>&1
#checks whether phone is awake
then
if /usr/sbin/mcetool | /bin/grep Inactivity | /bin/grep inactive >/d
ev/null 2>&1
#checks whether LPM is active
then
if ! pgrep maps>/dev/null; then
/usr/sbin/mcetool -d
#switches display on
/usr/sbin/mcetool --blank-screen-lpm
#switches back to LPM, but with updated time
fi
fi
fi
2 Likes