Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello :-) First laptop, and concerned at idle cpu use, and how relates to bad battery life. Wifi/vpn active, AC plugged in or not, notes and clock widget, and one small text file ... constant spikes of high use, 10-25%+ of cpu, and up to 60%+ at times ... 12% often seen during changes. On main desktop (arch/lts kernel/kde), idle cpu use very low indeed, 0-2%.
Arch (beginner), latest kernel (having to run so can boot; prefer lts), kde. Asus tuf fx505dy, ryzen 5/vega 8 (and unuseable RX560!), bios 304.
EDIT: looking for ways to increase performance, saw about turning off mitigations, so, incase helpful to anyone new to this, I did
sudo nano /etc/default/grub
and
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mitigations=off"
then regenerated grub.cfg ...
grub-mkconfig -o /boot/grub/grub.cfg
CPU now showing 0% on idle. Battery (full) shot up to showing 10 hrs battery left, then dropped back to the usual 2, grrr. But then moves to 3.33 hrs, which is the best so far, then back to 2.15/2 etc.
sounds like you need to explore and find out what is using so much CPU. my last heavy CPU usage was cause by Firefox visiting a badly programmed web site. it managed to reach 366% (of 4 cores). the "top" command in a terminal shell might be useful.
Sorry, I don't seem to be getting notifications, but just saw your response, and, wow, 366% must be some kind of record! :-) Thanks for advice too. Will keep an eye on things.
I am very interested by this thread. I face a similar problem, which is, an indexing process for a search process that I really love (the 'Recoll' utility) seems to take all CPU when the machine is idle, even when on batteries.
What I would like is to detect the switch to battery power, then issue some kill -STOP command to Recoll (automatically identifying its process #) and when back on the mains switch back with a kill -CONT...
Needless to say I don't know how to deal with this, nor even if this is the right way to do...
Have a look at the Arch linux wiki page on power management. Suspend/resume might become interesting.
Just kill it and restart in your scripts. Untested - I always disable any indexers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.