Forums

Skip to content

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

kernel missing on demand scaler although option set

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
2 posts • Page 1 of 1
Author
Message
abduct
Apprentice
Apprentice
Posts: 222
Joined: Thu Mar 19, 2015 6:51 am

kernel missing on demand scaler although option set

  • Quote

Post by abduct » Sun Sep 17, 2023 7:32 pm

I have been using laptop_mode_tools forever and with the recent kernel update, 6.3.1. to 6.5.3 laptop_mode has not been able to set the ondemand scaler.

Code: Select all

 rc-service laptop_mode reload
 * Reloading laptop_mode ...
Laptop mode
disabled, not active
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu10/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu11/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu12/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu13/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu14/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu15/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu8/cpufreq/scaling_governor
/usr/share/laptop-mode-tools/modules/cpufreq: line 11: echo: write error: Invalid argument
SETTING OF KERNEL PARAMETER FAILED: echo ondemand \> /sys/devices/system/cpu/cpu9/cpufreq/scaling_governor
Looking inside the scaling_avaliable_governor I get

Code: Select all

cat /sys/devices/system/cpu/cpu9/cpufreq/scaling_available_governors
performance powersave
Here is my kernel config options relating to this:

Code: Select all

cat /usr/src/linux/.config | grep CPU_FREQ
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
Where should I start looking in regards to figuring out why the new kernel wont allow me to set ondemand governors?

Thanks

edit::

It seems my cpu is governing properly as its cpu freq is scaling with workload. Perhaps laptop_mode isnt needed any longer? Or perhaps just its scaler setting options? I know it sets the scaler based on with the AC is attached or not etc.
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3537
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Mon Sep 18, 2023 4:36 am

If it is intel-pstate it has an internal governor. You should run it in passive mode I think to make it respect a kernel governor.

I don't remember details which mode does what, look at the doc in Documentation/admin-guide/pm/

Best Regards,
Georgi
Top
Post Reply

2 posts • Page 1 of 1

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