News for hackers. Stuff that matters.
Re:Why does Linux have so much trouble sleeping and waking? by nextos on Friday December 11, 2020 @11:48AM (#25387754)
Most machines with decent drivers also have flawless sleep. This includes NUCs, many Thinkpads, etc.

In general, Linux runs really well if you filter hardware a bit ahead of purchase. For example, an all Intel machine with Intel wireless card will rarely give any trouble.

Re:Why does Linux have so much trouble sleeping and waking? by jusssi on Friday December 11, 2020 @02:05PM (#25389378)
Ubuntu just couple a weeks ago pushed a kernel update to 20.04 LTS that 100% broke resuming from suspend on my 2020 Thinkpad (Intel graphics driver hang, no surprise there). I had to switch to edge kernel to get it back working.

Edit: yes, it's a model you can buy with Ubuntu pre-installed.

Re:Why does Linux have so much trouble sleeping and waking? by BHSPitMonkey on Friday December 11, 2020 @03:38PM (#25390662)
In the past 5 years, I've used ThinkPads for work (a T-series, X1 5G, and X1 6G); All of them mysteriously like to wake themselves out of sleep for no clear reason while closed and not connected to any external devices/power.

(If someone knows which log file will tell me the exact reason behind a mystery wakeup after it happens, please share!)

Re:Why does Linux have so much trouble sleeping and waking? by exikyut on Friday December 11, 2020 @03:54PM (#25390857)
Enabling verbose ACPI debug messages might do it:

https://www.kernel.org/doc/Documentation/acpi/debug.txt

I'm not exactly sure what options you'd need to enable/disable to just catch useful info.

Hopefully you don't need to enable everything, which may produce enough (realtime) logspam to make journald use a noticeable amount of CPU.

Re:Why does Linux have so much trouble sleeping and waking? by IronBacon on Friday December 11, 2020 @04:48PM (#25391589)
Maybe Intel Smart Connect?
Re:Why does Linux have so much trouble sleeping and waking? by wutbrodo on Friday December 11, 2020 @01:43PM (#25389104)
The child comment is dead for some reason so I can't reply, but he's right: it's important to note that filtering can be difficult, bexause even laptops that nominally support Linux (or ship with it!) can have terrible support. The Dell XPS developer editions (I bought two, one for work and one for home) are the worst Linux compatibility experience I've ever had. Amazing hardware, but shame on me for believing the line that Dell had turned over a new leaf and was competent now.
Re:Why does Linux have so much trouble sleeping and waking? by jessaustin on Friday December 11, 2020 @03:35PM (#25390622)
I bought one with Ubuntu installed, and have had a few small problems. I.e., power remaining is slightly optimistic: it shut down this morning with 3% showing. Also it seems to have more trouble connecting to paired bluetooth devices than my phone has. I like it well enough to live with these issues. Is there something awful coming soon?
Re:Why does Linux have so much trouble sleeping and waking? by danielscrubs on Monday December 14, 2020 @05:21AM (#25415378)
I’m not an electrical engineer but batteries don’t give perfect output constantly so your three percent might have been correct. It’s an hard problem and if you want it to be “it should always be able to go to zero” then they will just increase the margin of when to shut down and people will wonder where their battery life went.
Re:Why does Linux have so much trouble sleeping and waking? by wutbrodo on Friday December 11, 2020 @04:44PM (#25391508)
I mentioned this in my other comment but should have mentioned it here too: I got these in 2015/16, so I can't comment on what the line is like now. My main point was that shipping with Linux is no guarantee that they'll work well, as ludicrous as that sounds.
Re:Why does Linux have so much trouble sleeping and waking? by Kimitri on Friday December 11, 2020 @01:57PM (#25389287)
Yes. I just got myself a cheapo ThinkPad E15 to use as a backup computer if Apple somehow screws up my old MacBook Pro. Installed OpenSUSE Tumbleweed on the ThinkPad and everything seems to be working quite well (or at least predictably).

That being said, after each reboot I do need to put the machine to sleep using the power button once. After that the sleep/wake works perfectly just by closing/opening the lid. It's a minor inconvenience and I'm actually kind of loving the thing!

Re:Why does Linux have so much trouble sleeping and waking? by yyyk on Saturday December 12, 2020 @02:31PM (#25400820)
One of my Intel NUC models needs a BIOS update to not soft-brick* itself after sleeping from Linux. Even today restarting from sleep needs a particular 'dance' which if not followed will need a restart to use the computer again. Everything else works though.

* bricks, but can be restarted if one opens the case and resets the BIOS.

Re:Why does Linux have so much trouble sleeping and waking? by BlueTemplar on Friday December 11, 2020 @02:43PM (#25389936)
I have a Surface Pro 3 with Ubuntu and not only sleep is not working, when turning the screen on again the WiFi stops working...