←back to thread

97 points Venn1 | 2 comments | | HN request time: 0.468s | source
Show context
IshKebab ◴[] No.46009890[source]
Does anyone know why Linux laptop battery life is so bad? Is it a case of devices needing to be turned off that aren't? Poor CPU scheduling?
replies(9): >>46009949 #>>46010025 #>>46010136 #>>46010308 #>>46010658 #>>46010883 #>>46011383 #>>46011652 #>>46011757 #
1. seltzered_ ◴[] No.46011383[source]
In addition to the other comments, its worth noting macOS started adding developer documentation around energy efficiency, quality of service prioritization, etc. (along with support within its OS) around 2015-2016 when the first fanless usb-c macbook came out: https://developer.apple.com/library/archive/documentation/Pe...

Think I'm arguing its both things where the OS itself can optimize things for battery life along with instilling awareness and API support for it so developers can consider it too.

replies(1): >>46011803 #
2. cosmic_cheese ◴[] No.46011803[source]
On top of this, they started encouraging adoption of multithreading and polished up the APIs to make doing so easier even in the early days of OS X, since they were selling PPC G4/G5 towers with dual and eventually quad CPUs.

This meant that by the time they started pushing devs to pay attention to QoS and such, good Mac apps had already been thoroughly multithreaded for years, making it relatively easy to toss things onto lower priority queues.