hyperpixel4 icon indicating copy to clipboard operation
hyperpixel4 copied to clipboard

Why is my display in portrait mode?

Open maciekish opened this issue 6 years ago • 3 comments

Hi, i have a Rapsberry Pi 4 and a Hyperpixel 4.0. I used the normal setup script and selected "1" - "Rectangular Hyperpixel and Pi 4". After reboot my display works but its in portrait mode. Whats wrong?

maciekish avatar Sep 03 '19 18:09 maciekish

Run the command hyperpixel4-rotate left or hyperpixel4-rotate right to rotate screen and touch.

It's actually a portrait screen but the Pi4-native commands to rotate it don't work until it's installed/rebooted, thus the weird default and the need for hyperpixel4-rotate.

Gadgetoid avatar Sep 04 '19 15:09 Gadgetoid

That command didn't work for me, I tried both with and without sudo, tried both rebooting and full power downs

The touchscreen directions are now reflecting the change, but the screen display itself is still portrait, I used "left" for "hdmi is down". In fact, none of the directions work

I did a cat /var/log/syslog | grep -i hyperpixel

Sep 27 23:41:13 raspberrypi systemd[1]: Starting HyperPixel 4.0" LCD Display Initialization...
Sep 27 23:41:13 raspberrypi hyperpixel4-init[338]: /usr/bin/hyperpixel4-init:52: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
Sep 27 23:41:13 raspberrypi hyperpixel4-init[338]:   GPIO.setup([CLK, MOSI, CS], GPIO.OUT)
Sep 27 23:41:13 raspberrypi hyperpixel4-init[338]: Setting up HyperPixel4...
Sep 27 23:41:13 raspberrypi systemd[1]: hyperpixel4-init.service: Succeeded.
Sep 27 23:41:13 raspberrypi systemd[1]: Started HyperPixel 4.0" LCD Display Initialization.

Please help

EDIT:

I don't know if this is by design, but it works if you actually just go into the GUI Screen Configurations to do the rotation. The command is still needed because of the touchscreen coordinates, but it seems like, at least for me, the screen only rotates when you go into the Screen Configuration item inside the start menu, the command is not what rotates the screen. So... problem solved, sort of? I feel like either there's a bug or the documentation isn't clear enough.

frank26080115 avatar Sep 28 '19 06:09 frank26080115

Hi there. I know this thread is old and you've probably resolved the issue, but if you're using a headless set up over SSH the command just has to be prefixed with "DISPLAY=:0.0", so the full command would be (no need for sudo):-

"DISPLAY=:0.0 hyperpixel4-rotate left"

"left" can be replaced with "right", "inverted", "normal". can confirm I haven't yet found a way to boot into landscape.

Hope this helps.

witemike avatar Dec 29 '20 23:12 witemike