- Map VolumeUp, VolumeDown, and Mute keys to wpctl (PipeWire) or pactl, run asynchronously so the compositor never blocks - Hold a volume key to repeat it; volume keys also work while the screen is off, without waking it - Keep volume keys as the shutter when chandra-camera has focus; Mute still toggles system audio - Add `chandra-ctl volume [up|down|mute|unmute|toggle|PCT|status]` and a transient Volume OSD - Add volume-up, volume-down, and volume-mute entries to the shortcut table
This commit is contained in:
1 parent
ebdd330eb5
commit
68912f6d64
11 files changed
+909
-1
No files matched your search
@@ -42,6 +42,17 @@ Chandra includes KMS/libinput/compositor adaptations tailored for mainline Linux
|
||||
- **Power key blank/wake:** Pressing `KEY_POWER` (`116`) in [`compositor/host/compositor.mbt`](../compositor/host/compositor.mbt) toggles manual screen blanking (`DPMS` off/on + touch cancellation in [`compositor/kms/kms_stub.c`](../compositor/kms/kms_stub.c)) while ignoring stray touches during blanking. Also controllable via `chandra-ctl screen [on|off|toggle|status]`. (Set `HandlePowerKey=ignore` in `/etc/systemd/logind.conf.d/` so `logind` does not power off immediately.)
|
||||
- **Settings Brightness slider:** [`compositor/shell/backlight.mbt`](../compositor/shell/backlight.mbt) reads `/sys/class/backlight/` (`ae94000.dsi.0`, `CHANDRA_BACKLIGHT` override) and writes changes via sysfs or `org.freedesktop.login1.Session.SetBrightness`. When a backlight device exists, **Settings > Power > Brightness** shows a `-` / slider / `+` control (`5%..100%`), also accessible via `chandra-ctl brightness [PCT|status]`.
|
||||
|
||||
## Audio & Volume Buttons
|
||||
|
||||
- **Audio stack (PipeWire + WirePlumber + OnePlus 6T UCM2):** `pipewire`, `wireplumber`, `pipewire-pulse`, and `pipewire-alsa` drive the OnePlus 6T (`fajita`) ALSA UCM2 `HiFi` profile (`Speaker`, `Headphones`, `Mic1`/`Mic2`, `Headset`), with Qualcomm buffer tuning from `51-qcom.conf`.
|
||||
- **Hardware volume keys:** [`compositor/host/volume.mbt`](../compositor/host/volume.mbt) binds `VolumeUp` (`KEY_VOLUMEUP` / `115`), `VolumeDown` (`KEY_VOLUMEDOWN` / `114`), and `Mute` (`KEY_MUTE` / `113`) in [`compositor/shell/shortcuts.mbt`](../compositor/shell/shortcuts.mbt) to async `wpctl` (with `pactl` fallback) commands:
|
||||
- `5%` step per press, unmuting on volume up and capping hardware button increases at `100%`.
|
||||
- Hold-to-repeat after `400 ms` (`90 ms` cadence) until key release.
|
||||
- Works while the display is blanked (`screen_off` / `manual_screen_off`) without waking the screen.
|
||||
- Passes `VolumeUp` / `VolumeDown` straight through to `chandra-camera` when it is the active foreground window (with no modal/popup/modifier) so the hardware buttons keep acting as the camera shutter.
|
||||
- Shows a floating top-center Volume OSD pill (`1.8 s`) when the screen is on, and exposes `chandra-ctl volume [up|down|mute|unmute|toggle|PCT|status]`.
|
||||
- **Mixer GUI (`moonmix`):** [`org.latha.moonmix`](https://git.site.latha.org/geordi/moonmix) provides a GTK4 + `libwireplumber` volume mixer (Playback, Recording, Output Devices, Input Devices) integrated into the launcher.
|
||||
|
||||
## Face Unlock (`libcamera`)
|
||||
|
||||
- On phones whose MIPI sensors (`imx371`, `imx519`, `imx376`) require `libcamera` SoftISP rather than raw V4L2 nodes, [`face/chandra-face`](../face/chandra-face) supports `libcamera:<camera-id>` entries via `python-libcamera` and applies `libcamera.properties.Rotation`. [`face/install.py`](../face/install.py) supports `--system-python` to run with system `python-opencv` + `python-numpy` on `aarch64`, and [`face/polkit-agent-helper.conf`](../face/polkit-agent-helper.conf) grants `char-video4linux`, `char-media`, and `char-dma_heap` access to polkit's helper sandbox.
|
||||
|
||||
Reference in new issue
Block a user