Skip to main content
Topic: system76-power.service with runit (Read 916 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

system76-power.service with runit

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.

Re: system76-power.service with runit

Reply #1
Provide content of system76-power.service
Create problems which don't have solution


Re: system76-power.service with runit

Reply #3
Put following content in  /etc/runit/sv/system76-power/run and start service
Code: [Select]
#!/bin/sh
exec /usr/bin/system76-power daemon

I hope it will work fine , but not sure
Create problems which don't have solution

Re: system76-power.service with runit

Reply #4
Doesn't seem to work :c


Re: system76-power.service with runit

Reply #5
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


 

Re: system76-power.service with runit

Reply #6
Looks like the app/script would have to be patched to remove systemd stuff before you could use it