Add display rotation: Rot pill, chandra-ctl rotate, sensor auto-rotate
CI / test (push) Failing after 51s

- Rotate the display 0/90/180/270 degrees in the KMS host, with scanout and libinput touch/pointer coordinates transformed to match
- Add a touch "Rot" pill beside "KB": tap turns 90 CW, long-press or right-click flips 180
- Add `chandra-ctl rotate [cw|ccw|flip|0|90|180|270|status]`; CHANDRA_ROTATE sets the initial orientation
- Add session/chandra-auto-rotate, which follows iio-sensor-proxy orientation (disable with CHANDRA_AUTO_ROTATE=0)
- Advertise window_menu, maximize, fullscreen and minimize via xdg_toplevel.wm_capabilities (xdg_wm_base v5+)
- Add docs/handset.md covering handset touch, scaling, OSK and rotation
This commit is contained in:
nandi committed 2026-11-28 00:39:24 -08:00
1 parent 905dab8725
commit 2e00009c79
21 files changed
+669 -63

No files matched your search

+3
View File
@@ -28,6 +28,9 @@ interface display {
/// Turn the screen on or off (DPMS). While it is off no frame is shown (`frame-ready` is false);
/// turning it on shows the last frame again.
set-power: func(on: bool);
/// Rotate the output (0 = 0 deg, 1 = 90 deg CW, 2 = 180 deg flip, 3 = 270 deg CW).
/// Returns `(width << 16) | height` of the new logical output size.
set-rotation: func(rot: u32) -> u32;
record pointer-pos { x: f64, y: f64 }
/// A button or key as an evdev code, pressed or released.