mirror of https://github.com/jetkvm/kvm.git
fix: only attempt to wake the display if it's off
This commit is contained in:
parent
db4c0c7136
commit
a267bb3a1d
|
@ -151,6 +151,10 @@ func displayTimeoutTick() {
|
||||||
// wakeDisplay sets the display brightness back to config.DisplayMaxBrightness and stores the time the display
|
// wakeDisplay sets the display brightness back to config.DisplayMaxBrightness and stores the time the display
|
||||||
// last woke, ready for displayTimeoutTick to put the display back in the dim/off states.
|
// last woke, ready for displayTimeoutTick to put the display back in the dim/off states.
|
||||||
func wakeDisplay() {
|
func wakeDisplay() {
|
||||||
|
if backlightState == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if config.DisplayMaxBrightness == 0 {
|
if config.DisplayMaxBrightness == 0 {
|
||||||
config.DisplayMaxBrightness = 100
|
config.DisplayMaxBrightness = 100
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue