We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7097124 commit d833e89Copy full SHA for d833e89
display.go
@@ -208,6 +208,11 @@ func watchTsEvents() {
208
// if they're not already set. This is done separately to the init routine as the "never dim"
209
// option has the value set to zero, but time.NewTicker only accept positive values.
210
func startBacklightTickers() {
211
+ // Don't start the tickers if the display is switched off.
212
+ if config.DisplayMaxBrightness == 0 {
213
+ return
214
+ }
215
+
216
LoadConfig()
217
if dimTicker == nil && config.DisplayDimAfterSec != 0 {
218
fmt.Printf("display: dim_ticker has started\n")
0 commit comments