Fix boot sequence errors, enable instant Chrony online sync, and add timezone UI
- Boot sequence cleanups:
- Scope ModemManager's musl shared-plugin LD_PRELOAD to the child daemon via
supervise_daemon_args="--env LD_PRELOAD=..." so OpenRC helpers and plugins
start cleanly with zero "symbol not found" errors.
- Link XLibre fbdev_drv.so against libfbdevhw.so and libshadow.so, pin
libxfont2 in rootfs-packages.txt, populate /usr/share/fonts/*/fonts.dir,
provide XKeysymDB entries, create ~/.cache before dmenu_run, disable TearFree
for ShadowFB modesetting, and avoid D-Bus autolaunch collision with
ModemManager.
- Enable CONFIG_SYN_COOKIES=y and disable IPMI_HANDLER in
geminux-mt6797x.config, add /etc/sysctl.d/00-alpine.conf, drop x86
kernel.nmi_watchdog from 99-geminux-power.conf, and disable module
load/unload in zram-init for built-in zram.
- Add MT6797 ALSA UCM2 DL2/DL3/UL2/UL3/UL_MONO_1 backend DAI routes in
HiFi.conf and apply 0006-mt6797-boot-cleanups.patch (stk3310 ID 0x11,
mt6797-fm firmware search path, mt6797_mac_wq, and pre-auth TX abort).
- Chrony immediate online time sync:
- Enable FAST_STARTUP, configure makestep 1.0 -1 with sourcedir
/etc/chrony/sources.d, and trigger burst/waitsync/makestep/hwclock on
NetworkManager interface up via 30-geminux-chrony.
- Date, Time & Timezone UI:
- Add geminux-datetime libgemui X11 utility with zoneinfo browser, live
search, region filters, and NTP sync trigger.
- Add doas-authorized geminux-tzctl helper with zoneinfo validation and
update geminux-statusd to reload /etc/timezone cleanly under musl.
This commit is contained in:
1 parent
6aea73cbeb
commit
8843558f3b
65 files changed
+1060
-37
No files matched your search
@@ -10,11 +10,12 @@
|
||||
#define HIT_VOL 2
|
||||
#define HIT_PROF 3
|
||||
#define HIT_LED 4
|
||||
#define HIT_LOCK 5
|
||||
#define HIT_SUSPEND 6
|
||||
#define HIT_REBOOT 7
|
||||
#define HIT_POWER 8
|
||||
#define HIT_MIXER 9
|
||||
#define HIT_LOCK 5
|
||||
#define HIT_SUSPEND 6
|
||||
#define HIT_REBOOT 7
|
||||
#define HIT_POWER 8
|
||||
#define HIT_MIXER 9
|
||||
#define HIT_DATETIME 10
|
||||
|
||||
typedef struct {
|
||||
gemui_app_t *app;
|
||||
@@ -94,7 +95,7 @@ static void on_draw(gemui_app_t *app, cairo_t *cr, int w, int h, void *ud) {
|
||||
ctrl_state_t *st = ud;
|
||||
const gemui_theme_t *t = gemui_theme(app);
|
||||
|
||||
gemui_draw_header(app, cr, "\xef\x80\x93", "Geminux Control Center", "Power, Audio, Display & LEDs");
|
||||
gemui_draw_header(app, cr, "\xef\x80\x93", "Geminux Control Center", "Power, Audio, Display, Time & LEDs");
|
||||
|
||||
int pad = 24;
|
||||
int cw = (w - pad * 2);
|
||||
@@ -105,12 +106,14 @@ static void on_draw(gemui_app_t *app, cairo_t *cr, int w, int h, void *ud) {
|
||||
snprintf(btxt, sizeof(btxt), "%d%%", (int)(bnorm * 100.0 + 0.5));
|
||||
gemui_draw_slider(app, cr, st->bri_rect, "Display Backlight", bnorm, btxt, HIT_BRI, 0, false);
|
||||
|
||||
st->vol_rect = (gemui_rect_t){pad, 210, cw - 240, 104};
|
||||
st->vol_rect = (gemui_rect_t){pad, 210, cw - 468, 104};
|
||||
char vtxt[32];
|
||||
snprintf(vtxt, sizeof(vtxt), "%d%%", st->vol_pct);
|
||||
gemui_draw_slider(app, cr, st->vol_rect, "Master Audio Volume", st->vol_pct / 100.0, vtxt, HIT_VOL, 0, false);
|
||||
gemui_draw_button(app, cr, (gemui_rect_t){pad + cw - 228, 210, 228, 104},
|
||||
gemui_draw_button(app, cr, (gemui_rect_t){pad + cw - 456, 210, 222, 104},
|
||||
"Audio Mixer", HIT_MIXER, 0, true, false, false);
|
||||
gemui_draw_button(app, cr, (gemui_rect_t){pad + cw - 222, 210, 222, 104},
|
||||
"Time & Zone", HIT_DATETIME, 0, false, false, false);
|
||||
|
||||
gemui_draw_text(cr, t, (gemui_rect_t){pad, 330, cw, 40},
|
||||
"MT6797X Power Profile (A72 Big Cluster + Schedutil)",
|
||||
@@ -181,6 +184,9 @@ static void on_ptr(gemui_app_t *app, int type, int x, int y, unsigned int btn, v
|
||||
} else if (hit->id == HIT_MIXER) {
|
||||
const char *cmd[] = {"geminux-audio", NULL};
|
||||
gemui_spawn_detached(cmd);
|
||||
} else if (hit->id == HIT_DATETIME) {
|
||||
const char *cmd[] = {"geminux-datetime", NULL};
|
||||
gemui_spawn_detached(cmd);
|
||||
} else if (hit->id == HIT_PROF) {
|
||||
static const char *pnames[3] = {"eco", "balanced", "performance"};
|
||||
st->profile = hit->val;
|
||||
|
||||
Reference in new issue
Block a user