Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4616

Advanced users • How to fix "xhost: unable to open display ":0" "

$
0
0
I'm executing a script as a service. When I'm executing this part :

Code:

sudo setterm --powerdown 0 --powersave off -blank >> /var/log/xrandr_debug.logsudo xset s off >> /var/log/xrandr_debug.logsudo xset -dpms >> /var/log/xrandr_debug.logsudo xset s off -dpms >> /var/log/xrandr_debug.logsudo setterm --powerdown 0 --powersave off -blank >> /var/log/xrandr_debug.log
I've this error

Code:

xhost: unable to open display ":0"setterm: terminal xterm-256color does not support --blanksetterm: cannot (un)set powersave mode: Inappropriate ioctl for devicexset: unable to open display ":0"
I've tried many solutions but the problem persists.

Doe's anyone have an idea about this problem and can tell me what to do to fix it.

Thanks in advance

Regards.

Statistics: Posted by bilogUser — Mon Feb 24, 2025 8:04 am — Replies 0 — Views 9



Viewing all articles
Browse latest Browse all 4616

Trending Articles