-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
system76-power seems to have a hard dependency on DMI information although that shouldn't be need to control power profiles.
I have a Macbook Pro (2023) with Gentoo (and Asahi modifications) - the platform (aarch64) does not necessarily provide SMBIOS/DMI information.
When the expected DMI information is not present, the daemon doesn't start:
# system76-power daemon
[INFO] Rescanning PCI bus
[ERROR] /proc/sys/kernel/nmi_watchdog: failed to set value: Permission denied (os error 13)
[WARN] Failed to set automatic graphics power: org.freedesktop.DBus.Error.Failed: does not have switchable graphics
No such file or directory (os error 2)
observing behaviour with strace:
openat(AT_FDCWD, "/sys/class/dmi/id/chassis_type", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(2, "[", 1[) = 1
write(2, "WARN", 4WARN) = 4
write(2, "] ", 2] ) = 2
write(2, "Failed to set automatic graphics"..., 40Failed to set automatic graphics power: ) = 40
write(2, "org.freedesktop.DBus.Error.Faile"..., 33org.freedesktop.DBus.Error.Failed) = 33
write(2, ": ", 2: ) = 2
write(2, "does not have switchable graphic"..., 33does not have switchable graphics) = 33
write(2, "\n", 1
) = 1
openat(AT_FDCWD, "/sys/class/dmi/id/sys_vendor", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
close(3) = 0
close(8) = 0
close(5) = 0
close(4) = 0
futex(0xaaab084059f8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
write(2, "No such file or directory", 25No such file or directory) = 25
write(2, " (os error ", 11 (os error ) = 11
write(2, "2", 12) = 1
write(2, ")", 1)) = 1
write(2, "\n", 1
) = 1
sigaltstack({ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=16384}, NULL) = 0
munmap(0xffffbd1f4000, 32768) = 0
exit_group(1) = ?
+++ exited with 1 +++
Metadata
Metadata
Assignees
Labels
No labels