pimoroni / hyperpixel4

Driver for the Pimoroni HyperPixel 4.0" Touchscreen Display
https://shop.pimoroni.com/products/hyperpixel-4?variant=12569485443155
329 stars 47 forks source link

Raspistill images rotated #142

Open mspeculatrix opened 3 years ago

mspeculatrix commented 3 years ago

I'm using the (recently bought) HP4 on an RPi 4/8GB with a fresh install of Raspberry Pi OS (32-bit). Also mounted on the Pi is the RPi high-quality camera.

I'm using the screen in landscape mode, and so used 'hyperpixel4-rotate left' which has set up the screen and touch fine and all seems to be working okay.

Except that when I snap a pic with raspistill, the preview image is rotated - ie, it's on its side (as it would have been if I hadn't used the rotate command). It's like it doesn't know what the screen's rotated.

Using -rot with the raspistill command doesn't solve the issue, it simply takes a portrait format image instead of a landscape one.

Any ideas?

Gadgetoid commented 3 years ago

I guess this happens because raspistill draws directly into the framebuffer, ignoring the rotated, composited desktop produced by X. It's not something I can fix. And it's not really even a "bug" per se- since raspistill probably doesn't know or care what the desktop environment is doing. I guess you'd need to raise a feature request over at https://github.com/raspberrypi/userland/issues