Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Saving Power on a Linux Laptop (auto-cpufreq)
Youtube How To ^ | May 31, 2021 | Chris Titus Tech

Posted on 10/17/2021 8:51:22 AM PDT by ProgressingAmerica

Saving Power on a Linux Laptop using auto-cpufreq


TOPICS: Computers/Internet
KEYWORDS: laptop; linux
Navigation: use the links below to view more comments.
first 1-2021-32 next last

1 posted on 10/17/2021 8:51:22 AM PDT by ProgressingAmerica
[ Post Reply | Private Reply | View Replies]

To: Blue Highway; ProfessorGoldiloxx; Linux Rules; LesbianThespianGymnasticMidget; Openurmind; ...

Any of you Linux Mint users have auto-spufreq installed and could lend some pointers on how to work snapd on Mint? I’m not currently using Mint.

Ping to a few others as well, might be some useful information.


2 posted on 10/17/2021 8:56:00 AM PDT by ProgressingAmerica (Public meetings are superior to newspapers)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Blue Highway

This seems straight forward to me, but I can’t test it currently.

https://snapcraft.io/install/auto-cpufreq/mint

I don’t think you will even need to do anything on the command line, you should be able to:

“To install snap from the Software Manager application, search for snapd and click Install.”

After that, auto-cpufreq should appear in the software manager. But let’s wait and see what others have to say about it.


3 posted on 10/17/2021 8:58:58 AM PDT by ProgressingAmerica (Public meetings are superior to newspapers)
[ Post Reply | Private Reply | To 2 | View Replies]

To: ProgressingAmerica

I already have snap installed on my Kubuntu laptop so all I had to do was; sudo snap install auto-cpufreq

More info on the github repo page; https://github.com/AdnanHodzic/auto-cpufreq


4 posted on 10/17/2021 9:13:47 AM PDT by Pollard (PureBlood)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ProgressingAmerica; rdb3; JosephW; martin_fierro; Still Thinking; zeugma; Vinnie; ironman; Egon; ...

5 posted on 10/17/2021 9:45:30 AM PDT by ShadowAce (Linux - The Ultimate Windows Service Pack )
[ Post Reply | Private Reply | To 1 | View Replies]

To: ProgressingAmerica

Close open stuff
Open terminal

sudo rm /etc/apt/preferences.d/nosnap.pref
sudo apt update
sudo apt install snapd

sudo reboot

sudo snap install auto-cpufreq

Done.


6 posted on 10/17/2021 9:58:52 AM PDT by LesbianThespianGymnasticMidget
[ Post Reply | Private Reply | To 2 | View Replies]

To: ProgressingAmerica

daemon needs this command to be automatic at every boot.

sudo auto-cpufreq - -install


7 posted on 10/17/2021 10:18:35 AM PDT by LesbianThespianGymnasticMidget
[ Post Reply | Private Reply | To 2 | View Replies]

To: ProgressingAmerica

I don’t have either installed. For me I don’t see a need for them.


8 posted on 10/17/2021 10:47:04 AM PDT by Linux Rules (Linux - Resistance Is Futile)
[ Post Reply | Private Reply | To 2 | View Replies]

To: ProgressingAmerica
Well, I'm running a version of Ubuntu, and I can install auto-cpufreq, but it does not run even as root.

I do have tuned installed and running.

9 posted on 10/17/2021 10:58:09 AM PDT by ShadowAce (Linux - The Ultimate Windows Service Pack )
[ Post Reply | Private Reply | To 1 | View Replies]

To: Linux Rules

Yeah - true confession - my laptop is plugged in 99% of the time. My laptop + dock = My desktop.


10 posted on 10/17/2021 10:58:42 AM PDT by 2 Kool 2 Be 4-Gotten
[ Post Reply | Private Reply | To 8 | View Replies]

To: ProgressingAmerica

bookmark


11 posted on 10/17/2021 12:51:28 PM PDT by dadfly
[ Post Reply | Private Reply | To 1 | View Replies]

To: ProgressingAmerica

So this program is a hands off type of program you cant adjust anything manually? I watched the video and it seems it just does things for you. What if I want it to run as power save mode even when it’s charging, so it will charge faster? How can I manually set the cpu clock to stay under 900mHz?


12 posted on 10/17/2021 3:01:41 PM PDT by Blue Highway
[ Post Reply | Private Reply | To 1 | View Replies]

To: LesbianThespianGymnasticMidget

OMG, that’s awesome. I didn’t know you could completely block snapd from getting installed just by having this file.

/etc/apt/preferences.d/nosnap.pref

Learn something new every day.


13 posted on 10/17/2021 4:08:41 PM PDT by zeugma (Stop deluding yourself that America is still a free country.)
[ Post Reply | Private Reply | To 6 | View Replies]

