Skip to content
A small, hacky KDED module for handling automatic screen rotation on tablets and hybrid laptops.
Branch: master
Clone or download
Latest commit 362ed01 May 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
CMakeLists.txt Install the orientation-helper script Jan 24, 2018
COPYING
README.md Update README.md Jan 17, 2019
install_kded_rotation.sh
kded_rotation.desktop initial commit Sep 28, 2016
orientation-helper Reverted the 2 as stderr redirection May 13, 2019
screenrotator.cpp improved orientation-helper Dec 11, 2018
screenrotator.h initial commit Sep 28, 2016

README.md

kded_rotation

KDED module for handling automatic screen rotation on X11, with visual feedback before orientation change happens. Some assembly might be required.

Installation

Run ./install_kded_rotation.sh and install missing dependencies as needed.

You'll most likely need qt5-qtbase-devel, cmake-utils, extra-cmake-modules, iio-sensor-proxy, xrandr, qt5-qtsensors and kf5-kded-devel. Depending on your distribution, these packages might have different names. CMake will tell you which packages it is missing.

Usage

orientation-helper is where the actual screen rotation happens. This is achieved by calling xrandr --rotation $value, which works in most circumstances. You can adjust orientation-helper to fit your setup and reinstall to apply.

To reduce or increase the timer before the rotation happens, adjust timer.start(25); in screenrotator.cpp:

void ScreenRotator::startProgress() {
	if (progress == -1) {
		timer.start(25);
		progress = 0;
	}
}
You can’t perform that action at this time.