SUMMARY In display settings/configuration ( that you can invoke also with marian@HPSpectre:~$ systemsettings5 kcm_kscreen ) add a new checkbox with label auto-orientation. It is a missing feature in KDE especially useful for tablets/touchscreens and convertible laptops with touchscreens. Take advantage of the binary /usr/bin/monitor-sensor (package iio-sensor-proxy in ubuntu/debian) to detect orientation of the hardware (normal, inverted , sideways) from accelerometer and use this status to change the screen orientation with xrandr or equivalent automatically on background/deamon. See https://gist.github.com/mildmojo/48e9025070a2ba40795c (marian556, mikelduke) https://github.com/mikelduke/rotate-touchscreen STEPS TO REPRODUCE missing feature
make sure it works also with wayland (and Xorg) and with HiDPI
It does. Please ensure QtSensors and all runtime deps are installed
I have kubuntu 21.04 (hirsute) marian@HPSpectre:~$ apt search QtSensors Sorting... Done Full Text Search... Done python3-pyqt5.qtsensors/hirsute 5.15.4+dfsg-1 amd64 Python 3 bindings for QtSensors module python3-pyqt5.qtsensors-dbg/hirsute 5.15.4+dfsg-1 amd64 Python 3 bindings for QtSensors module (debug extension) python3-pyside2.qtsensors/hirsute 5.15.2-1 amd64 Python bindings for Qt5 Sensors module (Python 3) qml-module-qtsensors/hirsute,now 5.15.2-2 amd64 [installed] Qt 5 Sensors QML module qtsensors5-doc/hirsute,hirsute,now 5.15.2-2 all [installed] Qt 5 Sensors documentation qtsensors5-doc-html/hirsute,hirsute 5.15.2-2 all Qt 5 Sensors HTML documentation qtsensors5-examples/hirsute,now 5.15.2-2 amd64 [installed] Qt 5 sensors examples Is it this qml-module-qtsensors ?
I installed qml-module-qtsensors and the feature is still not present. Display configuration has no new feature. Please explain how to enable from user perspective (not developer perspective) the automatic screen rotation on sensor/accelarator input in KDE, if that is possible at all.
Libraries and components for the developers implementing the feature is not sufficient. The KDE user interface (configuration/settings) with the feature must be available by default and must be intuitive enough and placed in the prominent and appropriate location Display configuration for the user to notice and take advantage of it.
There is a UI for this already available on Wayland, exactly where you're asking for it to be. :) Are you using X11?
Yes. I am using X11, because there is no hardware acceleration for 4k video decoding videos in chrome on wayland. It does work on X11 though. Also scaling for HiDPI does not work consistently on wayland. Is there a plan to backport feature to X11? Why the feature is wayland related only? I will test it on wayland though.
I'm not totally familiar with the technical details, but I believe we were not easily able to backport support to X11. There are a lot of features that are Wayland-only because Wayland's basic architecture makes them possible in a way that is not easily possible on X11 without a lot of fragile hacks.
I can confirm the feature works for Wayland. Reducing the scope of this to X11/Xorg. I still would like to see it working for Xorg/X11. Reopening this one last time. Wayland still has many issues , than can prevent many people to switch.
Is wishlist a synonym for 'never gonna happen' bin?
No. But if I'm being honest, this is probably in the "never gonna happen" bin anyway, for reasons unrelated to its classification as a wishlist.