turning on and off display to save power

March 16, 2024, 23:59

tomatoes6868

i bought this and it works https://www.amazon.com/gp/product/B07RT7MK7C/ref=ppx_yo_dt_b_asin_title_o07_s00?ie=UTF8&psc=1#customerReviews i bought https://www.amazon.com/gp/product/B0C3V7TCG8/ref=ppx_yo_dt_b_asin_title_o08_s00?ie=UTF8&psc=1 im using dakboard on a rasp pi 4 i have tried everything i can find online but i cannot get it to work properly to turn the display on and off does anyone have experience i can get it to read motion with this guide but i cant get it to actually turn off and on the screen https://www.thedigitalpictureframe.com/pir-motion-sensor-raspberry-pi-digital-picture-frame/

k9t33n

is the display gpio powered?

k9t33n

also please don't cross post. I shall also change your title so it will describe your issue better since your not having issues with the sensor but the display

tomatoes6868

No it's HDMI with a separate power source

k9t33n

then you need a way to control that seperate power source

k9t33n

can it be powered via the pis usb?

tomatoes6868

yeah but when i plug in the usb for the touch functionality it wont work if i power by the pi. but it does turn the screen on and boot to dakboard

k9t33n

oh

k9t33n

then however you power it you need to be able to control that from the pi

k9t33n

maybe some switch plug with Bluetooth?

tomatoes6868

i was able to get it to power from the pi and touch works

k9t33n

great

k9t33n

<@&818389709134626826> how can we switch off a usb on the pi at will?

illegitimate_egg

It's tied to the 5v bus isn't it?

k9t33n

no clue

tomatoes6868

it would be switching off the hdmi on and off depending on motion its a argon case with the full size hdmi ports

oops.se

Test: vcgencmd display_power 0 or echo 'standby 0' | cec-client -s -d 1 # Needs the pkg cec-utils Check this link for more info: https://raspberrypi.stackexchange.com/questions/145461/turn-off-hdmi-rpi-4b-bookworm

tomatoes6868

i just keep getting unable to open display

tomatoes6868

in that link is the board

oops.se

Please remove the stuff after the "?" when you post links

k9t33n

that's just a load of tracking stuff

tomatoes6868

try that

tomatoes6868

i guess its not that big of a issue ill just have dakboard change photos every few mins to avoid burnout

oops.se

After reading the source code (https://github.com/raspberrypi/utils/blob/master/vcgencmd/vcgencmd.1) vcgencmd display_power 0 7 Will turn off power to display ID 7, which is HDMI 1 on a Raspberry Pi 4.

oops.se

You could also test kmsblank and the commands kmsprint and kmstest will show what displays that is connected

tomatoes6868

i plugged it into a rpi 3 using the same sd card and i still get the unable to open display error

sravdar

Hello people who discussed @here. On bookworm when using kms "vcgencmd display_power 0" does not work but with fkms it does. Is there any workarounds to make it work with kms? Also what would be impact of changing from kms to fkms? I am using rpi with wayfire to display webpages in chromium and videos.