Lenovo ThinkPad T14 Gen 5

Qubes release 4.2.2

Brand:		LENOVO
Model:		21ML005GGE
BIOS:		N47ET16W (1.05 )

Xen:		4.17.4
Kernel:		6.9.7-1

RAM:		32449 Mb

CPU:
  Intel(R) Core(TM) Ultra 5 125U
Chipset:
  Intel Corporation Device [8086:7d02] (rev 04)
VGA:
  Intel Corporation Meteor Lake-P [Intel Graphics] [8086:7d45] (rev 08) (prog-if 00 [VGA controller])

Net:
  Intel Corporation Device [8086:7e40] (rev 20)
  Intel Corporation Device [8086:550b] (rev 20)

SCSI:


HVM:		Active
I/O MMU:	Active
HAP/SLAT:	Yes
TPM:		Device present (TPM 2.0)
Remapping:	yes
Certified:	no

HCL Info

---
layout:
  'hcl'
type:
  'Notebook'
hvm:
  'yes'
iommu:
  'yes'
slat:
  'yes'
tpm:
  '2.0'
remap:
  'yes'
brand: |
  LENOVO
model: |
  21ML005GGE
bios: |
  N47ET16W (1.05 )
cpu: |
  Intel(R) Core(TM) Ultra 5 125U
cpu-short: |
  Intel Core 5
chipset: |
  Intel Corporation Device [8086:7d02] (rev 04)
chipset-short: |
  Intel Chipset
gpu: |
  Intel Corporation Meteor Lake-P [Intel Graphics] [8086:7d45] (rev 08) (prog-if 00 [VGA controller])
gpu-short: |
  Intel Meteor Lake-P
network: |
  Intel Corporation Device [8086:7e40] (rev 20)
  Intel Corporation Device [8086:550b] (rev 20)
memory: |
  32449
scsi: |

usb: |
  4
certified:
  'no'
versions:
  - works:
      'yes'
    qubes: |
      R4.2.2
    xen: |
      4.17.4
    kernel: |
      6.9.7-1
    remark: |
      for WiFi, use Fedora based sys-net
    credit: |
      hildi
    link: |
      https://forum.qubes-os.org/t/lenovo-thinkpad-t14-gen-5/27923

Remarks

  • Installation like the T14 models before but using the newest kernel
  • Wifi works fine with Fedora sys-net (not with Debian) see ThinkPad T14 (gen. 5) failes net qubes and freezes at systemd-hostnamed
  • from time to time you have to restart sys-net after wake-up the laptop
  • videoconferencing with camera and microphone works fine
  • some large monitors seem to work better using USB-C rather than HDMI

Attachments

Qubes-HCL-LENOVO-21ML005GGE-20240728-124620.yml (914 Bytes)

3 Likes

The WiFi card is an Intel AX211?

Looks like a great laptop. How is it running with Qubes?

From the sys-net (Fedora 39) Qube:

[    3.417641] iwlwifi 0000:00:06.0: Detected Intel(R) Wi-Fi 6E AX211 160MHz, REV=0x441

Nice Notbook, works great, so far. Working with:

  • Wifi
  • LAN
  • Webcam
  • Keyboard
  • Touchpad
  • HDMI
  • external Headset

Untested:

  • WWAN
  • Microphone
  • Card-Reader

Ultra-Wide-Monitors seam to work better via USB-C, rather then HDMI.

Clear recommendation!

Hello,

Do you have and use a Thunderbolt dock with this laptop? I tried a different ThinkPad and using the (ThinkPad) Thunderbolt dock killed all input including the built-in keyboard and trackpoint, rendering the laptop unusable. If Thunderbolt works on this laptop with Qubes I might pick one up.

Thanks,

At work I’m using a monitor with Thunderbold. At home I’m using a small Thunderbold adapter with HDMI, USB-A which works fine. Using the build-in HDMI just gives me 16:9 resolutions. Using the Thunderbold adapter 32:10 works out of the box.

So, from my point of view Thunderbold works great with this ThinkPad under Qubes OS.

Hi hildi. I got T14 i7 155 ultra. You got some tips for suspend ? Lenovo dont wont use S3 susspend :frowning: only s0ix)

---
layout:
  'hcl'
