Failed to Set NVIDIA as Primary GPU

Failed in “Step #10: Verify the configuration” when using the article “How to Set Nvidia as Primary GPU on Optimus-based Laptops”.

Can you help me?

Follow the steps here precisely.

Step 8 particularly is required and it only works this way when you are logged in with xorg. This procedure does not work when using the wayland desktop.