From 43d68c0b1bc0a94cc7389359425bf9d0242db537 Mon Sep 17 00:00:00 2001 From: giorez Date: Thu, 4 Sep 2025 21:26:25 +0200 Subject: [PATCH 1/2] Update Camera.md fixing green tint issue --- content/documentation/PinePhone_Pro/Camera.md | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/content/documentation/PinePhone_Pro/Camera.md b/content/documentation/PinePhone_Pro/Camera.md index d47df857..70f141c3 100644 --- a/content/documentation/PinePhone_Pro/Camera.md +++ b/content/documentation/PinePhone_Pro/Camera.md @@ -68,4 +68,30 @@ $ flatpak uninstall --unused $ flatpak repair ``` +### Green Tint Issue + +To fix the green tint issue during post processing of your pictures, add "-a" and "-f" to dcraw line (about #82) into postprocess.sh file + +First look for postprocess.sh file + +```console +$ cd ../.. +$ sudo find / -type f -name postprocess.sh +``` + +On my installation the file is located on /var/lib/flatpak/app/me.gapixels.Megapixels/aarch64/master/279d482e6a5012196a25b464174f2bbaf790b40fd3f1f8bc70b3e9c8c14696d9/files/share/megapixels/postprocess.sh + +Goto the postprocess.sh directory + +```console +$ cd /var/lib/flatpak/app/me.gapixels.Megapixels/aarch64/master/279d482e6a5012196a25b464174f2bbaf790b40fd3f1f8bc70b3e9c8c14696d9/files/share/megapixels +``` + +Backup original file and add "-a" and "-f" to dcraw line, using replace command + +```console +$ sudo cp postprocess.sh postprocess.sh.bk +$ sudo sed -i 's/$DCRAW +M -H 4 -o 1 -q 3 -T "$@" "$MAIN_PICTURE.dng"/$DCRAW +M -H 4 -o 1 -q 3 -T -a -f "$@" "$MAIN_PICTURE.dng"/' postprocess.sh +``` + Further details regarding the camera and the Megapixels camera app can be found on [Martijn’s blog](https://blog.brixit.nl/tag/phones/). From 10f912e4c5282c04ea1fae46e0441850a6fc30e7 Mon Sep 17 00:00:00 2001 From: x1y <23239177+x1y@users.noreply.github.com> Date: Thu, 4 Sep 2025 22:07:53 +0200 Subject: [PATCH 2/2] Update Camera.md Improvements --- content/documentation/PinePhone_Pro/Camera.md | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/content/documentation/PinePhone_Pro/Camera.md b/content/documentation/PinePhone_Pro/Camera.md index 70f141c3..e0f2330b 100644 --- a/content/documentation/PinePhone_Pro/Camera.md +++ b/content/documentation/PinePhone_Pro/Camera.md @@ -15,32 +15,33 @@ The PinePhone Pro has two cameras, Sony IMX258 with 13MP as rear camera and Omni As mentioned in [Software State](/documentation/PinePhone_Pro/Software/Software_state/), the cameras are work-in-progress, including a required DTS fix, userspace still needs to do some catching up and there is a green image tint. This article explains how to fix camera sofware on your PinePhone Pro. The work is on progress and will be available soon for different distributions. Make sure your PinePhone Pro is connected to the web to download needed software. -### Arch Linux ARM + Phosh Installation +## Arch Linux ARM + Phosh Installation -Open terminal and update your system +Open terminal and update your system: ```console $ sudo pacman -Syyuu ``` -Remove original Megapixels app +Remove original Megapixels app: ```console $ sudo pacman -Rns megapixels ``` -Install camera dependencies +Install camera dependencies: + ```console $ sudo pacman -Syu gst-plugin-libcamera libcamera-tools pipewire-libcamera ``` -Install flatpak software manager +Install flatpak software manager: ```console $ sudo pacman -S flatpak ``` -Install Megapixels2 app +Install Megapixels2 app: ```console $ flatpak install https://flatpak.brixit.nl/megapixels2.flatpakref --user @@ -52,7 +53,6 @@ You will be prompted to some options * Configure this as new remote 'flathub' [Y/n]: y * Required runtime for me.gapixels.Megapixels/aarch64/master (runtime/org.gnome.Platform/aarch64/47) found in remote flathub. Do you want to install it? [Y/n]: y - To launch camera app you can both click on Megapixels icon on your desktop or enter into terminal following command ```console @@ -68,26 +68,24 @@ $ flatpak uninstall --unused $ flatpak repair ``` -### Green Tint Issue +## Green Tint Issue To fix the green tint issue during post processing of your pictures, add "-a" and "-f" to dcraw line (about #82) into postprocess.sh file -First look for postprocess.sh file +First look for postprocess.sh file: ```console $ cd ../.. $ sudo find / -type f -name postprocess.sh ``` -On my installation the file is located on /var/lib/flatpak/app/me.gapixels.Megapixels/aarch64/master/279d482e6a5012196a25b464174f2bbaf790b40fd3f1f8bc70b3e9c8c14696d9/files/share/megapixels/postprocess.sh - -Goto the postprocess.sh directory +Goto the postprocess.sh directory you found using the above command. Here the example */var/lib/flatpak/app/me.gapixels.Megapixels/aarch64/master/[...]/files/share/megapixels/postprocess.sh* is used: ```console -$ cd /var/lib/flatpak/app/me.gapixels.Megapixels/aarch64/master/279d482e6a5012196a25b464174f2bbaf790b40fd3f1f8bc70b3e9c8c14696d9/files/share/megapixels +$ cd /var/lib/flatpak/app/me.gapixels.Megapixels/aarch64/master/[...]/files/share/megapixels ``` -Backup original file and add "-a" and "-f" to dcraw line, using replace command +Backup original file and add "-a" and "-f" to dcraw line, using replace command: ```console $ sudo cp postprocess.sh postprocess.sh.bk