From 83f52f914efa015a6efccee20021ef6edfea15e9 Mon Sep 17 00:00:00 2001 From: Mario Franzbonenkamp Date: Tue, 15 Mar 2022 23:28:45 +0100 Subject: [PATCH] Fixes #10697: Do only rotate if tablet mode is active --- .../share/cinnamon/cinnamon-settings/modules/cs_display.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_display.py b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_display.py index 9f7c384edd..dbe6f517c3 100644 --- a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_display.py +++ b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_display.py @@ -48,6 +48,10 @@ def on_module_selected(self): switch.set_tooltip_text(_("Select this option to disable automatic screen rotation on hardware equipped with supported accelerometers.")) settings.add_row(switch) + switch = GSettingsSwitch(_("Rotate in tablet mode only"), "org.cinnamon.settings-daemon.peripherals.touchscreen", "tabletmode-lock") + switch.set_tooltip_text(_("Select this option to enable automatic screen rotation only if your convertible is in tablet mode. In general, tablet mode is being activated by folding the display at least 180 degrees.")) + settings.add_row(switch) + switch = GSettingsSwitch(_("Enable fractional scaling controls (experimental)"), "org.cinnamon.control-center.display", "show-fractional-scaling-controls") switch.set_tooltip_text(_("Select this option to display additional layout controls for per-monitor scaling.")) settings.add_row(switch)