Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X display black after resume from suspend
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
equaeghe
Guru
Guru


Joined: 22 Feb 2005
Posts: 472

PostPosted: Thu Oct 06, 2016 3:32 pm    Post subject: X display black after resume from suspend Reply with quote

Often after I resume from suspend-to-ram, X session display becomes black (after very briefly showing my desktop). Only the mouse pointer is shown (and can be moved). This is something that appeared after a recent X upgrade (or kernel upgrade?). Normally, what happened is that briefly my desktop was shown and then the unlock screen. So now sometimes instead of the unlog screen the diplay turns black.

I have a Thinkpad x220 with internal SB intel GPU and have had many issues that became alleviated by upgrading to the latest kernel releases (I'm now at 4.7.5). My impression is that the screen thinks for some reason that the system is going to sleep and that it needs to turn off. (Pointer still being there? I guess it's a ‘hardware’ cursor outside of the direct control of X.)

For one thing I'm looking for ways to work around this issue. Is there a specific command/program that can turn the screen on/off. (I still have console access, so it really must be an X-related issue, or perhaps the window manager, which is KWin.)

Of course, if others have encountered this issue or a similar one and know a solution or relevant bug report, I'd be very interested in hearing about it.
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1519
Location: KUUSANKOSKI, Finland

PostPosted: Thu Oct 06, 2016 3:54 pm    Post subject: Reply with quote

Hi.
I have a similar problem, but instead of black I get "color noise". But it's gone when I just switch the virtual desktop. I'm on i3 window manager btw.

I just haven't done anything to solve the problem as it's not that severe. Although some kind of screen refresh might solve my problem.

But you could try to switch to another desktop when this happens. First just see what key combination switches the desks.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
equaeghe
Guru
Guru


Joined: 22 Feb 2005
Posts: 472

PostPosted: Fri Oct 07, 2016 8:29 am    Post subject: Reply with quote

Zucca wrote:
But you could try to switch to another desktop when this happens. First just see what key combination switches the desks.

That's a good idea. However, when I tried switching desktops, or more precisely create one, my computer hangs. So I guess I'd first need to investigate that :-(, which is probably related to the intel driver (what else can hang te whole system?).
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1519
Location: KUUSANKOSKI, Finland

PostPosted: Fri Oct 07, 2016 9:13 am    Post subject: Reply with quote

equaeghe wrote:
However, when I tried switching desktops, or more precisely create one, my computer hangs.
Hmmm... What method/software you use to suspend? If you happen to use systemd to initiate suspend I have set my desktop PC to use following methods confugured in file /etc/systemd/sleep.conf.
The advantage with systemd-sleep is that it tries different methods (listed in sleep.conf) until it succeeds or runs out of methods.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
equaeghe
Guru
Guru


Joined: 22 Feb 2005
Posts: 472

PostPosted: Mon Dec 12, 2016 7:22 am    Post subject: Reply with quote

Zucca wrote:
equaeghe wrote:
However, when I tried switching desktops, or more precisely create one, my computer hangs.
Hmmm... What method/software you use to suspend? If you happen to use systemd to initiate suspend I have set my desktop PC to use following methods confugured in file /etc/systemd/sleep.conf.
The advantage with systemd-sleep is that it tries different methods (listed in sleep.conf) until it succeeds or runs out of methods.

Thanks for the further pointers. I haven't had time to further investigate. However, I discovered that I can switch to a console (Ctrl-Alt-F2) and there do
Code:
loginctl unlock-desktops
to get at my desktop on Ctrl-Alt-F1. However, I seem to be able to do this only once, i.e., if I suspend again and the screen is black, then either nothing happens when I try to unlock the desktop this way, or the system hangs hard (manual shutdown using the machine's button is required).

So, my guess is that something crashes the desktop manager (SDDM) and my feeling is, it is the intel driver. When I have time, I'll investigate further.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum