william89731 / node-red-contrib-ssh-v3

node module for nodered
Apache License 2.0
10 stars 6 forks source link

"xget" commands on dpms always return "unable to open display" #15

Closed MrSiO closed 4 days ago

MrSiO commented 6 months ago

Hi! Ive been using Node-red-contrib-ssh-v3 for some time but ran in a problem latetly. A peticular command remote command just wont work. It's a command to turn ON or OFF a screen from a remote device trough SSH:

/usr/bin/xset dpms force off or /usr/bin/xset dpms force on Those commands work fine in the following conditions:

But when using Node-red-contrib-ssh-v3 node, I get the following error:

/usr/bin/xset: unable to open display ""

If I issue a "xset q" using the node, I get info that no displays are present.... If I issue a "xset q" from anywhere else (logged in remote device trought ssh from laptop or node-red cli) I do see available displays...

I dont understand why... Any help would be welcomed!