Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Daemon to set scaling_max_freq according to CPU temperature

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
105 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
Author
Message
logrusx
Advocate
Advocate
User avatar
Posts: 3530
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Mon Mar 24, 2025 7:35 pm

OK, with k10temp it didn't work perhaps because I has switched amd-pstate in active mode after all. Zenpower is somehow broken. The user who brought it back to live last time has since vanished together with his repo and code. I think it should not be supported.

When I switched back amd-pstate to passive mode and loaded k10temp, it now works again.

Best Regards,
Georgi
Top
pa4wdh
Veteran
Veteran
Posts: 1015
Joined: Fri Dec 16, 2005 6:55 pm

  • Quote

Post by pa4wdh » Thu Aug 21, 2025 4:52 pm

I'm sorry, i haven't seen your posts here. This topic popped up in a search i did and i more or less found them accidentally.
2025-03-24 21:16:20: Transition Latency: 0 (This seems low, consider setting it via -d)
This seems odd, try to set it with -d, start with a value of 50000.
2025-03-24 21:16:20: Error 22 occoured while writing to sysfs
2025-03-24 21:16:20: Failed to set governor, error 22 (Invalid argument)
My guess here is that the conservative governor is not available in your kernel. You can either add the conservative governor to your kernel or use -g to select an other one.
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3530
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Thu Aug 21, 2025 5:29 pm

pa4wdh wrote:I'm sorry, i haven't seen your posts here. This topic popped up in a search i did and i more or less found them accidentally.
2025-03-24 21:16:20: Transition Latency: 0 (This seems low, consider setting it via -d)
This seems odd, try to set it with -d, start with a value of 50000.
2025-03-24 21:16:20: Error 22 occoured while writing to sysfs
2025-03-24 21:16:20: Failed to set governor, error 22 (Invalid argument)
My guess here is that the conservative governor is not available in your kernel. You can either add the conservative governor to your kernel or use -g to select an other one.
In active mode there are only powersave and performance governors. I guess it's active because it actively predicts CPU load, rather than relying on the OS for that. The OS only gives hints.

Maybe you read my previous posts and missed the last one. I'm not sure if anything can be done in active mode. But in writing from memory because I'm not at my desk right now.

If you're interested, you can read about the modes in Documentation/admin/pm/amd-pstae.rst. If I'm getting the path wrong, it's similar.

Best Regards,
Georgi
Top
pa4wdh
Veteran
Veteran
Posts: 1015
Joined: Fri Dec 16, 2005 6:55 pm

  • Quote

Post by pa4wdh » Fri Aug 22, 2025 12:50 pm

I've read the amd-pstate documentation. As far as i can see using any kind of software control doesn't make sense in active mode. The document states:

Code: Select all

- In autonomous mode, platform ignores the desired performance level request
  and takes into account only the values set to the minimum, maximum and energy
  performance preference registers.
And:

Code: Select all

Active Mode
------------

``amd_pstate=active``

This is the low-level firmware control mode which is implemented by ``amd_pstate
_epp``
driver with ``amd_pstate=active`` passed to the kernel in the command line.
In this mode, ``amd_pstate_epp`` driver provides a hint to the hardware if software
wants to bias toward performance (0x0) or energy efficiency (0xff) to the CPPC firmware.
then CPPC power algorithm will calculate the runtime workload and adjust the realtime
cores frequency according to the power supply and thermal, core voltage and some other
hardware conditions.
Which is probably why only powersafe and performance make sense in this mode, I wouldn't expect my daemon to do anything useful while in active mode.
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3530
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Fri Aug 22, 2025 3:25 pm

pa4wdh wrote:I wouldn't expect my daemon to do anything useful while in active mode.
I would add active mode is probably not a good idea for people who need what your daemon does.

Best Regards,
Georgi
Top
Post Reply

105 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic