1
0
Fork 0
mirror of https://gitlab.postmarketos.org/postmarketOS/pmaports.git synced 2025-07-24 15:25:13 +03:00
pmaports/extra-repos/systemd/systemd-services/user-plasma-powerdevil.service
Bhushan Shah 4907fec033
systemd/systemd-services: add CAP_WAKE_ALARM to powerdevil
With systemd 275.x merged, this works as expected and also upstream
changes for this is merged. So, let's enable this here to allow Alarm
clock in Plasma Mobile e.g. to wake up device from suspend.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6509
2025-05-16 11:38:04 +05:30

17 lines
402 B
Desktop File

[Unit]
Description=Powerdevil
PartOf=graphical-session.target
After=plasma-core.target
[Service]
ExecStart=/usr/lib/libexec/org_kde_powerdevil
Type=dbus
BusName=org.kde.Solid.PowerManagement
TimeoutStopSec=5sec
Slice=background.slice
Restart=on-failure
AmbientCapabilities=CAP_WAKE_ALARM
# Temporary workaround for Powerdevil crashing while kwin_wayland restarts
Environment=POWERDEVIL_NO_DDCUTIL=1