Commit graph

15 commits

Author SHA1 Message Date
Johannes Millan
62d449a82f fix(electron): reduce idle detection log verbosity
Change frequent idle check logs from info to debug level to prevent
polluting system logs (e.g., /var/log/syslog) every 5 seconds.

Closes #5794
2025-12-31 13:42:18 +01:00
Johannes Millan
3fc7c134f9 feat(electron): further improve on idle handling 2 2025-10-15 15:27:27 +02:00
Johannes Millan
e96e205de0 feat(electron): further improve on idle handling 2025-10-15 15:08:49 +02:00
Johannes Millan
6d38cb1a2e feat(electron): stop idle handling if there is no working method 2025-10-15 14:54:38 +02:00
Johannes Millan
45da016258 refactor(electron): improve idle handling 2025-10-15 14:48:06 +02:00
Johannes Millan
051bb5dd90 refactor(electron): check for best idle method only once 2025-10-15 14:38:58 +02:00
Johannes Millan
08def803e7 feat(electron): improve idle handling for snap 2025-10-15 12:32:00 +02:00
Johannes Millan
7fd8f57d3e build: next attempt 2 #5252 2025-10-13 17:12:24 +02:00
Johannes Millan
55f40afe5e build: next attempt #5252 2025-10-13 17:07:51 +02:00
Johannes Millan
2209767e77 build: another attempt to fix snap #5252 2025-10-13 16:10:49 +02:00
Johannes Millan
caf1c1a9fc feat: improve logging for idle handling 2025-09-04 18:45:59 +02:00
Johannes Millan
34ac3dd757 refactor: improve typing 2 2025-08-12 15:27:48 +02:00
Johannes Millan
fc343b801b fix: idle detection errors and system freezes after hibernation
- Test idle detection methods only once during initialization to prevent repeated failures
- Add snap environment detection with automatic method filtering
- Add proper snap plugs for system-observe and login-session-observe interfaces
- Improve DBus handling by trying gdbus first (works better in snap environments)
- Add rate-limited error logging to prevent log spam
- Add snap install hook to guide users on connecting required interfaces
- Ensure graceful fallback to 0 (not idle) when detection fails

This prevents the system freezes that occurred after hibernation due to repeated
failing idle detection attempts, and improves snap compatibility for DBus access.
2025-06-21 08:43:24 +02:00
Johannes Millan
c71a7d480f feat: improve idle handling 2025-06-21 08:33:54 +02:00
Johannes Millan
8db186de91 feat: add idle handling for wayland 2025-06-19 20:13:51 +02:00