You are not logged in.

#1 2016-03-28 02:39:16

pethead
Member
From: RU
Registered: 2015-02-25
Posts: 48

[solved]After resume from hibernate any X app can't start

New X apps won't start after resume from hibernate.

Run any X application has message:
Invalid MIT-MAGIC-COOKIE-1 keyQXcbConnection: Could not connect to display :0.0
or
Invalid MIT-MAGIC-COOKIE-1 key/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
You need to run terminator in an X environment. Make sure $DISPLAY is properly set


It can be solved rerunning X (exiting and start again).

Any suggstions?

But any ran (started already) apps after hibernating run well.

echo $DISPLAY
:0.0

It looks like somehow X server's socket is getting destroyed on resume...

Last edited by pethead (2016-03-28 15:38:21)


This Must Be The Place I Waited Years To Leave

Offline

#2 2016-03-28 15:37:52

pethead
Member
From: RU
Registered: 2015-02-25
Posts: 48

Re: [solved]After resume from hibernate any X app can't start

solved.
change hostname as localhost to anynamehost, xauth generate new entry for that hostname. relogin, hibernate, resume and new apps are started.


This Must Be The Place I Waited Years To Leave

Offline

#3 2016-07-13 13:58:32

MLaidman
Member
Registered: 2016-05-18
Posts: 1

Re: [solved]After resume from hibernate any X app can't start

Hey Pethead,

Can you elaborate a little bit on how you fixed this for a newbie like myself? I'm having the same issue and don't really understand how to fix.

I found this, but I am unsure what you mean by:

pethead wrote:

xauth generate new entry for that hostname.


Don't know if this counts as a necro-post - it's not that old... I will make a new post if anyone suggests...

Thanks!

Last edited by MLaidman (2016-07-13 14:36:18)

Offline

#4 2016-07-13 15:49:42

pethead
Member
From: RU
Registered: 2015-02-25
Posts: 48

Re: [solved]After resume from hibernate any X app can't start

MLaidman wrote:
pethead wrote:

xauth generate new entry for that hostname.

xauth generate :0 .

Ref: http://linux.die.net/man/1/xauth

Last edited by pethead (2016-07-13 15:50:16)


This Must Be The Place I Waited Years To Leave

Offline

#5 2016-07-13 17:10:23

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: [solved]After resume from hibernate any X app can't start

https://wiki.archlinux.org/index.php/Talk:Xorg

Should probably be included in the Xorg article somewhere.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

Board footer

Powered by FluxBB