Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Display changes every session / tmp doesn't get cleared (Read 826 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Display changes every session / tmp doesn't get cleared

Hello, i made a post some time ago in system about the $DISPLAY env changing constantly and after some time without doing anything echo $DISPLAY was printing out only :0. But these days it started changing the number daily again. Everytime i reboot it changes. Now it echoes :11.

This wouldn't be an issue if i didn't had to set $DISPLAY for my cronjobs, but everyday when i boot i have to change the variable.
Is there some way to make it be still?

ls /tmp/X11-unix outputs

Code: [Select]
$ ls /tmp/.X11-unix 
X0  X1  X10  X11  X2  X3  X4  X5  X6  X7  X8  X9


Thank you for reading.

Re: Display changes every session

Reply #1
What does ls -l say, how old are those entries? Is /tmp getting cleared when you reboot? bootmisc does this with OpenRC, but you're using Runit I recall so I'm not sure what the equivalent would be.

 

Re: Display changes every session

Reply #2
What does ls -l say, how old are those entries? Is /tmp getting cleared when you reboot? bootmisc does this with OpenRC, but you're using Runit I recall so I'm not sure what the equivalent would be.

Code: [Select]
$ ls -l /tmp/.X11-unix 
total 0
srwxrwxrwx 1 kredik wheel 0 jul  7 09:50 X0
srwxrwxrwx 1 kredik  1000 0 jun 29 20:21 X1
srwxrwxrwx 1 kredik wheel 0 jul 16 09:53 X10
srwxrwxrwx 1 kredik wheel 0 jul 17 09:50 X11
srwxrwxrwx 1 kredik  1000 0 jun 30 00:01 X2
srwxrwxrwx 1 kredik wheel 0 jul  1 11:39 X3
srwxrwxrwx 1 kredik wheel 0 jul  2 19:00 X4
srwxrwxrwx 1 kredik wheel 0 jul  3 09:35 X5
srwxrwxrwx 1 kredik wheel 0 jul  4 09:33 X6
srwxrwxrwx 1 kredik wheel 0 jul  9 12:23 X7
srwxrwxrwx 1 kredik wheel 0 jul 11 05:02 X8
srwxrwxrwx 1 kredik wheel 0 jul 14 09:19 X9

Looks like these are old. I am using Runit, how can i fix this? Thank you for answering!

Edit: Thank you!! i didn't realized this might be the issue but i added tmpfs to the fstab and now everything works as intended. Thank you so much!