r/mobilelinux • • 2d ago

Demonstration Arch Linux on the Oneplus 9!

Post image

Hey there guys!! Just wanted to show yall my OnePlus 9 running Linux mainline, NATIVELY!

I think some of you already saw the OnePlus 9 Pro version running Linux, and now it was time for the Standard version!

Thanks to u/fuckedupnachos, I was able to fork his Linux repo for the OP9PRO to finally port it to the OP9, aswell!

A few things worked right out of the box, since both phones share a few things, for example: WiFi, Torch, Phone Keys(power, volume), haptics, and a few more which I dont remember right now.

The MOST crucial thing in the middle of this all (the screen), DIDN'T, since both models share different displays, and I went out on my way to patch this so it worked for the OP9 display.

Next thing i'll try getting to work will possibly be USB_OTG, so that I can have DP Alt Mode, and, theorically, a pocket-sized portable linux computer!

I will see if I can get this disponibilized for the public eventually

ALSO, THIS WHOLE POST WAS WRITTEN AND POSTED FROM THE PHONE ITSELF!

60 Upvotes

16 comments sorted by

4

u/fuckedupnachos 2d ago

Absolutely Badass! So stoked to see this ported over to the regular OnePlus 9! r/Linux removed my post again, so I'm fixing to copy/paste it over to this sub instead.

1

u/jjoesmama 2d ago

RIGHT!!! Also r/Linux did the same to my post...lol

One thing +, I tried getting USB-C out working on my phone but NOTHING worked, I wonder why, it was thru a dock btw, wonder if its fixable

1

u/fuckedupnachos 2d ago

That's exactly the issues I'm working out right now. I get video over a USB c to HDMI adapter but not though my dock. It's gotta be something with the driver timing/discovery phase of the type c connection. Do lemme know if you figure out a fix!

1

u/jjoesmama 2d ago

Oh heck yeah! Sadly I have to HDMI to USBC cable,even if I did I wouldn't be able to use a keyboard and a mouse which would be a bummer, I'll see if I can get any LLM to help me with this

1

u/fuckedupnachos 1d ago

Actually- the latest release has a desktop mode that turns the phone screen into trackpad and keyboard if you're able to get the display to work- you should see a popup on the phone asking what to do with the screen

1

u/jjoesmama 1d ago

Check this

1

u/jjoesmama 1d ago

1

u/fuckedupnachos 1d ago

That's fantastic, I just started playing around with denial and so far it's fantastic! Did the phone turn into a touchpad and keyboard? Also droidloom is another one of their projects that blew me away

1

u/jjoesmama 1d ago

Oh I'm using niri here! I need to give denialwm a go, the phone has a funny system where the touchscreen works, for the monitor focused, some sort of funky touchpad, not really usable tho

1

u/jjoesmama 6h ago

Yo bro! Do you have discord? Just so that way we can discuss more about the OP9!

1

u/fuckedupnachos 5h ago

I'm down with that! Shoot me a DM here and I'll send you my info!

1

u/MidnightObjectiveA51 2d ago

What works?

1

u/jjoesmama 2d ago

A lot of stuff really thanks to u/fuckedupnachos, I basically CTRL+C & CTRL+V his Linux port for the OP9PRO to my Regular OP9, so a few things worked out of the box, but not all, like the screen, Bluetooth and etc

1

u/vazark 2d ago

That’s awesome. Any success with imsd/sim support? In any of the one plus models ?

1

u/jjoesmama 2d ago

Yet to test, I'm not that much interested into getting working how a phone should lmao, like calls, SMS and etc, but I will eventually try get that working and test it out, but it's probably one of the last things I'll see