Ancestors

Toot

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

Descendants

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

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

Written by Lorenz on 2024-10-18 at 02:32

@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

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

@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

Written by Lorenz on 2024-10-18 at 09:59

@rmader ohh, I am very disappointed xD

still, we will get there eventually!

=> More informations about this toot | More toots from lw64@chaos.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 10:24

@rmader good point ;)

I might do both ...

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

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

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

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

Written by fdlamotte on 2024-10-18 at 07:01

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

Written by Adam Honse on 2024-10-17 at 19:23

@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

Written by Lorenz on 2024-10-18 at 02:31

@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

Written by Adam Honse on 2024-10-18 at 05:41

@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

Written by Lorenz on 2024-10-18 at 06:24

@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

Written by Robert on 2024-10-17 at 20:34

@rmader tbf that front camera picture has a certain retro appeal :)

=> More informations about this toot | More toots from robertgzr@toot.berlin

Written by My name is Gordo (not really) on 2024-10-18 at 00:25

@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

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

@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

Written by Guido Dietl on 2024-10-18 at 14:29

@rmader This is amazing! Great work!

=> More informations about this toot | More toots from DF5RE@social.darc.de

Written by Richard Acayan on 2024-10-22 at 17:27

@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

Written by David Heidelberg on 2024-10-22 at 17:55

@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

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

This content has been proxied by September (ba2dc).