This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
xrandr Not Finding HDMI-1 Without Display Being Set #8
Comments
Strange, everything works fine for me (same config)... |
|
Same problem here with this setup:
and this config:
|
I found that I needed to set the display when I was connected over SSH. If I ran the commands directly from the machine it worked. I don't know if that helps you, but it might point you in the right direction for finding a solution. |
And how to set the Display? Can you give more Informations please? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I was just testing your module and was having trouble with the
xrandr
commands not having any effect. I added some additional logging to theexec()
command to capture stderr and found this for both turning the display on and off:[ERROR] stderr: warning: output HDMI-1 not found; ignoring
After a bit of playing around I was able to get it to work by changing the
exec()
lines innode_helper.js
from:exec("xrandr --output " ...
to:
exec("DISPLAY=:0 xrandr --output " ...
With this change in place, both on and off are working. I don't know why my system needs that to work, but I thought I would share it with you in case this is something you haven't seen before. Maybe something to add to your implementation? I can submit a PR with the change if you would like.
Here's my system information if you're interested:
And here's my config.js entry:
The text was updated successfully, but these errors were encountered: