Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timer stops without blanking mode #4

Open
neversun opened this issue Aug 23, 2015 · 8 comments
Open

Timer stops without blanking mode #4

neversun opened this issue Aug 23, 2015 · 8 comments
Assignees
Labels

Comments

@neversun
Copy link
Owner

neversun commented Aug 23, 2015

If the user deactivates blanking mode, the timer will pause once device goes into deep sleep.

Dirty fix: Remove setting to disable blanking mode until proper fix.

Current fix: Send a D-Bus message to prevent sleep. Stops working if user locks screen himself.

@neversun neversun added the bug label Aug 23, 2015
@neversun neversun self-assigned this Aug 23, 2015
@neversun
Copy link
Owner Author

neversun commented Sep 7, 2015

Dirty fix applied with 6934e2a.

@neversun
Copy link
Owner Author

Once insomniac is implemented, I should be able to keep the timer running even if blanking is possible.

@Sikarjan
Copy link

I am having the same issue with my app. But I just saw that you removed insomniac from your project. What is your current solution to the issue?

@neversun
Copy link
Owner Author

I removed insomniac because I got some problems while re-compiling it for some newer Sailfish version.
Right now I am sending a D-Bus message to disable blanking. It works fine as long as you do not lock your screen manually.

Can you tell me your Sailfish OS version and when the problem appears?

@Sikarjan
Copy link

Sorry for misleading you. I am not talking about your app.
So your bug fix is to keep the display on, right?
I tried the kitchen timer which uses insomniac and that works on the current version but I cannot get it working in my app.
The right solution would be to use libkeepalive, which is used by the official apps, but it is not allowed for developers... The source code is available here. I managed to build shared libs from that but I could not get them through QA because shared libs are not allowed to link to other libs.

@neversun
Copy link
Owner Author

Now I see 😆.

libkeepalive looks promising yes, but as you said it is not available. For now I would recommend you to use the easy way and do sth like I did. Not my idea but John's with his slumber sleep timer.

Just include the ScreenBlank and enable it when needed (like this)

@Sikarjan
Copy link

Sikarjan commented Sep 1, 2017

Apparently libkeepalive is allowed. It fails in rpm validator but I still got it past QA. Here is what they wrote:
"Thanks for the efforts on this. We have made internal bug about libkeepalive to be allowed in harbour. "

With libkeepalive you should be able to fix this bug.

@neversun
Copy link
Owner Author

Thanks @Sikarjan! I will give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants