more creative output type detection in xrandr backend

Authored by sebas on Jun 14 2016, 1:32 AM.

Description

more creative output type detection in xrandr backend

Summary:
Many users report Unknown output types, while the reported output names
are more reliable. This patch makes the code fall back to the name-based
detection code (which was there already anyway, but hardly used).

I've removed one private static method, since this was only called from
one place and moving this logic into the method where the rest of the
string detection happens makes the code more readable.

The "panel" detection still plays a bit of a special role, this matches
the previous behavior, which I really don't want to change.

Also, "DP<something>" is commonly used for displayport connectors, so
match that as well.

CCBUG:364044

Reviewers: Plasma, dvratil

Reviewed By: dvratil

Subscribers: broulik, graesslin, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D1856

Details

Committed
sebasJun 14 2016, 12:34 PM
Reviewer
dvratil
Differential Revision
D1856: more creative output type detection in xrandr backend
Parents
R110:c2885c9621ea: don't override static cout in lambda
Branches
Unknown
Tags
Unknown