Ask HN: Better efficiency in laptops running Linux?
I found that running Windows 10 as it is, that's really good on power management.
I was running Ubuntu and Lubuntu on it for a bit and found the battery performance to suck. I'm primarily interested in using Linux to drop the idle RAM usage, as it sits at like 900+MB without anything open (except background tasks).
I'm a web developer so normally I have a local LAMP server setup with i3-wm.
I was looking through some forums and one thing mentioned was to modify the kernel regarding power management.
I'm just wondering if this is a lost cause eg. no point in trying.
I just think, for example the Macbook Air supposedly has really good software that manages the task management and what not and this helps with battery life and resource management. I was wondering if I could do something similar with Linux regarding battery life.
Going into standby when not in use, closing the lid, etc... ultimately though yeah I want to extend that 2GB.
I know... this computer is garbage, I bought it for $99 on eBay. Even with 8GB running VM on my desktop, 8GB is almost not enough with 2GB set for the VM. I remember the days when I had 16GB ha.
20 comments
[ 3.1 ms ] story [ 75.5 ms ] thread- make sure TLP is installed
- disable Bluetooth if you don't use it
- disable services you don't care about (file indexing for example)
- use the right cpu scaling governor (you're likely interested in powersave)
- enable power management on all devices which support it without issues (tlp-stat will give you some hints)
- check powertop for some ideas about what exactly is using the most power
- update your system to the latest version (kernel gets power usage fixes all the time)
- there's often even more things to do - arch wiki (https://wiki.archlinux.org/index.php/Power_management) and ubuntu one (https://wiki.ubuntu.com/Kernel/PowerManagement/PowerSavingTw...) may give you some ideas, but keep in mind they may be out of date a bit
Also file indexing, is that like a constant polling event to check for modifications?
Thanks for the check list
File indexing services are things like locate, baloo, zeitgeist, etc. that try to save information about created files, so you can find them faster later on. On one hand side they give you faster results, but on the other they keep monitoring disk writes and impact your battery life.
I see Arch mentioned a lot. I used to be Linux Mint > Debian > tried Slackware > Ubuntu.... Slackware kind of sucked just because it was harder to setup/a lot of things didn't work like video playback. Not blaming it on them. Ubuntu I primarily switched to because they had drivers that Debian would sometimes not have like WiFi. Seems to make sense if more people use Ubuntu.
Anyway thanks.
1: https://github.com/fenrus75/powertop
(my memory is it's in the Ubuntu repos so you should be able to apt install it)
it has an "I'm feeling lucky" flag,
> powertop --auto-tune
which theoretically should make good choices for you.
At least on Ubuntu if you have a Nvidia GPU there is a handy widget you can install so simply toggle the GPU but it requires a logout/login each and every time.
Just not the same experience as Windows but in terms of battery life it does the job. I get about 3x battery life when in Intel Graphics vs my Nvidia.
None of which directly relates to battery life. That's mostly a measure of Microsoft being the target platform of system designers and Linux not being the target. Linux power management will probably never be as good.
cat /proc/meminfo
MemTotal: 32884616 kB
MemFree: 344496 kB
MemAvailable: 20994872 kB
Buffers: 1796324 kB
Cached: 18710768 kB
SwapCached: 0 kB
Active: 12009748 kB
Inactive: 18639200 kB
While trying out the preinstalled win10 I wasn't even able to playback 720p YouTube videos without lags.
Battery consumption is good though, hard to believe this thing pulls around 3-4 watts and it has a ~5500WH battery but I think my battery only charges to ~5200WH