mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-20 02:04:01 -04:00
brightness/ddc: add an option to disable DDC probing
This commit is contained in:
@@ -2,6 +2,7 @@ package brightness
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"sort"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -41,6 +42,10 @@ func (m *Manager) initLogind() {
|
||||
}
|
||||
|
||||
func (m *Manager) initDDC() {
|
||||
if os.Getenv("DMS_NO_DDC") != "" {
|
||||
log.Info("DDC backend disabled via DMS_NO_DDC")
|
||||
return
|
||||
}
|
||||
ddc, err := NewDDCBackend()
|
||||
if err != nil {
|
||||
log.Debugf("Failed to initialize DDC backend: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user