You are not logged in.
Hello
I'm getting this when I try to set a different power profile on my laptop:
$ powerprofilesctl set power-saver
Failed to communicate with power-profiles-daemon: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Not Authorized: org.freedesktop.UPower.PowerProfiles.switch-profile (9)
Doing it via sudo works
Does my user account need to be a member of a particular group (I've tried power)?
Offline
You need to start / enable the daemon process first: https://wiki.archlinux.org/title/CPU_fr … les-daemon
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks for the suggestion but that doesn't seem to be it:
$ systemctl status power-profiles-daemon.service
● power-profiles-daemon.service - Power Profiles daemon
Loaded: loaded (/usr/lib/systemd/system/power-profiles-daemon.service; enabled; preset: disabled)
Active: active (running) since Mon 2024-04-08 09:54:41 BST; 6h ago
Main PID: 1034 (power-profiles-)
Tasks: 4 (limit: 9404)
Memory: 1.4M (peak: 2.0M swap: 488.0K swap peak: 512.0K zswap: 98.1K)
CPU: 90ms
CGroup: /system.slice/power-profiles-daemon.service
└─1034 /usr/lib/power-profiles-daemon
Offline
Is your dbus/loginctl session broken? How are you starting your session and which session are you starting?
loginctl session-status
Offline
Ah! That's it. I get the error if I'm logged into the machine via ssh, but not when I'm using the machine directly. Thanks for your help!
Offline