Persist screen brightness, enable universal evdev key/lid wake, and add *+# screenshot combo

This commit is contained in:
Luxferre committed 2026-10-27 22:24:39 +02:00
1 parent eef8584a8d
commit 2e2adcc7f2
38 files changed
+574 -161

No files matched your search

+4
View File
@@ -39,6 +39,10 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
- **Camera sensor support and orientation fix (`msm8905-cam`, `xcamera`, and `bananarchy-photo`)**:
- Extended `msm8905-cam` (`/dev/video0`) to support the GalaxyCore `GC2385` (`0x2385`, used on Nokia 8110 4G `TA-1059`) and `GC2365` (`0x2365`) 2MP MIPI CSI-2 camera sensors alongside `GC2395` (`0x2395`, used on `TA-1048`).
- Rotated the raw `800x600` `GC2395`/`GC2385`/`GC2365` sensor frames 90 degrees clockwise in both the live `240x180` 4:3 viewfinder (`downscaleViewfinder800x600To240x180`) and captured JPEG photos (`600x800` portrait output in `xcamera` and `bananarchy-photo`).
- **Screen brightness persistence, universal evdev wake, and `*` + `#` screenshot combo**:
- Persisted screen and keypad backlight brightness across slider open/close, lock/unlock, and X11 session restarts (`~/.config/sxmo/brightness` and `/tmp/sxmo_saved_brightness` across `dwm`, `xdrawer`, `dmenu`, `sxmo_wm.sh`, `sxmo_brightness.sh`, and `bananarchy-x11-session.sh`).
- Added direct kernel `evdev` key and lid polling (`event0`–`event3`) in `dwm` and disabled deep system suspend (`sxmo_autosuspend`, `sxmo_suspend.sh`, and `elogind` `AllowSuspend=no`) so the phone never enters an unwakeable state and wakes immediately on any keypad key, the power key, or opening the slider even when a plugin holds `XGrabKeyboard`.
- Added a global **`*` + `#`** simultaneous key combo (`KEY_NUMERIC_STAR` + `KEY_NUMERIC_POUND` in `dwm` via `/usr/bin/bananarchy-screenshot` and `scrot`) to capture `240x320` PNG screenshots into `~/Pictures/screenshot-YYYYMMDD-HHMMSS.png` from anywhere with haptic and toast feedback.
- **Window management, context menu, and `fcitx5` XIM stability fixes**:
- Added direct C-level `_BANANARCHY_DWM_CMD` IPC between `dmenu` and `dwm` for instant window management (`Kill window`, `Close Terminal`, `Move to WS 1..4`, `Go to WS 1..4`, `Shift stack`, `Swap stack`, `Toggle Layout`) and restored application context menus (`Right softkey` inside `st`, `nano`, and X11 apps).
- Updated the `fcitx5` `superd` service wrapper (`bananarchy-fcitx5.sh`) and XIM environment propagation across `st`, `dmenu`, and `dwm-plugin` so T9 keypad input stays supervised and active across all terminal and menu sessions.