Answers to: emacs can't open displayhttp://linuxexchange.org/questions/2618/emacs-cant-open-display<p>Just recently this has started happening.</p> <p>I run: <code>/usr/bin/emacsclient --alternate-editor="" --no-wait -c</code> and get `<em>ERROR</em>: Display :0.0 can't be opened'</p> <p>No other application do this.</p> <p>output from xdpyinfo:</p> <pre><code>name of display: :0.0 version number: 11.0 vendor string: The <a href="http://X.Org">X.Org</a> Foundation vendor release number: 10707000 <a href="http://X.Org">X.Org</a> version: 1.7.7 ..... </code></pre> <h1>Additional</h1> <p>Discovered that old emacs servers/daemons are still running.</p> <p>$ps ux | grep [e]macs richard 2642 0.0 0.8 38788 24984 ? Ss Jun22 0:25 emacs --daemon richard 7512 0.0 0.6 33896 19720 ? Ss Jun23 0:05 emacs --daemon richard 15458 0.0 0.6 32836 19076 ? Ss 09:40 0:01 emacs --daemon</p> <p>Any one any ideas how these can be shut-down when I log-off?</p>enThu, 08 Sep 2011 04:53:22 -0400Answer by daves dadhttp://linuxexchange.org/questions/2618/emacs-cant-open-display/2684<p>I am not having this problem any more, it just went away. Maybe my behaviour has changed back to what it was before. I also have enough info to fix it if it happens again. </p>daves dadThu, 08 Sep 2011 04:53:22 -0400http://linuxexchange.org/questions/2618/emacs-cant-open-display/2684Answer by modhttp://linuxexchange.org/questions/2618/emacs-cant-open-display/2682<p>Best to supply too much rather than too little info when asking for help/analyses. What's the recent history of the machine(s) in question? Software/hardware upgrade? Logging in remotely versus local? Happens on freshly restarted system versus one with long uptime? Maybe always works the first time but never subsequently? Does the "normal" (ie, non client/server) version of Emacs work? Maybe works when your .emacrs is renamed to be .emarcs.HIDDEN? etc, etc, etc...</p>modWed, 07 Sep 2011 15:36:20 -0400http://linuxexchange.org/questions/2618/emacs-cant-open-display/2682Comment by daves dad on daves dad's questionhttp://linuxexchange.org/questions/2618/emacs-cant-open-display#2620<p>It is not after a hibernate, I had it when I first logged in earlier. What do you mean by display context. My Display is :0.0 the same as emacs believes it to be.</p>daves dadThu, 23 Jun 2011 09:47:51 -0400http://linuxexchange.org/questions/2618/emacs-cant-open-display#2620Comment by Jazz on daves dad's questionhttp://linuxexchange.org/questions/2618/emacs-cant-open-display#2619<p>Does this perhaps happen after hibernating or sleeping? Do you start the emacs daemon in another display context?</p>JazzThu, 23 Jun 2011 09:22:54 -0400http://linuxexchange.org/questions/2618/emacs-cant-open-display#2619