Fix lid wake blanking, passcode lag, idle drain, zero-log privacy default, and replace Conky with native dwm clock

This commit is contained in:
Luxferre committed 2026-11-05 08:07:10 +02:00
1 parent 11ec778c2f
commit 1d71bc81d8
42 files changed
+732 -267

No files matched your search

+20 -4
View File
@@ -75,6 +75,7 @@ struct EngStatus {
int cpuMaxMhz = 1094;
bool diagActive = false;
std::string usbPid = "18d1:d001";
bool extLogging = false;
};
// Calculate 15th Luhn check digit from the first 14 digits (Wallace calcIMEIChecksum)
@@ -254,6 +255,7 @@ EngStatus queryEngStatus() {
else if (k == "CPU_MAX_MHZ") st.cpuMaxMhz = std::atoi(v.c_str());
else if (k == "DIAG_ACTIVE") st.diagActive = (v == "1");
else if (k == "USB_PID") st.usbPid = v;
else if (k == "EXT_LOGGING") st.extLogging = (v == "1");
}
if (st.imei1.empty() || st.imei2.empty()) {
DeviceImeis devIm = queryDeviceImeis();
@@ -410,6 +412,14 @@ int engmenu_run_main(int argc, char** argv) {
rows.push_back({"7", "7: Edit Bluetooth MAC", bmacSub,
isRfnv ? "persist" : "NV 447", 2});
// 8. [8] Extended logging (privacy)
std::string logSub = status.extLogging
? "RAM logs active in /tmp"
: "Disabled (zero idle logs)";
rows.push_back({"8", "8: Extended Logging", logSub,
status.extLogging ? "ON" : "OFF",
status.extLogging ? 2 : 1});
return rows;
};
@@ -478,6 +488,12 @@ int engmenu_run_main(int argc, char** argv) {
editBuf = generateRandomMac();
lastHexKey = -1;
modal = EngModal::EditBtMac;
} else if (idx == 7) {
// 8: Extended Logging
std::string res = runEngCtlCapture({"logging", "toggle"});
refreshStatus();
showToast(status.extLogging ? "Extended logging enabled (/tmp)"
: "Extended logging disabled & purged");
}
};
@@ -716,7 +732,7 @@ int engmenu_run_main(int argc, char** argv) {
std::string lskLabel = "Select";
if (selIdx == 0 || selIdx == 1 || selIdx == 2 || selIdx == 5 || selIdx == 6) {
lskLabel = "Edit";
} else if (selIdx == 3 || selIdx == 4) {
} else if (selIdx == 3 || selIdx == 4 || selIdx == 7) {
lskLabel = "Toggle";
}
neo.drawSoftbar(lskLabel, "Run", "Close", &theme.colYellow);
@@ -1000,7 +1016,7 @@ int engmenu_run_main(int argc, char** argv) {
continue;
}
constexpr int kNumItems = 7;
constexpr int kNumItems = 8;
if (sym == XK_Up || sym == XK_KP_Up) {
selIdx = (selIdx > 0) ? (selIdx - 1) : (kNumItems - 1);
render();
@@ -1019,8 +1035,8 @@ int engmenu_run_main(int argc, char** argv) {
continue;
}
// Direct hotkeys 1..7
if (dch >= '1' && dch <= '7') {
// Direct hotkeys 1..8
if (dch >= '1' && dch <= '8') {
selIdx = dch - '1';
triggerRowAction(selIdx);
render();