Cpu is "constant" on high frequency

what is the status of cpupower.service ?

systemctl status cpupower.service

down ? then enable it and restart

second, i’m sure intel_pstate is active and will owerwrite all settings. disable it in grub and let the kernel take control.

sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="........(other settings) intel_pstate=disable"
sudo update-grub

it will look similar like this

GRUB_CMDLINE_LINUX_DEFAULT="quiet audit=0 usbcore.autosuspend=-1 psmouse.synaptics_intertouch=1 intel_pstate=disable udev.log_priority=3 "
1 Like

If cpupower is enabled(active(exited)) then the frequencyes are almost the same.

sudo cpupower frequency-info 
analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 400 MHz - 3.60 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 400 MHz and 1.70 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 1.65 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes

I dont really have currage to mess with the kernel or the grubloader, but i will try to make a safe way for it.

Thanks for your time.

disable the intel_pstate and your fine. there is no reason to worry. the intel_pstate-driver isn’t a good solution. did the same at my laptop after the same issues you’re dealing with.

1 Like

Okay, will it cause problem with tlp or auto-cpufreq in your opinion?

no it’s the opposit, the intel_pstate driver prevents linux to run as it should and blocks all the settings you try to adjust with the configs. it limits the frequency-governor to only powersave and performance and that’s the problem. once intel_pstate is disabled the kernel has control and you can use the full acces that linux gives. don’t know, the intel_pstate might had been a good idea but the solution in practice is a pick into the closet.

1 Like

I see.
Thank you!
I will reboot and see what happened.

after reboot, post the output of

inxi --admin --verbosity=7 --filter --no-host --width

to see if intel_pstate is disabled.

It is disabled, i feel the performance downgrade.

inxi --admin --verbosity=7 --filter --no-host --width
System:
  Kernel: 5.15.38-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=cc7be21e-d9d4-4881-841a-b047d2a1253a rw quiet
    udev.log_priority=3 intel_pstate=disable
  Desktop: i3 v: 4.20.1 info: xfce4-panel vt: 7 dm: LightDM v: 1.30.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20L6S1LV2F v: ThinkPad T480
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20L6S1LV2F v: SDK0J40697 WIN
    serial: <superuser required> UEFI: LENOVO v: N24ET67W (1.42 )
    date: 11/17/2021
Battery:
  ID-1: BAT0 charge: 7.2 Wh (38.9%) condition: 18.5/23.9 Wh (77.4%)
    volts: 11.4 min: 11.4 model: LGC 01AV489 type: Li-poly serial: <filter>
    status: discharging cycles: 192
  ID-2: BAT1 charge: 9.1 Wh (70.5%) condition: 12.9/24.0 Wh (53.8%)
    volts: 11.9 min: 11.5 model: SMP 01AV452 type: Li-poly serial: <filter>
    status: not charging cycles: 236
