Coder Social home page Coder Social logo

Comments (5)

snobu avatar snobu commented on July 19, 2024

To clarify, it goes to sleep only with no keyboard activity not randomly.

from hyperpixel.

Gadgetoid avatar Gadgetoid commented on July 19, 2024

I'm not entirely sure how to accomplish this, there's an alternate solution documented here though:

https://www.raspberrypi.org/forums/viewtopic.php?t=158976

Add:

Section "ServerFlags"
Option "blank time" "0"
Option "standby time" "0"
Option "suspend time" "0"
Option "off time" "0"
EndSection 

Into /etc/X11/xorg.conf

Which might work!

from hyperpixel.

snobu avatar snobu commented on July 19, 2024

Hmm I naively assumed xset does exactly that but it may not touch the scope of that Xorg that I manually launch. Let me give it a shot. Thanks!

from hyperpixel.

snobu avatar snobu commented on July 19, 2024

Those ServerFlags seem to have no effect on my Xorg setup (i did check and it was picking up the right configuration file). Could be the right solution but just didn't work for me.

I fixed it by adding this to /etc/rc.local, in addition to the xsets in my original post:

xset dpms force on

TL;DR:

xset dpms force on
xset s noblank
xset s 0
xset s off

From man xset:

The force flags forces the server to immediately switch to the DPMS state specified. The DPMS state can be one of standby, suspend, off, or on.

Now the HyperPixel no longer goes to bed, which was the desired behavior. Will i end up with an overwork lawsuit on my hands from the Back Light Lawyers? We'll see.

@Gadgetoid If you believe this is valuable enough information to add to the HyperPixel README.md i can send a PR.

from hyperpixel.

Gadgetoid avatar Gadgetoid commented on July 19, 2024

@snobu glad you found a solution in the end! I, and I'm sure future users of HyperPixel, would appreciate a PR. Thank you!

from hyperpixel.

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.