You are not logged in.
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
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
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:
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
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
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