Linux Mint 21.1 Cinnamon Disconnecting to the X Server {Solved}

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,753
Credits
19,661
Over the last 2 weeks I have lost the ability to log in after the system has been idle for a while. This has happened 3 times now.
When I move the mouse all I have is a black screen with the cursor no GUI or the ability to log in.

So I hold down the keys I have to in order to drop to a shell and log in.
Than run startx and the command-line complains that it has lost it's connection to the X Server.

I'm not able to get back to the GUI so I have to run sudo reboot:-

Any ideas what I could try?
 


Condobloke

Well-Known Member
Joined
Apr 30, 2017
Messages
7,015
Reaction score
5,854
Credits
45,842
have a look at 'Screensaver' settings ?...delay before starting the screensaver? .....lock the computer when put to sleep ?.....lock the computer after the screensaver starts?

I avoid any "lock" in screensaver settings....In power management....." I choose to 'turn off then inactive for"....Never

and..."Suspend when inactive for".....Never

In other words I use the 'Screensaver" settings to control how long before the screensaver starts....and under customize I show a message...."dont screw with Brian PC while he is not here !"

hth
 

osprey

Well-Known Member
Joined
Apr 15, 2022
Messages
1,120
Reaction score
1,090
Credits
10,669
Over the last 2 weeks I have lost the ability to log in after the system has been idle for a while. This has happened 3 times now.
When I move the mouse all I have is a black screen with the cursor no GUI or the ability to log in.

So I hold down the keys I have to in order to drop to a shell and log in.
Than run startx and the command-line complains that it has lost it's connection to the X Server.

I'm not able to get back to the GUI so I have to run sudo reboot:-

Any ideas what I could try?
Maybe if you don't have the latest version of the X server installed, it would be worth installing that. X does get version upgrades and I found niggles like the one you describe have disappeared on such upgrades.

You could have a look at the Xorg.0.log file to see if there is any useful info there, but there often isn't other than generalised comments like "the connection to the X server failed" or something like that.
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,753
Credits
19,661
have a look at 'Screensaver' settings ?...delay before starting the screensaver? .....lock the computer when put to sleep ?.....lock the computer after the screensaver starts?

I avoid any "lock" in screensaver settings....In power management....." I choose to 'turn off then inactive for"....Never

and..."Suspend when inactive for".....Never

In other words I use the 'Screensaver" settings to control how long before the screensaver starts....and under customize I show a message...."dont screw with Brian PC while he is not here !"

hth
Took screenshots of Power Management settings and the screensaver--

Screensaver.png


Power Mang.png

I'll walk away and come back and see it it complains again about the connection to the x server lost.
 

Condobloke

Well-Known Member
Joined
Apr 30, 2017
Messages
7,015
Reaction score
5,854
Credits
45,842
If you don't have any joy with those settings....the only change I would make would be in Power Options.....'turn off the screen when inactive for 30 mins .... never
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,753
Credits
19,661
Maybe if you don't have the latest version of the X server installed, it would be worth installing that. X does get version upgrades and I found niggles like the one you describe have disappeared on such upgrades.

You could have a look at the Xorg.0.log file to see if there is any useful info there, but there often isn't other than generalised comments like "the connection to the X server failed" or something like that.
Having trouble locating that file-

Xorg.png

Xorg Dir.png
 
Last edited:
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,753
Credits
19,661
If you don't have any joy with those settings....the only change I would make would be in Power Options.....'turn off the screen when inactive for 30 mins .... never
Roger that:-
I'll let you know what happens. Thanks!
 
Last edited:

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
9,186
Reaction score
8,138
Credits
39,448
Having trouble locating that file-

1st screenshot, 2nd column, 2nd from bottom - it is in /var/log/

If you want to save time wading through it, you can right-click in Nemo and check Properties and see the date time stamp. If nothing recent (mine is 14 February) nothing new written to it.

Wiz
 

osprey

Well-Known Member
Joined
Apr 15, 2022
Messages
1,120
Reaction score
1,090
Credits
10,669
Having trouble locating that fille
Try: /home/<user>/.local/share/xorg/Xorg.0.log
That should be the one of the current boot. Of the /var/log/Xorg.0.log file, check the date to see if it's current or not.
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,753
Credits
19,661
1st screenshot, 2nd column, 2nd from bottom - it is in /var/log/

If you want to save time wading through it, you can right-click in Nemo and check Properties and see the date time stamp. If nothing recent (mine is 14 February) nothing new written to it.

Wiz
Using Nemo opened a window saying it can not find the Xorg file.

Code:
Alex:  ls /var/log/Xorg.O.log
ls: cannot access '/var/log/Xorg.O.log': No such file or directory
Alex:  cat /var/log/Xorg.O.log
cat: /var/log/Xorg.O.log: No such file or directory
Alex:  nemo Xorg.O.log
Nemo-Share-Message: 20:18:40.629: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
Please ask your system administrator to enable user sharing.
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,753
Credits
19,661
Looks like It doesn't exist--
Code:
Alex:  cat /home/alex/.local/share/xorg/Xorg.O.log
cat: /home/alex/.local/share/xorg/Xorg.O.log: No such file or directory
 

osprey

Well-Known Member
Joined
Apr 15, 2022
Messages
1,120
Reaction score
1,090
Credits
10,669
There is a contradiction between the output shown in post #6 which displays an Xorg.0.log file, and post #10 where it apparently can't be listed with ls. Why is it so? :)
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
9,186
Reaction score
8,138
Credits
39,448
From another of Alex's threads

Taking a break for a little while. Hand is starting to give me pain.

Rest your hand first, this can wait. :mad:

Wiz
Try: /home/<user>/.local/share/xorg/Xorg.0.log

Applies under Ubuntu but does not apply under Linux Mint - one of the differences.

Latest is under /var/log - mine has just changed a few minutes ago.

I'll come back with more a little later.

Wiz
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,753
Credits
19,661
There is a contradiction between the output shown in post #6 which displays an Xorg.0.log file, and post #10 where it apparently can't be listed with ls. Why is it so? :)
It's Xorg.1.log that's why I couldn't find it-

Xorg Found.png
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
9,186
Reaction score
8,138
Credits
39,448
Damn ... now I'm curious. :p

Later.
 
OP
Alexzee

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,385
Reaction score
1,753
Credits
19,661
Came back 15 minutes later and moved the mouse. The system seems ok now and brought me back to where I was.
I'll see how things go over the next few days to ensure that this stays consistent.
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
6,403
Reaction score
4,859
Credits
47,054
When I move the mouse all I have is a black screen with the cursor no GUI or the ability to log in.

So I hold down the keys I have to in order to drop to a shell and log in.
Than run startx and the command-line complains that it has lost it's connection to the X Server.

I'm not able to get back to the GUI so I have to run sudo reboot:-
Do you mean that you switch to a tty why by running ctrl+alt+f? ?
How much ram does that system have?
 

Members online


Top