Librebooted T480 Issues

Hello, I have problem with my T480 after librebooting. I don’t see any CPU sensors in xfce4-sensors and in sensors. Also FAN under CPU load does not turn on. I force-loaded thinkpad-acpi because it was not loading automatically as in here. Now I can see FAN sensor but not CPU one. FAN turns on but it doesn’t take CPU temperatures into consideration obviously. I have other sensor called temp1 or something like that and FAN turns on when it gets higher than 55C but it’s not CPU as I compared it with previous CPU temperatures before librebooting. CPU temperature even for specific cores shows up in debian live OS so it’s Qubes/Xen related issue. Comparing to other machine with QubesOS installed on Lenovo BIOS - mine doesn’t have xen-acpi-processor module loaded in lsmod - I think that can be an issue but I couldn’t force load it by methods described in the link above and in methods that I found in the internet like adding .conf file containing module name in /etc/modules-load.d/. Command: sudo modprobe xen-acpi-processor returns that there is no such device like in the link above with thinkpad_acpi. Also tried with xen_acpi_processor but didn’t help. sudo sensors-detect --auto in dom0 didn’t find any new sensors. Looking forward for some help.

1 Like

Bumping, please help

1 Like

Libreboot contact:

1 Like

I made a thread on QubesOS forum because I couldn’t get any help from Libreboot IRC or by creating issue on their repo. And CPU sensors are visible on debian live image for example so it’s Qubes/Xen issue probably and it really might be caused by not loading xen-acpi-processor but I don’t know how to fix that. Maybe Libreboot for T480 lacks some CPU feature that xen modules depend on… Anyway, it’s very fresh topic. But for sure people on IRC aren’t helpful, they’re just ghosting there.

1 Like

I had similar issue on my MSI board with dasharo/heads. The CPU temperature sensor did not show up, although the SSD sensor did.
The Fan speed control was okay, so I did not bother myself and did not investigate this issue further. Maybe indeed xen related…

1 Like

Would you be willing to use different boot firmware for troubleshooting purposes?

I don’t think that is necessary to change boot firmware on this machine as I have machine with similar specs which I used to compare things for example xen-acpi-processor module not present. But I have an option to use different boot firmware. From my research, xen-acpi-processor can give No such device error if I have CPU P-states not set to legacy in Xen kernel but I don’t have any GUI like in this pdf above.

1 Like

Hey there!

@preeky72
What else works/ doesn’t? Is your headphone jack functioning?

I’ve librebooted mine last week and am waiting for the final parts to arrive. currently running NixOS on it in the meantime to check what’s working and not.

But I could surely do a test install of 4.2.3 a few days earlier to rule out stuff together with you.

This thread might also benefit from having a short rundown of what’s working. https://forum.qubes-os.org/t/lenovo-thinkpad-t480/3290/60

@FranklyFlawless
I think the question is “How well does QubesOS support T480/libreboot?”, so the use of different firmware for this particular issue seems to me as not being an optimal solution

1 Like

Feel free to handle the issues then.

I don’t use headphone jack so I can’t tell anything about it. Sorry for late response, I don’t visit this forum that much. It could be great to rule out some stuff, some brainstorm :smiley:. As there are not too many users that use this OS with T480. I noticed that my FAN is working but it is based on temperature of motherboard sensor so it is less efficient as variety of motherboard temp is lower than for CPU (CPU temp can increase around 20C in like 4 secs, motherboard will increase 10C in like 1,5 min). Things mostly work. In other thread you said that function keys shouldn’t work according to libreboot website but leah fixed that before 8 revision. Maybe it is not clearly said on that site.

1 Like

I don’t see a point of your question above. You asked if I can use different boot firmware for troubleshooting purposes but didn’t answer my later response and then I understand you give up on help?

1 Like

np!

If you had some headphones or old speakers laying around, it would give me peace of mind whether it’s my personal device being defective or whether it’s not working in general.

How did you check that fan stuff? did you try tlp in dom0?

