Conversation

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!

8
10
1

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

my moto e5 doesn't have that problem xD

1
0
0

@valpackett good question heh i have nooo idea,,, this is the "get data" phase, next up is "make it look at all usable" >,<

1
0
0

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

3
6
1

@cas Wait... so we have UEFI, volte, and cameras????? What happened to all the articles saying pmOS could never have those?????? (I might have to get back to daily driving.)

1
0
0

@cas They might not be perfect, but they work. That is what matters in these early stages.

1
0
0
Is there a filter on that, it looks cool
1
0
0

@cas This wouldn't apply to the 6T yet, would it?

2
0
1

@fell might just work, maybe some regulators missing, give it a go

0
0
0
@fell @cas Tried on my 6T and works just fine.
1
0
0

@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!

1
0
0

@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.

3
0
1
Boldy using broken linux camera drivers looks so cool tho. Should totally be a trend.
0
2
1

@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...

2
1
1

@cas This looks like some crazy filter you'd find in a music video now...

0
0
0

@cas Things are much better for the front camera in QCam

1
0
0

@cas According to QCam, it is the imx519 sensor that does not work. The imx371 and imx376 do work.

0
1
1

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

1
0
0

@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.

2
4
0

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

0
0
0

@cas @ollieparanoid @newbyte That looks like those band photo straight from the 90s. 👍

2
0
0
@fell @weirdtreething @cas You probably have 100s of pixels with various levels of "broken". That's cameras, I'm afraid.
1
0
1

@pavel @weirdtreething @fell @cas You have pixels and not just an AI making it all up?!

1
0
1

@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 with, 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.

0
0
0

@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

1
0
0

@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.

0
0
0
@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 :-)
1
0
2

@pavel @weirdtreething @fell @cas I think it was Samsung who just fabricated the entire moon :D

1
0
0

@pavel @weirdtreething @fell @cas But yeah, just throw a DALL-E interface into megapixels, I'm sure people will love that /s

1
0
0

@cas Nice work! But my OP6 doesn't find any cameras. I am on Edge/systemd by the way, don't know if that matters.

1
0
0

@cas @tomasoqvist

Snapshot worked for me as well (and with better results than qcam), although not consistently. Depending on the light situation I get a black image or purple tint (with the front camera). The fix suggested in https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/79523 by @rmader does not really solve the purple tint issue consistently.

2
0
0

@rolandlo @tomasoqvist @rmader@mastodon.social hmmm interesting i wonder why it works for you and not me

0
0
0

@pavel @weirdtreething @fell @cas My desire to commit evil has significantly lessened after I evolved a brain.

0
0
0
@usia @cas Nice :-(. Can you get me some metadata? Which sensor works, resolution, what format does it use? (BGGR8? BGGR10? Something better?) I am using Librem 5, but that only has 8-bit bayer working (and many other problems).
1
0
0

@cas @tomasoqvist @rmader

I'm not using systemd currently though, if that matters.

1
0
0

@rolandlo @cas @tomasoqvist FTR. the only difference that systemd should make here is that it restarts Pipewire if it crashes.

0
0
0

@pavel @usia the front camera and secondary rear cam work. imx371 and imx376k respectively

the front cam is SRGGB10 probs same for the back but didnt check. you can find the sensor drivers here.

would be cool to switch to the ccs driver which i think should support these

https://gitlab.com/sdm845-mainline/linux/-/commits/sdm845/6.13-release?ref_type=heads

1
0
1
@cas @usia Imx371 seems to support only 10bit bayer. (Thanks for pointers!). Ok, that should be improvement over Librem 5. I guess next step is configuring Megapixels and trying to get some real images from it.
2
0
1

@pavel @usia @cas In case of , the front cam already does 10-bit, and you should be able to easily get it to work with lower res on the back cam. The problem is with higher bandwidth requirement of full res mode at 10-bit that AFAIK nobody really looked at and debugged so far. Help welcome.

0
0
1

@pavel @usia some folks in the :postmarketos.org matrix room are already writing megapixels configs

0
0
1

@cas @valpackett Thats going to be 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/20240602201345.328737-1-git@luigi311.com/20240602201345.328737-20-git@luigi311.com/

1
0
0

@cas I am so excited 🤩 For me only the front camera works after reboot for a few seconds until it crashes and rear camera does not work at all but thats an awesome progress 😍
Should I open a bug report or comment under the MR with details or is it too early for that?

1
0
0

@vixalientoots @DrRac27 hmm i see, can you do

`dmesg -n 8`

on a fresh boot, then run "dmesg -w" and note what gets printed when you try to use the camera? annotated logs (so writing about what exactly you did when in the log file) would be super useful

1
0
0

@cas I now have a nice debug file with a call trace. How should I send it to you? Matrix maybe?

1
0
0

@DrRac27 an issue on pmaports would be ideal, but :postmarketos.org also works

0
0
0

@cas
This made me swap from pmOS v24.12 to edge on my daily driver. Amazingly great, I shout praises from the mountain🌄

0
0
0