Closed goldcoders closed 4 years ago
Why is this a repo issue
Can you close this? This isn't an issue?
One more note before closing: All these can be a hassle really and it will give you a black X screen 90% of the time. Another simple workaround is to just install the packages (but optimus) and enable the Nvidia cards simply by adding the line below to the head of your .xinit:
xrandr --setprovideroutputsource modesetting NVIDIA-0 # for Nvidia only systems
and writing the lines below to /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
Section "OutputClass"
Identifier "intel"
MatchDriver "i915"
Driver "modesetting"
EndSection
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSection
@MYDavoodeh before i have that xrandr line but i remove it, since when switching optimus manager handles that...
likewise that same file 10-nvidia-drm-outputclass.conf i did have that before when following arch wiki,
ive remove it since its also manage by optimus manager,
U might need it if u have bumblebee but i remove it
Im using as my base repo is @LukeSmithxyz voidrice and larbs
If u have Hybrid graphics card like mine...
and dont want to have trouble playing games in linux...
and switching intel, nvidia , or hybrid... read more below
Ive tested it on Dota 2
i got around an average of 50+ fps prior
with vulkan enabled i got around 150+ fps
Ive noticed that 60fps capped when switching GPU
To use or maxout the capabilities of your GPU
Just set optimus-manager startup to NVIDIA
Here is my Set up:
Ive Installed xorg based packages for intel graphics card ( i think larbs already included this)
I remove nouveau package since im using nvidia ( and its better on performance)
Ive installed nvidia packages
Important to mention that nvidia-prime allows us to use prime-run command (ON DEMAND GPU) when on HYBRID GPU, so ive added it
also ive created
/etc/pacman.d/hooks/nvidia.hook as stated in archwiki for nvidia
also ive loaded nvidia modules inside
/etc/mkinitcpio.conf
dont forget to run this command
and Installed vulkan packages
and installed Optimus manager QT , it comes with optimus manager as dependency
bbswitch is needed so we can switch GPU with optimus manager
lightdm is needed also so we can have the script needed to switching when quitting dwm
any theme of lightdm will do, but ive installed aether.
this is my optimus.conf /etc/optimus-manager/optimus-manager.conf
surprisingly all configuration for vulkan works out of the box same config for intel in arch wiki
this is my ~/.xprofile Im running optimus-manager-qt (startup programs)
my ~/.xinitrc
my config for lightdm
/etc/lightdm/lightdm conf
config for lightdm-webkit2-greeter
ive only modified here is the user_image added image on that path. and added 644 permission on that image or it wont show at all.
When I manually patched DWM , it doesnt come with dwm.desktop file
This is needed so I can use it inside lightdm this line is telling to use dwm as session
so to fix it ive added manually by creating a file
/usr/share/xsessions/dwm.desktop
i do have this lightdm config installed by optimus manager
/etc/lightdm/lightdm.conf.d/20-optimus-manager.conf
So this basically is the one responsible for switching the Cards during login and logout
Another thing to Add either on your .zshrc or .bashrc This is needed for vulkan to reference proper GPU like intel and NVIDIA
to check vulkan is working run
vulkaninfo
you can try to play Dota 2 with Vulkan Enabled
Have Fun!