-
-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed auto-cpufreq error installation #709
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,8 @@ function tool_install { | |
|
||
if [ -f /etc/debian_version ]; then | ||
detected_distro "Debian based" | ||
apt install python3-dev python3-pip python3-venv python3-setuptools dmidecode libgirepository1.0-dev libcairo2-dev libgtk-3-dev gcc -y | ||
# apt install python3-dev python3-pip python3-venv python3-setuptools dmidecode libgirepository1.0-dev libcairo2-dev libgtk-3-dev gcc -y | ||
apt install python3.10-dev python3-pip python3-venv python3-setuptools dmidecode libgirepository1.0-dev libcairo2-dev libgtk-3-dev gcc -y | ||
|
||
elif [ -f /etc/redhat-release ]; then | ||
detected_distro "RedHat based" | ||
|
@@ -125,12 +126,21 @@ function tool_install { | |
|
||
header "Installing necessary Python packages" | ||
|
||
<<<<<<< HEAD | ||
venv_dir=/opt/auto-cpufreq/venv | ||
mkdir -p "${venv_dir}" | ||
python3.10 -m venv "${venv_dir}" | ||
|
||
source "${venv_dir}/bin/activate" | ||
python3.10 -m pip install --upgrade pip wheel | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why would you want to limit it to 3.10 in particular, especially since latest version is 3.12 when otherwise it'll just use latest version? |
||
======= | ||
venv_dir=$VENV_PATH/venv | ||
mkdir -p "$venv_dir" | ||
python3 -m venv "$venv_dir" | ||
|
||
source "$venv_dir/bin/activate" | ||
python3 -m pip install --upgrade pip wheel | ||
>>>>>>> 420648f5f12f6e5a486e71a4284b898a29f32459 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As I said above don't think these lines should be here ... |
||
|
||
header "Installing auto-cpufreq tool" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# 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 | ||
|
||
# EPP: see available preferences by running: cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences | ||
energy_performance_preference = performance | ||
|
||
# minimum cpu frequency (in kHz) | ||
# example: for 800 MHz = 800000 kHz --> scaling_min_freq = 800000 | ||
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html | ||
# to use this feature, uncomment the following line and set the value accordingly | ||
# scaling_min_freq = 800000 | ||
|
||
# maximum cpu frequency (in kHz) | ||
# example: for 1GHz = 1000 MHz = 1000000 kHz -> scaling_max_freq = 1000000 | ||
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html | ||
# to use this feature, uncomment the following line and set the value accordingly | ||
# scaling_max_freq = 1000000 | ||
|
||
# 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 | ||
|
||
# EPP: see available preferences by running: cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences | ||
energy_performance_preference = power | ||
|
||
# minimum cpu frequency (in kHz) | ||
# example: for 800 MHz = 800000 kHz --> scaling_min_freq = 800000 | ||
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html | ||
# to use this feature, uncomment the following line and set the value accordingly | ||
# scaling_min_freq = 800000 | ||
|
||
# maximum cpu frequency (in kHz) | ||
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html | ||
# example: for 1GHz = 1000 MHz = 1000000 kHz -> scaling_max_freq = 1000000 | ||
# to use this feature, uncomment the following line and set the value accordingly | ||
# scaling_max_freq = 1000000 | ||
|
||
# turbo boost setting. possible values: always, auto, never | ||
turbo = auto | ||
|
||
# experimental | ||
|
||
# Add battery charging threshold (currently only available to Lenovo) | ||
# checkout README.md for more info | ||
|
||
# enable thresholds true or false | ||
#enable_thresholds = true | ||
# | ||
# start threshold (0 is off ) can be 0-99 | ||
#start_threshold = 0 | ||
# | ||
# stop threshold (100 is off) can be 1-100 | ||
#stop_threshold = 100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure you want to merge this like this, it seems like you were in process of resolving a git commit?