touchkio icon indicating copy to clipboard operation
touchkio copied to clipboard

[Bug]: Screen automatically turns back on

Open mathieuchurlet opened this issue 10 months ago • 3 comments

Problem description

Hello,

I am using TouchKio on a Raspberry Pi 5 (OS: Raspberry Pi OS 64-bit, Desktop: Labwc/Wayland) to drive a 21.5-inch Uperfect dashboard.

The issue: When I turn off the display via MQTT, the screen automatically turns back on after approximately 45 to 60 seconds.

Analysis: Looking at the Home Assistant logs, I noticed that every "Display ON" event is immediately preceded by a "Screenshot" update. On Raspberry Pi 5 / Wayland, the wlr-screencopy process (or equivalent) seems to trigger a graphics pipeline wake-up, which Labwc interprets as user activity, thus powering on the HDMI output.

What I've tried to disable screenshots:

Added "mqtt_screenshot_interval": 0 and "screenshot_interval": 0 in Arguments.json.

Added --mqtt-screenshot-interval 0 and --disable-screenshot to the ExecStart line in the systemd user service.

Disabled the Screenshot entity in Home Assistant.

Despite these configurations, the logs show that TouchKio continues to take and send screenshots every 15-30 seconds, which keeps waking up the screen.

My Configuration:

Hardware: Raspberry Pi 5

Display: HDMI-A-1 (21.5")

Version: [latest]

Logs snippet:

18:56:53 - TouchKio Screenshot changed

18:57:07 - TouchKio Display turned ON

Question: Is there a specific way to completely disable the automatic screenshot feature in the current version? It seems the arguments or JSON parameters are being ignored for this specific function.

Thank you for your help and for this great project!

What version of touchkio is used?

1.4.2

What operating system and version is used?

pi os

Which display server is configured on the system?

Wayland

Which system hardware is used?

pi 5 8gb

Which screen hardware is used?

uperfect 21.5 inch

Which screen connection type is used?

HDMI + USB

Used arguments


Log file

No response

Additional information

No response

mathieuchurlet avatar Jan 24 '26 18:01 mathieuchurlet

I`m also highly interested in disabeling the screenshot feature!

albuslondon avatar Jan 31 '26 15:01 albuslondon

When I turn off the display via MQTT, the screen automatically turns back on after approximately 45 to 60 seconds

Hi mathieuchurlet

The screenshot being taken just before the display comes back on might be a red herring. Your issue has been encountered before (see here and here).

Try opening the cmdline file:

sudo nano /boot/firmware/cmdline.txt

and scroll all the way to the right and add a space followed by vc4.force_hotplug=1 if you are using HDMI 1 - the one closest to the USB C port (or vc4.force_hotplug=2 if you are using HDMI 2). This might fix your issue, as suggested here.

Image

tjb36 avatar Feb 12 '26 17:02 tjb36

See https://github.com/leukipp/touchkio/issues/181#issuecomment-4275035777.

leukipp avatar May 11 '26 17:05 leukipp