Commit Graph

25 Commits

Author SHA1 Message Date
98ed8d9a29 Remove logfile if it's empty before exiting 2020-09-09 23:51:53 +02:00
4689797c78 Move logging to separate file 2020-09-09 23:48:27 +02:00
37989135a7 Slightly increase loop delay 2020-09-08 16:34:19 +02:00
b27bf63162 Rename package 2020-09-08 16:32:55 +02:00
9747cfe33b Explain keypress sleep debouncing in hybernateDisplayLoop 2020-09-08 16:14:34 +02:00
fbcb69a855 Avoid not exiting on unlocked screen with constant keyboard activity 2020-09-08 15:45:50 +02:00
6cea681f6f Refactor error handling for cleaner code 2020-09-08 15:45:26 +02:00
b652c48bd4 Simplify stop logic (closing a RO fd is not worth the added complexity) 2020-09-08 15:41:31 +02:00
93da02bf90 Setup proper logging 2020-09-08 15:27:52 +02:00
f80f2be784 Group lockscreen and display suspension related code 2020-09-08 14:08:54 +02:00
48aaf76c8a Fix busy loop (sleep wouldn't be triggered when the display is off) 2020-08-21 10:35:05 +02:00
78c216486f Make granule of reuse the granule of release (avoid exporting 30 lines) 2020-08-20 17:07:05 +02:00
ebbd1974df Invert display and lockscreen control dependencies 2020-08-20 16:57:57 +02:00
e6458aba0b Ensure only a single instance of after-lock runs at a time 2020-08-20 15:57:17 +02:00
8b89bcb3f6 Refactor main and display hibernating logic from eachother 2020-08-18 16:28:35 +02:00
8bba5b30a4 Refactor screensaver package into display and lockscreen 2020-08-18 13:15:45 +02:00
97884bfb64 Refactor main 2020-08-18 12:30:55 +02:00
8222f24fa7 Expor AtomicFlag type 2020-08-18 12:30:39 +02:00
9fd5c8af53 Add README 2020-08-18 11:39:15 +02:00
2da93cd928 Add .gitignore 2020-08-18 11:07:40 +02:00
4db8abf204 Implement proof of concept core logic (requires refactor) 2020-08-18 11:06:59 +02:00
d4e6a8d727 Implement simple, thread-safe atomic flag type 2020-08-18 11:06:36 +02:00
202b72879a Add package to control and monitor screensaver 2020-08-17 16:54:30 +02:00
5c6db0577f Implement a simple C module to wait for keypresses 2020-08-17 15:50:39 +02:00
916b3c2836 Initial commit. Add poc hack script 2020-08-17 12:28:52 +02:00