Skip to content

Commit 9d64d94

Browse files
authored
Merge pull request #142 from giorez/main
Update Camera.md
2 parents 05c1290 + 10f912e commit 9d64d94

File tree

1 file changed

+31
-7
lines changed

1 file changed

+31
-7
lines changed

content/documentation/PinePhone_Pro/Camera.md

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,33 @@ The PinePhone Pro has two cameras, Sony IMX258 with 13MP as rear camera and Omni
1515

1616
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.
1717

18-
### Arch Linux ARM + Phosh Installation
18+
## Arch Linux ARM + Phosh Installation
1919

20-
Open terminal and update your system
20+
Open terminal and update your system:
2121

2222
```console
2323
$ sudo pacman -Syyuu
2424
```
2525

26-
Remove original Megapixels app
26+
Remove original Megapixels app:
2727

2828
```console
2929
$ sudo pacman -Rns megapixels
3030
```
3131

32-
Install camera dependencies
32+
Install camera dependencies:
33+
3334
```console
3435
$ sudo pacman -Syu gst-plugin-libcamera libcamera-tools pipewire-libcamera
3536
```
3637

37-
Install flatpak software manager
38+
Install flatpak software manager:
3839

3940
```console
4041
$ sudo pacman -S flatpak
4142
```
4243

43-
Install Megapixels2 app
44+
Install Megapixels2 app:
4445

4546
```console
4647
$ flatpak install https://flatpak.brixit.nl/megapixels2.flatpakref --user
@@ -52,7 +53,6 @@ You will be prompted to some options
5253
* Configure this as new remote 'flathub' [Y/n]: y
5354
* 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
5455

55-
5656
To launch camera app you can both click on Megapixels icon on your desktop or enter into terminal following command
5757

5858
```console
@@ -68,4 +68,28 @@ $ flatpak uninstall --unused
6868
$ flatpak repair
6969
```
7070

71+
## Green Tint Issue
72+
73+
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
74+
75+
First look for postprocess.sh file:
76+
77+
```console
78+
$ cd ../..
79+
$ sudo find / -type f -name postprocess.sh
80+
```
81+
82+
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:
83+
84+
```console
85+
$ cd /var/lib/flatpak/app/me.gapixels.Megapixels/aarch64/master/[...]/files/share/megapixels
86+
```
87+
88+
Backup original file and add "-a" and "-f" to dcraw line, using replace command:
89+
90+
```console
91+
$ sudo cp postprocess.sh postprocess.sh.bk
92+
$ 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
93+
```
94+
7195
Further details regarding the camera and the Megapixels camera app can be found on [Martijn’s blog](https://blog.brixit.nl/tag/phones/).

0 commit comments

Comments
 (0)