Regarding that F-keys, I’m not sure where I read it, I think the upstream patch notes of Máté Kukri.
I knew of libreboot’s existence but never used it before ever. I don’t want to be unjust to anyone or make false claims.
That it got fixed in revisions makes sense, my mental note just said “Not working.”, so I was surprised.

I’ll look more into libreboot docs, lbmk and the like.

Regarding your original problem in this thread:

  • unluckily I have no pre-libreboot reference values for that device
  • I can confirm that xen_acpi_processor is present (lsmod / modinfo)
  • (sudo) sensors gives me this result (in dom0):
BAT0-acpi-0
Adapter: ACPI interface
in0:          12.24 V  
curr1:         0.00 A  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +64.0°C  
temp2:        +26.8°C  

Maybe you could reason somewhat about what parts you’re using, what you gave them (config) and how you expected them to be (what you want ↔ what you got) / how they turned out?

Do you have anything I can test or reassure you of to rule out stuff?

1 Like

If you do not believe using different boot firmware for troubleshooting purposes is necessary, then I have no further suggestions to provide you.

1 Like

I think the problem could be coming from the fact that in Máté Kukri’s patchset he disables thermal control: https://review.coreboot.org/c/coreboot/+/83274/25/src/ec/lenovo/h8/acpi/ec.asl#b334

diff --git a/src/ec/lenovo/h8/acpi/ec.asl b/src/ec/lenovo/h8/acpi/ec.asl
index bc54d3b422..8f4a8e1986 100644
--- a/src/ec/lenovo/h8/acpi/ec.asl
+++ b/src/ec/lenovo/h8/acpi/ec.asl
@@ -331,7 +331,7 @@ Device(EC)
 #include "sleepbutton.asl"
 #include "lid.asl"
 #include "beep.asl"
-#include "thermal.asl"
+//#include "thermal.asl"
 #include "systemstatus.asl"
 #include "thinkpad.asl"
 }

I’m not sure if this is necessary but I hope that this gets fixed upstream if it causes an underlying issue.

Here’s some of thermal.asl’s content which points out that it’s dealing with thermal controls:

#include <arch/x86/acpi/statdef.asl>

Scope(\_TZ)
{
#if defined(EC_LENOVO_H8_ME_WORKAROUND)
	Name (MEB1, 0)
	Name (MEB2, 0)
#endif

	Method(C2K, 1, NotSerialized)
	{
		Local0 = Arg0 * 10
		Local0 += 2732
		if (Local0 <= 2732) {
			Return (3000)
		}

		if (Local0 > 4012) {
			Return (3000)
		}
		Return (Local0)
	}

	ThermalZone(THM0)
	{
		/* Thermal zone polling frequency: 10 seconds */
		Name (_TZP, 100)

		/* Thermal sampling period for passive cooling: 10 seconds */
		Name (_TSP, 100)

		/* Coefficients for passive cooling */
		Name (_TC1, 0x02)
		Name (_TC2, 0x05)

/* Generated by acpigen */
External (\PPKG, MethodObj)

		/* Processors used for passive cooling */
		Method (_PSL, 0, Serialized)
		{
			Return (\PPKG ())
		}

		/* Get critical temperature in degree celsius */
		Method (GCRT, 0, NotSerialized) {
			Local0 = \TCRT
			if (Local0 > 0) {
				Return (Local0)
			}
			Return (127)
		}

		/* Get passive temperature in degree celsius */
		Method (GPSV, 0, NotSerialized) {
			Local0 = \TPSV
			if (Local0 > 0) {
				Return (Local0)
			}
			Return (95)
		}

		Method (_CRT, 0, NotSerialized) {
			Return (C2K (GCRT ()))
		}

		Method (_PSV, 0, NotSerialized) {
			Return (C2K (GPSV ()))
		}
3 Likes

You may be interested in the Heads too
Lenovo ThinkPad T480 with Heads. The CPU sensor works fine, but I cannot see the fan RPM. Perhaps it is an upstream issue. However, it works okay, no throttling, decent performance, so I don’t care.

2 Likes