Status of Ubuntu support for Lenovo ThinkPad X13s

Got new-to-me X13s and took the latest ISO for a spin, here’s my 2c:

  • most things work out-of-box (sound, video, bt, wlan, wwan, decent battery life, etc)
  • ca. 1 hour of uptime the battery service dies, as a fix I tried to apply this
  • sleep is iffy, does not want to resume nicely (or sleep)
  • venus irq randomly starts to eat 100% cpu0 at some point, leading to slightly worse battery life
1 Like

I had that same problem with one cpu getting pinned at 100%, it seems to be whenever I used Firefox or something based on it. Are you on 26.04 or 25.10? I was on 25.10 and upgraded to 26.04 and it seems to have stopped for me at least. You can try using another browser, that’s what solved the problem for me. The other day I installed a streaming app and saw it happening again but after I updated to the new LTS it hasn’t happened again

I tried the daily ISO, 26.04. I’m currently running postmarkOS as it’s better for old grognard user like me (no snaps, no flatpaks, no “AI” in sight, no Gnome hacks) and everything works, kernel 6.18.x with their device specific fixes.

You’re right, it seems like the core pegging is related to changes on 7.0.0 and iris/venus drivers and Firefox and videos, hopefully having this fixed would also fix the overall bad video performance when playing videos. This might also be the reason for the freezes, and not the LLM fix I found on Debian installation instructions. If I have the time, I’ll try the regular ISO at some point to see if it resolves any of the issues.

E: the official 26.04 won’t boot beyond root live fs not found, try network location? view.

Blacklisting venus_end, venus_dec and venus_core modules seems to have redeemed the freezing and 100% cpu on core0. I’d say this is daily driveable as-is.

1 Like

Seconding the above comments; the venus8 modules seem to be causing instant crashes when firefox or gnome decides to do something video-related.

Does anyone know if the venus issue is being tracked upstream? I don’t see anything recent in linux/kernel/media/platform/qcom/venus, or anything in the launchpad bug tracker.

I like Lenovo hardware, a SFF Thinkcentre with two SSD’s and fully populated ram has been my daily workhorse for a few years.

I’m not sure about their actual thoughts on Ubuntu though.
https://www.lenovo.com/gb/en/about/ About half way down - Join Us

Has anyone noticed that battery life in sleep mode (i.e, with the lid closed) is pretty terrible? Considering how quirky the hardware is, I wouldn’t be surprised if we’re missing support for some sleep state or power saving feature. Is this tracked anywhere?

it’s the same on Windows, the Power management has always been hit or miss on Snapdragon Lenovos, like X1E’s
s2idle is very buggy in general, but as the battery is that big, I don’t notice it too much even if likes of 10% battery drain goes in 2 hours or so

1 Like

After upgrading to 26.10, I have to press ESC during the boot process to exit the graphical boot screen. Then it starts up normally and goes to the login screen. Otherwise, it sometimes reboots three or four times in a row because the screen stays black.

@juergh Following up on my earlier posts with results from a clean Ubuntu 26.04.1 install on my 21BX0013US (kernel 7.0.0-38-generic, hwe-lenovo-x13s-meta installed).

Good news: Night Light now works on 26.04. Thank you!

Sound still doesn’t. The TX SoundWire link (3330000) to the WCD938x never comes up (“SWR bus clsh detected”), then “soundwire device init timeout”, and the card fails with -110. The speaker link (3250000) is clean. It’s the same on 25.10, your 6.19 PPA kernel and 26.04, even after a full battery drain. Details and logs:

Does this look like a hardware fault to you? And would leaving the WCD938x links out of the sound card in the device tree be a reasonable way to get just the speakers working?

@juergh Solved! My “no sound” on the X13s (21BX0013US) was a BIOS setting:
Security → I/O Port Access → Microphone was Off. That blocks the WCD938x TX SoundWire link, and the sound card fails as a whole, taking the speakers with it. Setting Microphone to On fixed it on 26.04 (kernel 7.0.0-38). Bluetooth was also switched off there. If anyone else sees “SWR bus clsh detected” on 3330000 and “soundwire device init timeout”, check those switches first. Thanks for your help!

1 Like

Has anyone updated an X13s BIOS past 1.65 without Windows? Lenovo’s USB flash
tool (n3huj25w, BIOS 1.67) runs fine, and the update gets staged to \Persisted_Capsules.bin on the ESP. But after the restart the BIOS never installs
it: no new Capsule#### result records, IsCapsulePendingInPersistedMedia is back
to 0, and the version stays at 1.65. I’ve tried it with Linux Boot on and off, and with both USB and NVMe first in the boot order.

Update on sound support: There’s a now combo (dtb, audioreach topology, alsa ucm config) to support sound via dp out on the type-c dp altmode connection. I have this running and its in my tree and kernels.

I found (one) root cause and workaround for random hard resets on the X13s

If your X13s sometimes reboots without warning (no shutdown, nothing in the logs), typically when the screen blanks after you stop using it (GNOME’s default is 5 minutes of inactivity; see Settings → Power → Screen Blank), or some time after watching a video in the browser, this is likely the cause.

Ubuntu’s venus video decoder driver never requests a voltage for the MMCX power rail. The decoder only gets whatever voltage the display happens to request. On the first hardware-decoded video (on my machine Firefox used venus automatically; check about:support → Media → Codec Support Information), the decoder firmware faults, hangs and floods CPU0 with interrupts. When the screen then blanks, the display stops requesting that voltage and the machine hard-resets. It can also reset during use, or immediately. I confirmed this with controlled tests (holding the rail up makes it go away). Details and logs: Bug #2172673 “[X13s / SC8280XP] venus never votes MMCX: hardware...” : Bugs : linux package : Ubuntu

Check whether you are affected:

sudo dmesg | grep -E 'Unhandled context fault.*cbfrsynra=0x2a00|video core idle fail'
grep venus /proc/interrupts    # run twice: a count rising by ~200k per second means the hang is active

Earlier occurrences (also reads the compressed logs): zgrep -E 'cbfrsynra=0x2a00|idle fail' /var/log/syslog*

Workaround: disable venus (you lose hardware video decoding; video still plays fine in software):

sudo tee /etc/modprobe.d/blacklist-venus.conf <<'EOF'
blacklist venus_core
blacklist venus_dec
blacklist venus_enc
install venus_core /bin/false
install venus_dec /bin/false
install venus_enc /bin/false
EOF
sudo update-initramfs -u
# reboot; afterwards "lsmod | grep venus" should print nothing

Undo once it is fixed: sudo rm /etc/modprobe.d/blacklist-venus.conf && sudo update-initramfs -u, then reboot.

If you are affected, please click “This bug affects me” on the Launchpad bug. That raises its priority.

(The investigation was done with the help of Claude Code, an AI coding assistant; the results were verified with experiments on my X13s.)

1 Like

Newer kernels (7.3.0-jg-5) have this switched to Iris, and at least it won’t crash the laptop. I also have it working (like, actually doing something) on some tests.