Add geminux-imsd (VoLTE/VoWiFi/SMS), kernel XFRM, and hardware Airplane Mode (Fn+F)

This commit is contained in:
Luxferre committed 2026-11-25 08:44:27 +02:00
1 parent 92a31539e6
commit ac76431621
84 files changed
+4209 -103

No files matched your search

+21 -1
View File
@@ -515,9 +515,28 @@ static int handle_media_transport(const char *action) {
return 0;
}
static int handle_airplane(void) {
char out[256] = {0};
const char *cmd[] = {"doas", "/usr/bin/geminux-power-ctl", "airplane", "toggle", NULL};
int rc = run_cmd(cmd, out, sizeof(out));
if (rc != 0) {
show_osd("airplane", 2200, -1, "Airplane Mode", "Failed to toggle radio hardware state");
return rc;
}
bool on = (strstr(out, "airplane=on") != NULL);
if (on) {
show_osd("airplane", 2400, -1, "Airplane Mode: ON",
"Wi-Fi, Bluetooth & 4G Modem Powered Off");
} else {
show_osd("airplane", 2400, -1, "Airplane Mode: OFF",
"Restoring Wi-Fi, Bluetooth & 4G Radios");
}
return 0;
}
int main(int argc, char **argv) {
if (argc < 2) {
fprintf(stderr, "Usage: %s <bri-up|bri-down|vol-up|vol-down|vol-mute|mic-mute|screenshot|screenshot-window|play-pause|prev|next|stop>\n",
fprintf(stderr, "Usage: %s <bri-up|bri-down|vol-up|vol-down|vol-mute|mic-mute|screenshot|screenshot-window|play-pause|prev|next|stop|airplane>\n",
argv[0]);
return 1;
}
@@ -531,6 +550,7 @@ int main(int argc, char **argv) {
}
if (strcmp(act, "screenshot") == 0) return handle_screenshot(false);
if (strcmp(act, "screenshot-window") == 0) return handle_screenshot(true);
if (strcmp(act, "airplane") == 0) return handle_airplane();
if (strcmp(act, "play-pause") == 0 || strcmp(act, "prev") == 0 ||
strcmp(act, "next") == 0 || strcmp(act, "stop") == 0) {
return handle_media_transport(act);