Code: Select all
reik-msi /home/reik # modprobe -r nvidia
modprobe: FATAL: Module nvidia is in use.
modprobe: FATAL: Error running remove command for nvidiareikdas wrote:According to the arch wiki page on my laptop - https://wiki.archlinux.org/index.php/MSI_GS65#Multihead the Intel GPU does have access to the thunderbolt port so I decided to give this another go.
I followed the Bumblebee page on the wiki - https://wiki.gentoo.org/wiki/NVIDIA/Bumblebee
First I setup my Intel GPU following the guide here - https://wiki.gentoo.org/wiki/Intel . (Related forum post - https://forums.gentoo.org/viewtopic-t-1 ... ight-.html)
I rebuilt nvidia-drivers using -uvm and -kms.
I configured every file as given in the wiki.
modprobe -r nvidia does not work.lsmod shows that nvidia is loaded.Code: Select all
reik-msi /home/reik # modprobe -r nvidia modprobe: FATAL: Module nvidia is in use. modprobe: FATAL: Error running remove command for nvidia
cat /proc/acpi/bbswitch shows that bbswitch is ON.
What should I do?
Code: Select all
blacklist nvidia_modeset
blacklist nvidia_drm
blacklist nouveauCode: Select all
remove nvidia modprobe -r --ignore-remove nvidia-drm nvidia-modeset nvidia-uvm nvidiaI had nvidia-driver built with kms and uvm, but I disabled those and removed cuda and cuda support for my applications so I can get bumblebee support. I plan to add those back after bumblebee is working.sao98021 wrote: and i build nvidia-driver with +kms and +uvm
This did not let me boot into my display manager (lightdm). I could only use tty.sao98021 wrote: /etc/modprobe.d/blacklist.confCode: Select all
blacklist nvidia_modeset blacklist nvidia_drm blacklist nouveau
odd, wonder if thats because... either its running nouveau or its loading the nvidia driver so to boot its depending on that display before letting bumblebee handle it, it's a pain in the ass to set up but once you do its worth it. I haven't had to mess with bumblebee since like dec 2017.reikdas wrote:This did not let me boot into my display manager (lightdm). I could only use tty.sao98021 wrote: /etc/modprobe.d/blacklist.confCode: Select all
blacklist nvidia_modeset blacklist nvidia_drm blacklist nouveau
No, I do not have nouveau so it must be loading the nvidia driver at boot.sao98021 wrote:odd, wonder if thats because... either its running nouveau or its loading the nvidia driver so to boot its depending on that display before letting bumblebee handle it
I have a 20-modesetting.conf file in /etc/X11/xorg.conf.d. Are you suggesting that I rename it and move it to /etc/bumblebee/xorg.conf.d/10-dummy.conf? Also, do I need to make any conf file changes so it falls back to the dummy conf file?sao98021 wrote:oh, by following the intel guide, did you make a .conf file in /etc/X11/xorg.conf.d ?
like with my build, i do not have one. and it falls back to /etc/bumblebee/xorg.conf.d/10-dummy.conf
which is how it's supposed to be done with bumblebee i believe, if you did make one just re-lable it so it isnt parsed, but with this - i'm not sure in how it would/could effect the fact that its thunderbolt, as in if gaining access to it requires custom things in a conf file not handled by bumblebees dummy-conf workaround.. would just cross fingers and try
Code: Select all
reik-msi /etc/bumblebee # intel-virtual-output
No VIRTUAL outputs on ":0".suggesting that you get rid of it entirely, just rename it to .old, leave it where it is, 10-dummy.conf should be a blank file and should already be there as such, i think the prob you were having before is by having that + the file in your /x11/xorg.conf.d caused the collision, defaulted to that one resulting in refusal to load dm or bumblebee or both.reikdas wrote:
I have a 20-modesetting.conf file in /etc/X11/xorg.conf.d. Are you suggesting that I rename it and move it to /etc/bumblebee/xorg.conf.d/10-dummy.conf? Also, do I need to make any conf file changes so it falls back to the dummy conf file?
Code: Select all
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=trueCode: Select all
nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
Code: Select all
nvidia-smi
Wed Jan 9 09:41:06 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.87 Driver Version: 390.87 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GT 540M Off | 00000000:01:00.0 N/A | N/A |
| N/A 44C P0 N/A / N/A | 5MiB / 964MiB | N/A Default |
+-------------------------------+----------------------+-------
Display is glitching. intel-virtual-output works. Keeping 20-modesetting.conf prevents the glitching but intel-virtual-output does not work.sao98021 wrote:suggesting that you get rid of it entirely, just rename it to .old, leave it where it is, 10-dummy.conf should be a blank file and should already be there as such, i think the prob you were having before is by having that + the file in your /x11/xorg.conf.d caused the collision, defaulted to that one resulting in refusal to load dm or bumblebee or bothreikdas wrote:
I have a 20-modesetting.conf file in /etc/X11/xorg.conf.d. Are you suggesting that I rename it and move it to /etc/bumblebee/xorg.conf.d/10-dummy.conf? Also, do I need to make any conf file changes so it falls back to the dummy conf file?
and change the line in /etc/bumblebee/bumblebee.conf to look like this
Code: Select all
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee # server exits. TurnCardOffAtExit=true
How do I check this?sao98021 wrote:also your not starting your DM with optirun are you?
I am currently running just google chrome with this tab open.sao98021 wrote:[so everything i run is being fed to the intel card, dm's screens everything, until i optirun say steam, or something.
so while nothing running =and while nvidia running =Code: Select all
nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.and then back to the first message when i close programCode: Select all
nvidia-smi Wed Jan 9 09:41:06 2019 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 390.87 Driver Version: 390.87 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GT 540M Off | 00000000:01:00.0 N/A | N/A | | N/A 44C P0 N/A / N/A | 5MiB / 964MiB | N/A Default | +-------------------------------+----------------------+-------
(i use that old driver because nvidia stopped supporting my card apparently and every update since has stated 'there is a card on this system known to not work with this driver' resulting in me masking them)
its pretty noticeable when its not working because system will idle 20 degrees hotter, so for me. When i see temps like 55-65C compared to the norm 35-45 i go 'oh, the nvidia card is on.' So for me, looking at the temps is the best way to make sure i'm in the clear because nothing my machine will do by it self can result in that jump
Code: Select all
reik@reik-msi ~ $ nvidia-smi
Wed Jan 9 20:46:17 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 415.18 Driver Version: 415.18 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 107... Off | 00000000:01:00.0 Off | N/A |
| N/A 49C P0 29W / N/A | 0MiB / 8119MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+Code: Select all
reik@reik-msi /etc/modprobe.d $ cat nvidia-rmmod.conf
# Nvidia UVM support
remove nvidia modprobe -r --ignore-remove nvidia_drm nvidia_modeset nvidia_uvm nvidiaCode: Select all
reik-msi /home/reik # rmmod nvidia
rmmod: ERROR: Module nvidia is in use
reik-msi /home/reik # rmmod nvidia_drm
rmmod: ERROR: Module nvidia_drm is not currently loaded
reik-msi /home/reik # rmmod nvidia_uvm
rmmod: ERROR: Module nvidia_uvm is not currently loaded
reik-msi /home/reik # rmmod nvidia_modeset
rmmod: ERROR: Module nvidia_modeset is not currently loaded