CPU Boost abschalten

Hallo zusammen,

ich möchte von meinem Manjaro den CPU Boost abschalten.

Ich habe mit Sudo mousepad gestartet und die datei

/sys/devices/system/cpu/intel_pstate/no_turbo

auf 1 geändert

Allerdings ist nach jedem neustart wieder automatisch auf 0 gesetzt wieso?

/sys wird beim Booten mit Informationen gefüllt, die von der Hardware bereitgestellt werden.

Wenn Sie das Verhalten ändern möchten, müssen Sie der Kernel-Befehlszeile ein Argument hinzufügen.

Dies erfolgt häufig mit einer Grub-Konfiguration, kann aber auch mit einer Konfiguration in /etc/sysctl.d/ erfolgen.

Original comment in English
/sys is populated at boot with information supplied by the hardware.

If you want to change behaviour you will have to add an argument to the kernel command line.

This is often done using grub configuration but can also be done using a configuration placed in /etc/sysctl.d/.

1 Like

Vielen Dank erst mal für die Antwort.

Was genau muss ih machen damit ich no_turbo auf 1 ändern kann.

Leider reichen meine Linux kenntnisse noch nicht so aus. Da ich noch neuling bin.

Die von @linux-aarhus geposteten Links lesen.
Steht alles im 1. Link, beginnt bei “2.2. Configuring frequency boosting”

echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo

in die Konsole eingebe kommt das ich keine Berechtigung habe

bash: /sys/devices/system/cpu/intel_pstate/no_turbo: Keine Berechtigung

wenn ich

sudo sh echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo

der Befehl funktioniert auch nicht

Ich habe einige Nachforschungen angestellt und konnte keinen Hinweis finden, um dies mithilfe von Konfigurationsdateien auf eine permanente Basis zu setzen.

Wenn Sie den Stammkontext (root) nicht verwenden, lautet der Befehl

echo 1 > sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo

Original comment in English

I have done some research and I couldn’t find any reference to set this on a permanent base using configuration files.

If you are not using root context the command will be

echo 1 > sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
echo 1 > sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo

Funktioniert nicht CPU Boost ist nicht abgeschaltet.

Dann ist es nur noch als Wurzel (root) beschreibbar.
Wechseln Sie zum Stammkontext (root)

su -l root
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo

Original comment in English
Then it is only writable as root.
Switch to root context

su -l root
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo

@Ano2

Erstellen Sie eine systemd-Einheit für die Aufgabe
Create a systemd unit for the task

/etc/systemd/system/disable_intel_turbo.service

[Unit]
Description=Enable intel_pstate.no_turbo
[Service]
Type=oneshot
ExecStart=/usr/bin/sh -c "echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo"
[Install]
WantedBy=multi-user.target

Aktivieren und starten Sie den Dienst
Enable and start the service

systemctl enable --now disable_intel_turbo.service
2 Likes
su -l root
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo

Hat schonmal funktioniert :slight_smile:
Allerdings nach jedem neustart muss ich das neu eingeben.
Wie kann ich den CPU Boost automatisch nach jedem Neustart abschalten??

Vielleicht ist es ja zielführender, wenn Du sagst, was der Grund dafür ist, daß Du das abschalten möchtest.
Man kann den Befehl natürlich in eine systemd unit reinschreiben und ihn so jedesmal beim Systemstart automatisch ausführen lassen.

Aber - je nach dem, was Du im Endeffekt erreichen möchtest - es gibt wahrscheinlich andere/bessere Wege, das Ziel zu erreichen.

Kann ich in Grub Konmandozeile schreiben??

# GRUB boot loader configuration

GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash apparmor=1 security=apparmor udev.log_priority=3"
*GRUB_CMDLINE_LINUX="*echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo"*

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
GRUB_CMDLINE_LINUX="*echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo"

Funktioniert das?

Nein.
Das funktioniert so nicht.

Warum möchtest Du das machen?
Es gibt, wie gesagt, ganz sicher andere Wege, Dein eigentliches Ziel zu erreichen.

