In Wayland, KDE Plasma supports automatic screen rotation (in tablets and convertible laptops) after installing iio-sensors-proxy
and enabling tablet mode.
However, automatic screen rotation does not work in X11.
How to enable automatic screen rotation in X11?
The Screen Rotator app can enable automatic screen rotation.
Install iio-sensors-proxy
if you already have not.
Then, install the app with yay -S screenrotator-git
Finally, add Screen Rotator
to startup programs, and reboot.
pebcak
October 27, 2023, 5:52am
3
Wow! You solved the problem in 3 minutes!
Congrats!
1 Like
I wrote the previous post to share my solution
pebcak
October 27, 2023, 6:20am
5
Ah, I see!
In that case, if this was a sort of How-To tutorial, the “convention” of the forum is to add [How-To] to the title of the topic.
No need to create two posts and mark one as solution.
Example:
I stumbled across this today. I have been using xmodmap for years to do this, but it has issues, it has a tendency to stop working.
cd /usr/share/X11/xkb/symbols
sudo cp gb hyper #Replace gb with your locale
sudo nano hyper
Add the following code within the { }s of xkb_symbols “basic”.
key <CAPS> {[ Hyper_L ]};
key <HYPR> {[ Hyper_R , Hyper_L ]};
modifier_map Mod3 { <HYPR> };
Ensure that there are no syntax errors
setxkbmap -layout hyper
If there are syntax errors, the command will ref…
1 Like
Yes, it was meant to be a how to tutorial. Thank you for informing me about the convention, I will follow your suggestion in the future.
Now that I have already created two posts, should I remove the latter and edit the first post into a [How To], or should I leave this as it is?
1 Like
pebcak
October 27, 2023, 6:26am
7
Up to you, do as you wish!
I am glad you found the solution to the issue and appreciate that you wanted to share it with the community! My congrats still stand!
1 Like
system
Closed
October 29, 2023, 6:27am
8
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.