Memory:
  RAM: total: 7.51 GiB used: 1.45 GiB (19.4%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i5-8350U bits: 64 type: MT MCP arch: Coffee Lake
    family: 6 model-id: 0x8E (142) stepping: 0xA (10) microcode: 0xEC
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 809 high: 816 min/max: 400/1901 boost: disabled scaling:
    driver: acpi-cpufreq governor: powersave cores: 1: 807 2: 803 3: 806 4: 816
    5: 807 6: 813 7: 809 8: 816 bogomips: 30409
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush clflushopt
    cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts
    epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr
    ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid
    invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr
    nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln
    pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg sep sgx
    smap smep smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2
    tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic
    xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Lenovo driver: i915 v: kernel
    ports: active: eDP-1 empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0
    chip-ID: 8086:5917 class-ID: 0300
  Device-2: Chicony Integrated Camera (1280x720@30) type: USB
    driver: uvcvideo bus-ID: 1-8:2 chip-ID: 04f2:b604 class-ID: 0e02
    serial: <filter>
  Display: x11 server: X.Org v: 21.1.3 compositor: Picom v: git-7e568
    driver: X: loaded: modesetting alternate: fbdev,vesa gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: LG Display 0x0521 built: 2016 res: 1920x1080
    dpi: 158 gamma: 1.2 size: 309x174mm (12.17x6.85") diag: 355mm (14")
    ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 22.0.3
    direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo ThinkPad T480
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
    chip-ID: 8086:9d71 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.38-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:24fd class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 238.47 GiB used: 82.87 GiB (34.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: SSDPEKKF256G8L
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: L15P temp: 34.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 118.93 GiB size: 116.5 GiB (97.96%)
    used: 82.85 GiB (71.1%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5
    label: N/A uuid: cc7be21e-d9d4-4881-841a-b047d2a1253a
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 25.3 MiB (26.3%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: N/A uuid: 2EAD-1B08
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 8 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 118.93 GiB fs: ntfs label: N/A
    uuid: 3648B0CC48B08C5D
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 509 MiB fs: ntfs label: N/A
    uuid: 1804C52004C5022C
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-8:2 info: Chicony Integrated Camera (1280x720@30) type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 04f2:b604 class-ID: 0e02 serial: <filter>
  Hub-2: 2-0:1 info: Super-speed hub ports: 6 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 42.0 C pch: 38.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 225 Uptime: 1m wakeups: 3 Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: pacman: 1328 lib: 368
  Shell: Bash v: 5.1.16 running-in: kitty inxi: 3.3.15
1 Like

if you run

cpupower frequency-info

you should see that all frequency governors are now avaiable

1 Like

Yeah, it is.
Now my system is really slow (on powersave) and eats a little bit more from my battery.
How can i change the governor?

the example below will set it to performance, but you can use any of the governors that are avaiable with sudo cpupower frequency-set --governor performancethe info

sudo cpupower frequency-set --governor performance

P.S.: schedutil and ondemand are usually a good compromise to run the system

1 Like

Thank you!
It really helped it.
All i need to do is check the powerconsumption.

my experience is that it only depends on the real load. if you run on performance but no applications are using it the temperatures will go down. temperature is always the best indicator. to watch them use a tool like psensor that you can install from pamac/pacman.

1 Like

Do i have to set ondemand governor every time i disconnect the ac?

this depends now on the configs. for example if i turn my pc off and restart it the basic setting of the configs is to set the pc to the schedutil governor. you can try it for yourself, turn the computer complete off, do a restart and check what governor is set as default with the info command given above.

1 Like

It boots to powersave.
So i have to script it.

i’m not aware how firm you are on changing settings and scripting. not to be offensive but are you new to linux ? in this case i would recommend that you install cpupower-gui from the packet-manager (but you have to activate the aur-packages too) and use this first.

1 Like

Yeah, im new.
I just found this package and installed it. Thanks!
Do i have to run this “App” constant?

you can run this app after starting the pc. you have to set up the cores as you want, store your setting as a profile and start this profil.

another way is to set up the cpupower settings. let me test some things, i’ll send it as personal message to you, but i’m a little bit busy. give me some hours.

1 Like

You can make an udev rule to automate the change of governor based on battery or on charger:

Make the following file:
sudo nano /etc/udev/rules.d/99-ac-battery.rules

With the content:

## ACTION TO DO WHEN ON BATTERY
SUBSYSTEM=="power_supply", ACTION=="change", ENV{POWER_SUPPLY_ONLINE}=="0", ENV{POWER}="off", RUN+="/usr/bin/cpupower frequency-set --governor ondemand"

## ACTION TO DO WHEN ON CHARGER
SUBSYSTEM=="power_supply", ACTION=="change", ENV{POWER_SUPPLY_ONLINE}=="1", ENV{POWER}="on", RUN+="/usr/bin/cpupower frequency-set --governor performance"

Then execute sudo udevadm control --reload-rules

1 Like