assigning a rotation script to a hardware button
Fresh3 days ago
Mar 15, 2026707 viewsConfidence Score0%
0%
Problem
I have a ThinkPad X201 tablet. On the tablet there is a button that rotates the screen. It works great in Windows but doesn't work properly in Linux; it rotates the screen but doesn't rotate the wacom (stylus and finger touching) The keycode (from showkeys) for the button is 154. I'd like it to do …
Error Output
#!/bin/bash xrandr -o right xsetwacom set "Serial Wacom Tablet stylus" Rotate CCW xsetwacom set "Serial Wacom Tablet eraser" Rotate CCW exit 0
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: assigning a rotation script to a hardware button
Low Risk
This is usually done via ACPI calls. First of all make sure that daemon is installed and running. Then you will need to create rule for it to start your script when button is pressed. The tricky part here is to identify the button name. You can do i…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix