https://wiki.archlinux.org/index.php/Power_management
It can be a pain; enabeling sleep for every USB devices will likely result in the keyboard or touchpad becoming broken, increase the latency it takes to respond, etc. But once it's configured it just works very well. I'm getting 10+ hours on a Dell XPS 13" under light web browsing + youtube.
Any Apple laptop will likely need some unique customizations for everything to work and for maximum battery life. It could be argued that instead its popularity drives up the number of discovered errata. Case in point, the Archlinux page contains not only an extensive "Mac" page but it also has dozens of pages for specific Apple computers documenting pretty much everything you would need to know to get every feature working and get comparable battery life (could be a little better or worse).
https://wiki.archlinux.org/index.php/MacBookPro#Power_manage...
(The Arch wiki might be my single most useful source of technical info when tweaking things on Debian lately. I haven't tweaked laptop power management lately, but I used to do it aggressively, including building my own kernel, making sure CPU power management was working, tracking down every process that used CPU cycles or spun up the disk for no reason, turning off devices I didn't need, dimming CCFL backlight, etc.)
That said, it’s a great OS. I just wish it was less buggy. Not planning to switch in the near future
Though I'm still a huge proponent for using GNU/Linux where it shines the best: i.e. server environments.
Probably far more likely in my case would be to follow the articles suggestion and just switch to windows... perhaps even using WSL.
- macbook air with OS X for holidays or house related
- macbook pro with OS X for work
- desktop with Ubuntu for long programming sessions
- home-office headless server with Ubuntu for NAS/webapp hosting/home-automation/backups
I have setup my systems to synchronise all my files through my NAS using unison. So all my project files are accessible locally on all my personal computers. I've been using this setup for at least 6 years now.