Giter VIP home page Giter VIP logo

Comments (4)

akino512 avatar akino512 commented on June 11, 2024

I don't know how to set suspend, but you can try the following to set locks and the screen turn off.
A simple style may be like this:

xset dpms 0 0 60  // wait 60s to turn off screen
xset s 30 // wait 30s to lock device
xss-lock -l -- xsecurelock &

from xsecurelock.

zefr0x avatar zefr0x commented on June 11, 2024

I don't have problems with this part.

xset dpms 0 0 60 // wait 60s to turn off screen

I'm already using this to trigger xss-lock.

xset s 30 // wait 30s to lock device

This will just dim my screen using /usr/lib/xsecurelock/dimmer preparing to it's lock, xsecurelock will handle things aftart that.


My problem is with xsecurelock's screen saver part. After locking the screen it should start working as a timer to suspend my device after some time, and be killed with any activity (e.g. keyboard clicked, mouse moved).

But what is happening with me is that xsecurelock's screen saver will not work directly when my screen is locked, it will only work if I did an activity after locking my screen (without unlocking it) then keep it idle again.

I want xsecurelock's screen saver to work directly after locking my screen.

from xsecurelock.

useredsa avatar useredsa commented on June 11, 2024

The second exec of saver_sleep_after_time is not going to get executed because the shell will get replace with the sleep command.

I would also be interested in this state diagram.

from xsecurelock.

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.