[#]postmarketos just landed an update for the #pixel3a enabling the rear camera \o/
That, AFAIK, makes it the first #exandroid (close to mainline kernel) device were both cameras work OOTB.
To set expectations right here: there's still a lot of work in various components in the stack before the camera experience comes even close to what you get on the same devices running Android (kernels).
Short comparison with my Pixel 6a running #lineageos - the rear cameras on both devices use the IMX363:
=> View attached media | View attached media | View attached media | View attached media
=> More informations about this toot | More toots from rmader@mastodon.social
Notably focus is missing on the Pixel3a rear camera - and the image is zoomed because we're still figuring out the right register values for the mode used by default by Gnome Camera / Snapshot (1080p).
=> More informations about this toot | More toots from rmader@mastodon.social
@rmader the last two images are amazing, they are so crisp and almost readly-like looking...
=> More informations about this toot | More toots from lw64@chaos.social
@lw64 Not sure if I missed the ironie but to prevent any misunderstandings: the last two images were done with Android, with hardware ISP, propr. drivers etc. and represent the rough goal where we want to get to, not where we are ;)
=> More informations about this toot | More toots from rmader@mastodon.social
@rmader ohh, I am very disappointed xD
still, we will get there eventually!
=> More informations about this toot | More toots from lw64@chaos.social
@rmader that's great ! Thanks ...
Is there a summary on what is needed to make it work ?
I installed snapshot and upgraded pmos ...
After installing xdg-desktop-portal-gnome it does not complain about not finding the camera portal
But now it says it can't connect to pipewire (I'm not yet familiar with it)
Seems I have to install the whole pipeline ;) I'd prefer not have to do archaeology ... thanks
Megapixel shows front camera but closes if I want to switch or take a photo ...
=> More informations about this toot | More toots from fdlamotte
@rmader If I can make it work, it will go directly in the sxmo on p3a wiki page ...
=> More informations about this toot | More toots from fdlamotte
Camera section started with what I have (not much for now ;))
https://wiki.postmarketos.org/wiki/Sxmo:Pixel3a#Camera
I might want to dig into this when I'm ok with calls ... don't know yet if i'll go #megapixels or gnome-snapshot ...
=> More informations about this toot | More toots from fdlamotte
@fdlamotte Hey, I'm a bit surprised that it doesn't work OOTB yet, however I guess what you'll want to use is xdg-desktop-portal-gtk instead of the gnome one (see also https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/5643). The Pipewire stuff should already be there since https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/5091
Note that having the PW stack running means that a bunch apps can use it, including Firefox, so even if you use megapixels as main camera app (and there are good reasons for that) you still want the stack to be in place.
=> More informations about this toot | More toots from rmader@mastodon.social
@rmader good point ;)
I might do both ...
=> More informations about this toot | More toots from fdlamotte
@rmader indeed, everything was already there ...
At least I had libcamera, gtk-portal, pipewire and wireplumber
I think it is just not setup or run ... When I start wireplumber after manualy launching pipewire, I get a log that refers to the two cameras ... But then snapshot won't connect ...
edit : Only one camera on the screenshot ... I'm sure I saw both at some point
=> More informations about this toot | More toots from fdlamotte
@fdlamotte Uh, the last bit suggests something doesn't work with udmabuf (see https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/5541).
Looks like the KERNEL=="udmabuf",TAG+="uaccess"
part doesn't work on SXMO?
=> More informations about this toot | More toots from rmader@mastodon.social
@rmader
Is that an udev rule ? Don't have any ...
=> More informations about this toot | More toots from fdlamotte
@fdlamotte Yeah, please have a look at that MR - essentially you need something to give your user write access to /dev/udmabuf ~~/dev/urandom~~ (you can just chown it for testing)
=> More informations about this toot | More toots from rmader@mastodon.social
@rmader
ok, I've done "chmod 777 /dev/udmabuf" ;)
I now have an image in snapshot !
Front camera gives black image
Rear works
=> More informations about this toot | More toots from fdlamotte
@rmader both cam work ... that's great, thanks !
I'll try to see how to clean the mess ;)
=> More informations about this toot | More toots from fdlamotte
I have something but I still don't really know what I'm doing (need to document myself about pipewire/wireplumber ...)
If I manually run pipewire and then wireplumber, I have some notifications about the cameras in wireplumber log ...
But still snapshot can't access it
=> More informations about this toot | More toots from fdlamotte
@rmader Time to go on ebay and get another postmarketOS phone for my collection!
=> More informations about this toot | More toots from CalcProgrammer1@mastodon.social
@CalcProgrammer1 @rmader hey, the phones want to be used, not set dust in a collection! ;)
=> More informations about this toot | More toots from lw64@chaos.social
@lw64 @rmader Oh I will use it. I want to try out camera on pmOS since it's not yet supported on the OnePlus 6/6T. I will also install FEX and Steam and see how it compares to the 6T.
=> More informations about this toot | More toots from CalcProgrammer1@mastodon.social
@CalcProgrammer1 @rmader just saying, phones that you don't need anymore, others from the Linux mobile community might still dream of :)
=> More informations about this toot | More toots from lw64@chaos.social
@rmader tbf that front camera picture has a certain retro appeal :)
=> More informations about this toot | More toots from robertgzr@toot.berlin
@rmader Ooh this is exciting. I wonder if any of this is transferrable to other sdm845 devices, although I have bigger fish to fry on my Poco F1 than taking photos tbh lol
=> More informations about this toot | More toots from gordoooo_z@hachyderm.io
@gordoooo_z Yep, the driver was developed for the F1 and should already work there AFAIK. It happens to be used on a bunch of devices and will hopefully get upstreamed.
=> More informations about this toot | More toots from rmader@mastodon.social
@rmader This is amazing! Great work!
=> More informations about this toot | More toots from DF5RE@social.darc.de
@rmader The Xiaomi Redmi 4 Prime (MSM8953) also seems to have both cameras.
https://wiki.postmarketos.org/wiki/Xiaomi_Redmi_4_Prime_(xiaomi-markw)
(I hope the MSM8916, MSM8953, MSM8996, and SDM845 kernels stay relevant, as they're dependencies of SDM670)
=> More informations about this toot | More toots from flamingradian@sineware.ca
@flamingradian @rmader btw. Removing remarks as maintainer is lazy would look a bit better on the wiki. Also some structural changes would slightly help.
=> More informations about this toot | More toots from okias@floss.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini