Closed leledumbo closed 6 years ago
As a bonus, this is what happens when I try to rescan hoping the GPU will work:
i.e.: it's freezing right there so I have to take screenshot using my phone.
Probably a kernel version issue with 4.17, will retry with 4.15 as another approach works.
Confirmed working in 4.15, I have to use the more complete nvidia.conf, though, as the one you provided makes me unable to use the GPU for, for instance, glxspheres64. Here's the content:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 396.24 (buildmeister@swio-display-x64-rhel04-13) Thu Apr 26 01:13:52 PDT 2018
Section "Module"
Load "modesetting"
EndSection
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
Option "NoLogo" "1"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
do you still have bumblebee stuff installed ? (the bbswitch stuff indicates this, respectivly bbswitch is a seperate package). Also the /etc/modprobe.d/mhwd-nvidia.conf(*) file should not exist. I will update readme and state that bumblebee stuff should be uninstalled to avoid problems.
(*) /etc/modprobe.d/ should only contain one gpu related file also /etc/modules-load.d/
as for the xorg conifg: http://us.download.nvidia.com/XFree86/Linux-x86/358.16/README/randr14.html has as example the format I use (for newer x server versions), however in http://us.download.nvidia.com/XFree86/Linux-x86/390.67/README/randr14.html its gone. I will take a futher look into this issue.
best regards,
My actual problem was due to bbswitch in mkinitcpio.conf, which embeds the module in the kernel image despite the module no longer exists (that's why blacklisting has no effect) and was used to built the kernel image previously.
I have deleted /etc/modprobe.d/mhwd-nvidia.conf, now I only have these:
$ cat /etc/modprobe.d/mhwd-gpu.conf
blacklist nouveau
blacklist ttm
options nvidia-drm modeset=1
$ cat /etc/modules-load.d/mhwd-gpu.conf
nvidia
nvidia-modeset
nvidia-drm
nvidia-uvm
There's a problem with my monitor in which Nvidia driver fails to get the correct HorizSync and VertRefresh (I ended up with 960x540 resolution only), so I need above modification to get 1920x1080. No idea which section enables the GPU to use for me. All I know is with the barebone config, glxinfo
doesn't return Nvidia as vendor string, but error message instead (but I forget what it is and kinda lazy to repro).
At first I thought I have to wait until GTX 1050 is well supported in bumblebee + Manjaro, but then "it just works" in PearlLinux using PRIME. Switching is hell easy and no config mess necessary. Then I saw your thread in Manjaro forum and eventually ended up here with problems as written in the title.
The main problem with this laptop is that "it seems" whenever bbswitch tries to turn the Nvidia card off, the whole system freezes / hangs. So the current "solution" (at least I can boot and use my desktop even if only using intel) is to make a systemd unit executing:
before bbswitch does its job.
It works, but that means my GTX 1050 is left useless. I want to use this GPU for heavier gaming (those that UHD 630 can't quite cut it). Using your package, 90-mhwd.conf switches nicely between intel and nvidia, I've also checked the PCI number is correct for both cards, but I still ended up using Intel no matter what due to this:
2 solutions I've found on the net involves
rcutree.rcu_idle_gp_delay=1
andpcie_port_pm=off
kernel parametrs, both don't help at all.1 weird thing, though: after blacklisting bbswitch and even after uninstalling respective kernel package and modprobe cannot find it, I actually find that bbswitch is still loaded out of nowhere on start. I can rmmod it, but immediate modprobe won't find it. So I wonder where this module is loaded from.
The usual system information: