{Guide} Install EnvyControl (OpenRC/Dinit/Runit/S6)(Nvidia Optimus) 12 November 2023, 20:17:04 DescriptionI have modified EnvyControl to work across all popular init systems, however automatic display manager detection is disabled due to there being no good way to achieve it without SystemD. In practical terms, the only change is that you need to specify a display manager.https://github.com/ToneyFoxxy/ToneyFoxxy-EnvyControl-Without-SystemD/Installation:Install "nvidia" or "nvidia-dkms" and "nvidia-utils-openrc" or "nvidia-utils-dinit" or "nvidia-utils" from the World reposIf you are on Runit or S6, you will probably need to install the "nvidia-persistenced" daemon:Code: (Runit) [Select]sudo curl https://raw.githubusercontent.com/NVIDIA/nvidia-persistenced/main/init/sysv/nvidia-persistenced.template > /etc/runit/sv/nvidia-persistenced.txt && chmod +x /etc/runit/sv/nvidia-persistenced.txtCode: (S6) [Select]sudo curl https://raw.githubusercontent.com/NVIDIA/nvidia-persistenced/main/init/sysv/nvidia-persistenced.template > /etc/s6/sv/nvidia-persistenced.txt && chmod +x /etc/s6/sv/nvidia-persistenced.txtInstall "envycontrol" from the AURReplace the default "envycontrol.py" with my version:Code: (OpenRC) [Select]sudo rm /usr/lib/python3.11/site-packages/envycontrol.py && curl https://raw.githubusercontent.com/ToneyFoxxy/ToneyFoxxy-EnvyControl-Without-SystemD/main/OpenRC/envycontrol.py > /usr/lib/python3.11/site-packages/envycontrol.pyCode: (Dinit) [Select]sudo rm /usr/lib/python3.11/site-packages/envycontrol.py && curl https://raw.githubusercontent.com/ToneyFoxxy/ToneyFoxxy-EnvyControl-Without-SystemD/main/Dinit/envycontrol.py > /usr/lib/python3.11/site-packages/envycontrol.pyCode: (Runit) [Select]sudo rm /usr/lib/python3.11/site-packages/envycontrol.py && curl https://raw.githubusercontent.com/ToneyFoxxy/ToneyFoxxy-EnvyControl-Without-SystemD/main/Runit/envycontrol.py > /usr/lib/python3.11/site-packages/envycontrol.pyCode: (S6) [Select]sudo rm /usr/lib/python3.11/site-packages/envycontrol.py && curl https://raw.githubusercontent.com/ToneyFoxxy/ToneyFoxxy-EnvyControl-Without-SystemD/main/S6/envycontrol.py > /usr/lib/python3.11/site-packages/envycontrol.pyAdd "envycontrol" to the ignored packages in "/etc/pacman.conf" so it doesn't get updated automatically:Code: (pacman.conf) [Select]IgnorePkg = envycontrolRun EnvyControl:Code: (SDDM) [Select]sudo envycontrol -s nvidia --dm sddm Last Edit: 15 November 2023, 20:43:49 by Fox
Re: {Guide} Install EnvyControl (OpenRC/Dinit/Runit/S6)(Nvidia Optimus) Reply #1 – 30 December 2023, 15:01:46 Thanks! It worked but when I set the mode to 'nvidia' it refuses to show anything upon startx. It's probably not your fault, setting to hybrid works.
Re: {Guide} Install EnvyControl (OpenRC/Dinit/Runit/S6)(Nvidia Optimus) Reply #2 – 26 March 2024, 04:11:59 *Edit* Scratch what I posted earlier I'm still having an input lag problem.*edit2* Basically every 30 seconds to minute I'm having a 1-2 second hiccup where my input lags out or something.It just doesn't register typing or mouse input for a second then it comes back again. Pretty weird. I don't recall having this problem on vanilla arch. It seems like some kind of conflict between drivers, but the only thing I have besides nvidia on my system is xf86-video-amdgpu, and I can't load graphics at all without that.I suppose I'm going to try vanilla arch on an external hard drive and see if I have the same problem b/c I never had it in the past. Last Edit: 26 March 2024, 15:35:19 by smallchicken
Re: {Guide} Install EnvyControl (OpenRC/Dinit/Runit/S6)(Nvidia Optimus) Reply #3 – 27 March 2024, 04:03:49 Quote from: smallchicken – on 26 March 2024, 04:11:59It seems like some kind of conflict between drivers, but the only thing I have besides nvidia on my system is xf86-video-amdgpu, and I can't load graphics at all without thatNvidia driver is for Nvidia graphics. amd gpu driver is for amd graphics.you should only use the one intended for your graphics cardhope this helps