type:
  'Notebook'
hvm:
  'yes'
iommu:
  'yes'
slat:
  'yes'
tpm:
  '2.0'
remap:
  'yes'
brand: |
  LENOVO
model: |
  21MMSBBJ00
bios: |
  N47ET21W (1.10 )
cpu: |
  Intel(R) Core(TM) Ultra 7 155H
cpu-short: |
  FIXME
chipset: |
  Intel Corporation Device [8086:7d01] (rev 04)
chipset-short: |
  FIXME
gpu: |
  Intel Corporation Meteor Lake-P [Intel Graphics] [8086:7dd5] (rev 08) (prog-if 00 [VGA controller])
gpu-short: |
  FIXME
network: |
  Intel Corporation Device [8086:7e40] (rev 20)
  Intel Corporation Device [8086:550b] (rev 20)
memory: |
  15881
scsi: |

usb: |
  4
certified:
  'no'
versions:
  - works:
      'FIXME:yes|no|partial'
    qubes: |
      R4.2.4
    xen: |
      4.17.5
    kernel: |
      6.12.11-1
    remark: |
      FIXME
    credit: |
      FIXAUTHOR
    link: |
      FIXLINK

Remarks

Secure Boot and Kernel DMA protection off in BIOS.

Attachments

Qubes-HCL-LENOVO-21MMSBBJ00-20250313-063841.yml (826 Bytes)

2 Likes
---
layout:
  'hcl'
type:
  'Notebook'
hvm:
  'yes'
iommu:
  'yes'
slat:
  ''
tpm:
  '2.0'
remap:
  'yes'
brand: |
  LENOVO
model: |
  21ML0046PB
bios: |
  N47ET22W (1.11 )
cpu: |
  Intel(R) Core(TM) Ultra 7 155U
cpu-short: |
  FIXME
chipset: |
  Intel Corporation Device [8086:7d02] (rev 04)
chipset-short: |
  FIXME
gpu: |
  Intel Corporation Meteor Lake-P [Intel Graphics] [8086:7d45] (rev 08) (prog-if 00 [VGA controller])
  Intel Corporation Meteor Lake-P [Intel Graphics] [8086:7d45] (rev 08) (prog-if 00 [VGA controller])
  Intel Corporation Meteor Lake-P [Intel Graphics] [8086:7d45] (rev 08) (prog-if 00 [VGA controller])
  Intel Corporation Meteor Lake-P [Intel Graphics] [8086:7d45] (rev 08) (prog-if 00 [VGA controller])
  Intel Corporation Meteor Lake-P [Intel Graphics] [8086:7d45] (rev 08) (prog-if 00 [VGA controller])
  Intel Corporation Meteor Lake-P [Intel Graphics] [8086:7d45] (rev 08) (prog-if 00 [VGA controller])
  Intel Corporation Meteor Lake-P [Intel Graphics] [8086:7d45] (rev 08) (prog-if 00 [VGA controller])
  Intel Corporation Meteor Lake-P [Intel Graphics] [8086:7d45] (rev 08) (prog-if 00 [VGA controller])
gpu-short: |
  FIXME
network: |
  Intel Corporation Device [8086:7e40] (rev 20)
memory: |
  65033
scsi: |

usb: |
  4
certified:
  'no'
versions:
  - works:
      'FIXME:yes|no|partial'
    qubes: |
      R4.2.3
    xen: |
      4.17.5
    kernel: |
      6.12.9-1
    remark: |
      FIXME
    credit: |
      FIXAUTHOR
    link: |
      FIXLINK

Qubes-HCL-LENOVO-21ML0046PB-20250124-151244.yml (1.5 KB)

Remarks

BIOS:
Disabled Intel ME (HAP kill switch)

VIDEO:
Working GPU SRIOV with patched kernel intel module, working DRM on VM-s witch debian-13-template. Playing 8K videos and games like 0ad. OBS Studio working nice

NETWORKING:
Work with kernel-latest and new intel-firmwers

SLEEP:
No S3 support. S0ix only (Lenovo what are you doing!). After some modyfications 1-3W in sleep state

Intel NPU:
Working great after upgrading new firmwer files from intel site. ONNYX/pytorch working nice.

