You are not logged in.

#1 2021-12-13 15:38:28

sergik82
Member
Registered: 2021-02-18
Posts: 24

Can't set appropriate frequency for my i7 5700hq

I'm trying to set appropriate frequency for the processor to avoid overheating...
Processor rate is 800... 3500MHz
I've managed to set 2600MHz and lower using cpupower... But I'd like to get 3100MHz...
I can set turbo boost off as well, but I don't need it...
Please any suggestions

Offline

#2 2021-12-13 17:57:05

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,462

Re: Can't set appropriate frequency for my i7 5700hq

The ArchWiki describes a manual method here and also shows how to check the valid frequency range. https://wiki.archlinux.org/title/CPU_fr … _permanent may also be useful.

Offline

#3 2021-12-14 18:52:01

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

Head_on_a_Stick wrote:

The ArchWiki describes a manual method here and also shows how to check the valid frequency range. https://wiki.archlinux.org/title/CPU_fr … _permanent may also be useful.

fallowing these articles I counted with a problem
if I put this command into terminal
cpupower frequency-set  -u 3.10GHz I just get 3.5GHz instead I wanted
but if it'll be cpupower frequency-set  -u 2.6GHz everything work well

there is an output of cpupower frequency-info command

analyzing CPU 0:
  driver: intel_cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 20.0 us
  hardware limits: 800 MHz - 3.50 GHz
  available cpufreq governors: conservative ondemand userspace powersave performance schedutil
  current policy: frequency should be within 800 MHz and 3.50 GHz.
                  The governor "conservative" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 804 MHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes

what should I do to get the result that I need???

Offline

#4 2021-12-14 19:17:54

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,462

Re: Can't set appropriate frequency for my i7 5700hq

I know nothing about cpupower and I can't be bothered finding out about it just for you.

What does this say

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies

And please read the links I supplied.

Offline

#5 2021-12-14 19:22:51

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

Head_on_a_Stick wrote:

I know nothing about cpupower and I can't be bothered finding out about it just for you.

What does this say

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies

And please read the links I supplied.

did you mean cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq ???

it's
3500000
3500000
3500000
3500000
3500000
3500000
3500000
3500000

Last edited by sergik82 (2021-12-14 19:28:46)

Offline

#6 2021-12-14 19:29:19

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

sergik82 wrote:
Head_on_a_Stick wrote:

I know nothing about cpupower and I can't be bothered finding out about it just for you.

What does this say

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies

And please read the links I supplied.

did you mean cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq ???

it's
3500000
3500000
3500000
3500000
3500000
3500000
3500000
3500000

because    ls /sys/devices/system/cpu/cpu0/cpufreq/
affected_cpus     cpuinfo_transition_latency   scaling_cur_freq  scaling_max_freq
cpuinfo_max_freq  related_cpus                 scaling_driver    scaling_min_freq
cpuinfo_min_freq  scaling_available_governors  scaling_governor  scaling_setspeed

Offline

#7 2021-12-14 19:41:46

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,462

Re: Can't set appropriate frequency for my i7 5700hq

So can you write the desired value directly into /sys/?

# tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq <<!
3100000
!

Offline

#8 2021-12-14 19:45:30

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

Head_on_a_Stick wrote:

So can you write the desired value directly into /sys/?

# tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq <<!
3100000
!

I got this message tee 3100000 > /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq
bash: /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq: ambiguous redirect

Offline

#9 2021-12-14 19:46:36

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,462

Re: Can't set appropriate frequency for my i7 5700hq

Why not try what I actually posted?

Offline

#10 2021-12-14 19:48:47

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

Head_on_a_Stick wrote:

Why not try what I actually posted?

ok have a look

tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq <<!
3100000
!
3100000
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
3500000

Last edited by sergik82 (2021-12-14 19:49:03)

Offline

#11 2021-12-14 19:56:41

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,462

Re: Can't set appropriate frequency for my i7 5700hq

But scaling_max_freq has actually changed?

Can you write 3100000 into cpuinfo_max_freq?

Offline

#12 2021-12-14 20:15:32

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

Head_on_a_Stick wrote:

But scaling_max_freq has actually changed?

Can you write 3100000 into cpuinfo_max_freq?

cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq
3500000
3500000
3500000
3500000
3500000
3500000
3500000
3500000

Offline

#13 2021-12-14 20:16:30

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

Head_on_a_Stick wrote:

But scaling_max_freq has actually changed?

Can you write 3100000 into cpuinfo_max_freq?

unfortunately there's no effect!!!

Offline

#14 2021-12-14 20:45:17

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,462

Re: Can't set appropriate frequency for my i7 5700hq

Are there any errors or other output when you try? How do you know there's no effect? What was the exact command you used?

Remember: verbatim terminal content is always better than vague descriptions. And please use code tags for said content, it improves readability.

Offline

#15 2021-12-14 20:54:20

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

Head_on_a_Stick wrote:

Are there any errors or other output when you try? How do you know there's no effect? What was the exact command you used?

Remember: verbatim terminal content is always better than vague descriptions. And please use code tags for said content, it improves readability.

I used command that you asked me such as

 tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq <<!
3100000
!

as well as

cpupower frequency-set  -u 3.10GHz

and I showed you an output of

 cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq

Last edited by sergik82 (2021-12-14 21:03:27)

Offline

#16 2021-12-14 21:02:34

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,462

Re: Can't set appropriate frequency for my i7 5700hq

So try

# tee /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq <<!
3100000
!

What does that do? If the value is unsupported I think you'll see "Permission denied".

Offline

#17 2021-12-14 21:06:14

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

Head_on_a_Stick wrote:

So try

# tee /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq <<!
3100000
!

What does that do? If the value is unsupported I think you'll see "Permission denied".

I did it... Can show you again

# tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq <<!
3100000
!
3100000
# cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq 
3500000
3500000
3500000
3500000
3500000
3500000
3500000
3500000

Offline

#18 2021-12-14 21:08:26

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

it seems the value is not saving by some reasons...

Offline

#19 2021-12-14 21:09:35

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,462

Re: Can't set appropriate frequency for my i7 5700hq

sergik82 wrote:

I did it...

No, you didn't. Read my last post again please. Slowly this time.

EDIT: and please stop full-quoting unnecessarily, it makes the thread harder to read.

Last edited by Head_on_a_Stick (2021-12-14 21:11:47)

Offline

#20 2021-12-14 21:10:53

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

I did not get any errors... I did as root user...

Last edited by sergik82 (2021-12-14 21:36:44)

Offline

#21 2021-12-14 21:18:09

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

Sorry you were rigth smile
output is

tee: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu4/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu6/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu7/cpufreq/cpuinfo_max_freq: Permission denied
3100000

Offline

#22 2021-12-14 21:21:11

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

So why does this happen?

Offline

#23 2021-12-15 05:57:59

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,462

Re: Can't set appropriate frequency for my i7 5700hq

Because 3.1GHz is not a supported setting.

Last edited by Head_on_a_Stick (2021-12-15 05:58:15)

Offline

#24 2021-12-15 07:06:18

sergik82
Member
Registered: 2021-02-18
Posts: 24

Re: Can't set appropriate frequency for my i7 5700hq

How can I know what settings available???

Offline

#25 2021-12-15 11:43:02

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,501

Re: Can't set appropriate frequency for my i7 5700hq

Try

# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies

(tee gave permission error)

Last edited by Lone_Wolf (2021-12-15 11:43:42)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB