mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-01 19:18:28 -04:00
90291bd627
ppd, and some things. Add a simple wpa_supplicant backend
25 lines
540 B
Go
25 lines
540 B
Go
package brightness
|
|
|
|
import (
|
|
"github.com/AvengeMedia/DankMaterialShell/core/internal/log"
|
|
)
|
|
|
|
func (m *Manager) initNative() {
|
|
log.Debug("Initializing backlight backend...")
|
|
backend, err := NewBacklightBackend()
|
|
if err != nil {
|
|
log.Warnf("Failed to initialize backlight backend: %v", err)
|
|
return
|
|
}
|
|
|
|
devices, err := backend.GetDevices()
|
|
if err == nil {
|
|
log.Infof("Backlight backend initialized with %d devices", len(devices))
|
|
}
|
|
|
|
m.nativeBackend = backend
|
|
m.nativeReady = true
|
|
m.updateState()
|
|
m.monitor = newDevdMonitor(m)
|
|
}
|