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

+7
View File
@@ -29,6 +29,9 @@ extern "C" fn mp_kms_set_cursor_shape(shape : Int) = "mp_kms_set_cursor_shape"
///|
extern "C" fn mp_kms_set_power(on : Int) = "mp_kms_set_power"
///|
extern "C" fn mp_kms_set_rotation(rot : Int) -> Int = "mp_kms_set_rotation"
///|
extern "C" fn mp_kms_next_event() -> Int = "mp_kms_next_event"
@@ -192,6 +195,10 @@ fn display_funcs() -> Array[(String, (Array[@wt.Val]) -> Array[@wt.Val])] {
none
},
),
(
"set-rotation",
a => [U32(mp_kms_set_rotation(a[0].to_int()).reinterpret_as_uint())],
),
("take-input", _ => [List(take_input())]),
(
"close",