External Monitor wokrs stable over HDMI port or USB-C

Attachments


4 Likes

I hope there will be a guide on how to replicate setup like that. (specially how to get SR-IOV working in qubes os)

Each of the following successes deserves a guide on how to replicate it.

  1. How to get intel sr-iov working on Qubes OS?

  2. How to passthrough intel NPU to a VM so it can be used and get it to work correctly. (I currently have novacustom v54 laptop, witch have the same generation of CPU, and I file to get the driver for NPU to work corectly)

  3. How do you disable Intel ME on lenovo laptops? Did you make a custom bios somehow? (I do not thing this laptop is suported by coreboot and default lenovo bios definitively does not have thet feature)

2 Likes

Yes. If i have some free time. I lost two mounth for replace my old x230 setup too new reality. I will write how to do if anyone have to intrest.

You must compile kernel module witch SR-IOV, for dom0 and HVM template (this will be on next kernel releases) GitHub - intel/linux-intel-lts: Intel LTS kernel

NPU works out of the box after some modification. (Firmware files in on the Intel site). I dont too much time testing Pytorch or ONNX. But backgrond remover in obs studio working great.

No. I didint write a BIOS. Simply. Dump flash and set HAP bit. Write flash.

3 Likes

Sounds great! A guide would be really awesome!

1 Like
1 Like

+1 on a request for the guide.

I need your help, @1x3n1x. So far you’re the only person that I’ve seen successfully configure Intel SR-IOV support inside of Xen / Qubes. So having your guidance will greatly help the community.

A couple of questions:

  1. Are you compiling the kernel module inside of dom0 or are you compiling it on a guest VM and then copying it back over to dom0?

  2. Are you using DKMS?

  3. Do you have have to change any kernel flags prior to compiling DKMS? What patch are you applying in order to get it working?

1 Like

How useful is SR-IOV, can you use it for anything else then video decoding?

Are you appVMs not using the Qubes OS xorg driver?

1 Like

Yes. I will using it witch NPU+GPU in AppVM for AI purposes or games like 0ad. Or in another sys-ai to share model to all vms. Xorg qubes-dummy + intel GPU

1 Like

In my free time I write a manual and how I did it step by step. I experimented a lot with the code and I have to put it into one coherent whole. It is mainly used for Intel Meteor Lake. I compiled the kernel module directly in dom0 patch+official intel source code. For now I experiment a lot with it but initially the SR-IOV performance with NPU+GPU is comparable to the installation from Ubuntu 22 for llama or ollama.

2 Likes

Sharing this with the community would be extremely helpful. Based on the feedback I have received from the core developers, experiments with that driver and SR-IOV resulted in frequent crashes. Since Intel stopped developing SR-IOV in i915 driver and focused on xe driver instead which did not have full SR-IOV at the time of testing. There was a commit enabling it for Panther Lake chips which isn’t available yet.

1 Like

At the moment. I am testing the settings in my laptop (T14 gen5) and intensive work with GPU + NPU. The only problem is that s0ix is ​​not fully supported. I have never had any stability issues with the GPU in MeteorLake. When I intensively use OBS Studio as a virtual camera + MS Teams, nothing has ever hung. I talk for a few hours and at the moment I am rubbing my eyes in amazement. Perhaps when switching from x230 I have been hit by a technological abyss. Qubes 4.2 still has xen in version 4.17 and lack of full CPU support. For now I am testing 4.2 but I want to move it to 4.3 due to new versions of xorg and mesa. At the moment both xe and i915 do not have full GPU support in dom0. I will transfer everything to Qubes 4.3 and maybe the big problem is fedora37 with which I do not have much experience.

2 Likes

In free time I will create a github account and try to send as much information from tests as possible. Maybe the programmers will help to clarify a few issues. I got stuck with the MeteorLake system documentation. I also had a lot of problems with putting the i915 to sleep with SR-IOV enabled. The main advantage of SR-IOV is definitely the GPU performance in AppVM compared to GVTg. In fact, when sharing GPUs on AppVM, GVTg is much easier. For now I want to transfer everything to Qubes 4.3 unless someone suggests how to force dom0 to update to 4.3

2 Likes

I did this a long ago. It was not straight forward. Transferring would be much easier.

1 Like