Unclutter on Official Touchscreen

Mar 23, 2024 Last reply: 2 years ago 11 Replies

I am trying to use unclutter on bookworm with the official 7" touchscreen.



However I get unclutter: could not open display


How and when are you running the command?

john

At the mmoment just from the command line to test it out

From the command line... in a terminal emulator inside X? Because if you're ssh'd in you'll need to tell it which display to talk to, e.g. DISPLAY=0 unclutter

john

This should, of course, be

DISPLAY=:0 unclutter

Mea culpa.

john

The problem is I do not know what the value for display=: should be as 0 does not work (display not found) and all other numbers produce the same result

If you are running X, it's almost certainly :0

If you're not running X, what do you expect this X program to do when you run it?

n.b. it *must* be DISPLAY=:0, not display=:0

john

Usually :0.0 for the local display I think:-

chris$ echo $DISPLAY :0.0 chris$

Has Wayland arrived on rPIs yet?

It broke my ways of running X apps from consoles when it arrived in Fedora ...

Wayland came with Bookworm, on Pi4 and Pi5. You can switch back to X using rpi-config

Good call, I'd forgotten about the Wayland possibility.

If you're running Wayland, I would be shocked if unclutter works at all.

john

You are correct - I am using Waylnd and it does not work!

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required