How to setup the development environment for auto-cpufreq? #777
Replies: 4 comments 1 reply
-
That was my whole idea and why I pushed for development of Snap package, as in essence it is running as part of a container. However, due to its strict confinement, it's making some things hard. But, it's interesting that you mentioned this topic, but just this weekend I was doing something this topic and I just published a blog post that could help you: Effortless Linux backups: Power of OpenZFS Snapshots on Ubuntu 24.04 |
Beta Was this translation helpful? Give feedback.
-
@AdnanHodzic That is a great simple article, but I use ext4 file system so I don't have the feature to roll-back the entire file system. Have you tried developing it in a docker container and if there are any side effects of running auto-cpufreq inside a container( side effect being unexpected behavior compared to when run in a live environment). |
Beta Was this translation helpful? Give feedback.
-
Hi @AdnanHodzic can you give a run down on how you have implemented the battery charging threshold for the thinkpad and ideapad i wish to implement them for my laptop which is # dmidecode -t system# dmidecode 3.6
Getting SMBIOS data from sysfs.
SMBIOS 3.2.0 present.
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Zephyrus G14 GA401IHR_GA401IHR
Version: 1.0
Serial Number: MANRKD017667415
UUID: 54bc6fdf-3d4a-3247-999a-826e64f26875
Wake-up Type: Unknown
SKU Number:
Family: ROG Zephyrus G14
Handle 0x0007, DMI type 32, 20 bytes
System Boot Information
Status: No errors detected
Handle 0x002A, DMI type 12, 5 bytes
System Configuration Options
Option 1: SMI:00B26C
Option 2: DSN:
Option 3: DSN:
Option 4: DSN: my laptop model supports the battery charging threshold by just writing the value to |
Beta Was this translation helpful? Give feedback.
-
@HarshalRathore I think you're missing the point of auto-cpufreq, if you isolate it in a container all the changes you make won't benefit your system. As it needs to communicate with the "host" system governors. Same thing is if you ran it in a VM, it wouldn't work because necessary drivers wouldn't be available.
You need to look into the source code yourself, but I'll help you out in this process. This feature was introduced by @PurpleWazard as part of 2.2.0 release and here you can see the PR #637 that made it possible and all the files that were involved in this process. Hence, if you look through source code, you'll get some hints what might need to be changed. I'm really happy you want to look into this as @PurpleWazard doesn't have time anymore to maintain it.. So please please give it a try to extend functionality to your laptop and contribute to the project and you will be credited for your work as part of future release. |
Beta Was this translation helpful? Give feedback.
-
How do i setup the development environment for testing and debugging feature and issues to contribute to autocpu-freq? There seems to be no requirement.py for setting up virtualenv and testing autocpu freq inside the host machine seems non-intuitive to me so should i run this in a container like docker?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions