question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logging out in nvidia mode in KDE + SDDM yields black screen after 1.3 update

See original GitHub issue

Describe the bug As the title, logging out while in nvidia mode in KDE + SDDM will yield a black screen. Ctrl + Alt + Fx works fine when the screen turned black, but attempting to restart SDDM will always yield a black screen.

System info

  • Your distribution: Arch Linux
  • Your desktop manager: KDE Plasma
  • You display manager (SDDM, GDM, LightDM…): SDDM
  • The version of optimus-manager you are using: stable release (optimus-manager 1.3 on AUR).
  • Your custom optimus-manager configuration file at /etc/optimus-manager/optimus-manager.conf:
[intel]
DRI=3
accel=
driver=modesetting
modeset=yes
tearfree=yes

[nvidia]
DPI=
PAT=yes
modeset=yes
options=

[optimus]
auto_logout=no
switching=bbswitch
pci_power_control=no
pci_remove=no
pci_reset=no
startup_mode=auto
startup_auto_battery_mode=intel
startup_auto_extpower_mode=nvidia

Additional information: I have checked through all of the logs (optimus-manager logs from the folder and from journalctl, SDDM’s journalctl’s log, kernel log, Xorg’s log, etc.) and nothing seems to be out of order (SDDM reports that the greeter started normally, optimus-manager didn’t pick up the logout).

However, I have tried the following combinations and all of them worked well:

  • Logging out from intel mode.
  • Switching from intel to nvidia and vice versa.
  • Switching from intel to intel.
  • Switching from nvidia to nvidia.

EDIT: This is not the case when using version 1.2.2.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Askannzcommented, Jun 6, 2020

@Hyper-KVM was 100% right about the cause, there was an issue with the state logic causing Prime screen offloading to not be set up again after a logout.

Should be fixed in -git now, let me know how that goes.

1reaction
Ann1kaBcommented, May 29, 2020

The reason why this is happening is because the post_xorg_start hook only runs if switching GPUs or after pre_daemon_start hook.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] nvidia produces black screen at sddm login screen ...
On my new install of Arch on a brand new system, I'm able to install everything in UEFI mode (confirmed with all the...
Read more >
Kubuntu 18.04 gives black screen when SDDM starts (no login)
Use only the drivers from ubuntus graphics ppa. Have the package nvidia-prime installed, remove the 'nomodeset' parameter, run sudo prime-select ...
Read more >
KDE black screen after logout. Sddm doesn't cleanly restart
When I boot into a live USB it shows black screen only, unless I boot into safe graphics mode.
Read more >
Index of Desktop Environments - Gentoo Forums
Config" has no field name" Page:1 · "systemd sddm kde not starting for one user" Page:1 · "Gnome on latest build" Page:1 ·...
Read more >
Linux Hardware – Page 2 - Adventures in Linux and KDE
Here's an update on the trials and tribulations encountered with my new Lenovo ... sync that to SDDM in the SDDM KCM to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found