LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-21-2018, 11:43 AM   #1
TheRealRWJ
LQ Newbie
 
Registered: Sep 2018
Location: Europe
Distribution: Ubuntu server, Solus OS, Linux Mint
Posts: 5

Rep: Reputation: Disabled
ubuntu server keeps suspending after disconnecting external display


I got Ubuntu server 18.04.1 running on a laptop with a broken display. Obviously, I Used an external monitor for the install

Now when I disconnected the external monitor, the server suspends within seconds.

I tried to prevent that by masking sleep.target, hypernate.taget, suspend.target, and hybrid-sleep.target.

This worked. It does not suspend :-) But... :-( Now it is filling the logs with about messages 100 messages per second that it can not suspend causing one of the cores running 100%. Again only when the monitor is disconnected.

The laptop lid is still open but eventually, I like it to be closed while the server is still running.

Someone suggested the defective display could be sending some malfunctioned messages to the System, So I disconnected its connector from the mainboard.

What am I missing?
What do I search for?
 
Old 09-23-2018, 01:54 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
does this server have a GUI?

are you logged in as a user at all times?

instead of masking services, have you tried editing /etc/systemd/logind.conf (and reboot)?
 
Old 09-24-2018, 12:12 AM   #3
TheRealRWJ
LQ Newbie
 
Registered: Sep 2018
Location: Europe
Distribution: Ubuntu server, Solus OS, Linux Mint
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for taking your time for responding.

No it does not run a GUI. I do not mask the services anymore since it was not the resolution. No users are loggen locally.

For now iIt's running as pihole dns and webserver, if this all works I like to use it as a NextCloud instance.

What do you suggest to change in logind.conf?

Last edited by TheRealRWJ; 09-24-2018 at 12:17 AM.
 
Old 09-24-2018, 11:44 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
it has a man page:
Code:
man logind.conf
you could also show us the output of
Code:
systemd-inhibit
 
Old 09-25-2018, 11:21 AM   #5
TheRealRWJ
LQ Newbie
 
Registered: Sep 2018
Location: Europe
Distribution: Ubuntu server, Solus OS, Linux Mint
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks again ondoho for your respond.

Systems-inhibit showed: 0 inhibitors listed
Logind.conf has some Nice options. I was not aware of that.

I will give it a go and let you know the results.
 
Old 09-27-2018, 06:14 AM   #6
TheRealRWJ
LQ Newbie
 
Registered: Sep 2018
Location: Europe
Distribution: Ubuntu server, Solus OS, Linux Mint
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks again. It works .
Nice touch to not give the answer but instead 'forcing' me to read the man page.

It's working without the external monitor. Lid closed.

One thing though. Now I can not seem to restart it.
When the reboot command is given it halts with the cursor flashing in the left top corner.
I need to physically shut it down and restart it again.

Do you have a tip here as wel?
 
Old 09-29-2018, 01:33 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by TheRealRWJ View Post
Nice touch to not give the answer but instead 'forcing' me to read the man page.
i hope this isn't ironical.

Quote:
Now I can not seem to restart it.
When the reboot command is given it halts with the cursor flashing in the left top corner.
I need to physically shut it down and restart it again.
hm.
and this worked before making the changes?
i think you should now show us exactly what you did there.
and look at systemd-inhibit again. and at journalctl.
 
Old 10-02-2018, 11:42 AM   #8
TheRealRWJ
LQ Newbie
 
Registered: Sep 2018
Location: Europe
Distribution: Ubuntu server, Solus OS, Linux Mint
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi Ondoho,

Haha no, no irony intended at all. absolutely not. I personality like to refer to RTFM, but I was not able to find the manual this time. Had no clue were to start. ;-)

the server worked fine before trouble shooting this issue.
This means before masking the xxxx.target mentioned in my first post.
Since that did not work I unmasked them again.

I'll see if I can find anything in the logs.

Last edited by TheRealRWJ; 10-02-2018 at 11:43 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
External USB drive keeps on disconnecting randomly djgruby Linux - Laptop and Netbook 22 12-02-2022 07:50 AM
Recovering Data After Disconnecting External HD Without Unmounting dsschanze Linux - General 3 11-11-2012 10:54 AM
Connecting and disconnecting an external monitor javascriptninja Linux - Hardware 3 01-28-2012 12:19 PM
Remote X.org server as external display to the local server nate56 Linux - Desktop 6 11-11-2009 07:59 PM
external HDD disconnecting biggles1963 Linux - Newbie 8 07-10-2009 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration