network state > mce ?
Back in middle 2014, when my Jolla as one of many had the "spontaneous shutdown problem", I tuned the /etc/mce/20hybris-led.ini with PatternDeviceOn=254;0;0;50;3000;0000ff
, to show me an economical "still alive" blink. Works great and I would rather not give up that.
This time the use of my Jolla is a bit harder, and sometimes it falls out of my pocket and loses contact to the sim-card. The blue "still alive" is active, but there's no connection anymore, because I have to enter the pin first.
Is anyone able to give me some ideas how to turn blue to red in this case? Somewhere in the system must be the information about connection state, and somehow it's possible to create own notifications with appropriate patterns. I would like to link one to the other, but have less knowledge. Some productive links to helpful documentations for both sides or an idea for a basic solution would be appreciated.
Thanks, Michael
You can find the state in /run/state/namespaces/Cellular/Status holds "registered" if all is ok. Have no idea yet on how to change the led color, other than replacing /etc/mce/20hybris-led.ini and restarting mce. Should be possible somehow, even from systemd. But don't have the answer right now.
filipb92 ( 2015-10-31 12:42:23 +0200 )editThank you, that's a useful hint!
And for the other side - I know that the great Coderus once used an own somethinghybris-led.ini, so it's just a question where to start reading the documentation. I'll post it here when I've learnt more.
Robomike ( 2015-11-01 18:52:32 +0200 )edit