Bumblebee-Project / bbswitch

Disable discrete graphics (currently nvidia only)
GNU General Public License v2.0
487 stars 78 forks source link

Can't change nvdia gpu state #186

Open ArtyomFR opened 5 years ago

ArtyomFR commented 5 years ago

Hi!

When I tried to run optirun command I get this:

[gaetan@LAPT-ARCH-GNDE ~]$ optirun nvidia-smi
[  281.132334] [ERROR]Cannot access secondary GPU - error: Could not enable discrete graphics card
[  281.132357] [ERROR]Aborting because fallback start is disabled.

I can hear the GPU fan starting but I don't think the GPU is on because of this dmesg return:

[  250.903776] bbswitch: enabling discrete graphics
[  281.026330] ACPI Error: Method parse/execution failed \_SB.PCI0.PGON, AE_AML_LOOP_TIMEOUT (20180810/psparse-516)
[  281.026859] ACPI Error: Method parse/execution failed \_SB.PCI0.PEG0.PEGP._ON, AE_AML_LOOP_TIMEOUT (20180810/psparse-516)
[  281.027185] ACPI Error: Method parse/execution failed \_SB.PCI0.PEG0.PEGP._PS0, AE_AML_LOOP_TIMEOUT (20180810/psparse-516)
[  281.027192] video LNXVIDEO:00: Failed to change power state to D0
[  281.027195] pci 0000:01:00.0: Refused to change power state, currently in D3
[  281.123779] pci 0000:01:00.0: Refused to change power state, currently in D3
I use TLP, I guessed that it was tacking control of the PCI port but I had already blacklist all 

Nvidia port in /etc/default/tlp:

[gaetan@LAPT-ARCH-GNDE ~]$ lspci | grep NVIDIA
01:00.0 VGA compatible controller: NVIDIA Corporation TU104M [GeForce RTX 2080 Mobile] (rev ff)
01:00.1 Audio device: NVIDIA Corporation Device 10f8 (rev ff)
01:00.2 USB controller: NVIDIA Corporation Device 1ad8 (rev ff)
01:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device 1ad9 (rev ff)
# Exclude PCI(e) device adresses the following list from Runtime PM
# (separate with spaces). Use lspci to get the adresses (1st column).
# Default: <none>
RUNTIME_PM_BLACKLIST="01:00.0 01:00.1 01:00.2 01:00.3"

# Exclude PCI(e) devices assigned to the listed drivers from Runtime PM.
# Default when unconfigured is "amdgpu nouveau nvidia radeon" which
# prevents accidential power-on of dGPU in hybrid graphics setups.
# Separate multiple drivers with spaces.
# Default: "amdgpu mei_me nouveau nvidia pcieport radeon", use "" to disable
# completely.
RUNTIME_PM_DRIVER_BLACKLIST="amdgpu mei_me nouveau nvidia pcieport radeon"

Here is a summary of my /etc/modprob.d/

options bbswitch load_state=0 unload_state=0
blacklist nouveau
options nouveau modeset=0
blacklist nvidia
blacklist nvidia-drm
blacklist nvidia-modeset
blacklist nvidia_modeset
blacklist nvidia-uvm
blacklist nvidiafb

And /etc/modules-load.d

i915
bbswitch

And finally my kernel boot line: GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on,igfx_off kvm.ignore_msrs=1 acpi_osi=! acpi_osi=Linux acpi_osi=\"Windows 2009\" pcie_port_pm=on nvidia-drm.modeset=0" Does someone have an idea on how to correctly set my bbswitch/bumblee system? I run on the lts kernel and all package are dkms. I can provide log and command return as wished.

Thanks!