News for hackers. Stuff that matters.
Re:Lenovo ThinkPad T460 – A Good Linux Laptop for Development by eltoozero on Monday January 02, 2017 @03:57AM (#13299944)
Mac is my daily driver for this very reason, I'm a consultant and I need to frequently grab and go.

I've had Linux on mobile for ages and have yet to have reliable sleep/wake behavior on a dozen machines over the years.

Sleep on Linux works reliably if you run it inside a Mac VM though, FWIW! ;)

Re:Lenovo ThinkPad T460 – A Good Linux Laptop for Development by karussell on Monday January 02, 2017 @04:13AM (#13300010)
Important difference: sleep usually works and is fast. What often does not work is hibernation (recover from disc)
Re:Lenovo ThinkPad T460 – A Good Linux Laptop for Development by cel1ne on Monday January 02, 2017 @04:50AM (#13300175)
...which is crucial since you don't want to lose your data when closing the lid. (Non-tech-term is on purpose here, since users shouldn't need to know about the difference. Also I believe OSX uses a hybrid approach).
Re:Lenovo ThinkPad T460 – A Good Linux Laptop for Development by karussell on Monday January 02, 2017 @05:16AM (#13300292)
You do not loose your data with both methods as power is used for suspend to RAM.

BTW: OSX has not a "pure" suspend to disc anymore and the default method is suspend to RAM when closing the lid

Re:Lenovo ThinkPad T460 – A Good Linux Laptop for Development by cel1ne on Monday January 02, 2017 @06:19AM (#13300513)
Parent poster stated "What often does not work is hibernation (recover from disc)".

Which means the user loses data.

Re:Lenovo ThinkPad T460 – A Good Linux Laptop for Development by karussell on Monday January 02, 2017 @09:06AM (#13301185)
Parent poster was me and you do not loose data. Instead it just does not go into hibernation in my case :)
Re:Lenovo ThinkPad T460 – A Good Linux Laptop for Development by pmontra on Monday January 02, 2017 @04:48AM (#13300168)
According to a comment in the post it fails when the swap partition is encrypted. However why enable swap with 16 GB of RAM? I've been running without swap for almost 3 years and never had any trouble. If I start approaching the limit I'll buy another 16 GB.
Re:Lenovo ThinkPad T460 – A Good Linux Laptop for Development by karussell on Monday January 02, 2017 @05:14AM (#13300281)
The comment also talks about suspend to disc.
Re:Lenovo ThinkPad T460 – A Good Linux Laptop for Development by pmontra on Monday January 02, 2017 @12:22PM (#13302595)
Exactly, the comment in your blog is "suspension to disk does not work if your swap partition is encrypted. This is due to how Ubuntu encrypts your home (ecryptfs) but not due to Linux itself."

I was reporting that.