Closed Juhayer-Al-Wasif closed 1 year ago
Hello there, Envycontrol should work fine despite your laptop doesn't have any video output wired to the dGPU (that's why lspci identifies it as a 3D controller instead of VGA).
I can see you're using bspwm so you need to manually setup your display manager or whatever else to run the following commands at startup:
Doing that will fix your black screen problem on Nvidia mode.
Not only bspwm but also I've tried it in Manjaro Plasma & Gnome, seems like for my device the only solution is Prime render offload and Bumblebee Switch.
Not only bspwm but also I've tried it in Manjaro KDE, seems like for my device the only solution is Prime render offload and Bumblebee Switch.
That's an interesting case, what does the xrandr --listproviders
command outputs?
Providers: number : 2
Provider 0: id: 0x46 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 4 associated providers: 0 name:modesetting
Provider 1: id: 0x244 cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-G0
@Juhayer-Al-Wasif can you try the latest changes from the rewrite-pci branch?
Thank you!
do I just have to install the latest release?
do I just have to install the latest release?
No, please clone the repository and run the following commands:
git checkout rewrite-pci
sudo python ./envycontrol.py -s nvidia
@Juhayer-Al-Wasif if you have problems following the steps, here's the link to the updated file.
Download and run it from your terminal.
this is odd, i also use a muxless laptop (HP victus 16z-e000) but this problem has never occurred to me, yeah it doesnt magically give my laptop a switch and disable the igpu entirely, but for the most part my dgpu is used more often than my igpu
this is odd, i also use a muxless laptop (HP victus 16z-e000) but this problem has never occurred to me, yeah it doesnt magically give my laptop a switch and disable the igpu entirely, but for the most part my dgpu is used more often than my igpu
Can you try the latest changes from the rewrite-pci branch?
PD: I'm prepping for version 3.0 and need testers 😉
Should be fixed on version 3
Hey, 👋
I am trying the new version still it doesn't work on my laptop when switched to Nvidia only mode
@Juhayer-Al-Wasif when the problem occurs open a TTY and capture the X.org logs from /var/log/Xorg.0.log
@Juhayer-Al-Wasif do you have xrandr
installed on your system?
yes
The Nvidia mode now works properly if I setup blacklist nouveau in grub bootloader. this was issue. But then suspend mode doesn't work😳 on manjaro gnome, neither in Endeavor os XFCE
@Juhayer-Al-Wasif have you enabled the nvidia-suspend services according to the README?
I might be missing it
@Juhayer-Al-Wasif
sudo systemctl enable nvidia-{suspend,resume,hibernate}
NVreg_PreserveVideoMemoryAllocations
With nvidia-suspend service, this kernel parameter fixed the issue in manjaro xwayland.
Thank you @bayasdev
I have an HP-Envy laptop that will go blank screen when I switch to Nvidia-only mode in Envycontrol. Here's Why:
A muxless Nvidia Optimus laptop is a laptop that has both an integrated GPU (usually Intel) and a discrete GPU (Nvidia) but does not have a hardware multiplexer (mux) to switch between them. Instead, the integrated GPU drives the internal display create the discrete GPU can only be used for rendering tasks.
This means that the X server (the graphical interface for Linux systems) should not be configured to use the Nvidia X driver after installing it, as this would cause conflicts and errors. Instead, users can use tools like Bumblebee or PRIME to manage which applications use the discrete GPU.
Some laptops have a mux that allows switching between integrated and discrete GPUs, but this requires rebooting or logging out. Some laptops also have an additional mux chip added by the manufacturer that can switch between GPUs without rebooting. However, these are not standard features and are not supported by Nvidia.
Source: (1) Chapter 17. Using the NVIDIA Driver with Optimus Laptops. https://download.nvidia.com/XFree86/Linux-x86_64/455.28/README/optimus.html
(2) Chapter 17. Using the NVIDIA Driver with Optimus Laptops. https://download.nvidia.com/XFree86/Linux-x86_64/455.28/README/optimus.html
(3) How to know if the laptop is MUXed or MUXless: r/VFIO - Reddit. https://www.reddit.com/r/VFIO/comments/j64vkx/how_to_know_if_laptop_is_muxed_or_muxless/
(4) Chapter 17. Using the NVIDIA Driver with Optimus Laptops. https://download.nvidia.com/XFree86/Linux-x86/384.59/README/optimus.html
(5) [GUIDE] Optimus laptop dGPU passthrough · GitHub - Gist. https://gist.github.com/Misairu-G/616f7b2756c488148b7309addc940b28
(6) Intel and NVIDIA GPU Passthrough on an Optimus MUXless Laptop. https://lantian.pub/en/article/modify-computer/laptop-intel-nvidia-optimus-passthrough.lantian/