[Bug 94894] Upside down framebuffer

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jun 16 14:57:45 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=94894

--- Comment #15 from Hans de Goede <jwrdegoede at fedoraproject.org> ---
Hi,

(In reply to Carlo Caione from comment #14)
> I'm a bit lost on the status of this problem for 90/270 degree panel
> rotations and if we have a valid (or already upstreamed) solution.
> 
> I'm working on a Haier laptop (Haier HR101CW) with a cherryview controller
> [Intel Corporation Device 22b0 (rev 36)] that uses a portrait screen in
> landscape orientation. Everything is basically in portrait mode, including
> the BIOS setup.
> 
> Any set of patches that can be useful in this case? I tried the patches
> proposed in this thread but they do not work for my case (or for some reason
> I was unable to make them working fine).
> 
> Thanks.

90/270 degrees rotation is a separate problem from upside down mounted LCD
panels, as the BIOS also being wrong shows, this cannot be fixed in hardware,
so this will needs to be fully fixed in userspace which falls outside of the
scope of this bug.

What I'm doing on my gpd win is using an ACCEL_MOUNT_MATRIX to rotate the
accelerometer output to match the screen rotation and then just use gnome's
build in rotation, this does require tilting the laptop base at boot to get
iio-sensor-proxy to get an initial orientation value since when it is sitting
horizontal iio-sensor-proxy cannot determine the orientation.

I hope to have time in the future to make gnome read an initial orientation
from udev (hwdb) and use that as long as iio-sensor-proxy does not have
orientation info yet. This should also fix this on devices which don't have an
accelerometer.

You can get the kernel text console to rotate by adding the following to the
kernel cmdline:
fbcon=rotate:1

Regards,

Hans

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20170616/4c26cba7/attachment.html>


More information about the intel-gfx-bugs mailing list