Ancestors

Written by Robert Mader on 2024-10-17 at 16:54

[#]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

Written by fdlamotte on 2024-10-17 at 17:22

@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

Written by fdlamotte on 2024-10-17 at 17:27

@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

Written by fdlamotte on 2024-10-18 at 06:53

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

Written by Robert Mader on 2024-10-18 at 09:53

@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

Written by fdlamotte on 2024-10-18 at 13:24

@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

=> View attached media

=> More informations about this toot | More toots from fdlamotte

Written by Robert Mader on 2024-10-18 at 13:48

@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

Toot

Written by fdlamotte on 2024-10-18 at 14:13

@rmader

Is that an udev rule ? Don't have any ...

=> More informations about this toot | More toots from fdlamotte

Descendants

Written by Robert Mader on 2024-10-18 at 14:18

@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

Written by fdlamotte on 2024-10-18 at 14:19

@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

Written by fdlamotte on 2024-10-18 at 14:21

@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

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113328834648528014
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
299.96761 milliseconds
Gemini-to-HTML Time
4.586487 milliseconds

This content has been proxied by September (ba2dc).