Replaced supergfxctl with nvidia-manager

This commit is contained in:
2022-09-24 16:41:38 -04:00
parent ba970abba5
commit 36ccf34fd8
2 changed files with 7 additions and 21 deletions
+7 -9
View File
@@ -145,7 +145,6 @@ if [ "$formfactor" == 1 ]; then
KEYBOARD_KEY_c00b6=home # Fn+F2 KEYBOARD_KEY_c00b6=home # Fn+F2
KEYBOARD_KEY_c00b5=end # Fn+F4 KEYBOARD_KEY_c00b5=end # Fn+F4
KEYBOARD_KEY_ff31007c=f20 # x11 mic-mute' > /etc/udev/hwdb.d/90-zephyrus-kbd.hwdb KEYBOARD_KEY_ff31007c=f20 # x11 mic-mute' > /etc/udev/hwdb.d/90-zephyrus-kbd.hwdb
systemd-hwdb update
udevadm trigger udevadm trigger
# xbindkeys config # xbindkeys config
echo '#ScreenBrightUp echo '#ScreenBrightUp
@@ -165,21 +164,20 @@ if [ "$formfactor" == 1 ]; then
m:0x0 + c:237 m:0x0 + c:237
XF86KbdBrightnessDown XF86KbdBrightnessDown
#G14IntegratedGPU #G14IntegratedGPU
"supergfxctl -m integrated; pkill -KILL -u '"$username"'" "/usr/bin/nvidia_off.sh; pkill -KILL -u '"$username"'"
m:0x0 + c:232 m:0x0 + c:232
XF86MonBrightnessDown XF86MonBrightnessDown
#G14DedicatedGPU #G14DedicatedGPU
"supergfxctl -m dedicated; pkill -KILL -u '"$username"'" "/usr/bin/nvidia_on.sh; pkill -KILL -u '"$username"'"
m:0x0 + c:233 m:0x0 + c:233
XF86MonBrightnessUp' > /home/"$username"/.xbindkeysrc XF86MonBrightnessUp' > /home/"$username"/.xbindkeysrc
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/bashpower-g14/bashpower.start -o /etc/local.d/bashpower.start curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/bashpower-g14/bashpower.start -o /etc/local.d/bashpower.start
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/bashpower-g14/bashpower.stop -o /etc/local.d/bashpower.stop curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/bashpower-g14/bashpower.stop -o /etc/local.d/bashpower.stop
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/supergfxd-openrc/supergfxd -o /etc/init.d/supergfxd pacman -S mesa vulkan-icd-loader vulkan-radeon libva-mesa-driver libva-utils --needed --noconfirm
pacman -S supergfxctl mesa vulkan-icd-loader vulkan-radeon libva-mesa-driver libva-utils --needed --noconfirm curl -L https://github.com/rwinkhart/nvidia-manager/releases/download/v1.0.0/nvidia-manager-1.0.0-1-any.pkg.tar.zst -o nvidia-manager-1.0.0-1-any.pkg.tar.zst
chmod 755 /etc/local.d/bashpower.start /etc/local.d/bashpower.stop /etc/init.d/supergfxd pacman -U nvidia-manager-1.0.0-1-any.pkg.tar.zst --noconfirm
rc-add supergfxd rm -rf nvidia-manager-1.0.0-1-any.pkg.tar.zst
rc-service supergfxd start chmod 755 /etc/local.d/bashpower.start /etc/local.d/bashpower.stop
supergfxctl -m integrated
fi fi
# ssh configuration # ssh configuration
-12
View File
@@ -1,12 +0,0 @@
#!/usr/bin/openrc-run
description="supergfx daemon"
command="/usr/bin/supergfxd"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"
supervisor=supervise-daemon
supervise_daemon_args="-e IS_SUPERGFX_SERVICE=1"
depend() {
after logger modules
}