You are not logged in.
I had a 1 yr install to switch from intel graphics to nvidia graphics that was working fine. After an update (nvidia 455.45.01-1 -> 455.45.01-6, linux 5.9.9.arch1-1 -> 5.9.13.arch1-1), there was a change in screen resolution, so I decided to update all packages (AUR: optimus-manager (1.2.2-2 -> 1.3.1-1), gdm-prime (3.36.3-1 -> 3.38.2-1)) to the latest versions. After this upgrade, I realised I could not switch from Intel to Nvidia graphics. Some relevant outputs:
$ 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.
$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev ff)
$ nvidia-settings
ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system
$ cat /etc/X11/xorg.conf.d/10-optimus-manager.conf
Section "Device"
Identifier "intel"
Driver "intel"
BusID "PCI:0:2:0"
Option "AccelMethod" "xna"
Option "DRI" "3"
EndSection
$ cat /etc/X11/xorg.conf.d/20-intel.conf
#This driver now uses DRI3 as the default Direct Rendering
#Infrastructure. You can try falling back to DRI2 if you run
#into trouble. To do so, save a file with the following
#content as /etc/X11/xorg.conf.d/20-intel.conf :
Section "Device"
Identifier "Intel Graphics"
# Driver "modesetting" #Alternative, but remove everything below
Driver "intel"
#Option "DRI" "2" # DRI3 is now default
##Option "AccelMethod" "sna" # default
##Option "AccelMethod" "uxa" # fallback
Option "Backlight" "intel_backlight"
EndSection
$ optimus-manager --print-mode
ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Log at /var/log/optimus-manager/switch/switch-20201212T194429.log
If your login manager is GDM, make sure to follow those instructions:
https://github.com/Askannz/optimus-mana … -gdm-users
If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki:
https://github.com/Askannz/optimus-mana … leshooting
$ tail /var/log/optimus-manager/switch/switch-20201212T194429.log
[11] INFO: Xorg post-start hook completed successfully.
[7] INFO: # Xorg pre-start hook
[7] INFO: Previous state was: {'type': 'done', 'switch_id': '20201212T194429', 'current_mode': 'intel'}
[7] INFO: Requested mode is: intel
[7] INFO: Checking for GDM display servers
[191] INFO: Loaded extra Intel Xorg options (0 lines)
[192] INFO: Loaded extra Intel Xorg options (0 lines)
[193] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[193] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20201212T194429', 'requested_mode': 'intel'}
[194] INFO: Xorg pre-start hook completed successfully.
What I tried:
- Uninstall and install all packages (optimus-manager, gdm-prime)
Offline
OK, I might have found something. If I run
$ prime-offload
[3] INFO: # Xorg post-start hook
[3] INFO: Running /etc/optimus-manager/xsetup-intel.sh
[14] INFO: Writing state {'type': 'done', 'switch_id': '20201212T204337', 'current_mode': 'intel'}
[14] INFO: Xorg post-start hook completed successfully.
Then I can do
$ optimus-manager --print-mode
Current GPU mode : intel
And I can boot into nvidia mode. However, from intel model, I still cannot see my card and I cannot use CUDA:
$ 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.
I also do not seem to be able to switch into hybrid mode
Last edited by retogenes (2020-12-12 20:54:36)
Offline
Just a bump, I am also having the same issue. I cant change modes even if i am able to run "optimus-manager --switch hybrid". I am also getting the same error while trying to run optimus-manager without running prime-offload.
Did you get any solution to this?
Offline