A Brief But Accurate Documentation, BSD Linux And Programming

 Docker

Monday, March 13, 2023

Enable Wayland Gnome Nvidia Optimus and Fractional Scalling on Manjaro

Hey! would you have ever been wondering why Manjaro did not let the users to use Wayland on Nvidia like other distributions E.g Fedora and Ubuntu?.

here's the way to enable Wayland as a workaround.
Open a terminal
sudo ln -s /dev/null /etc/udev/rules.d/61-gdm.rules

after that then running this command to update the grub
sudo update-grub

Restart the system, In the bottom right Menu with logo "gear" icon it appears some choices like GNOME on Xorg and GNOME Classic on Xorg, you choose the "GNOME" only without Xorg, it will be logged in with Wayland Windowing System


Then after that we have to add some kernel parameter to be able to use an External monitor with Wayland.
Make sure you have already installed the package, Just in case you don't, running this command.
sudo pacman -S optimus-manager

so after the required package has been installed then head to next step.
edit the grub and add the kernel parameter
sudo nano /etc/default/grub

Be careful to the existing kernel parameter argument we just need to add it in
in the line of GRUB_CMDLINE_LINUX_DEFAULT="" add "optimus-manager.startup=nvidia"
like this one
note that, not to touch existing parameter just add the new parameter in.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash optimus-manager.startup=nvidia"

after that run the update grub like so
sudo update-grub

make sure to enable the optimus-manager service
sudo systemctl enable optimus-manager

Reboot the system

Now times to fix fractional scaling.

install the two packages, these 2 packages are patches for fractional scaling Mutter and Gnome Control Center. Those two packages are conflict with the existing one, but it is okay just let the system replace it.
sudo pacman -S gnome-control-center-x11-scaling mutter-x11-scaling

Restart the machine and it should be good to go, Just head to control settings in the pane of "Displays" you can now can have fractional scaling of each monitor individually.
 

No comments:

Post a Comment

Back to top