ubuntu server keeps suspending after disconnecting external display
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.