Skip to content
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

Add Lenovo L490 to the supported devices #209

Merged
merged 1 commit into from
Aug 10, 2020
Merged

Add Lenovo L490 to the supported devices #209

merged 1 commit into from
Aug 10, 2020

Conversation

xtermi2
Copy link
Contributor

@xtermi2 xtermi2 commented Aug 2, 2020

I'm using this fix successfully since ~6 month on my Lenovo L490 with these stable settings:

[GENERAL]
# Enable or disable the script execution
Enabled: True
# SYSFS path for checking if the system is running on AC power
Sysfs_Power_Path: /sys/class/power_supply/AC*/online

## Settings to apply while connected to Battery power
[BATTERY]
# Update the registers every this many seconds
Update_Rate_s: 30
# Max package power for time window #1
PL1_Tdp_W: 29
# Time window #1 duration
PL1_Duration_s: 28
# Max package power for time window #2
PL2_Tdp_W: 44
# Time window #2 duration
PL2_Duration_S: 0.002
# Max allowed temperature before throttling
Trip_Temp_C: 85
# Set cTDP to normal=0, down=1 or up=2 (EXPERIMENTAL)
cTDP: 0
# Disable BDPROCHOT (EXPERIMENTAL)
Disable_BDPROCHOT: False

## Settings to apply while connected to AC power
[AC]
# Update the registers every this many seconds
Update_Rate_s: 5
# Max package power for time window #1
PL1_Tdp_W: 44
# Time window #1 duration
PL1_Duration_s: 28
# Max package power for time window #2
PL2_Tdp_W: 44
# Time window #2 duration
PL2_Duration_S: 0.002
# Max allowed temperature before throttling
Trip_Temp_C: 95
# Set HWP energy performance hints to 'performance' on high load (EXPERIMENTAL)
HWP_Mode: True
# Set cTDP to normal=0, down=1 or up=2 (EXPERIMENTAL)
cTDP: 2
# Disable BDPROCHOT (EXPERIMENTAL)
Disable_BDPROCHOT: False

# All voltage values are expressed in mV and *MUST* be negative (i.e. undervolt)!
[UNDERVOLT.BATTERY]
# CPU core voltage offset (mV)
CORE: -100
# Integrated GPU voltage offset (mV)
GPU: -70
# CPU cache voltage offset (mV)
CACHE: -100
# System Agent voltage offset (mV)
UNCORE: -70
# Analog I/O voltage offset (mV)
ANALOGIO: 0

# All voltage values are expressed in mV and *MUST* be negative (i.e. undervolt)!
[UNDERVOLT.AC]
# CPU core voltage offset (mV)
CORE: -110
# Integrated GPU voltage offset (mV)
GPU: -80
# CPU cache voltage offset (mV)
CACHE: -110
# System Agent voltage offset (mV)
UNCORE: -80
# Analog I/O voltage offset (mV)
ANALOGIO: 0

# [ICCMAX.AC]
# # CPU core max current (A)
# CORE: 
# # Integrated GPU max current (A)
# GPU: 
# # CPU cache max current (A)
# CACHE: 

# [ICCMAX.BATTERY]
# # CPU core max current (A)
# CORE: 
# # Integrated GPU max current (A)
# GPU: 
# # CPU cache max current (A)
# CACHE: 

Before I applied this fix, under heavy load my CPU frequency was throttled down to under 1 GHz and the fan was never activated. Now I get 3.3GHz under full cpu load - 3 times faster than the default settings (under benchmarking conditions). Under realistic conditions in my daily work, like compiling java projects, my Laptop is more then 2 times faster than before - much more fun to work like before - so thanks a lot for this fix.

This should be proof enough to add the Lenovo L490 to the supported devices.

@erpalma erpalma merged commit 5627445 into erpalma:master Aug 10, 2020
@Yavieh
Copy link

Yavieh commented Jun 13, 2021

Hey, i use Fedora 34 on the L490 but cant get it so work. The Cpu only hits 70° and then it starts to throttle to 1 GHz as you mentioned. What can i do to get it running? Maybe im doing something wrong here?

@xtermi2
Copy link
Contributor Author

xtermi2 commented Jun 13, 2021

I can't say anything about Fedora. I use Ubuntu and there it's just working like described in the readme/documentation.

@Yavieh
Copy link

Yavieh commented Jun 13, 2021

So you just installed it and updated the conf via text editor?

@xtermi2
Copy link
Contributor Author

xtermi2 commented Jun 13, 2021

Yes, maybe you have to restart the the service sudo systemctl restart lenovo_fix.service, don't know if the config Autoreload is enabled by default.
Have you tried the monitoring https://github.com/erpalma/throttled#monitoring ? This should reflect your settings/configuration.
I used the s-tui tool to create load https://github.com/erpalma/throttled#is-this-tool-really-doing-something-on-my-pc

@Yavieh
Copy link

Yavieh commented Jun 13, 2021

Getting this
[I] Detected CPU architecture: Intel Comet Lake-U
[I] Trying to unlock MSR allow_writes.
[I] Loading config file.
[E] Unable to write to MSR MSR_OC_MAILBOX (150). Try to disable Secure Boot and check if your kernel does not restrict access to MSR.

trying to disable secure boot now

@Yavieh
Copy link

Yavieh commented Jun 13, 2021

Okay that was the Problem. Now its working and i get more that 3 ghz :) Thanks for helping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants