Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White background on resume from suspension or from screen turned off #579

Open
Eldhrimer opened this issue Nov 4, 2021 · 7 comments
Open

Comments

@Eldhrimer
Copy link

Eldhrimer commented Nov 4, 2021

What Happened?

After resuming from suspend, or when waking up the screen after it turned off, 8/10 times the greeter background color/image does not load properly and instead the whole background is, searingly, white, therefore making very bad contrast with certain elements of the UI, like the clock.

When I've tried to forcefully suspend/turn off the screen the issue has not happened.

This only happens on my desktop, not on my laptop, both running latest elementary OS

Steps to Reproduce

  1. Wait for session to lock
  2. Wait for screen to turn off
  3. (Optional) Wait for the computer to suspend
  4. Wake up the computer

Expected Behavior

The background should be consistent every time when logging in.

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

Logs will be taken the next time it happens and added here.

Hardware Info

Screenshot from 2021-11-04 20-17-53
Screenshot from 2021-11-04 20-18-29

@avojak
Copy link

avojak commented Nov 9, 2021

I've been having the same issue as well, although maybe not quite as frequently as you've mentioned. I just experienced it now and here are the journalctl messages from when the computer was locked up through waking it and noticing the screen and logging in (sorry if it's too much, I'm not really sure what's relevant):

Nov 09 11:16:53 avojak-elementaryOS pulseaudio[1191]: Failed to create sink input: sink is suspended.
Nov 09 11:16:54 avojak-elementaryOS gsd-color[1379]: failed to set screen _ICC_PROFILE: Failed to open file “/var/lib/lightdm/.local/share/icc/edid-79c7a66b8dd8d7ce904238ff29674014.icc”: Pe>
Nov 09 11:17:01 avojak-elementaryOS bamfdaemon[1542]: Got an X error: BadWindow (invalid Window parameter)
Nov 09 11:17:01 avojak-elementaryOS bamfdaemon[1542]: Got an X error: BadWindow (invalid Window parameter)
Nov 09 11:17:01 avojak-elementaryOS bamfdaemon[1542]: Got an X error: BadWindow (invalid Window parameter)
Nov 09 11:17:02 avojak-elementaryOS gsd-color[1379]: failed to connect to device: Failed to connect to missing device /org/freedesktop/ColorManager/devices/xrandr_LG_Electronics_LG_HDR_4K_1>
Nov 09 11:17:02 avojak-elementaryOS gsd-color[1379]: failed to connect to device: Failed to connect to missing device /org/freedesktop/ColorManager/devices/xrandr_LG_Electronics_LG_HDR_4K_1>
Nov 09 11:17:11 avojak-elementaryOS systemd[1184]: run-user-114-doc.mount: Succeeded.
Nov 09 11:17:11 avojak-elementaryOS systemd[1184]: run-user-114-gvfs.mount: Succeeded.
Nov 09 11:17:11 avojak-elementaryOS systemd[1184]: run-user-114.mount: Succeeded.
Nov 09 11:26:31 avojak-elementaryOS systemd[1184]: app-flatpak-org.gnome.Epiphany-25397.scope: Succeeded.
Nov 09 11:26:49 avojak-elementaryOS systemd[1184]: app-flatpak-org.gnome.Epiphany-25300.scope: Succeeded.
Nov 09 11:26:49 avojak-elementaryOS systemd[1184]: app-flatpak-org.gnome.Epiphany-25501.scope: Succeeded.
Nov 09 11:33:15 avojak-elementaryOS systemd[1184]: Started app-flatpak-org.gnome.Epiphany-27436.scope.
Nov 09 11:33:15 avojak-elementaryOS WebKitWebProces[27450]: Failed to load module "canberra-gtk-module"
Nov 09 11:33:15 avojak-elementaryOS WebKitWebProces[27450]: Failed to load module "canberra-gtk-module"
Nov 09 11:33:18 avojak-elementaryOS systemd[1184]: Started app-flatpak-org.gnome.Epiphany-27475.scope.
Nov 09 11:33:19 avojak-elementaryOS WebKitWebProces[27487]: Failed to load module "canberra-gtk-module"
Nov 09 11:33:19 avojak-elementaryOS WebKitWebProces[27487]: Failed to load module "canberra-gtk-module"
Nov 09 11:33:21 avojak-elementaryOS systemd[1184]: Started app-flatpak-org.gnome.Epiphany-27528.scope.
Nov 09 11:33:21 avojak-elementaryOS WebKitWebProces[27539]: Failed to load module "canberra-gtk-module"
Nov 09 11:33:21 avojak-elementaryOS WebKitWebProces[27539]: Failed to load module "canberra-gtk-module"
Nov 09 11:44:01 avojak-elementaryOS gala.desktop[1454]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x8e00008
Nov 09 11:44:01 avojak-elementaryOS gala.desktop[1454]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x8e00008
Nov 09 11:44:01 avojak-elementaryOS gala[1454]: clutter_actor_remove_child: assertion 'CLUTTER_IS_ACTOR (child)' failed
Nov 09 11:44:01 avojak-elementaryOS gala[1454]: invalid (NULL) pointer instance
Nov 09 11:44:01 avojak-elementaryOS gala[1454]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Nov 09 11:44:48 avojak-elementaryOS systemd[1184]: Started app-flatpak-org.gnome.Epiphany-28653.scope.
Nov 09 11:44:48 avojak-elementaryOS WebKitWebProces[28669]: Failed to load module "canberra-gtk-module"
Nov 09 11:44:48 avojak-elementaryOS WebKitWebProces[28669]: Failed to load module "canberra-gtk-module"
Nov 09 11:44:56 avojak-elementaryOS systemd[1184]: app-flatpak-org.gnome.Epiphany-27436.scope: Succeeded.
Nov 09 11:46:46 avojak-elementaryOS gala.desktop[1454]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x7a00008
Nov 09 11:46:46 avojak-elementaryOS gala.desktop[1454]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x7a00008
Nov 09 11:46:46 avojak-elementaryOS gala[1454]: clutter_actor_remove_child: assertion 'CLUTTER_IS_ACTOR (child)' failed
Nov 09 11:46:46 avojak-elementaryOS gala[1454]: invalid (NULL) pointer instance
Nov 09 11:46:46 avojak-elementaryOS gala[1454]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Nov 09 11:46:51 avojak-elementaryOS gnome-keyring-daemon[1195]: asked to register item /org/freedesktop/secrets/collection/login/4, but it's already registered
Nov 09 11:47:02 avojak-elementaryOS gnome-keyring-daemon[1195]: asked to register item /org/freedesktop/secrets/collection/login/4, but it's already registered
Nov 09 12:07:39 avojak-elementaryOS io.elementary.w[1532]: DisplayWidget.vala:152: Unknown network state, cannot show the good icon: NETWORK_STATE_FAILED
Nov 09 12:07:39 avojak-elementaryOS io.elementary.w[1532]: DisplayWidget.vala:152: Unknown network state, cannot show the good icon: NETWORK_STATE_FAILED
Nov 09 12:32:18 avojak-elementaryOS pulseaudio[1191]: Failed to create sink input: sink is suspended.
Nov 09 12:32:19 avojak-elementaryOS gsd-color[1379]: failed to set screen _ICC_PROFILE: Failed to open file “/var/lib/lightdm/.local/share/icc/edid-79c7a66b8dd8d7ce904238ff29674014.icc”: Pe>
Nov 09 12:32:38 avojak-elementaryOS gsd-color[1379]: failed to connect to device: Failed to connect to missing device /org/freedesktop/ColorManager/devices/xrandr_LG_Electronics_LG_HDR_4K_1>
Nov 09 12:32:38 avojak-elementaryOS gsd-color[1379]: failed to connect to device: Failed to connect to missing device /org/freedesktop/ColorManager/devices/xrandr_LG_Electronics_LG_HDR_4K_1>
Nov 09 12:32:42 avojak-elementaryOS gala.desktop[1454]: Window manager warning: Ping serial 17654894 was reused for window 0x36085e9, previous use was for window 0x3600007.
Nov 09 12:32:46 avojak-elementaryOS systemd[1184]: run-user-114-gvfs.mount: Succeeded.
Nov 09 12:32:46 avojak-elementaryOS systemd[1184]: run-user-114-doc.mount: Succeeded.
Nov 09 12:32:46 avojak-elementaryOS systemd[1184]: run-user-114.mount: Succeeded.
Nov 09 12:32:50 avojak-elementaryOS systemd[1184]: Started app-flatpak-org.gnome.Epiphany-29961.scope.
Nov 09 12:32:51 avojak-elementaryOS WebKitWebProces[29974]: Failed to load module "canberra-gtk-module"
Nov 09 12:32:51 avojak-elementaryOS WebKitWebProces[29974]: Failed to load module "canberra-gtk-module"
Nov 09 12:32:52 avojak-elementaryOS systemd[1184]: app-flatpak-org.gnome.Epiphany-28653.scope: Succeeded.

If there's another place to check for logs I'd be happy to check there as well.

@yellowgh0st
Copy link

I have just encountered this too. Sad this is still present. I remember this happen in very early releases.

@yellowgh0st
Copy link

yellowgh0st commented Dec 20, 2021

I can reproduce.

  1. Lock with

dm-tool switch-to-greeter or dm-tool lock

  1. Greeter is fine
  2. Login back to session
  3. Black out
  4. Press any key
  5. Back on greeter with white background
  6. Login again
  7. Now we're back in session

@yellowgh0st
Copy link

yellowgh0st commented Dec 20, 2021

# cat seat0-greeter.log

** (io.elementary.greeter:26609): CRITICAL **: 17:39:37.112: MainWindow.vala:358: prompt: `Password: ' (1)

** (io.elementary.greeter:26609): CRITICAL **: 17:39:37.321: MainWindow.vala:358: prompt: `Password: ' (1)

** (io.elementary.greeter:26815): CRITICAL **: 17:39:57.372: MainWindow.vala:358: prompt: `Password: ' (1)

** (io.elementary.greeter:26815): CRITICAL **: 17:39:57.587: MainWindow.vala:358: prompt: `Password: ' (1)

# cat lightdm.log

[+7760.16s] DEBUG: Seat seat0: Creating greeter session
[+7760.16s] DEBUG: Seat seat0: Creating display server of type x
[+7760.16s] DEBUG: Using VT 8
[+7760.16s] DEBUG: Seat seat0: Starting local X display on VT 8
[+7760.16s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+7760.16s] DEBUG: XServer 1: Writing X server authority to /var/run/lightdm/root/:1
[+7760.16s] DEBUG: XServer 1: Launching X Server
[+7760.16s] DEBUG: Launching process 26558: /usr/bin/X -core :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+7760.16s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+7760.74s] DEBUG: Seat seat0 changes active session to 
[+7761.02s] DEBUG: Got signal 10 from process 26558
[+7761.02s] DEBUG: XServer 1: Got signal from X server :1
[+7761.02s] DEBUG: XServer 1: Connecting to XServer :1
[+7761.02s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+7761.02s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+7761.02s] DEBUG: Session pid=26589: Started with service 'lightdm-greeter', username 'lightdm'
[+7761.03s] DEBUG: Session pid=26589: Authentication complete with return value 0: Success
[+7761.03s] DEBUG: Seat seat0: Session authenticated, running command
[+7761.03s] DEBUG: Session pid=26589: Running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/io.elementary.greeter
[+7761.03s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+7761.03s] DEBUG: Session pid=26589: Logging to /var/log/lightdm/seat0-greeter.log
[+7761.15s] DEBUG: Activating VT 8
[+7761.15s] DEBUG: Locking login1 session c4
[+7761.16s] DEBUG: Activating login1 session c23
[+7761.16s] DEBUG: Seat seat0 changes active session to c23
[+7761.16s] DEBUG: Session c23 is already active
[+7761.36s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+7761.69s] DEBUG: Greeter start authentication for augustin
[+7761.69s] DEBUG: Session pid=26710: Started with service 'lightdm', username 'augustin'
[+7761.69s] DEBUG: Session pid=26710: Got 1 message(s) from PAM
[+7761.69s] DEBUG: Prompt greeter with 1 message(s)
[+7761.90s] DEBUG: Cancel authentication
[+7761.90s] DEBUG: Session pid=26710: Sending SIGTERM
[+7761.90s] DEBUG: Greeter start authentication for augustin
[+7761.90s] DEBUG: Session pid=26724: Started with service 'lightdm', username 'augustin'
[+7761.90s] DEBUG: Session pid=26710: Terminated with signal 15
[+7761.90s] DEBUG: Session: Failed during authentication
[+7761.90s] DEBUG: Seat seat0: Session stopped
[+7761.91s] DEBUG: Session pid=26724: Got 1 message(s) from PAM
[+7761.91s] DEBUG: Prompt greeter with 1 message(s)
[+7768.80s] DEBUG: Continue authentication
[+7768.81s] DEBUG: Session pid=26724: Authentication complete with return value 0: Success
[+7768.81s] DEBUG: Authenticate result for user augustin: Success
[+7768.81s] DEBUG: User augustin authorized
[+7768.81s] DEBUG: Greeter requests session pantheon
[+7768.81s] DEBUG: Seat seat0: Returning to existing user session augustin
[+7768.81s] DEBUG: Unlocking login1 session c4
[+7768.81s] DEBUG: Activating VT 7
[+7768.91s] DEBUG: Seat seat0: Stopping greeter
[+7768.91s] DEBUG: Terminating login1 session c23
[+7768.94s] DEBUG: Session pid=26589: Sending SIGTERM
[+7768.94s] DEBUG: Activating login1 session c4
[+7768.97s] DEBUG: Session pid=26589: Exited with return value 0
[+7768.97s] DEBUG: Seat seat0: Session stopped
[+7768.97s] DEBUG: Session pid=26724: Exited with return value 0
[+7768.97s] DEBUG: Seat seat0: Session stopped
[+7768.97s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+7768.97s] DEBUG: Sending signal 15 to process 26558
[+7768.97s] DEBUG: Seat seat0 changes active session to c4
[+7768.97s] DEBUG: Session c4 is already active
[+7769.00s] DEBUG: Process 26558 exited with return value 0
[+7769.00s] DEBUG: XServer 1: X server stopped
[+7769.00s] DEBUG: Releasing VT 8
[+7769.00s] DEBUG: XServer 1: Removing X server authority /var/run/lightdm/root/:1
[+7769.00s] DEBUG: Seat seat0: Display server stopped
[+7780.43s] DEBUG: Seat seat0: Creating greeter session
[+7780.43s] DEBUG: Seat seat0: Creating display server of type x
[+7780.43s] DEBUG: Using VT 8
[+7780.43s] DEBUG: Seat seat0: Starting local X display on VT 8
[+7780.43s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+7780.43s] DEBUG: XServer 1: Writing X server authority to /var/run/lightdm/root/:1
[+7780.43s] DEBUG: XServer 1: Launching X Server
[+7780.43s] DEBUG: Launching process 26760: /usr/bin/X -core :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+7780.43s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+7780.98s] DEBUG: Seat seat0 changes active session to 
[+7781.27s] DEBUG: Got signal 10 from process 26760
[+7781.27s] DEBUG: XServer 1: Got signal from X server :1
[+7781.27s] DEBUG: XServer 1: Connecting to XServer :1
[+7781.27s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+7781.27s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+7781.27s] DEBUG: Session pid=26795: Started with service 'lightdm-greeter', username 'lightdm'
[+7781.28s] DEBUG: Session pid=26795: Authentication complete with return value 0: Success
[+7781.28s] DEBUG: Seat seat0: Session authenticated, running command
[+7781.28s] DEBUG: Session pid=26795: Running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/io.elementary.greeter
[+7781.28s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+7781.28s] DEBUG: Session pid=26795: Logging to /var/log/lightdm/seat0-greeter.log
[+7781.43s] DEBUG: Activating VT 8
[+7781.43s] DEBUG: Locking login1 session c4
[+7781.43s] DEBUG: Activating login1 session c24
[+7781.43s] DEBUG: Seat seat0 changes active session to c24
[+7781.43s] DEBUG: Session c24 is already active
[+7781.61s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+7781.94s] DEBUG: Greeter start authentication for augustin
[+7781.94s] DEBUG: Session pid=26915: Started with service 'lightdm', username 'augustin'
[+7781.95s] DEBUG: Session pid=26915: Got 1 message(s) from PAM
[+7781.95s] DEBUG: Prompt greeter with 1 message(s)
[+7782.17s] DEBUG: Cancel authentication
[+7782.17s] DEBUG: Session pid=26915: Sending SIGTERM
[+7782.17s] DEBUG: Greeter start authentication for augustin
[+7782.17s] DEBUG: Session pid=26929: Started with service 'lightdm', username 'augustin'
[+7782.17s] DEBUG: Session pid=26915: Terminated with signal 15
[+7782.17s] DEBUG: Session: Failed during authentication
[+7782.17s] DEBUG: Seat seat0: Session stopped
[+7782.17s] DEBUG: Session pid=26929: Got 1 message(s) from PAM
[+7782.17s] DEBUG: Prompt greeter with 1 message(s)
[+7788.02s] DEBUG: Continue authentication
[+7788.03s] DEBUG: Session pid=26929: Authentication complete with return value 0: Success
[+7788.03s] DEBUG: Authenticate result for user augustin: Success
[+7788.03s] DEBUG: User augustin authorized
[+7788.03s] DEBUG: Greeter requests session pantheon
[+7788.04s] DEBUG: Seat seat0: Returning to existing user session augustin
[+7788.04s] DEBUG: Unlocking login1 session c4
[+7788.04s] DEBUG: Activating VT 7
[+7788.13s] DEBUG: Seat seat0: Stopping greeter
[+7788.13s] DEBUG: Terminating login1 session c24
[+7788.16s] DEBUG: Session pid=26795: Sending SIGTERM
[+7788.16s] DEBUG: Activating login1 session c4
[+7788.17s] DEBUG: Session pid=26929: Exited with return value 0
[+7788.17s] DEBUG: Seat seat0: Session stopped
[+7788.17s] DEBUG: Seat seat0 changes active session to c4
[+7788.17s] DEBUG: Session c4 is already active
[+7788.17s] DEBUG: Session pid=26795: Exited with return value 0
[+7788.17s] DEBUG: Seat seat0: Session stopped
[+7788.17s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+7788.17s] DEBUG: Sending signal 15 to process 26760
[+7788.21s] DEBUG: Process 26760 exited with return value 0
[+7788.21s] DEBUG: XServer 1: X server stopped
[+7788.21s] DEBUG: Releasing VT 8
[+7788.21s] DEBUG: XServer 1: Removing X server authority /var/run/lightdm/root/:1
[+7788.21s] DEBUG: Seat seat0: Display server stopped

@avojak
Copy link

avojak commented Dec 20, 2021

4. Black out

@yellowgh0st What do you mean exactly by this step? Is this letting the system "black out" where it goes to sleep after a while? Or is this explicitly locking the system (e.g. Super+L)?

@yellowgh0st
Copy link

yellowgh0st commented Dec 20, 2021

@avojak According to seat0-greeter.log it looks like it crashes and restarts greeter so what I mean is that it i get black screen and my monitor is left without any output with flashing led until I press anything which starts greeter again.

Rn I'm looking at the reported line in MainWindow.vala

@yellowgh0st
Copy link

Ok doesn't seems to be the issue. It's more likely Xorg server related.
I have just found that switching my monitor output crashes it as well which is crazy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants