Comments (6)
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.
See also this forum post. https://forums.raspberrypi.com/viewtopic.php?p=2036401&hilit=display_power#p2036401
from userland.
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.
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.
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.
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)
- Documentation for the `pwm_speedup` command in vcgencmd HOT 4
- host_applications/linux/apps/hello_pi/hello_fft/mailbox.h: remove declaration of get_version? HOT 2
- Chromium Crash While Printing(Print Preview) HOT 1
- The `usb-modeswitch-data` package needs to be updated to ( `usb-modeswitch-data` package (2019-11-28 )) HOT 1
- [Bullseye] Add libraspberrypi0 symlinks to package HOT 10
- vcos_dummy_thread_cleanup() SEGV when attempting to call function in unloaded lib HOT 2
- vcsm_lock_cache not implemented for /dev/vcsm-cma HOT 1
- glReadPixels from a pixel buffer object yields an empty buffer
- ./buildme doesn't work HOT 7
- Unattended upgrades doesn't work HOT 1
- 64 bit builds fail to produce raspistill, raspivid etc HOT 1
- Changes regarding OMX_Broadcom in arm64 vs legacy rapsbian image HOT 2
- enable USB serial gadget mode by default
- chromium-browser mishandles video playback, hanging the system HOT 2
- Invalid command line option (-roi) HOT 2
- undefined reference to `bcm_host_init' HOT 10
- Alternative of userland in Bullseye HOT 1
- Raspivid Feature Request: BT.709 Levels HOT 2
- Slow chromium-browser start with error "ERROR:network_service_instance_impl.cc(601)] Network service crashed, restarting service."
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from userland.