Hello there! In my previous Arch installation I used to use system76-power for managing graphics and power profiles in my system (AMD Radeon RX Vega 10 as iGPU and NVIDIA GeForce GTX 1650 as dGPU), which worked perfectly.
The thing is, I recently switched to Artix (loved it so far) to get away from systemd, and I'm new to the runit init system, but when using systemd, system76-power used to run through systemctl enable --now system76-power.service, and I want to continue using this utility.
How can I make it work with runit?
Thanks! And apologies if the question sounds dumb.
Provide content of system76-power.service
Of course!
[Unit]
Description=System76 Power Daemon
[Service]
ExecStart=/usr/bin/system76-power daemon
Restart=on-failure
Type=dbus
BusName=com.system76.PowerDaemon
[Install]
WantedBy=multi-user.target
Source: https://github.com/pop-os/system76-power/blob/master/debian/system76-power.service
Put following content in
/etc/runit/sv/system76-power/run and start service
#!/bin/sh
exec /usr/bin/system76-power daemon
I hope it will work fine , but not sure
Doesn't seem to work :c
(https://i.imgur.com/hjm6qI2.png)
nvm, I forgot to give execution rights to run, and according to sv status system76-power it's working, but when running system76-power graphics hybrid it throws an error
(https://i.imgur.com/guOqCGu.png)
Looks like the app/script would have to be patched to remove systemd stuff before you could use it