D8699: Support automatic screen rotation based on orientation sensor

Martin Flöser noreply at phabricator.kde.org
Tue Nov 7 16:36:14 UTC 2017


graesslin created this revision.
graesslin added reviewers: KWin, Plasma, sebas.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION SUMMARY
  This change introduces an OrientationSensor class which wraps a
  QOrientationSensor. The OrientationSensor is hold by Screens and gets
  enabled if Screens knows about an internal (e.g. LVDS) display which
  supports rotation. In addition the OrientationSensor holds an KSni to
  enable/disable the automatic rotation support.
  
  The drm platform plugin is adjusted to make use of the OrientationSensor.
  The API is defined in a way that this can also be implemented on other
  platforms supporting rotation. Most important are hwcomposer and X11
  standalone. The latter should be straight forward as rotation is provided
  through XRandR. The former needs addition for rotation support first.

TEST PLAN
  Rotated my Yoga 12

BRANCH
  automatic-rotation

REVISION DETAIL
  https://phabricator.kde.org/D8699

AFFECTED FILES
  CMakeLists.txt
  autotests/CMakeLists.txt
  orientation_sensor.cpp
  orientation_sensor.h
  plugins/platforms/drm/drm_object_plane.h
  plugins/platforms/drm/drm_output.cpp
  plugins/platforms/drm/drm_output.h
  plugins/platforms/drm/screens_drm.cpp
  plugins/platforms/drm/screens_drm.h
  screens.cpp
  screens.h
  tests/CMakeLists.txt
  tests/orientationtest.cpp

To: graesslin, #kwin, #plasma, sebas
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20171107/4728c5a7/attachment.html>


More information about the Plasma-devel mailing list