GithubHelp home page GithubHelp logo

Comments (6)

Ventto avatar Ventto commented on July 30, 2024

@aconthea, thanks for the feedback.

Currently, there is no way to handle it.

mons based on xrandr's output, I need first to compare the output before and during the sleep mode. But I only see xrandr --auto (see below) that might block the screen or more precisely it might set the screen settings according to the current one (sleep mode) ad vitam aeternam every second.

This is the script part of the -m daemon mode option:

    if $mFlag ; then
        while true; do
            if [ "$("${XRANDR}" | grep ' connect' | wc -l)" -eq 1 ]; then
                "${XRANDR}" --auto
            fi
            sleep 1
        done
    fi

Adding extra parameters to xrandr --auto can do the job ?
I'm investigating.

from mons.

breneser avatar breneser commented on July 30, 2024

@Ventto Thanks for clarifying.

I tried to run a quick test with xrandr --auto; Ran the following script as a foreground process and it doesn't cause any issues.

while true; do xrandr | grep ' connect' 2>&1 >> .log; date >> .log; xrandr --auto 2&>1 >> .log; sleep 2; done

Though when I run mons -m as foreground process the screen doesn't wake up.

Can you see any difference between ?

from mons.

breneser avatar breneser commented on July 30, 2024

I am not sure if this helps, bu changing the sleep time to 2 seconds in mons solves the problem. But I am not really sure if screen ever goes to sleep, it keeps coming in about every 10 minutes displaying no signal. I think it just goes into stand by mode. This is quite confusing.

from mons.

Ventto avatar Ventto commented on July 30, 2024

Try until find an empiric value for sleep.

It might be interesting to verify the screen's status (c.f /sys/class/drm/*).
Does the sleep mode mean "connected but disabled output" ?

From xrandr's manpage:

--auto For connected but disabled outputs, this will enable them using 
their first preferred mode (or, something close  to 96dpi if they have 
no preferred mode). For disconnected but enabled outputs, this will 
disable them.

from mons.

Ventto avatar Ventto commented on July 30, 2024

I've re-produced your xset configuration with a VGA monitor.
Indeed, increasing the sleep time solved the problem.

Also, do not perform xrandr command every loop if the state is still the same (nothing happens), avoids to reduce the screen in speed and cause "no signal" message periodically.

After some research, the four DPMS modes are initially specified for CRTs but for LCDs and later there is often no difference between standby, suspend, and off.

from mons.

breneser avatar breneser commented on July 30, 2024

Hey, sorry for late reply. I see you fixed the issue. Thanks a lot.

from mons.

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.