[Bug 1203748] New: Laptop very slow in battery mode (Lenovo Thinkpad T470)
https://bugzilla.suse.com/show_bug.cgi?id=1203748 Bug ID: 1203748 Summary: Laptop very slow in battery mode (Lenovo Thinkpad T470) Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.4 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-bugs@opensuse.org Reporter: sndirsch@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- For some reason my laptop gets very slow in battery only mode. I notice this when watching videos. It makes it rather unusable when not connecting it to power. It looks like it goes into some deep powersave mode. I would like to avoid this even if this would half the running time in battery mode. Which information do you need? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c2
Takashi Iwai
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c3
--- Comment #3 from Stefan Dirsch
About the cpufreq, Arch has a nice web page: https://wiki.archlinux.org/title/CPU_frequency_scaling
Thanks! -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c5
--- Comment #5 from Stefan Dirsch
For example when watching video
https://www.youtube.com/watch?v=hZ2joF8_1QY
in 1440p60 when switching from power (running absolutely fluently) to battery mode this is switching to 60 sec/frame (!) or even worse!
This is weird. Sometimes things are working fine when running on battery. If not CPUs are running at exactly 400 MHz on battery. Otherwise they run at about 3000MHz, no matter if powered or on battery. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c6
--- Comment #6 from Takashi Iwai
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c7
--- Comment #7 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
Michal Suchanek
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c16
Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c17
--- Comment #17 from Takashi Iwai
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c18
--- Comment #18 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
Frank Kr�ger
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c19
--- Comment #19 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c21
Giovanni Gherdovich
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c22
--- Comment #22 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c23
--- Comment #23 from Takashi Iwai
Thanks for looking into this. I definitely wrote
dyndbg="file drivers/cpufreq/* +pf"
in grub during boot. Unfortunately this results in
# cat /proc/cmdline BOOT_IMAGE=/vmlinuz-6.0.0-lp153.3.g1195759-default root=/dev/mapper/system-root resume=/dev/system/swap splash=silent quiet showopts intel_idle.max_cstate=0 "dyndbg=file drivers/cpufreq/* +pf"
So the following results might be completely useless. :-(
This should be fine, it's just how the kernel handles. Check the dmesg output -- now you must have more lines about cpufreq there. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c24
--- Comment #24 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c25
--- Comment #25 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c26
--- Comment #26 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c27
--- Comment #27 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c28
--- Comment #28 from Stefan Dirsch
Created attachment 863066 [details] dmesg-bad-battery.log
dmesg - After switching to battery - in a bad/slow state (unfortunately no relevant difference in dmesg to good state)
Maybe I was wrong. There is at least this -[ 2200.120064] perf: interrupt took too long (2540 > 2500), lowering kernel.perf_event_max_sample_rate to 78500 -[ 2307.480111] perf: interrupt took too long (3242 > 3175), lowering kernel.perf_event_max_sample_rate to 61500 Maybe that's related. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c29
Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c30
--- Comment #30 from Giovanni Gherdovich
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c31
--- Comment #31 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c32
--- Comment #32 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c33
--- Comment #33 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c34
--- Comment #34 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c35
--- Comment #35 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c36
--- Comment #36 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c37
--- Comment #37 from Stefan Dirsch
Takashi had a good proposal. Creating a Live Image for a USB stick with fwupdmgr/fwupdate included, so I can switch to UEFI mode in firmware and boot with this Live image in UEFI mode and run fwupdmgr/fwupdate.
So this became my hackweek project. ;-) https://hackweek.opensuse.org/22/projects/thinkpad-t470-bios-update-in-live-... -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c38
Stefan Dirsch
(In reply to Stefan Dirsch from comment #36)
Takashi had a good proposal. Creating a Live Image for a USB stick with fwupdmgr/fwupdate included, so I can switch to UEFI mode in firmware and boot with this Live image in UEFI mode and run fwupdmgr/fwupdate.
So this became my hackweek project. ;-)
https://hackweek.opensuse.org/22/projects/thinkpad-t470-bios-update-in-live- system
Successfully done. :-) Closing ... -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c39
--- Comment #39 from Giovanni Gherdovich
Successfully done. :-) Closing ...
Nicely done! To recap: your system is legacy BIOS, the vendor offers BIOS updates only via UEFI capsules and their only documented update method is with the Linux tool fwupdate(1). fwupdate doesn't work if the system uses legacy mode. So what you did is use a (uefi) live image from a USB disk with fwupdate, run the update, and then continue use legacy mode on an update firmware. Am I getting this right? This kind of shows that there is only one firmware; I somehow always assumed there are two, one legacy and one uefi. But apparently you're always running the uefi BIOS, only it has a thin compatibility layer on top so you can keep using the old interface. Does that make sense? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1203748
https://bugzilla.suse.com/show_bug.cgi?id=1203748#c40
--- Comment #40 from Stefan Dirsch
To recap: your system is legacy BIOS,
Yes, kind of, i.e. openSUSE Leap 15.3 was still using legacy BIOS for installation, in more detail. It runs on CSM mode, i.e. the legacy BIOS compatibily layer on top of UEFI. At least that's how I understood it.
the vendor offers BIOS updates only via UEFI capsules and their only documented update method is with the Linux tool fwupdate(1). fwupdate doesn't work if the system uses legacy mode. So what you did is use a (uefi) live image from a USB disk with fwupdate, run the update, and then continue use legacy mode on an update firmware. Am I getting this right?
Yes, in legacy BIOS compatibility mode CSM. See above.
This kind of shows that there is only one firmware; I somehow always assumed there are two, one legacy and one uefi. But apparently you're always running the uefi BIOS, only it has a thin compatibility layer on top so you can keep using the old interface. Does that make sense?
Yes, definitely. Only one (UEFI) BIOS. Well, in more detail. It was first installed an update for ECP (Embedded Controller Program) . On top of that the update for the UEFI BIOS (first step to an intermediate version). Then another update for UEFI BIOS (second and last step to the final version). For all these a boot entry was generated and the update didn't happen before selecting this boot entry. Then also the firmware for the NVME has been updated. This happened immediately. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com