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

Screen Saver #962

Closed
OCD3DP opened this issue Sep 1, 2020 · 11 comments
Closed

Screen Saver #962

OCD3DP opened this issue Sep 1, 2020 · 11 comments
Labels
enhancement New feature or request

Comments

@OCD3DP
Copy link

OCD3DP commented Sep 1, 2020

Maybe I've missed it somewhere, but is there a way to have the screen sleep or add a screen saver while printing or in standby? I forgot to turn my printer off last night, and now the control screen is mildly burned into my lcd screen.

Thanks in advance!

@OCD3DP OCD3DP added the enhancement New feature or request label Sep 1, 2020
@TheSin-
Copy link
Contributor

TheSin- commented Sep 1, 2020

I believe the wiki has info about DPMS

https://github.com/UnchartedBull/OctoDash/wiki/Installation#start-octodash-automatic-on-boot

I believe that turns it off, but if you google about it you should be able to find the setting you'd like to use for it.

https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling

@TheSin-
Copy link
Contributor

TheSin- commented Sep 1, 2020

Might be nice to have a control for this though, set it to off or a timeout incase you want to watch a print. with set it should be controllable.

@OCD3DP
Copy link
Author

OCD3DP commented Sep 1, 2020

Thanks... yep, I'm not extremely software savy, so a lot of this stuff is like reading Sanskrit to me.

@TheSin-
Copy link
Contributor

TheSin- commented Sep 1, 2020

the important parts are the set commands under

Modify DPMS and screensaver settings with a command

@UnchartedBull
Copy link
Owner

Will be tracked in #410. Once that is done OctoDash can do the screensaver stuff with nice UI configuration. Until then please rely on dpms (change that in ~/.xinitrc).

Btw are you using an OLED screen? Burn-in shouldn't happen on LCD screens, at least that's what I always though.

@OCD3DP
Copy link
Author

OCD3DP commented Sep 4, 2020

@UnchartedBull I'm using a Waveshare 7inch HDMI LCD (C) Capacitive Touch Screen... I just Google searched, and found that someone else had burned screen issues, so I may just replace it with something different. I'll have to take a crash course in making changes to the ~/.xinitrc

Thanks!

@dsbaars
Copy link

dsbaars commented Sep 6, 2020

I have the same screen and #410 will not solve this for us if it is only reducing the backlight.

To manually turn it off using the console:

export DISPLAY=:0
xset dpms force off

@UnchartedBull
Copy link
Owner

@dsbaars that is what is currently used for turning off the screen while sleeping. Why wouldn't that command work? I though all it does is set the screen brightness to 0 (which means turning off the backlight). Have you tried echo 0 | sudo tee /sys/class/backlight/rpi_backlight/brightness?

@dsbaars
Copy link

dsbaars commented Sep 7, 2020

It's an HDMI screen, which you can't control because /sys/class/backlight does not exist. I expect that only exist for screens connected through the DSI connector.

@UnchartedBull
Copy link
Owner

Does xbacklight -set 0 work with an HDMI screen?

@dsbaars
Copy link

dsbaars commented Sep 7, 2020

Nope:

pi@octopi:~ $ xbacklight -set 0
No outputs have backlight property

I also tried xrandr --output HDMI-1 --brightness 0.0 which does not give any errors in the console but does not have any effect.

Maybe this output is also useful:

pi@octopi:~ $ xrandr --verbose
Screen 0: minimum 320 x 200, current 1024 x 600, maximum 7680 x 7680
HDMI-1 connected primary 1024x600+0+0 (0x42) normal (normal left inverted right x axis y axis) 0mm x 0mm
        Identifier: 0x40
        Timestamp:  64425925
        Subpixel:   unknown
        Gamma:      1.0:1.0:1.0
        Brightness: 1.0
        Clones:
        CRTC:       0
        CRTCs:      0
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter:
        Broadcast RGB: Automatic
                supported: Automatic, Full, Limited 16:235
        bottom margin: 0
                range: (0, 100)
        top margin: 0
                range: (0, 100)
        right margin: 0
                range: (0, 100)
        left margin: 0
                range: (0, 100)
        link-status: Good
                supported: Good, Bad
        CONNECTOR_ID: 54
                supported: 54
        non-desktop: 0
                range: (0, 1)
  FIXED_MODE (0x42) 49.000MHz +HSync +VSync *current +preferred
        h: width  1024 start 1064 end 1168 total 1312 skew    0 clock  37.35KHz
        v: height  600 start  603 end  610 total  624           clock  59.85Hz

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

No branches or pull requests

4 participants