You are not logged in.

#1 2023-10-11 20:56:27

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

MSI 14 Evo prestige battery life tick_sched_timer and F(n) keys

Hello,
I got this new laptop and I'v been doing some optimization for the battery life (since the laptop has a 4-cell and it's known for long battery life) following our amazing wiki,
This is most of the stuff I'v done so far :

[root@arch modprobe.d]# cat powersave.conf 
blacklist btusb
blacklist bluetooth
options snd_hda_intel power_save=1
options iwlwifi power_save=1
options iwlmvm power_scheme=3


[root@arch]# cat /etc/tmpfiles.d/energy_performance_preference.conf
w /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference - - - - balance_power


#!/bin/bash
# Optimizations from powertop
echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs';
echo '0' > '/proc/sys/kernel/nmi_watchdog';
echo '1' > '/sys/module/snd_hda_intel/parameters/power_save';
echo 'auto' > '/sys/bus/pci/devices/0000:00:14.2/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:08.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:02:00.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:04.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:14.3/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.5/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:0a.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:12.0/power/control';


# Laptop mode
/etc/sysctl.d/laptop.conf
vm.laptop_mode = 5

#Disabled watchdog
cat /etc/sysctl.d/disable_watchdog.conf 
kernel.nmi_watchdog = 0

#Set PCIe aspm to powersave
[root@arch sysctl.d]# cat pcie_aspm_powersave.conf 
pcie_aspm.policy=powersave

I have also installed intel-media-driver and intel-gpu-tools , run powertop calibrate and also fix tunnables.
Furthermore, acpid and thermald are enabled and running , and I'm using screen brightness to 5%.



The battery life is good, but not where I expected it to be, and I have calibrated with powertop however I find tick_sched_timer problematic.

Top 10 Power Consumers
Usage	Events/s	Category	Description
0.3%	184.4	Timer	tick_sched_timer
0.2%	168.9	Interrupt	[27] idma64.0
1.5%	20.8	Interrupt	[14] INTC1055:00
3.4%	4.6	Process	[PID 1024] cinnamon --replace
0.0%	15.0	Process	[PID 17] [rcu_preempt]
1.4%	6.7	Process	[PID 708] /usr/lib/Xorg -background none :0 vt01 -nolisten tcp -novtswitch -auth /var/run/lxdm/lxdm-:0.auth
1.7%	3.4	Process	[PID 55330] /usr/bin/python /usr/bin/terminator

While thinking that the CPU monitoring had to do anything with it I removed all desklets , gadgets that where monitoring CPU activity and or network , but tick_sched_timer still seems to be high on the Events numbers and so does idma64.0.

Questions
- How do I monitor and understand the reason of the events for tick_sched_timer and idma64.0 ?
- What else can I do to tune it down a bit ?


Another problem I have is with the CTRL+ALT+F1,2,3 etc keys, this is what happens when I press them :

Oct 11 22:52:52 arch kernel: msi_wmi: Unknown event received
Oct 11 22:52:52 arch root[76117]: ACPI group/action undefined: button/mute / MUTE
Oct 11 22:52:52 arch root[76119]: ACPI group/action undefined: 5B3CC38A-40D9- / 000000c0
Oct 11 22:52:57 arch kernel: msi_wmi: Unknown event received
Oct 11 22:52:57 arch root[76121]: ACPI group/action undefined: button/volumedown / VOLDN
Oct 11 22:52:57 arch root[76123]: ACPI group/action undefined: 5B3CC38A-40D9- / 000000c0
Oct 11 22:52:59 arch kernel: msi_wmi: Unknown event received
Oct 11 22:53:00 arch root[76125]: ACPI group/action undefined: button/volumeup / VOLUP
Oct 11 22:53:00 arch root[76127]: ACPI group/action undefined: 5B3CC38A-40D9- / 000000c0

I'm running 6.5.6-arch2-1 (latest) and fully updated.
CPU: 13th Gen Intel i7-13700H (20) @ 4.800GHz
GPU: Intel Raptor Lake-P [Iris Xe Graphics]

Offline

Board footer

Powered by FluxBB