Coder Social home page Coder Social logo

Comments (4)

marbetschar avatar marbetschar commented on June 10, 2024

We can use a fix similar to this: elementary/greeter#472

from time-limit.

marbetschar avatar marbetschar commented on June 10, 2024

@vjr I tried to implement your hibernation support logic into my Time Limit app, but for some reason the callback is not fired. Do you have any idea why this does not seem to work? Would be awesome if you can point me into the right direction :)

https://github.com/marbetschar/time-limit/compare/bugfix/hibernation-support

from time-limit.

vjr avatar vjr commented on June 10, 2024

Hi! I'm not too familiar with this but can you try sleep (suspend to RAM) instead of hibernate (suspend to disk) and see if that works? The freedesktop docs say the PrepareForSleep signal is supposed to trigger for both modes but it's worth a try?

from time-limit.

marbetschar avatar marbetschar commented on June 10, 2024

@vjr thanks for your quick response! I made an error and wrongly named the DBus interface org.freedesktop.login1.LoginManager instead of org.freedesktop.login1.Manager. After correcting this, your code proposal magically started to work! Thank you so much for pointing me towards to the freedesktop specs!

from time-limit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.