FS#50418 - "Can't open display" after suspend

Attached to Project: Arch Linux
Opened by Reverend Homer (reverendhomer) - Tuesday, 16 August 2016, 20:41 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 18 August 2016, 04:19 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I have a Samsung NC110 laptop with Intel Atom N455 inside. Every time after suspend it losts connection with display. All opened windows works just fine but I can't open any new window:

ecko@localhost:~$ xterm
^Cecko@localhost:~$ echo $DISPLAY
:0
ecko@localhost:~$ systemctl suspend
ecko@localhost:~$ xterm
No protocol specified
xterm: Xt error: Can't open display: :0
ecko@localhost:~$ echo $DISPLAY
:0
ecko@localhost:~$

I've attached dmesg output from the suspend. You can find some stack trace there.

Additional info:
* package version(s)
xf86-video-intel 1:2.99.917+691+ga77397a-1
xorg-server 1.18.4-1
linux 4.6.4-1

* config and/or log files etc.
See attached file

Steps to reproduce:
* Find a Samsung NC110 Laptop with Arch Linux on it
* Put system in suspend
* Try to open any X window
This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 18 August 2016, 04:19 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Configuration issue
Comment by Jan de Groot (JGC) - Wednesday, 17 August 2016, 12:27 GMT
Only thing I can think of is this:
https://bbs.archlinux.org/viewtopic.php?id=159573

Same issue, possible solution.

What does "hostname" return before and after suspending? Probably your hostname is part of the access list, when it changes you won't be able to start new applications on your $DISPLAY.
Comment by Reverend Homer (reverendhomer) - Wednesday, 17 August 2016, 20:17 GMT
Yes, you are right!

I've forgot to create /etc/hostname during install. And before suspend "hostname" was "localhost", but after – "localhost.localdomain". Now I've created /etc/hostname and it's working just fine!

Thanks for your help and sorry for noise.

Loading...