0

I know there's a lot in this post so . . .

  • TLDR: elementary OS Juno on Purism Librem 13 V4 Symptoms:

    • Not waking from sleep if slept for more than 30 minutes,
    • sometimes hearing notifications chimes while supposedly slept,
    • CPU fan on in the morning after suspended all night computer is considerably warm but not HOT hot.
  • UPDATE TLDR: Testing has further isolated the problem to waking from suspend, the other ancillary problems are mitigated for now. The problem that persists is the laptop not waking from suspend, after it's been suspended for a long period (EX: over night).

Insights?

Thanks

###########################################################################

  • I've noticed a lot of recent posts on similar issues and I'm determined to get to the bottom of this. The goal of this post is to document this problem well and arrive at a working solution and ultimately lead to a PR and a permanent fix.

  • The rest of this post is to provide more in depth information of this issue so you know what's been tried and what the results were.

########################################################################### ###########################################################################

I asked this question on reddit and then moved it here ,all further discussion, answers and comments should be made here on elementary os stack exchange, the following link is for reference and context: https://www.reddit.com/r/elementaryos/comments/c3yhhi/elementary_os_juno_on_librem_13_v4_wont_wake_from/?utm_source=share&utm_medium=web2x

###########################################################################

INITIAL POST:

Running elementary OS Juno on Purism Librem 13 V4.

The problem: If the laptop sleeps for a little while(30 minutes plus), it often won't wake up, i.e. the system becomes unresponsive. It's usually fine if it's been asleep for a short time and probably unresponsive when the system has been sleeping for more than 30 minutes.

Additional symptoms:

  • I'll often hear notification chimes when the laptop lid is closed, which indicates to me that it might not be entering sleep properly.

  • I've been testing this by closing it overnight and often (not always) by the morning the CPU fan will be on, it sounds like it's spinning pretty fast but not quite full speed, the computer will seem warm but not quite hot.

My questions:

  1. Are there some log files I can look at that might help me get to the bottom of this?
  2. Are the correct drivers likely not being used by elementary? I know all the drivers that purism uses are open source but that doesn't necessarily mean that they're available in the elementary repositories.
  3. Can I add the PureOS repository source to /etc/apt/sources.list?
  4. Could this be due to a memory leak? How would I find out?

I'm at a loss for how to go about diagnosing this issue or gathering further information about it, I'm not afraid of my terminal though, any help would be appreciated.

Found this post, it could be a related issue since the problem description is similar to what I am experiencing. https://www.reddit.com/r/Purism/comments/9qyfm3/librem_13_not_waking_up_from_sleep_on_ubuntu_1810/

Please chime in if you're having the same issue I welcome all suggestions and lines of thought

###########################################################################

UPDATE:

I inspired some cpu heat with some help from a python script and a virtually infinite loop (script below) and as soon as I hear the fans kick on I invoke suspend. I've been intentionally invoking suspend with a hardware shortcut (fn + esc).

# WARNING THIS CODE IS DESIGNED TO OVERHEAT YOUR CPU BE CAREFUL
i = 0
while i <= 12_000_000: # that's 12 million, the fans hit their stride around 2 million
    print(i)
    i += 1

When I invoke suspend the fans do stop and the python function stops running, I validated that it stops running by waiting for 10 or 20 seconds before I wake it up and it stopped printing the value of i.

I tried suspending with the fans on, and the fans off. I repeated both trials several times and it brought an interesting issue to light although as of yet it seems intermittent I can't yet recreate it every time.

Sometimes it suspends just fine and sometimes, a few seconds after it suspends I get 2 notifications that wake the computer up again.

Notification:
    Message: "Disconnected - you are now offline"
    Source : "Wireless Network"
Notification:
    Message: "Disconnected - you are now offline"
    Source : "Network"

So, the computer suspends which disconnects the network which sends a notification from "Wireless Network" and "Network" that I've been disconnected which wakes the computer etc...

###########################################################################

UPDATE:

Found that "Network" notifications were waking the machine, because a notification is sent when the network is disconnected which happens when the computer enters sleep.

I disabled all notifications for "Network" and they are now not waking up my computer as it's trying to enter suspend, so it seems to be entering suspend without incident. I suspect that this will solve the problems of 1. hearing other notifications while my lid is closed and 2. having the CPU fans on while after it's been closed for a while.

Last night I closed the lid after sufficiently proving to myself that notifications would not wake the machine. This morning it was silent (no fans), good sign, however it was frozen, I could not wake it from suspend and I had to hold the power button to reboot.

Also the keyboard backlight was on, although I don't know if it had turned on when I opened the lid or if it was on before that, possibly indicating some "awake" CPU activity leading to a system hang due to a memory leak or race condition (will verify that tomorrow).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.