▲ 5 r/artixlinux
How do i get superfxctl to work on openrc?
Its mainly made for systemd so i was wondering how some other people got it working.
Edit: got it working after reading the damn source code. change the config to Integrated or Hybrid or use sudo supergfx --mode Integrated or Hybrid or Vfio to change.
sudo tee /etc/init.d/supergfxd <<EOF
#!/sbin/openrc-run
description="Super Graphics Daemon"
command="/usr/bin/supergfxd"
command_background=true
pidfile="/run/supergfxd.pid"
# This is the crucial part that sets the required environment variable
export IS_SERVICE=1
depend() {
need localmount
after bootmisc
}
sudo chmod +x /etc/init.d/supergfxd
sudo tee /etc/supergfxd.conf <<EOF
{
"mode": "Hybrid", #Integrated , Hybrid , Vfio
"vfio_enable": false,
"vfio_save": false,
"always_reboot": false,
"no_logind": true,
"logout_timeout_s": 180,
"hotplug_type": "None"
}
sudo rc-update add supergfxd
sudo rc-service supergfxd start
sudo supergfxctl -g #print current mode
u/Global_Conference_75 — 5 days ago