Commit Graph

11 Commits

Author SHA1 Message Date
Cameron Fleming 79bac39b6b feat(display.go): use tickers to countdown to dim/off
As suggested by tutman in https://github.com/jetkvm/kvm/pull/17, use
tickers set to the duration of dim/off to avoid a loop running every
second. The tickers are reset to the dim/off times whenever
wakeDisplay() is called.
2025-01-20 19:52:53 +00:00
Cameron Fleming e9b539053b fix: newline on set brightness log
Noticed by @eric
https://github.com/jetkvm/kvm/pull/17#discussion_r1903338705
2025-01-05 21:13:09 +00:00
Cameron Fleming 1fe71da77d chore: various comment & string updates 2025-01-05 02:24:53 +00:00
Cameron Fleming 7e7310b176 fix: wakeDisplay() on start to fix warm start issue
If the application had turned off the display before exiting, it
wouldn't be brought on when the application restarted without a device
reboot.
2025-01-04 22:27:10 +00:00
Cameron Fleming d6e4df2109 fix: re-use buffer between reads 2025-01-04 22:26:39 +00:00
Cameron Fleming 74cdeca230 feat(display): wake on touch 2025-01-04 22:22:50 +00:00
Cameron Fleming a267bb3a1d fix: only attempt to wake the display if it's off 2025-01-04 22:22:43 +00:00
Cameron Fleming db4c0c7136 chore: use constant for backlight control file 2025-01-04 22:22:43 +00:00
Cameron Fleming cd7258efd0 feat(display): add automatic dimming & switch off to display
WIP, dims the display to 50% of the BacklightMaxBrightness after
BacklightDimAfterMS expires. Turns the display off after
BacklightOffAfterMS
2025-01-03 22:07:05 +00:00
Cameron Fleming 3271a1796b feat(display.go): impl setDisplayBrightness()
Implements setDisplayBrightness(brightness int) which allows setting the
backlight brightness on JetKVM's hardware.

Needs to be implemented into the RPC, config and frontend.
2025-01-03 11:42:21 +00:00
Adam Shiervani 20780b65db Release 202412292127 2024-12-29 21:27:42 +01:00