I have a problem sinds the latest patch. When I resume my pandora, with the lid closed, the display light goes on.
The culprit is /usr/pandora/scripts/op_power.sh it does not hold a single state for "buttonlowpower", from "liddisplayoff" or "on", so there is no powerstate called "buttonlowpower_liddisplayoff".
The solution would be writing a second bit of information in /tmp/powerstate. I've fiddled with a /tmp/led and so far it works, only, I am intrigued by:
if [[ "$1" == 0 ]]; then # lid was opened
if [[ "$powerstate" == lid* ]]; then
which I had to change to
if [[ "$1" == 0 ]]; then # lid was opened
echo "open" > /tmp/lid
if [[ "$powerstate" == * ]]; then
My question here is why "lid*" ? Am I breaking something here for other configurations?
Also, is there a way I can read the lid status without having to write my own files to the internal disk?
op_power.sh.zip
The culprit is /usr/pandora/scripts/op_power.sh it does not hold a single state for "buttonlowpower", from "liddisplayoff" or "on", so there is no powerstate called "buttonlowpower_liddisplayoff".
The solution would be writing a second bit of information in /tmp/powerstate. I've fiddled with a /tmp/led and so far it works, only, I am intrigued by:
if [[ "$1" == 0 ]]; then # lid was opened
if [[ "$powerstate" == lid* ]]; then
which I had to change to
if [[ "$1" == 0 ]]; then # lid was opened
echo "open" > /tmp/lid
if [[ "$powerstate" == * ]]; then
My question here is why "lid*" ? Am I breaking something here for other configurations?
Also, is there a way I can read the lid status without having to write my own files to the internal disk?
op_power.sh.zip