We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-11-12 17:26:54 +0200

How to make a new led pattern with mce-tools?

I searched far and wide but I didn't find instructions to do the following:

I'd like to have the led blinking when the screen is off but the device isn't locked. This would allow me to see if I need to lock it manually before leaving it on a table. I think notification-style blinking and screen-dimming colour would do allright for me (I read that unlinke breathing, blinking doesn't require CPU and thus is more energy effient).

How to make a new led pattern with mce-tools?

I searched far and wide but I didn't find instructions to do the following:

I'd like to have the led blinking when the screen is off but the device isn't locked. This would allow me to see if I need to lock it manually before leaving it on a table. I think notification-style blinking and screen-dimming colour would do allright for me (I read that unlinke breathing, blinking doesn't require CPU and thus is more energy effient).

Edit: Here's the pattern I want: PatternNotLocked=0;6;600;500;2000;00ffff. I tried
1. Adding it to 20hybris-led.ini
2. Making a file for it like adviced here, also tried activating it via the Dbus call, got method return sender=:1,74 -> dest=:1.80 reply_serial=2 as reply.

How to make a new led pattern with mce-tools?

I searched far and wide but I didn't find instructions to do the following:

I'd like to have the led blinking when the screen is off but the device isn't locked. This would allow me to see if I need to lock it manually before leaving it on a table. I think notification-style blinking and screen-dimming colour would do allright for me (I read that unlinke breathing, blinking doesn't require CPU and thus is more energy effient).

Edit: Here's the pattern I want: PatternNotLocked=0;6;600;500;2000;00ffff. I tried
1. Adding it to 20hybris-led.ini
2. Making a file for it like adviced here, also tried activating it via the Dbus call, got method return sender=:1,74 -> dest=:1.80 reply_serial=2 as reply.reply.
3. Editing PatternDeviceOn to suit my purpose and removed it from the LEDPatternsDisabled list.

No success so far...

How to make a new led pattern with mce-tools?

I searched far and wide but I didn't find instructions to do the following:

I'd like to have the led blinking when the screen is off but the device isn't locked. This would allow me to see if I need to lock it manually before leaving it on a table. I think notification-style blinking and screen-dimming colour would do allright for me (I read that unlinke breathing, blinking doesn't require CPU and thus is more energy effient).

Edit: Here's the pattern I want: PatternNotLocked=0;6;600;500;2000;00ffff. I tried what I did: I opened the file like this:

nano /etc/mce/20hybris-led.ini

Then I edited PatternDeviceOn= to

244;0;600;100;3000;00ffff

(importancy=244, 0 means it runs when display is off, 600=10 minutes, the time it takes for my phone to autolock, 100 is the time in milliseconds when the led is on, 3000(ms) is the frequency and 00ffff is the color (cyan).)
1. Adding it to 20hybris-led.ini
2. Making
After that I removed PatternDeviceOn from LEDPatternsDisabled= (at the end of the file) and rebooted.

Okay, now I got a file blinking led for it like adviced here, also tried activating it via the Dbus call, got method return sender=:1,74 -> dest=:1.80 reply_serial=2 as reply.
3. Editing PatternDeviceOn to suit my purpose and removed it from the LEDPatternsDisabled list.

No success so far...10 minutes, but how can I make it only run while the device isn't locked?

How to make a new led pattern with mce-tools?only run while device is locked?

I searched far and wide but I didn't find instructions to do the following:

I'd like to have the led blinking when the screen is off but the device isn't locked. This would allow me to see if I need to lock it manually before leaving it on a table. I think notification-style blinking and screen-dimming colour would do allright for me (I read that unlinke breathing, blinking doesn't require CPU and thus is more energy effient).

Edit: Here's what I did: I opened the file like this:

nano /etc/mce/20hybris-led.ini

Then I edited PatternDeviceOn= to

244;0;600;100;3000;00ffff

(importancy=244, 0 means it runs when display is off, 600=10 minutes, the time it takes for my phone to autolock, 100 is the time in milliseconds when the led is on, 3000(ms) is the frequency and 00ffff is the color (cyan).)
After that I removed PatternDeviceOn from LEDPatternsDisabled= (at the end of the file) and rebooted.

Okay, now I got a blinking led for 10 minutes, but how can I make it only run while the device isn't locked?

How to make a led pattern only run while device is locked?custom led pattern?

I searched far and wide but I didn't find instructions to do the following:

I'd like to have the led blinking when the screen is off but the device isn't locked. This would allow me to see if I need to lock it manually before leaving it on a table. I think notification-style blinking and screen-dimming colour would do allright for me (I read that unlinke breathing, blinking doesn't require CPU and thus is more energy effient).

Edit: Here's what I did: I opened the file like this:

nano /etc/mce/20hybris-led.ini

Then I edited PatternDeviceOn= to

244;0;600;100;3000;00ffff

(importancy=244, 0 means it runs when display is off, 600=10 minutes, the time it takes for my phone to autolock, 100 is the time in milliseconds when the led is on, 3000(ms) is the frequency and 00ffff is the color (cyan).)
After that I removed PatternDeviceOn from LEDPatternsDisabled= (at the end of the file) and rebooted.

Okay, now I got a the led blinking led for 10 minutes, but next I need to make it so it doesn't run when you lock the device by doublepressing the power key. So, how can do I make it only run while the device isn't locked?the power key send a dbus call to stop the led from blinking?

How to make a custom led pattern?

I searched far and wide but I didn't find instructions to do the following:

I'd like to have the led blinking when the screen is off but the device isn't locked. This would allow me to see if I need to lock it manually before leaving it on a table. I think notification-style blinking and screen-dimming colour would do allright for me (I read that unlinke breathing, blinking doesn't require CPU and thus is more energy effient).

Edit: Here's what I did: I opened the file like this:

nano /etc/mce/20hybris-led.ini

Then I edited PatternDeviceOn= to

244;0;600;100;3000;00ffff
200;0;600;100;3000;00ffff

(importancy=244, (importancy=200, 0 means it runs when display is off, 600=10 minutes, the time it takes for my phone to autolock, 100 is the time in milliseconds when the led is on, 3000(ms) is the frequency and 00ffff is the color (cyan).)
After that I removed PatternDeviceOn from LEDPatternsDisabled= (at the end of the file) and rebooted.

Okay, now I got the led blinking for 10 minutes, next I need to make it so it doesn't run when you lock the device by doublepressing the power key. So, how do I make the power key send a dbus call to stop the led from blinking?

How to make a custom led pattern?

I searched far and wide but I didn't find instructions to do the following:

I'd like to have the led blinking when the screen is off but the device isn't locked. This would allow me to see if I need to lock it manually before leaving it on a table. I think notification-style blinking and screen-dimming colour would do allright for me (I read that unlinke breathing, blinking doesn't require CPU and thus is more energy effient).

Edit: Here's what I did: I opened the file like this:

nano /etc/mce/20hybris-led.ini

Then I edited PatternDeviceOn= to

200;0;600;100;3000;00ffff

(importancy=200, 0 means it runs when display is off, 600=10 minutes, the time it takes for my phone to autolock, 100 is the time in milliseconds when the led is on, 3000(ms) is the frequency and 00ffff is the color (cyan).)
After that I removed PatternDeviceOn from LEDPatternsDisabled= (at the end of the file) and rebooted.

Okay, now I got the led blinking for 10 minutes, next I need to make it so it doesn't run when you lock the device by doublepressing the power key. So, how do I make the power key send a dbus call to stop the led from blinking?blinking but not disable the pattern for eternity?

How to make a custom led pattern?

I searched far and wide but I didn't find instructions to do the following:

I'd like to have the led blinking when the screen is off but the device isn't locked. This would allow me to see if I need to lock it manually before leaving it on a table. I think notification-style blinking and screen-dimming colour would do allright for me (I read that unlinke breathing, blinking doesn't require CPU and thus is more energy effient).

Edit: Here's what I did: I opened the file like this:

nano /etc/mce/20hybris-led.ini

Then I edited PatternDeviceOn= to

200;0;600;100;3000;00ffff

(importancy=200, 0 means it runs when display is off, 600=10 minutes, the time it takes for my phone to autolock, 100 is the time in milliseconds when the led is on, 3000(ms) is the frequency and 00ffff is the color (cyan).)
After that I removed PatternDeviceOn from LEDPatternsDisabled= (at the end of the file) and rebooted.

Okay, now I got the led blinking for There are two problems, though:
1. The blinking stops after
10 minutes, next I need to make it so it minutes and doesn't run when reset
2. It blinks even if
you lock the device by doublepressing the power key. So, how via doublepress on powerkey
I think I need to assign some dbus actions to the powerkey: doubleclick will stop the blinking and normal click will restart the blinking. But the blinking should also be restarted when I unblank the screen via doubletap. How can I
do I make the power key send a dbus call to stop the led from blinking but not disable the pattern for eternity?that?

How to make a custom led pattern?

I searched far and wide but I didn't find instructions to do the following:

I'd like to have the led blinking when the screen is off but the device isn't locked. This would allow me to see if I need to lock it manually before leaving it on a table. I think notification-style blinking and screen-dimming colour would do allright for me (I read that unlinke breathing, blinking doesn't require CPU and thus is more energy effient).

Edit: Here's what I did: I opened the file like this:

nano /etc/mce/20hybris-led.ini

Then I edited PatternDeviceOn= to

200;0;600;100;3000;00ffff

(importancy=200, 0 means it runs when display is off, 600=10 minutes, the time it takes for my phone to autolock, 100 is the time in milliseconds when the led is on, 3000(ms) is the frequency and 00ffff is the color (cyan).)
After that I removed PatternDeviceOn from LEDPatternsDisabled= (at the end of the file) and rebooted.

There are two problems, though:
1. The blinking stops after 10 minutes and doesn't reset
2. It blinks even if you lock via doublepress on powerkey
I think I need to assign some dbus actions to the powerkey: doubleclick will stop the blinking and normal click will restart the blinking. But the blinking should also be restarted when I unblank the screen via doubletap. How can I do that?