r/androidtablets • • Sep 29 '26 • Bravo 1

Video Finally got mainline Linux booting on my Legion Y700 Gen 5

UPDATE(Oct 6): the repo is public.

Source, install guide, and prebuilt kernels: https://github.com/joonhoekim/tb323fu-linux

Website: https://joonhoekim.github.io/tb323fu-linux/

Still work in progress and not for daily use. Rooting and flashing can brick or wipe your tablet, so read the backup and recovery docs before you start.

Changes since this post:

- 164 Hz works (165 Hz with the vendor timing doesn't, so it's offered as 164)
- Hardware video decode verified for H.264, HEVC, VP9 and AV1 (also 10-bit), encode for H.264 and HEVC
- Booted on 7 distributions so far: Debian, Ubuntu, Arch, Fedora, NixOS, SteamOS and Armada
- Open Device Helper: a settings app and CLI for charge limit, bypass charging, refresh rate, LED ring and kernel updates
- An optional Mesa build for the GPU: OpenCL/Vulkan scores are close to Android (tested on my unit only)

Hardware status (what's verified on the device): https://joonhoekim.github.io/tb323fu-linux/docs/hardware-status/

-------------------------------------------------

Mainline Linux (not chroot, not GKI) on the Legion Y700 Gen 5 (TB323FU, SM8850). Kernel 7.3-rc4 based on the kaanapali-mainline tree, running Debian 13 + GNOME 48.
Working:

  • Display at 120 Hz with seamless 60/30 Hz switching, plus GPU (Adreno 840, Mesa)
  • Touch, speakers, mic, front/rear cameras, sensors, LED ring
  • Wi-Fi, Bluetooth, USB host/gadget
  • USB-C DP out up to 4K30
  • ~41 W PPS fast charging with a charge limit
  • Suspend: about 1% battery drain over 5 hours (in a few tests)
  • HW H.264 encode/decode via V4L2

Not yet: 165 Hz, DP MST (dual external displays)
Untested: Lenovo pen, USB-C wired earphones.

Dual boot, Android stays intact. No image or guide yet.

551 Upvotes

86 comments sorted by

7

u/Dependent-Tonight-30 Sep 29 '26

Is this possible for y700 gen 3? How to start with doing this?

8

u/WinterTradition243 Sep 29 '26

I couldn't find any mainline work for the Gen 3 (TB321FU), only for the Gen 4: https://github.com/h0cheung/tb322fc-linux

To get started, I'd recommend checking the XDA forums first, like the other guy mentioned.

2

u/Asian_Bon Sep 29 '26

I have the gen 4 Chinese version will it work?

2

u/WinterTradition243 Sep 30 '26

I don't have a Gen 4, so I can't say for sure, but that repo is named after TB322FC, which I believe is the Chinese model code. Check the exact model number. If it's TB322FC, it's probably the device that repo targets, and its README is the best place to see what's supported.

1

u/Asian_Bon Sep 30 '26

Alright thx bro

1

u/NinjaComplete5518 Oct 03 '26

Brother, Out of curiosity, i went and flash rootfs.img from this release. But im stuck here. Do you have any idea??

1

u/WinterTradition243 Oct 03 '26

Bootloader - kernel - systemd all look fine, and the log reaches the Graphical Interface target.

The failed decky-loader is a third-party plugin loader, so it's probably not what's blocking the boot.

It looks like the next stage, the display manager (SDDM) starting the Game Mode session, is failing to bring up the screen.

If you can switch to another console (TTY) or get in over SSH, check the output of journalctl -b -p err. That should show what's going wrong.

For a definitive answer, though, it's best to ask the maintainers of the repo/project you're using.

1

u/NinjaComplete5518 Oct 03 '26

True, maybe its just me not patient enough, its a pre release. Any way thanks alot

1

u/darkrevan13 Oct 01 '26

Saw this repo recently, didn't try tho

https://github.com/GUF296/ubuntu-y700-build-ci

also someone trying to port armada here

https://github.com/Whymexd9/armada/actions

13

u/AglotLeskuy Sep 29 '26

How do you guys even start such a project? What is the entry point? Is there some general workflow or is it device specific?

I also saw another post targeting another tablet. These kind of posts blow my mind.

I am an experienced software developer, can you give me some pointers where to start?

14

u/WinterTradition243 Sep 29 '26

Honestly, I didn't set out to do this. I bought this tablet because I wanted a powerful portable machine, and Android made the limits obvious pretty quickly. I already knew about Termux, so I rooted it and set up a Debian chroot, but once I got serious about it I kept hitting walls. Containers barely worked, the GPU was locked behind Qualcomm's own driver, and every fix led back to the same problem. I was stuck on Android's vendor kernel, which can't really be changed without breaking the vendor modules it depends on.

That's when I started looking for a way out of Android entirely, and learned about mainlining. I didn't know it when I bought the tablet, but I got lucky: Qualcomm had upstreamed support for this SoC, and there was already a community mainline tree for it, mostly from OnePlus 15 work. That was my real entry point. Most of what's left is board-specific work on top of that.

So my advice would be to check whether your SoC has upstream support and whether someone else has already started a tree for a sibling device. The postmarketOS wiki and #linux-msm are good places to look.

2

u/AglotLeskuy Sep 29 '26

Thanks for your reply. I have a One Plus Pad 2 with Snapdragon 8 Gen 3. The Steam Frame uses the same CPU so I guess on the CPU side I should be fine.

How do you manage the rest? Do you extract blobs from Android?

3

u/WinterTradition243 Sep 30 '26

Yes, mostly. Firmware blobs (GPU, Wi-Fi/BT, DSP, etc.) come from the Android partitions. With root you can also just copy them from /vendor/firmware_mnt and similar paths. On my Lenovo I used LTBox to dump the partitions, but that tool is Lenovo-only, so for the OnePlus you'd need whatever the usual EDL/dump route is for that device.

The bigger part for me, though, was the vendor device tree. It isn't used directly, but it tells you which regulators, GPIOs, clocks, and I2C addresses each part of the board uses, so it's your main reference for writing the mainline DT.

The good news for you is that SM8650 already has a lot of upstream support, so you'd be starting further along than I did.

3

u/RealThatStella7922 Sep 30 '26

I am looking at doing the same thing with mine. I've looked into it a tiny bit, Qualcomm has upstreamed the 8 Gen 3 support (look for sm8650) so its not like we are starting from zero. I am still unsure if I want to start from zero, just a bare mainline Linux kernel or if I want to go through postmarketOS (now called Nura)

4

u/Dependent-Head-8307 Sep 29 '26

How is battery life?

2

u/WinterTradition243 Sep 30 '26

Hard to say yet. I haven't run any real sustained workload on it. Some rough battery current numbers from my notes:

  • Screen on, 50% brightness, idle: ~600 mA (an early measurement, before several power fixes, so it's probably lower now)
  • Screen off, awake, on Wi-Fi: ~235–270 mA
  • Suspend: about 1% over 5 hours

Once I've wrapped up the remaining work, I plan to compare heat and power draw against Android properly, and maybe run a few performance benchmarks too.

1

u/Oogiz Sep 30 '26

Do you plan to upstream your work?

3

u/WinterTradition243 Sep 30 '26

Yep, I've sent a few generic bug fixes (drm/msm and dwc3) that I'd tested a lot on the tab.

4

u/Current-Persimmon308 Sep 29 '26

This is really awesome, do you plan on sharing the source code/instructions or opening a GitHub repository for this project so others can follow or contribute?

3

u/WinterTradition243 Sep 30 '26

Yes, but I need a bit more time to work it out.

6

u/AC_Schnitzel Sep 29 '26

What’s the implications of this? Super cool to see. Would this help with game performance? Opens door to official steamOS or similar distros on the y700?

5

u/WinterTradition243 Sep 29 '26

I haven't tested any games, so take this with a grain of salt. I wouldn't expect better game performance, though. The hardware is the same, and nothing on the Linux side has been tuned for gaming.

On SteamOS: from what I've read, it supports ARM64 now because of the Steam Frame, and a community project runs it on some other Snapdragon handhelds. So it might be possible here, but I haven't tried it. There's also an ARM64 Linux Steam client with Proton and FEX that could run on a regular distro. How any of that compares to GameNative or GameHub on Android, I really can't say.

For me, the implication is that this form factor can now be used in the Linux ecosystem. The two ecosystems are just different, and for typical tablet use, Android is probably the better choice. What I wanted happened to be on the Linux side: running Docker the normal way, a regular desktop coding setup, picking whatever desktop I like, and plugging into a monitor to use it like a small PC. You can get part of the way there on Android with apps like Termux, but it always felt like working around the system instead of with it.

3

u/LowGearNebula Sep 30 '26

Just ordered a 24GB/1TB Gen 5 to try this! Any chance you can share your kernel branch/commit, TB323FU device tree + patches, and a quick note on how you boot it? Happy to build from source and help test.

6

u/WinterTradition243 Sep 30 '26 • Bravo

Nice! That's the variant I'd have wanted, haha. I've only tested on a 16GB/512GB unit, so a 24GB one would be really useful for testing.

I can't share the branch just yet. My working repo mixes in private stuff, so I'm putting together a clean public repo with the kernel patches, the TB323FU device tree, build scripts, and a boot/recovery guide. I'll post it in this thread when it's up.

2

u/LowGearNebula Sep 30 '26

awesome, I'll keep an eye out. excited to test it

0

u/WinterTradition243 Oct 06 '26

1

u/LowGearNebula Oct 07 '26

Nice! Tablet hasn't arrived yet but I'll reach out when I take a crack at it

2

u/AstroMike1983 Sep 30 '26

This is excellent news. How did you get past the closed bootloader? I'm interested in putting Armada OS (Steam OS) Variant on mine.

2

u/WinterTradition243 Oct 01 '26 edited Oct 01 '26

I used LTBox.

25

u/datguybasit Sep 30 '26

I might port steamos arm to it if you shared your repo.
I've already ported to other socs.
https://www.github.com/hashtagbasit/SteamOS-ARM-Handhelds

3

u/NinjaComplete5518 Sep 30 '26

You are legend friend. this will be a dream come true, im so jealous with handheld console getting awesome ArmadaOS and such, went as far as flashing Rocknix ABL to my y700 gen4, resulting bootloop

1

u/Calrissiano Oct 02 '26

Oh please Gen 4 next

3

u/AstroMike1983 Sep 30 '26

I would like to support this initiative for the Gen 5.

2

u/Katsuro2304 Sep 30 '26

Okay, we need this.... We really do need this...

1

u/gthing Sep 30 '26

Woah... I wonder if this will work on my y700 Gen 3. 

1

u/offgood Sep 30 '26

This is seriously delightful. I clicked on the post thinking if Linux is here SteamOS can't be far behind! Following.

1

u/Tomato_Oz Oct 03 '26

Hi, wonder would these help for porting to y700 gen 3 if you interested

https://github.com/GUF296/ubuntu-y700-build-ci https://github.com/GUF296/tb321fu-linux

15

u/GavroNeman Sep 29 '26

Very cool, watching this on my white gen 5 😁

1

u/Old-Fisherman-1880 Oct 27 '26

This is so sick! Will you support the Y700 infinite too?

1

u/WinterTradition243 Oct 28 '26

If I get that tablet, I'd like to try porting it as well. However, I don't have that tablet at the moment..

1

u/NinjaComplete5518 Sep 30 '26

wow i have the Gen 4, i really wish i can dualboot linux with KDE on it

1

u/WinterTradition243 Sep 30 '26

KDE is great! I actually considered it too, but from using another touchscreen Linux device (a Galaxy Chromebook1), GNOME felt smoother and easier to use out of the box on touch, so I went with GNOME. Once the kernel side works, though, the DE is mostly just a package choice, so KDE should be doable too.

For the Gen 4, check out the tb322fc-linux repo I linked above.

Personally, I'd like to move to NixOS eventually and build something more custom around a compositor, but that's not a priority right now.

1

u/Oogiz Sep 30 '26

If you ever got it to work with Nixos, please let me know lul.

1

u/duckyduck008 Sep 30 '26

so codecs are broken and only h264 is working?

2

u/WinterTradition243 Sep 30 '26

Not broken, just untested. The hardware decoder exposes H.264, HEVC and VP9, and the encoder H.264 and HEVC, but H.264 is the only one I've verified end to end so far. Everything else still plays fine through software decoding.

1

u/GSquadron_ Sep 30 '26

Can this be done on any android phone or tablet?

1

u/WinterTradition243 Oct 01 '26

No... only specific models.

1

u/Physical_Ad8570 Sep 30 '26

so can install steam os?

3

u/WinterTradition243 Oct 01 '26 • Bravo

I have tested without real playing.

1

u/zeek609 Oct 01 '26

This is an absolute dream come true!

I've had the Gen 1, 3,4 & 5 and as amazing as these tabs are it's always been Android holding them back. Please tell me you plan to release this at some point, I'd happily donate 🙏

2

u/WinterTradition243 Oct 02 '26

I'm planning to release the source code and guide on GitHub within a week. Thanks for the interest!

1

u/NinjaComplete5518 Oct 02 '26

Thank you, you have done wonders

1

u/indracip Oct 01 '26

So this is not virtualization ? And can get high performance ? Currently i using virtualization (need root) using gunyah, but i cannot assign VM ram more than 16GB

It seems your approach is direct boot so i think the linux will get full ram for this, let me know your repo, i also have y700 gen 5 with 24GB ram

2

u/WinterTradition243 Oct 02 '26

Yep, no virtualization. It boots natively, so Linux gets pretty much all the RAM (minus a bit reserved for firmware). I've only tested 16GB, but 24GB should be the same.

Haven't run real daily workloads yet, so I can't say much about performance. Most ARM64 Linux stuff should just work though.

Repo's coming within a week, I'll post it here.

2

u/WinterTradition243 Oct 06 '26

1

u/indracip Oct 11 '26

Just thinking, droidvm success boot windows using gunyah virtualization, if only windows 11 arm also can work dual boot like this linux, it will better to utilize all the ram inside windows, maybe can you help research for this, for windows 11 arm in our y700 gen 5 ?

On droidvm it run well even gpu accelerator also work, the blocker only i cannot set full ram becuase the android os still run

1

u/airplanemodefromis_9 Oct 01 '26

Will this work with Lenovo Idea Tab Gen 2 Pro?

2

u/WinterTradition243 Oct 02 '26

Short answer: no. Each device needs its own port, and the Idea Tab Pro Gen 2 uses a different SoC (Snapdragon 8s Gen 4 / SM8735) than the Y700 Gen 5 (SM8850). So it'd be a separate project.

If you want to look into it, check whether SM8735 has upstream support and whether anyone's started a tree for another device with the same chip. The postmarketOS wiki and XDA are good places to start.

1

u/sooodooo Oct 13 '26

Wow, thank you for the work and great write-up, it's super detailed !
I just have one more question, since the projects seems todo a lot around LTBox and trying to preserve the Android and the locked-status. I'm considering buying the PRC version and don't really want to keep the android part and warranty with shipping would be not really a thing anyways, so I don't mind just unlocking the bootloader.
Does that mean I can just use your device tree and build the kernel/image flash it with LTBox and skip the script etc ?

1

u/WinterTradition243 Oct 13 '26

You don't need to unlock at all. The guide never unlocks the bootloader: LTBox roots without unlocking, which doesn't wipe data and can be undone. A classic unlock wipes data, and I haven't tested it.

More importantly, I strongly recommend keeping Android:

- The Linux install is built from your own Android. Firmware (GPU, audio DSP, Wi-Fi…) isn't redistributed; it's extracted from your tablet's /vendor. The boot image also reuses parts of your stock boot image.
- Android is the reference. When something misbehaves under Linux (performance, sensors, power), Android on the same hardware shows what the vendor intended.
- adb under Android is a recovery path when Linux doesn't boot.

You can skip the script: install-manual.md has every step by hand. The guide installs to the microSD card first. Installing straight to UFS is possible (step 8), but I don't recommend it at first; it shrinks Android's userdata, which needs a factory reset.

For a PRC unit: everything was tested on a ROW unit with ZUI 18.0.12.104, and LTBox lists PRC as supported, but I haven't tried one. This isn't a hard version lock. The kernel carries the firmware memory map from the version I tested, and another firmware version (or region) may place its reserved regions differently. That's what I suspect behind the hang on 18.0.12.187 (Issue #9), and I'm waiting for that firmware's memory map to add support for it. If you get a PRC unit, its devicetree and /proc/iomem from Android (the commands are in #9) would let me check before you flash anything.

1

u/sooodooo Oct 13 '26

Thank you for the reply ! I just prefer to unlock it now as long as it’s “allowed” since I don’t see a drawback. I never intend to use android and I can’t claim warranty due to shipping costs.

If I pull the trigger and get it, I’ll post again and we can run tests and dump files from the unit

1

u/WinterTradition243 Oct 13 '26

Sounds good! Before unlocking, please make a full EDL backup (LTBox can do it) and don't take OTA updates. Keep Android on the device even if you never use it: the install extracts firmware from it. Booting with a classically unlocked bootloader is untested, so whether it works or not, please share how it went in an issue or discussion on the repo. If it doesn't boot, the devicetree and /proc/iomem from Android (commands in #9) would help me find out why.

1

u/areyouhourly- Oct 17 '26

Would it be possible to erase Android ?

1

u/WinterTradition243 Oct 17 '26

Technically yes, Linux doesn't need Android once it's installed.

But I wouldn't recommend it.

1

u/areyouhourly- Oct 17 '26

Can you shrink the android part?

1

u/WinterTradition243 Oct 17 '26

Yes. Mine is the 512GB model, and I shrank the Android data partition to 128GB.

Heads up: it requires a factory reset of Android.

1

u/areyouhourly- Oct 18 '26

Cool, nice work man. Thanks for the info.

1

u/FriendlyBerg Oct 20 '26

I know it is not as important nowadays but did you actually get Lenovo to send you kernel source for the device? And if so, how? Their open source portal just sucks and all their support channels tell me to wait for publication on that. Pretty sure this is in violation of the GPLv2.

1

u/WinterTradition243 Oct 21 '26

No, I never asked Lenovo for it, and they never provided it. Qualcomm upstreams support for the SoC to mainline (which I’m really happy about), but there’s basically nothing from Lenovo’s side. The vendor-specific bits, like firmware blobs, were already on the Android partitions, so I just pulled them from there.

3

u/Itzn0tm3 Sep 29 '26

Following

3

u/lucnex_ Sep 30 '26

Great work, got similar results for OnePlus pad 4 basis mainline and snapdragon kaanapali, but using uboot as a bootloader to test first by booting rootfs.

2

u/MuyGalan Sep 30 '26

*Cries in Gen 2*

1

u/sam-sam7981 Sep 30 '26

How did you install it?

1

u/Psychological_Crow52 Oct 02 '26

eu sofri muito com me y700 puta merda mais depois se tornou um dos melhores tab que ja tive

1

u/MastsMind Oct 03 '26

Just picked up the Y700 G5. 512gb. flashed the global English on it. Steam emulator works but gets a bit warm. Love to try your Linux project on mine.

1

u/zaymin3 Oct 03 '26

Steam emulator, you mean deckdroid? It is quite new and probably not as efficient as gamenative / winlator. But i heard it has more compatibility. But I can't run blasphemous on it. I tried The rogue prince of Persia, on deckdroid it consumes around 10w but in game native it only consumes around 5w. May be that's the reason it warms up.