To: Blue Highway

I do think its more automatic than not. You can set power profiles that have their own range but not a specific mhz number. It looks like others had a simple install of it, I’m currently on a desktop.

The doc page says you can set the power profile in the Configuring auto-cpufreq section:

https://github.com/AdnanHodzic/auto-cpufreq


Example config contents

# settings for when connected to a power source
[charger]
# see available governors by running: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
# preferred governor.
governor = performance

# turbo boost setting. possible values: always, auto, never
turbo = auto

# settings for when using battery power
[battery]
# see available governors by running: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
# preferred governor
governor = powersave


14 posted on 10/17/2021 5:28:20 PM PDT by ProgressingAmerica (Public meetings are superior to newspapers)
[ Post Reply | Private Reply | To 12 | View Replies]

To: ProgressingAmerica

Mint 20.x and above blocks snapd by default. Apparently there is a serious security and back door issue they refuse to send out boxed with newer Mint versions. And I do not blame them, I would not want it if that is the case. But you can edit some lines that will allow snapd and packages to install.

What I need my friend is a good thermald configuration set up. We are in the desert and we get hot here. And I could boost my cooling fan in 18.3 by re-configuring thermald. But in this 20.X they screwed up the ability to reconfigure it. It killed me this last summer because I didn’t want to goof something thermald is using as a default reference.

As for power settings, they all seem to work fine for me on my laptop. Until the battery started to get weak. It will not tell you, but it just starts to run out faster than it should. Mine is way bad, and it will tell me I have an hour and a half left. 15 minutes later it is dead and gone... lol

It is not accurate, and look towards the battery before you go after the settings.


15 posted on 10/17/2021 5:40:59 PM PDT by Openurmind (The ultimate test of a moral society is the kind of world it leaves to its children. ~ D. Bonhoeffer)
[ Post Reply | Private Reply | To 2 | View Replies]

To: ProgressingAmerica

Not sure how to define configuration settings. I’m a Linux novice. Do I just copy and paste the whole configuration contents you posted and run it in terminal for it to give me the choices to pick from?


16 posted on 10/17/2021 5:57:52 PM PDT by Blue Highway
[ Post Reply | Private Reply | To 14 | View Replies]

To: ProgressingAmerica
For example I'd want to set "when connected to power source" as powersave or whatever is the most energy efficient.

Turbo boost I want set to OFF

When on battery power I want the most efficient setting as well "powersave"?

How do I make these changes with the configuration using terminal?

17 posted on 10/17/2021 6:02:53 PM PDT by Blue Highway
[ Post Reply | Private Reply | To 14 | View Replies]

To: Blue Highway

It’s a text file.

The file should live at /etc/auto-cpufreq.conf

All you have to do is open it and change the value with a regular text editor. When the program is running it reads the values out of the file when it needs them. You may need to log out and log back in(or reboot) for the program to read an updated version of the file.

I just saw your screenshot in the other thread, it looks like you are mostly there. When you plug in and unplug your laptop as the YouTube video does, do you see the profiles change the same way? In other words, can you duplicate what is happening in the video?

You will probably want your configuration file to look like this: (and you can always change it in the future back to performance settings if needed)


# settings for when connected to a power source
[charger]
# see available governors by running: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
# preferred governor.
governor = powersave

# turbo boost setting. possible values: always, auto, never
turbo = never

# settings for when using battery power
[battery]
# see available governors by running: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
# preferred governor
governor = powersave


18 posted on 10/17/2021 6:55:37 PM PDT by ProgressingAmerica (Public meetings are superior to newspapers)
[ Post Reply | Private Reply | To 16 | View Replies]

To: Blue Highway

Two things I didn’t more specifically mention:

The file may have permissions needed to edit it. You may have to issue a sudo command when opening the file. Some text editors are different. Sudo will bring in administrator permissions.

The command in terminal will look something like sudo gedit /etc/auto-cpufreq.conf

If the text editor can increase permissions (or no permissions are required) then nothing about this task requires the terminal. Just open the file make your changes save it and you’re done.


19 posted on 10/17/2021 7:03:49 PM PDT by ProgressingAmerica (Public meetings are superior to newspapers)
[ Post Reply | Private Reply | To 17 | View Replies]

To: ProgressingAmerica
When I type in the command exactly as you posted, it says "command not found"

I'm not sure how to open the text file.

I did figure out how to install TLPUI and that seems like what I was expecting this to be with user configurable parameters all within an easy to use GUI. Still determined to figure out the auto-cpufreq configure file though with your help. Thanks.

20 posted on 10/17/2021 7:42:29 PM PDT by Blue Highway
[ Post Reply | Private Reply | To 19 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-32 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson