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

General discussion • Buttons to set Touch Display 2 orientation?

$
0
0
I can go into preferences, display settings, choose the Touch Display 2, bring up a menu, then an orientation sub menu, pick a new orientation, apply it, then confirm/save it.

If I'm using the Pi with touch display hand held, this is a lot of action to switch from portrait to landscape (and back), whenever I adjust how I'm holding the device.

Is there a quicker and more convenient way? Specifically, I don't want to edit a config file and reboot. I want to do what the GUI setting does, just automated.

What I'd like to do is make two scripts/icons on the desktop, labeled portrait and landscape, each running a command to do exactly what those GUI settings do, but without the required multi-step user interaction.

Then, if I want to switch from landscape to portrait (e.g. to do some reading), I just view desktop, click "portrait", and then go back to whatever app I use for reading. When done, I just view desktop, click "landscape", and orientation changes again.

Advice on how to achieve this? (And in the future, I could hook up an accelerometer to take the same actions automatically.)

Statistics: Posted by mlepage — Fri Feb 28, 2025 2:51 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles