Skip to content

Commit 1323857

Browse files
authored
Update Ubuntu-25-04-Tablet-Mode.md
“Undoing the Tablet-Mode Setup” Section Uses curl to download the undo script and immediately execute it under sudo. Detailed “What the Undo Script Does” description Unpins iio-sensor-proxy so that Ubuntu’s package manager can upgrade it normally. Purges the Fedora/Koji fallback and reinstalls the stock Ubuntu package. Disables & removes the custom Framework-sensor-proxy.service and reloads systemd. Deletes the custom udev rule at /etc/udev/rules.d/61-sensor-local.rules and triggers udev. Uninstalls the GNOME screen-rotate extension and its autostart entry from the user’s home. Removes the user from the plugdev group if previously added. Reloads system daemons (systemctl daemon-reload & udevadm trigger) to apply all changes immediately.
1 parent da6e572 commit 1323857

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

framework12/Ubuntu-25-04-Tablet-Mode.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,33 @@ The script uses a GNOME Shell extension (screen-rotate(at)shyzus.github.io) for
6363
- We will fork it and maintain it if needed in the future
6464

6565
The extension serves as the crucial interface layer between the low-level sensor drivers (iio-sensor-proxy) and the user-facing desktop environment, allowing the Framework Laptop 12 to function properly as a convertible device with automatic screen rotation when switching between laptop and tablet modes on Ubuntu 25.04.
66+
67+
---------------------------
68+
69+
# Undoing the Tablet-Mode Setup
70+
71+
If you need to roll back all of the auto-rotation and on-screen keyboard customizations and return to Ubuntu’s vanilla `iio-sensor-proxy`, follow these steps or save the script below as `undo-tablet-mode.sh` and run it under `sudo`.
72+
73+
```
74+
curl -s https://raw.githubusercontent.com/FrameworkComputer/linux-docs/refs/heads/main/framework12/scripts/Un-do-tablet-customizations.sh -o Un-do-tablet-customizations.sh && clear && sudo bash Un-do-tablet-customizations.sh
75+
```
76+
77+
What the Undo Script Does
78+
79+
This helper script reverses every customization applied by the tablet-mode installer, restoring Ubuntu’s original auto‐rotation setup.
80+
81+
- Unpins the sensor proxy package: Removes any apt-mark hold on iio-sensor-proxy so Ubuntu upgrades can manage it normally again.
82+
83+
- Removes the Fedora/Koji fallback: Purges the alien-converted RPM build of iio-sensor-proxy and reinstalls Ubuntu’s stock version from the official repositories.
84+
85+
- Deletes the custom systemd service: Disables and removes /etc/systemd/system/Framework-sensor-proxy.service, then reloads systemd so only Ubuntu’s default service remains.
86+
87+
- Deletes the custom udev rule: Removes /etc/udev/rules.d/61-sensor-local.rules and triggers udev to reload, restoring default device-node permissions.
88+
89+
- Uninstalls the GNOME screen-rotate extension: Deletes the extension directory under the user’s home (~/.local/share/gnome-shell/extensions/screen-rotate@…) and its autostart desktop file, so GNOME returns to its out-of-the-box state.
90+
91+
- Removes the user from the plugdev group: Optionally removes the user from plugdev if they were added, undoing any group-based permission grants.
92+
93+
- Reloads system daemons: Runs systemctl daemon-reload and udevadm trigger to apply all removals immediately, without requiring manual cleanup or a package-level reboot.
94+
95+
After running the script and **rebooting**, your laptop will be running **Ubuntu’s unmodified iio-sensor-proxy and default tablet-mode behavior** - this is useful for testing whether upstream updates have addressed the rotation issue.

0 commit comments

Comments
 (0)