Ich frage so, weil mir das ganze so ein wenig nach XY-Problem aussieht …

Ich möchte dauerhaft CPU Boost abschalten wegen Temperatur Problemen.

1 Like

Aha.
In dem Fall würde ich mich zuerst auf die Hardware konzentrieren:

  • ist der Lüfter und die Luftzufuhr und -abfuhr frei? (Staub und Flusen, die sich mit der Zeit ansammeln)
  • hat der Lüfter guten thermischen Kontakt mit dem Prozessor? (evt. neue Wärmeleitpaste …)

Meinen Laptop aufzumachen, den Lüfter auszubauen und zu reinigen und dann mit neuer Wärmeleitpaste wieder einzusetzen hat einen Unterschied wie zwischen Tag und Nacht gemacht.

Den Turboboost allein abzuschalten wird wohl nur marginal was bringen.
Da könnte man eher die maximale Frequenz ein wenig einschränken - z.B. …

1 Like

Wie @Nachlese sagt, erst mal saubermachen. Falls Lüfterausbau oder Austausch der Wärmeleitpaste zu aufwendig ist bringt selbst eine Reinigung mit Pinsel die Temperatur runter.

Auch mal im Bios nachschauen ob Turbo/Boost schon dort deaktiviert werden kann, evt unter ‘Advanced CPU Settings’ oder auch ‘Advanced Fan/Temp Control’.

In Zukunft bitte immer zuerst das verwendete Hardwareprofil posten:
inxi -Fazy

1 Like

Also mein Laptop ist relativ neu ca 1 Jahr alt. Staub ist nicht vorhanden.

Meine Intel CPUs boostet auf 4,5ghz und in den Temperaturen steigt der wenn der boostet locker Mal über 60grad.

Ich hatte vorher Windows 11 installiert und dort auch den CPU biost abgeschaltet weil ich 4,5ghz nicht unbedingt brauchte und alles mit 2,5ghz super lief.

Und ob die CPU mit 2,5ghz 48grad läuft oder 4,5ghz über 60grad läuft ist ein Unterschied.

Dass selbe möchte ich jetzt bei Manjaro auch machen.

Im BIOS kann ich leider den boost nicht abschalten.

Ich benutze ein Gigabyte g5 laptop

Das ist vorne und hinten nicht “zu warm” sondern einfach normale Betriebstemperatur.
Laptop-CPUs erreichen unter Voll- und Dauerlast auch gerne mal was knapp über 90°C und sind dafür auch ausgelegt.

Wie es gemacht werden kann, stand in diesem Beitrag hier ein wenig weiter oben
von @linux-aarhus , im zweiten, unteren Teil, an Dich adressiert:

CPU Boost abschalten - #8 by linux-aarhus

eine Datei anlegen:
/etc/systemd/system/disable_intel_turbo.service
(der Name ist egal, der muß nur Dir was sagen - muß aber unbedingt auf .service enden)

Da hinein kommt das, was da steht. Speichern und starten/aktivieren …

2 Likes

Da gibt’s etwa 20 verschiedene, mit dem Output von
inxi -Fazy
wüsste man welches…

Falls Intel I7/I5 CPU sagt Gigabyte

If you want to turn off Turbo Boost enter “BIOS \ MB Intelligent Tweaker(M.I.T.)\ Advanced Frequency Settings\ Advanced CPU Core Features” and disable “Intel(R) Turbo Boost Tech” item.

Falls AMD CPU ist die Einstellung unter “BIOS \ MB Intelligent Tweaker(M.I.T.)\ Advanced Frequency Settings\ Advanced CPU Core Features”, “Core Performance Boost”.

1 Like

Also im Bios gibt es keine möglichkeit den Boost abzuschalten.

