cpufreq-set(1)

πŸ“¦
version 008 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ cpufreq-set ✨

okay bestie, welcome to cpufreq-set(1) β€” the section 1 manual page for a tiny little tool that lets you ✨modify cpufreq settings✨ and honestly? she's iconic for it πŸ’…


🌸 NAME 🌸

cpufreq-set β€” a small tool which allows a user to modify cpufreq settings.

like. that's it. that's her whole job. small tool, big main character energy πŸ‘‘


πŸŽ€ SYNTAX πŸŽ€

cpufreq-set [options]

just options, no positional args, no drama, we love a low-maintenance queen πŸ™ˆ


πŸ’– DESCRIPTION πŸ’–

cpufreq-set lets you modify cpufreq settings without having to type stuff like

/sys/devices/system/cpu/cpu0/cpufreq/scaling_set_speed

over and over and over again all the time. fr fr, nobody has the patience to type out a whole-ass sysfs path every single time β€” that's giving carpal tunnel, not giving efficiency 😭 so this tool just does it for you. obsessed.


✨ OPTIONS ✨

  • -c --cpu <CPU> β€” the number of the CPU whose cpufreq settings shall be modified. you're basically pointing at which core you wanna talk to 🫢
  • -d --min <FREQ> β€” the new minimum CPU frequency that the governor may select. floor level, no going below this, periodt ⬇️
  • -u --max <FREQ> β€” the new maximum CPU frequency that the governor may select. the ceiling, the limit, the "you shall not pass" ⬆️
  • -g --governor <GOV> β€” the new cpufreq governor. new management just dropped πŸ‘‘
  • -f --freq <FREQ> β€” a specific frequency to be set. heads up bestie, this one requires the userspace governor to be available and loaded β€” no userspace governor, no vibe πŸ”₯
  • -r --related β€” modify all hardware-related CPUs at the same time. group chat behavior, everyone gets the update at once πŸ’…
  • -h --help β€” Prints out the help screen. the classic. the safe choice. the "I don't know what I'm doing but I'm doing it politely" move 🌈

πŸ¦‹ REMARKS πŸ¦‹

okay important stuff, pay attention bestie, this is the iykyk section:

  • Omitting the -c or --cpu argument is equivalent to setting it to zero. so if you don't say which CPU, she just assumes CPU 0. default behavior, no cap 🫑
  • The -f FREQ, --freq FREQ parameter cannot be combined with any other parameter except the -c CPU, --cpu CPU parameter. so don't try to sneak other flags in there, she will not play that game πŸ’€
  • FREQuencies can be passed in Hz, kHz (default), MHz, GHz, or THz by postfixing the value with the wanted unit name, without any space. and here's the math so you don't have to guess:
frequency in kHz =^ Hz * 0.001 =^ MHz * 1000 =^ GHz * 1000000

no space between the number and the unit, bestie, she's picky about that ✨

  • On Linux kernels up to 2.6.29, the -r or --related parameter is ignored. so on those old kernels, that flag is literally just vibing there doing nothing πŸͺ¦

🧚 FILES 🧚

  • /sys/devices/system/cpu/cpu*/cpufreq/
  • /proc/cpufreq (deprecated)
  • /proc/sys/cpu/ (deprecated)
heads up: the last two are deprecated β€” they're the old-school ones, still listed but like, respectfully, they're retired πŸ’€

πŸ‘‘ AUTHORS πŸ‘‘

  • Dominik Brodowski <linux@brodo.de> β€” author
  • Mattia Dongili <malattia@gmail.com> β€” first autolibtoolization

shoutout to the girlies who built her 🫢


🌈 SEE ALSO 🌈

cpufreq-info(1), cpufreq-aperf(1)

go read those too, they're the whole friend group πŸ’–


and that's the page!! brought to you by Mattia Dongili, version 0.1, dated cpufreq-set(1) era β€” mwah, slay, go set some frequencies responsibly βœ¨πŸ’…πŸŽ€

πŸ“¦ where this page comes from