Askannz / optimus-manager

A Linux program to handle GPU switching on Optimus laptops.
MIT License
2.25k stars 165 forks source link

When I switch to Nvidia, the built-in screen of the laptop stays black but I can still input my password or use monitors plugged to a video output #552

Open T-3B opened 8 months ago

T-3B commented 8 months ago

Describe the bug I'm having a problem described in the trouble shooting section of the wiki: "When I switch to Nvidia, the built-in screen of the laptop stays black but I can still input my password or use monitors plugged to a video output".

When I switch to Nvidia (or simply boot in Nvidia mode), my Display Manager won't show up: my laptop screen is black. I can enter my password, then my Window Manager starts and finally the screen is working as expected. Therefore the black screen only happens on the log-in screen from my Display Manager.

Other modes (integrated, hybrid) don't have any problem.

The wiki suggests that this may be a Prime configuration problem. All my packages are up to date. Any help would be greatly appreciated.

System info

optimus-manager.conf:

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

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

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

Logs optimus-manager --status shows no error. Filenames should be meaningful: kernel.log Xorg.0.log display-manager_slim.log optimus-manager_service_journalctl.log optimus-manager_daemon-20231029T131222.log optimus-manager_switch-20231029T131222.log

Any help is appreciated, thanks!

T-3B commented 8 months ago

Related: #450 #410 #113

T-3B commented 8 months ago

After further tests, it appears that my laptop screen is NOT powered at all on my login screen. So it's not a black screen, rather a disabled/turned off screen.

nwildner commented 1 week ago

Hello @T-3B .

How is Prime configured at the firmware(BIOS) level here? I had the very same issue on my Asus TUF if I set my laptop to the "Ultimate" mode. Completely black screen until having a full Xorg session.

https://gitlab.com/asus-linux/asusctl/-/issues/404

Also, have you tried optimus-manager-git recently?

T-3B commented 5 days ago

@nwildner Thank you for your message!

In my BIOS (which I enter with the F12 key at startup), there very limited options (only SATA/NVMe and boot configurations are available). So I cannot do anything on this side for changing the "Ultimate" mode (except if I should change the BIOS but I never heard anything like that).

I just tried optimus-manager-git, and... it is even worse: after changing to nvidia mode, my screen is still turned off (even after entering my password). I know I managed to still unlock my login manager (and entering my WM) because I did some actions blindly that I could find in the future with integrated (or hybrid) mode.