Giter Club home page Giter Club logo

Comments (6)

timg236 avatar timg236 commented on September 10, 2024 1

See comment from JamesH65. "vcgencmd display_power 0" is only supported by the legacy FKMS display stack (vc4-fkms-v3d). The default is now KMS (vc4-fkms-v3d)

Use the xset dpms commands to control display power with KMS
https://www.computerhope.com/unix/uxset.htm

from userland.

JamesH65 avatar JamesH65 commented on September 10, 2024 1

See also this forum post. https://forums.raspberrypi.com/viewtopic.php?p=2036401&hilit=display_power#p2036401

from userland.

JamesH65 avatar JamesH65 commented on September 10, 2024

It sounds like you have started using the KMS driver, having moved from either the FKMS or the legacy graphics stack. That requires using the standard Linux command for turning displays on and off, not vcgencmd

from userland.

ismarslomic avatar ismarslomic commented on September 10, 2024

If that is the case, then I did not do this switch intentionally. The only change I did, before things got broken, was to run sudo apt update && sudo upgrade -y. What standard Linux command would you recommend, as replacement for the vcgencmd? I use the LCD screen on my smart mirror, and I just need to be able to turn it on/off when needed, through CLI.

from userland.

ismarslomic avatar ismarslomic commented on September 10, 2024

I just did a fresh reinstall of Raspberry Pi OS and installed the new updates on another rpi . Then I tested turning off the screen with vcgencmd display_power 0, bot same issue. Screen is still powered on!

Can anyone try reproducing these on their rpi?

from userland.

ismarslomic avatar ismarslomic commented on September 10, 2024

Thanks for helping out! I managed to turn the screen off/on with xset and xrandr, sharing details below so other users can find it later.

# tell xset which display to use
export DISPLAY=:0

# xandr turn off
xrandr --output HDMI-1 --off

# xandr turn on
xrandr --output HDMI-1 --auto

# xset turn off
xset dpms force off

# xset turn on
xset dpms force on

Important note: Screen Blanking must be enabled if using xset, otherwise you will see error saying "server does not have extension for DPMS option", ref https://forums.raspberrypi.com/viewtopic.php?t=277548

from userland.

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.