Soooo one of the rear cameras and the front camera now work (for some definition of work) on the OnePlus 6?!!

fwiw this was taken in low light

Thanks to the mysterious DrGit who showed up with the patches. Seriously awesome!

OnePlus 6 camera support MR opened

edit2: fixed the MR!

edit: forgot to enable the drivers so this doesn't actually work yet

mrtest it yourself once CI finishes and reply with your own totally epic and cool OnePlus 6 selfies :3

https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6148

Draft: linux-postmarketos-qcom-sdm845: upgrade to 6.13.0 and add cameras for op6 (!6148) · Merge requests · postmarketOS / pmaports · GitLab

Enable all the missing kconfig check options and ship initial camera support so folks can play around with it and start working on the userspace bits.

GitLab
@cas omfggggg what heroism this made my week
@cas Awesome!!! Looking forward to testing this. Does it also apply to the OP6T or do they have different cameras? I use my OP6 as my daily driver on stock Android unfortunately but maybe that will change soon.
@CalcProgrammer1 this is really awesome! as someone who is daily driving a op6t with pmos i can tell you that the last big think, now that the cameras work, which makes daily driving quiet painful is the "call issue" which makes calls quiet unreliable: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/3320 however, sooner or later that will be worked out, too:)
Audio issues during calls with Oneplus 6T (#3320) · Issues · postmarketOS / pmaports · GitLab

Describe your issue What's the expected behaviour? A consistant audio with working Earpiece and...

GitLab
@cas Oh that's awesome! I was about to try out pmos on a oneplus 6, but stopped when I realized that the camera didn't work. Yay!
@cas This wouldn't apply to the 6T yet, would it?
@fell might just work, maybe some regulators missing, give it a go
@fell @cas Tried on my 6T and works just fine.
@weirdtreething @cas Looks like I'm back to daily driving pmOS then! I don't care about the quality. As long as it's good enough to read QR codes I'm in!

@weirdtreething @cas I've never posted a picture of myself on this account, but this is important.
Looks like my front sensor has 3 dead pixels. Acceptable.

#postmarketOS #OnePlus6T

@cas The main camera seems to be stuck in macro mode, but look! Colour!

#postmarketOS

@cas It's even doing video! I don't know why it has been compressed this badly. The compression artifacts certainly weren't there in the view finder.

#postmarketOS

@cas I've seen Android phones take worse pictures.

#postmarketOS

@fell @cas Yeah, this needs further tweaking in Snapshot, currently using the openh264 encoder element with default settings. I.e. we'd need either a setting, possibly with low,mid,high quality presets - or some auto-detection.
Even better would be to make the venus v4l2 encoder more robust so we can re-enable it by default (with much higher quality settings).

See also https://gitlab.gnome.org/GNOME/snapshot/-/merge_requests/228 for some WIP work.

Draft: aperture: Support H264 recorder encoding (!228) · Merge requests · GNOME / Snapshot · GitLab

And enable HW-encoding with VA-API by default in order to roughly follow Gnome-Shell screen recording behavior. Using H264 improves both performance and image quality compared to...

GitLab
@fell @weirdtreething @cas You probably have 100s of pixels with various levels of "broken". That's cameras, I'm afraid.
@pavel @weirdtreething @fell @cas You have pixels and not just an AI making it all up?!
@ozzelot @weirdtreething @fell @cas Apple does that, apparently you get really cool pictures of moon that way. Megapixels is not yet there, I'll put it on the todo list :-)
@pavel @weirdtreething @fell @cas I think it was Samsung who just fabricated the entire moon :D
@pavel @weirdtreething @fell @cas But yeah, just throw a DALL-E interface into megapixels, I'm sure people will love that /s
@ozzelot @weirdtreething @fell @cas Patches welcome :-).
@pavel @weirdtreething @fell @cas My desire to commit evil has significantly lessened after I evolved a brain.
@fell @weirdtreething @cas
Hello, how do you proceed to install it on your OP6 ? I have a OP6 with PmOS2412, what should I do to get this working ? Thanks
@MonetPhil You switch to the edge channel using I think 'postmarketos-release-upgrade edge', and then you use 'mrtest add 6148' to get the modified kernel.
@fell Thanks, I will try.

@cas It works on 6T!!!! Well, 2 of 3 work, one of the Back Cameras did not show anything when selected in Snapshot. For some reason, the front camera is very zoomed in and I couldn't get my whole face in frame. The rear camera is very blurry (guessing due to the lack of focus coil driver) but got the colors of my keyboard a lot better.

Also, on reopening Snapshot, the front camera is now just black and purple with no in between...

@cas This looks like some crazy filter you'd find in a music video now...
@CalcProgrammer1 @cas i have the same issue on my Redmi Note 9S, so not device specific at least!
@cas Things are much better for the front camera in QCam
@cas Keyboard pic from rear camera in QCam
@cas According to QCam, it is the imx519 sensor that does not work. The imx371 and imx376 do work.
@cas Here's my selfie after auto enhancing contrast in GIMP and downsizing it to 500x? via the convert command. Thanks so much DrGit and everyone involved in making it happen. Best birthday present ever! 🙂
@cas PostmarketOS selfies for the win!
- Sent from Tokodon
@cas
I have installed it via `mrtest`, but how do i proceed then?
@chfkch @cas reboot, it's a kernel update
@craftyguy @chfkch yeah reboot then install libcamera-tools and run qcam
@cas
@craftyguy
It is working but i omit the flu-plagued face of mine for the time being 😂
morning from @ollieparanoid @newbyte and myself
Is there a filter on that, it looks cool
@matthewcroughan @ollieparanoid @newbyte nah we just look epic 😎 (camera is pretty bork lmao)
Boldy using broken linux camera drivers looks so cool tho. Should totally be a trend.
@cas @ollieparanoid @newbyte That looks like those band photo straight from the 90s. 👍

@cas what's with the debayering (?) artifact pattern oops

my moto e5 doesn't have that problem xD

@valpackett good question heh i have nooo idea,,, this is the "get data" phase, next up is "make it look at all usable" >,<
@cas @valpackett Thats looks like the PDAF pixels. The PPP had the same issue, you should be able to fix it with something similar to this but you will need the datasheet for the camera sensor to see what values you need to change https://patchew.org/linux/202406022013[email protected]/[email protected]/
[v6] imx258 improvement series | Patchew

@Luigi311 @valpackett oh nice! thx for the info
@cas That's truly awesome!! Looking forward to trying it out!
@cas Big thank you to DrGit 🤩
@cas it finally happened 🎉
@cas yay I'm going to dig mine out! Is it in edge or is it a MR that needs testing?
@cas This is fantastic! Keep up the great work!
@cas This is just awesome! Rear camera and front camera pmOS, OnePlus 6t.