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

Constantly display the Sneek Peek option

asked 2016-03-19 21:47:05 +0300

AA-0001 gravatar image

updated 2016-03-19 21:49:38 +0300

As a fan on the N9, I woud like to know if there's a way to display the Sneek peek option without limit of time when the device is locked. I know that te screen is not really suitable for that purpose, but maybe there's a way, I don't know. For the record, I already know the app "displaytime". It's a great app but it's not enough.

edit retag flag offensive close delete

Comments

Thank you, that's almost as good as the N9. I hope it doesn't consume to much energy. Just in case, it there a way to reset the remaining time to default ?

AA-0001 ( 2016-03-19 22:50:28 +0300 )edit

@AA-0001 - I have amended my answer to reflect your comments.

Spam Hunter ( 2016-03-19 23:08:34 +0300 )edit

2 Answers

Sort by » oldest newest most voted
5

answered 2016-03-19 22:20:01 +0300

Spam Hunter gravatar image

updated 2016-03-20 00:27:22 +0300

@AA-0001 - Already doable I believe via mcetool in terminal. I think this will also kick the arse out of your battery!

Example: mcetool --set-blank-from-lpm-on-timeout=20 - the '20' represents time in secs and how long the LPM screen stays on for once activated. I haven't played much, but changing the original setting of 10 secs to 20 secs and then counting from LPM activating tells me, this is one way round your request, not so much an answer, but somewhere to start. (to return the settings, type mcetool --set-blank-from-lpm-on-timeout=5) - where 5 is the original setting.

If you don't have mectool installed, you can grab it by typing this into terminal; pkcon install mce-tools Once installed, type in; mcetool --long-help - self explanatory and very useful. Then you can type just type in mcetool and it will spit out a run down of current settings.

So, I have calculated 8 hours as 28800 secs, so I've entered; mcetool --set-blank-from-lpm-on-timeout=28800 - that should now leave my screen showing the time/day/date for the next 8 hours if uninterrupted. I think there should be a way to dim as well, as I think you will find the current setting to bright for night use and of course, if we adjust it right down, you won't see it in daylight when you 'peek'.

Also, to make this work, I've realised there is another setting that needs to be changed with mcetool, this setting actually overrides the 'display-off' setting, allowing lpm to stay active. The setting is; mcetool --set-display-off-override=use-lpm. (to change it back, type mcetool --set-display-off-override=disabled)

After each change is made with mcetool, refresh lipstick so the changes take (I found that settings weren't taking until I refreshed lipstick).

Be very careful with the settings you change, no one wants a brick for a phone! :)

EDIT: I've been nosing around in lipstick-jolla-home-qt5 and found a folder called layers, tinkered with the colour settings to get red, which is less visible to the eye at night. But it screws around with how the time is displayed in lockscreen, but here's how it looks;

image description

This image show rgba red at 0.5, possibly too bright as a night clock, changing to 0.3 seems better. I tried 0.1, but you cannot see the time, in fact the backlight alone outshines the barely visible, red time.

In order; 0.1, 0.3 & 0.5 (grabscreen command used via ssh)

image description

image description

image description

edit flag offensive delete publish link more

Comments

What is the second command for ? Because I still have to put my finger on the light detector or get the phone out of my pocket to make it work. Is it supposed to stay active after I lock my phone ?

AA-0001 ( 2016-03-20 00:13:04 +0300 )edit

restart lipstick (refresh home) systemctl --user restart lipstick.service or reboot the device and test 'out of pocket' again. I should have said to refresh home/lipstick for settings to take effect.

The second setting I showed, is to make sure lpm is allowed to be displayed other than what 'sneak peek' settings offers - I think! (I'm just tinkering here!, I'm no expert! :) )

Spam Hunter ( 2016-03-20 00:17:22 +0300 )edit

It workds when it's "out of my pocket", but is there a way to make it work right after the device lock like on the N9 ?

AA-0001 ( 2016-03-20 00:33:37 +0300 )edit

Sorry, to my knowledge, that's what this is doing...?.....perhaps I have other settings changed.

If I cover the front of my phone now, the screen goes blank, if I take my hand off, the time comes on and stays on (LPM).

Also, from home screen, if I pull down to lock the phone, the LPM screen shows and stays. Perhaps I'm misunderstanding you. It's also been a while since I had my hands on an N9.

Spam Hunter ( 2016-03-20 00:55:36 +0300 )edit
1

Oh sorry ! Little detail, it works when you lock the device from the screen but not with the button and after a notification, the LPM doesn't show right after, you need to use the light detector. I've just noticed that, Other than that, it works perfectly, thank you :)

AA-0001 ( 2016-03-20 01:14:29 +0300 )edit
2

answered 2016-03-20 09:35:04 +0300

coderus gravatar image

It will eat your battery. Jolla phone display is not amoled and it have no low power mode.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
6 followers

Stats

Asked: 2016-03-19 21:47:05 +0300

Seen: 842 times

Last updated: Jun 02 '17