System:
  Kernel: 6.6.10-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64
    root=UUID=c3924f29-cb60-47b1-adf8-45fc71e8920d rw quiet splash apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 wm: xfwm4 v: 4.18.0
    with: xfce4-panel tools: xfce4-screensaver vt: 7 dm: LightDM v: 1.32.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: GIGABYTE product: G5 KC v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: GIGABYTE model: G5 KC serial: <superuser required> part-nu: RC45KC
    uuid: <superuser required> UEFI: INSYDE v: FB08 date: 07/12/2022
Battery:
  ID-1: BAT0 charge: 15.4 Wh (34.5%) condition: 44.7/47.2 Wh (94.7%)
    volts: 14.8 min: 14.4 model: Notebook BAT type: Li-ion serial: <filter>
    status: charging
CPU:
  Info: model: Intel Core i5-10500H bits: 64 type: MT MCP arch: Comet Lake
    gen: core 10 level: v3 note: check built: 2020 process: Intel 14nm family: 6
    model-id: 0xA5 (165) stepping: 2 microcode: 0xF8
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 808 high: 899 min/max: 800/4500 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 899 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 bogomips: 60014
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS, IBPB: conditional,
    RSB filling, PBRSB-eIBRS: SW sequence
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: CLEVO/KAPOK
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:9bc4 class-ID: 0300
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]
    vendor: CLEVO/KAPOK driver: nvidia v: 545.29.06 alternate: nouveau,nvidia_drm
    non-free: 545.xx+ status: current (as of 2024-01; EOL~2026-12-xx)
    arch: Ampere code: GAxxx process: TSMC n7 (7nm) built: 2020-2023 pcie:
    gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
    bus-ID: 01:00.0 chip-ID: 10de:2520 class-ID: 0300
  Device-3: Bison BisonCam NB Pro driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-8:3 chip-ID: 5986:9102
    class-ID: 0e02
  Display: x11 server: X.org v: 1.21.1.10 compositor: xfwm4 v: 4.18.0 driver:
    X: loaded: modesetting,nvidia alternate: fbdev,nouveau,nv,vesa dri: iris
    gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-size: <missing: xdpyinfo>
  Monitor-1: eDP-1 model: BOE Display 0x08b3 built: 2019 res: 1920x1080
    hz: 144 dpi: 142 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 398mm (15.7")
    ratio: 16:9 modes: 1920x1080
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia device: 1 drv: iris device: 3 drv: swrast gbm: drv: kms_swrast
    surfaceless: drv: nvidia x11: drv: iris inactive: wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 23.3.3-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (CML GT2)
    device-ID: 8086:9bc4 memory: 14.97 GiB unified: yes
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: CLEVO/KAPOK driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:06c8 class-ID: 0403
  Device-2: NVIDIA GA106 High Definition Audio driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 01:00.1 chip-ID: 10de:228e class-ID: 0403
  API: ALSA v: k6.6.10-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 07:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp7s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: CLEVO/KAPOK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 08:00.1 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp8s0f1 state: down mac: <filter>
  IF-ID-1: surfshark_ipv6 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-2: surfshark_wg state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-14:4 chip-ID: 8087:0029
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
  Local Storage: total: 700.51 GiB used: 170.28 GiB (24.3%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Phison model: ESR512GTLCG-EAC-4
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: ECFM13.3 temp: 23.9 C
    scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: A-Data model: SP550 size: 223.57 GiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s tech: SSD
    serial: <filter> fw-rev: 5AB scheme: GPT
Partition:
  ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%)
    used: 170.28 GiB (36.4%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 296 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 31.0 C pch: 48.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 15.32 GiB used: 2.81 GiB (18.3%)
  Processes: 326 Power: uptime: 3m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform
    avail: shutdown,reboot,suspend,test_resume image: 6.12 GiB
    daemons: upowerd,xfce4-power-manager Init: systemd v: 255
    default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1124 libs: 346 tools: pamac pm: flatpak pkgs: 0
    Compilers: clang: 16.0.6 gcc: 13.2.1 Shell: Bash v: 5.2.21
    running-in: xfce4-terminal inxi: 3.3.32

ich werde versuchen ob ich das mit sysemd hinbekomme