[Thinlinc-technical] Cannot open display after some time

Peter Astrand astrand at cendio.se
Wed Feb 27 15:20:42 CET 2013

I see. Besides /tmp/.X11-unix/X1, you could verify that $XAUTHORITY still 
points to the correct authority file, and that it is readable.

It could also be a problem with AppArmor. You could try to disable it and 
see if that solves the problem. And of course, you can also create a debug 
log by installing and running, say, "strace xdpyinfo &>log".


>/tmp/.X11-unix/X1 still exists (created at my login time). I have read and
>investigated the bug you mentioned and I don't think I am affected with it.
>I also don't really understand the problem they are trying to solve with
>systemd-tmpfiles, but that is another topic..
>Strange thing is I can create new windows for running applications, I am now
>writing this mail in a new Thunderbird window. Also the problem does not occur
>when I work directly on the system itself.
>I am running Suse 12.2, I was mistaken. It doesn't have a systemd-tmpfiles
>package, but my systemd version is 44-10.8.1. The "44" is a number assigned by
>Suse, and the 'upstream' version is 10.8.1, if I remember RPM packaging
Op 27-02-13 14:00, Peter Astrand schreef:

       We haven't heard of this problem before. However, my guess is that
       something removes /tmp/.X11-unix/Xn (where n is the session number)
       after some time. As I understand it, OpenSuse 12.1 uses "systemd",
       which is known to cause compatibility problems. I found this bug


       It seems that you need to use systemd-tmpfiles v18 or later to avoid
       this problem. Or, use a Linux distribution without "systemd" :-)


       On Wed, 27 Feb 2013, Germ van Eck wrote:

             For the last year, and after several (re-)installations
             I keep having the issue that I can't start new X
             applications after some time. When I try to do this from
             the terminal, I get the error "Cannot open display".

             myusername at mypc:~/sbin> echo $DISPLAY
             myusername at mypc:~/sbin> w
             13:18:14 up 8 days,  1:13,  3 users,  load average:
             0,77, 0,63, 0,60
             USER     TTY      FROM             LOGIN@   IDLE  
             JCPU   PCPU WHAT
             myusername     thinlinc :1               10:06    0.00s 
             0.00s 0.00s tl-session: myusername
             myusername     pts/1    :1.0             11:09    0.00s 
             0.09s 0.00s w
             myusername at mypc:~/sbin> gedit
             No protocol specified
             Cannot open display:

             Both the client and server systems are running Opensuse
             12.1. The server hardware is an Apple iMac (ATI using
             binary driver), the client is a HP Laptop.

             I use Virtualbox with Win7. The thinlinc-vnc-server
             version is 3.4.0-3513, X.Org is at 7.6_1-3.2.1.

             Both a fix and a workaround would be appreciated, I now
             solve this by logging out/in, but this becomes very

       Peter Astrand        ThinLinc Chief Developer
       Cendio AB        http://cendio.com
       Teknikringen 8        http://twitter.com/ThinLinc
       583 30 Linkoping    http://facebook.com/ThinLinc
       Phone: +46-13-214600    http://plus.google.com/112509906846170010689


Met vriendelijke groet,



Germ van Ek

Software Engineer

Beschrijving: Station to Station
Station to Station B.V.
Pompmolenlaan 26
3447GK Woerden
Mob: +31(0)6-2480 7537
Tel: +31(0)348-446963
Fax: +31(0)348-446936

g.vanek at stationtostation.nl

Website: www.stationtostation.nl


P  Denk aan het milieu, alvorens te besluiten deze mail te printen.



     [ Part 1.2, Image/JPEG (Name: "sts-onderwijs-ervaren.jpg") 3.5 KB. ]
     [ Unable to print this part. ]

     [ Part 2, Text/X-VCARD (Name: "g_vanek.vcf") 14 lines. ]
     [ Unable to print this part. ]

Peter Åstrand		ThinLinc Chief Developer
Cendio AB		http://cendio.com
Teknikringen 8		http://twitter.com/ThinLinc
583 30 Linköping	http://facebook.com/ThinLinc
Phone: +46-13-214600	http://plus.google.com/112509906846170010689

More information about the Thinlinc-technical mailing list