]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/video/fbdev/core/fbcon.c
video/console: Add dmi quirk table for x86 systems which need fbcon rotation
authorHans de Goede <hdegoede@redhat.com>
Fri, 18 Aug 2017 17:56:39 +0000 (19:56 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 18 Aug 2017 17:56:39 +0000 (19:56 +0200)
commitb0d8e409c3626eae42b59a3d76574804f2cef5ef
tree6147b654939312013ad3435496211821611ed7bd
parent5ad3f3f6eb1fbec716a61dbe46565dcd9ca94387
video/console: Add dmi quirk table for x86 systems which need fbcon rotation

Some x86 clamshell design devices use portrait tablet screens and a
display engine which cannot rotate in hardware, so we need to rotate
the fbcon to compensate.

This commit adds a DMI based quirk table which is initially populated with
4 such devices: The Asus T100HA, GPD Pocket, the GPD win and the I.T.Works
TW891, so that the console comes up in the right orientation on these
devices OOTB.

Unfortunately these (cheap) devices also typically have quite generic DMI
data, so we match on a combination of DMI data, screen resolution and a
list of known BIOS dates to avoid false positives.

Suggested-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
[b.zolnierkie: ported over fbcon changes]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/core/Makefile
drivers/video/fbdev/core/fbcon.c
drivers/video/fbdev/core/fbcon.h
drivers/video/fbdev/core/fbcon_dmi_quirks.c [new file with mode: 0644]