optimus-manager icon indicating copy to clipboard operation
optimus-manager copied to clipboard

[Feature Request] - optimus-manager does not support "Discrete graphics" in BIOS/UEFI

Open Klusio19 opened this issue 1 year ago • 2 comments

I have a Lenovo Legion Y540 with i7-9750H and GTX1660 Ti. Running latest Arch Linux with Gnome using modified gdm-prime. In BIOS/UEFI I can choose "Switchable Graphcis" or "Discrete Grahpics" (this machine is muxed). In switchable mode as the name says, the integrated Intel GPU, and dedicated Nvidia GPU are available. In "Discrete Graphics" only NVIDIA GPU is available. And when I choose "Discrete Graphics" in BIOS, and boot Arch, the booting process is running to finally be stuck at "reached graphics target". I can't even enter tty (kind of) by Ctrl+Alt+F* , because the screen flickers every ~0.5 seconds, and after I enter the tty, it lasts only for that ~0.5 seconds, and then it goes back to boot screen with logs. I can only click the power button to shut down the machine. I also tried disabling the systemd service in the grub entry, that did not work. Only after uninstalling optimus-manager completely, I can boot with discrete graphics.

Here is my config:

[amd]
DRI=2
driver=modesetting
tearfree=

[intel]
DRI=2
accel=
driver=intel
modeset=yes
tearfree=

[nvidia]
DPI=96
PAT=yes
allow_external_gpus=no
dynamic_power_management=fine
ignore_abi=no
modeset=yes
options=overclocking

[optimus]
auto_logout=yes
pci_power_control=no
pci_remove=no
pci_reset=no
startup_auto_battery_mode=integrated
startup_auto_extpower_mode=nvidia
startup_mode=nvidia
switching=none

I'll also attach gdm, optimus-daemon, optimus switch, optimus-manager.service, xorg logs, from the failed boot when I tried to to that. I'll drop kernel log too, but it's useless I think, because it's from already properly (selected switchable graphics) booted system. gdm-log.log kernel-logs.log optimus-daemon.log optimus-manager.service.log switch-log.log xorg-log.log

Klusio19 avatar Feb 12 '23 20:02 Klusio19

I think optimus-manager doesn't support mux switching yet ? It would be nice if it did. I have the same issue on my Lenovo P1 Gen 6 on SDDM when switching to dGPU-only in BIOS (except than I can enter tty)

supergfxctl supports MUX-switching on ASUS notebooks, but it's not always working that well on non-ASUS notebooks yet, and its maintainer seems focused on wayland support only.

Zyfarok avatar Sep 25 '23 07:09 Zyfarok