-
Notifications
You must be signed in to change notification settings - Fork 149
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
Change code of Turn monitor on/off #288
Comments
This explains why my display hasn't been shutting off. Your suggestion did not work for me. |
Hi! Thanks for reporting this issue. I'm not an owner of a RPi, so I cannot test those commands myself, but since there're many users of RC, we cannot take this change lightly. However, you could set you own config.js to point into the right direction, please check our FAQ and some older issues (#284 (comment)) to understand better my point. Hope you stay well! |
Would appreciate as well! |
Hi everyone, I finally understand why my home automation couldn't turn off my mirror anymore... Thanks @Fredi009sg ! Unfortunately we lose the function Monitor STATUS... I did some experiments with the command I understand that modification should not be made without careful consideration but maybe it would be possible to support several display managers... The default would remain vcgencmd but, with some configuration, we could support xrandr, tvservice, cec-client, etc... depending on the platforms. What do you think of this proposal ? |
This issue has been automatically marked as stale because it has not had |
@Killator there're certain modifications that can be made through the config file, no development needed. You can take a look into the Remote Control Wiki to understand better what I'm trying to point. If any of you are up to, we can modify the Wiki and let there established diferent working methods for every RPi and Linux instance, so that anyone can check which commands works in their usecase. |
Hi @ezeholz, Thanks for your response ! It works perfectly with the customCommand feature !
It would be perfect with the monitorStatusCommand to trace the information in my home automation. |
Hey @Killator! Glad that worked out perfectly.
|
For the monitor status command, here's what i did to get it to work on my RPi3:
make the script executable: Then add the custom command to the config: |
just in case it helps someone. here is what i just finally got to work |
Can I know how do I get this to work on a schedule? do I install this remote control module and will be able to set a schedule or do I have to do some setting? |
The power on\off commands in this module work for me. The randr work but reset my screen rotation when I run it to turn back on. This crontab works.
|
on rpi4 or rp5, it has 2 outputs. so xrandr --output HDMI-1 --auto not working.
Response like this:
HDMI-1 is our display name. at bookworm rpi 4 x64 use WAYLAND backend default. WAYLAND backend not response for --off command. you must change WAYLAND backend to Xorg (X11) backend. You can do that at below:
Advanced Options -> Wayland -> X11 -> Save -> Reboot now you can edit your config.js file like below:
|
Description
Since a while raspi core were modified and has removed "vcgencmd display_power" its not anymore possible to turn on and off the monitor. Which works for me as an alternative is the following code "xrandr -d :0 --output HDMI-1 --off" for turn monitor off and "xrandr -d :0 --output HDMI-1 --auto" for turn monitor on. Is there any change that you adjust the code ?
Changelog
No response
Requirements
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: