Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,840
» Latest member: jimizen02311
» Forum threads: 16,306
» Forum posts: 117,364

Full Statistics

Latest Threads
Request for IRC registrat...
Forum: General
Last Post: dustfinger
Less than 1 minute ago
» Replies: 0
» Views: 1
Tariffs on delivery to US
Forum: General
Last Post: tllim
01-28-2026, 12:49 PM
» Replies: 2
» Views: 599
is cpu rk3576 suited for ...
Forum: General
Last Post: tllim
01-28-2026, 12:45 PM
» Replies: 1
» Views: 177
IMHO, a really NICE updat...
Forum: PineTab Software
Last Post: tllim
01-28-2026, 12:40 PM
» Replies: 1
» Views: 216
Rock64 v3 Tx/RX and GPIO ...
Forum: Linux on Rock64
Last Post: alicesphere
01-28-2026, 04:04 AM
» Replies: 2
» Views: 219
Rock64 - not booting afte...
Forum: Linux on Rock64
Last Post: ff255
01-24-2026, 04:44 PM
» Replies: 7
» Views: 4,182
performance wise which ip...
Forum: PinePhone Pro Hardware
Last Post: heocb
01-24-2026, 01:01 PM
» Replies: 2
» Views: 388
Window Maker Live for Pin...
Forum: Linux on Pinebook Pro
Last Post: vajak
01-22-2026, 08:00 PM
» Replies: 8
» Views: 982
Freezes and kernel panics...
Forum: Linux on RockPro64
Last Post: jssfr
01-22-2026, 01:18 PM
» Replies: 3
» Views: 409
Armbian has been released...
Forum: News
Last Post: DGTian120
01-22-2026, 03:36 AM
» Replies: 22
» Views: 34,428

 
  camera + megaixel and strange behavior
Posted by: streak - 06-02-2021, 06:45 AM - Forum: PinePhone Hardware - No Replies

Hi Guys 

Please help me out nail the issue with my camera.

Im using PostmarketOS image and i was using Megapixel camera. Megapixel shows picture from camera (a lot of violet colours) but if i click button to make image it suddently hang megapixel.
No image will be saved anywhere in /home/user dir

i tried to make a workaround to use https://git.sr.ht/~martijnbraam/python-pinecamera
camera.py which doesnt work as well:

im getting something like this

Code:
> ./camera.py still --resolution 720p photo.jpg
Unable to parse link: Invalid argument (22)
Unable to parse link: Invalid argument (22)
Unable to setup formats: Invalid argument (22)
^CTraceback (most recent call last):
  File "/usr/lib/python3.8/subprocess.py", line 495, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "/usr/lib/python3.8/subprocess.py", line 1028, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "/usr/lib/python3.8/subprocess.py", line 1894, in _communicate
    self.wait(timeout=self._remaining_time(endtime))
  File "/usr/lib/python3.8/subprocess.py", line 1083, in wait
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.8/subprocess.py", line 1798, in _wait
    raise TimeoutExpired(self.args, timeout)
subprocess.TimeoutExpired: Command '['sudo', 'v4l2-ctl', '--device', '/dev/video1', '--stream-mmap', '--stream-to=/tmp/frame.raw', '--stream-count=1', '--stream-skip=5']' timed out after 9.99975883199977 seconds


i even tried to use ffmpeg then with options like:


Code:
sudo ffmpeg -f v4l2 -framerate 10 -i /dev/video0 -preset ultrafast /home/user/some-vid.vid
getting:
[video4linux2,v4l2 @ 0xffffb76d2670] Not a video capture device.
/dev/video0: No such device
--------------------------------------------------------------------------------------------------------------------
sudo ffmpeg -f v4l2 -framerate 10 -i /dev/video1 -preset ultrafast /home/user/some-vid.vid
getting:
[video4linux2,v4l2 @ 0xffff90699670] Not a video capture device.
/dev/video1: No such device
--------------------------------------------------------------------------------------------------------------------
sudo ffmpeg -f v4l2 -framerate 10 -i /dev/video2 -preset ultrafast /home/user/some-vid.vid
getting:
[video4linux2,v4l2 @ 0xffffb72a0670] Not a video capture device.
/dev/video2: No such device
--------------------------------------------------------------------------------------------------------------------
sudo ffmpeg -f v4l2 -framerate 10 -i /dev/video3 -preset ultrafast /home/user/some-vid.vid
getting:
[video4linux2,v4l2 @ 0xffff9ba3c670] ioctl(VIDIOC_STREAMON): Broken pipe
/dev/video3: Broken pipe
--------------------------------------------------------------------------------------------------------------------


Update 1:

quick look in dmesg after fresh OS start and trying to make a picture in megapixel (where megapixel hangs)

Code:
+[  124.878718] ov5640 4-004c: firmware upload success
+[  125.177354] ov5640 4-004c: uploaded firmware didn't start, got to 0x7f, retrying...
+[  125.477370] ov5640 4-004c: uploaded firmware didn't start, got to 0x7f
+[  125.477425] ov5640 4-004c: ov5640_set_ctrl_focus: no autofocus firmware loaded
+[  128.819814] ov5640 4-004c: firmware upload success
+[  129.117310] ov5640 4-004c: uploaded firmware didn't start, got to 0x7f, retrying...
+[  129.417331] ov5640 4-004c: uploaded firmware didn't start, got to 0x7f
+[  129.417385] ov5640 4-004c: ov5640_set_ctrl_focus: no autofocus firmware loaded

Update 2:

after fooling around with some options and lurking @ internets i found that:

Code:
sudo media-ctl -d /dev/media1 --links "ov5640 3-004c":0->"sun6i-csi":0[0]

running before megapixels camera fixes issue with violet-colour image in megapixels, and megapixels started doing pictures to /home/user/Pictures DIR, YAY! 

but..  still.. 
i didnt figured out what options are needed to make image using pine's camera from terminal (eg using ffmpeg or camera.py)
any help appreciated

Update 3:

I checked device info

Code:
> media-ctl -d /dev/media1 -p
Media controller API version 5.11.0

Media device information
------------------------
driver          sun6i-csi
model           Allwinner Video Capture Device
serial         
bus info        platform:1cb0000.csi
hw revision     0x0
driver version  5.11.0

Device topology
- entity 1: sun6i-csi (1 pad, 2 links)
            type Node subtype V4L flags 0
            device node name /dev/video3
    pad0: Sink
        <- "ov5640 4-004c":0 [ENABLED]
        <- "gc2145 4-003c":0 []

- entity 5: ov5640 4-004c (1 pad, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev0
    pad0: Source
        [fmt:SBGGR8_1X8/1280x720@1/15 colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
        -> "sun6i-csi":0 [ENABLED]

- entity 7: gc2145 4-003c (1 pad, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev1
    pad0: Source
        [fmt:UYVY8_2X8/1600x1200@1/10 field:none]
        -> "sun6i-csi":0 []


so i thought i found proper configurations that seems to be something like that:

Code:
media-ctl -d /dev/media1 --set-v4l2 '"ov5640 4-004c":0[fmt:UYVY8_2X8/1280x720]'

according to previous info

but.. when switched to this mode, MEGAPIXEL again turns into violet-colour mode and hangs after trying to do a picture..

and then i tried to make a use of ffmpeg,  which seems to work: 

Code:
ffmpeg -s 1280x720 -f v4l2 -i /dev/video3 -vframes 1 selfie.jpg


..but prodces only "whole-green" jpg

output:

Code:
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.2.1 (Alpine 10.2.1_pre1) 20201203
  configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --enable-vulkan --enable-libsoxr --enable-libaom --disable-debug
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, video4linux2,v4l2, from '/dev/video3':
  Duration: N/A, start: 2228.856409, bitrate: 165888 kb/s
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720, 165888 kb/s, 15 fps, 15 tbr, 1000k tbn, 1000k tbc
File 'selfie.jpg' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[swscaler @ 0xffffb7670020] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to 'selfie.jpg':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Video: mjpeg, yuvj420p(pc), 1280x720, q=2-31, 200 kb/s, 15 fps, 15 tbn, 15 tbc
    Metadata:
      encoder         : Lavc58.91.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
frame=    1 fps=0.0 q=1.8 Lsize=N/A time=00:00:00.06 bitrate=N/A speed=0.156x   
video:5kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown


and on 
Code:
ffmpeg -s 1280x720 -f v4l2 -i /dev/video1 -vframes 1 selfie.jpg

doesnt work

UPDATE: Last Smile

in act of desperation i installed fswebcam and then fool around a little bit and, voilla:

Code:
sudo fswebcam --device=/dev/video3 -r 1280x720 -p UYVY -S 10 UYVY-XX.jpg

fswebcam works Smile and for now fit my needs perfectly Smile

bottom line: never give up Smile


  RockPro64 - EN62368
Posted by: m.ekstrom - 06-02-2021, 04:55 AM - Forum: General Discussion on ROCKPRO64 - No Replies

Anybody knows if the board RockPro64 is meeting the requirement of low voltage standard of EN62368?

/Mats


  Manjaro phosh annoying problems and a bit of usage experience
Posted by: Nick_dnepr - 06-02-2021, 02:55 AM - Forum: Manjaro on PinePhone - Replies (7)

Hi there, i have encountered a couple of annoying things about using manjaro phosh after the latest update:
1) Sometimes modem goes down completely. I don't know how to reproduce that, but sometimes modem module shuts down completely, and calls application says that there is no calling device at all. Naturally, internet also goes down. Rebooting does fix it, but a couple of times it caught me when i had to give a call or quickly search for something on the internet.
2) Audio is kinda glitchy now. Sometimes audio just stops coming out through both speaker and earphones jack. For example, when i listen to music with Audacious player it stops playing after some time (3-5 minutes). Most curious, this time depends on the track i listen to (and moon phase, i suppose). This issue is also related to alarm, which is much worse. Thankfully, i did not have anything urgent when i overslept because of the alarm problem. Sound returns right after i press unlock button (just have to turn on the screen, even without entering the passcode). Technically it keeps playing music/sound, but into nowhere. However, not all applicatins have that problem: freetube works nicely when i listen to any videos in podcast mode with locked screen.
Please write if you have encountered similar problems and if you have solved them.

A bit of usage experience:
In spite of technical problems (like mentioned above) i love that phone. Unfortunately, i can't use it as my primary phone yet, but it is always my number 2. 
What it can:
1. Browse internet. Firefox works nice here. Unfortunately, ui of extensions is broken, but the rest is fine
2. Watch youtube. I use freetube application with legacy video format, which gives me acceptable ~480p video.
3. Use messangers. Telegram works fine, fractal and NeoChat launch and look good, but did not use them yet. Pretty sure it will run any messanger you would like to install.
4. Listen to music. Mentioned above problem is annoying, but is not fatal. Furthermore, there must be player that can avoid that problem.
5. Call. Calling is allright, both incoming and outcoming (if modem did not go down, but this is temporary, i hope)
6. Use navigtion. Standart maps application works normally.
7. Programming. I wrote a couple of python scripts using vim and launched a couple of self-written java console utilities. Did not find a proper IDE yet, but it has jdk, gcc, python and tons of other development tools. When a physical keyboard finally comes out it would be excellent development tool to use "on a go"
What it can't:
1. Run android apps. I've seen messages on forum that anbox is working, but mine doesn't. Probably because i use beta5 and update it with pacman -Syu. I will try to fix that later, but now i have to write diploma.
2. Take photo and record video. Technically, megapixels app can take photos, but preview is much worse than the actual photo. It also works very slow, which is critical if you want to catch a moment.


  We are KDE patrons!
Posted by: Luke - 06-02-2021, 02:21 AM - Forum: News - No Replies

We have been made patrons by KDE e.V.

Announcement


  First access denied
Posted by: IMSAI8080 - 06-02-2021, 01:54 AM - Forum: General Discussion on Pinebook Pro - Replies (3)

Hello, just got my PBP. Strong and cool. Like it very much.
Unfotunately, once completed the Manjaro ARM install few initial screens, never had the first access... Huh
Tried everything, username, full name, password, password for root: always access denied.
Got a picture with my phone of the "Finish Manjaro ARM Instal" summary (the last of the initial screens): I'm using the right UN e PW.
Any idea about what happened?
And I can I fix it? Just flashing SD card with a new image of Manjaro ARM? And the eMMC?

Thanks.


  minimal kernel .config?
Posted by: alchemist - 06-02-2021, 01:35 AM - Forum: General Discussion on Pinebook Pro - Replies (5)

Hi!

I just received my PBP and will install Gentoo on it. My system is ready and I have compiled the kernel based on the Manjaro config.

But I would like the minimal working .config (just the needed hardware settings).

Do you have some one?

Kind regards,
Xavier.


  new Pinebook Pro, complete confusion
Posted by: Yehuda - 06-01-2021, 11:11 PM - Forum: General Discussion on Pinebook Pro - Replies (11)

I just received my machine in the mail today. Out of the box I was able to get it running. The wifi works. A Firefox button appears on the dashboard. I can run Firefox. I accessed my university email. This was all encouraging.

My next order of business on all new machines is to install LaTeX (Texlive), emacs, and Auctex. I also make sure there is a PDF viewer and word processor (Libreoffice).

I tried to install Texlive with pacman and got a slew of "error: failed retrieving file" responses. I read a little online about what the problem could be, and the main suggestion was to update my mirrors with

$ sudo pacman-mirrors -g
$ sudo pacman-mirrors -f 5

and such things. I tried these, and it didn't help.

I tried installing emacs and ran into the same problem. I cannot retrieve anything.

Then I tried installing Libreoffice and was told that

:: Libreoffice-still and Libreoffice-fresh are in conflict. Remove Libreoffice-fresh?

This surprised me, because I cannot detect Libreoffice anywhere on the machine. I opened the filesystem navigator and searched for Libreoffice and found nothing. Then I searched for Firefox and also found nothing, even though I am able to run Firefox.

So basically I cannot use this computer. I cannot install the software I need (or any software), and I cannot locate the software that I already have (except for Fierfox, by launching it from the dashboard icon).

I have used linux (Debain primarily) and BSD (free BSD primarily) systems for many years and cannot understand why this is so completely different from anything I've ever seen before.

I want this to work out. I am attracted to the Pinebook philosophy.


  lost eletronic component rock64
Posted by: marvin1986 - 06-01-2021, 05:35 PM - Forum: General Discussion on ROCK64 - Replies (1)

Hello, good night, I have this board for a long time, but I believe that in a change, I lost this electronic component in the photo, could you tell me its name or code so I can solder it?


[Image: snrFYa.jpg]


  Shipping Update and Stock Availability Thread
Posted by: Luke - 06-01-2021, 02:47 PM - Forum: News - Replies (92)

Stock count, estimated availability dates and shipping status of our most popular devices can now be checked on our website.
The website updates every 2-3 days. Stock quantities are approximations and availability dates are estimates.

Use this thread for questions regarding availability of other products, queries concerning shipping and other relevant topics.


  ISO keyboard Pinebook pro for sale
Posted by: tgrauss - 06-01-2021, 02:16 PM - Forum: General Discussion on Pinebook Pro - Replies (3)

Hello,

I have a Pinebook Pro for sale. It has the UK ISO keyboard and 64GB flash.
I provide the original NVME adapter (the first one that you have to modify to fit inside the PBP).
European charger.
Serial USB adapter.

3 rubber feet are missing. Otherwise it is in good shape and clean.
It is installed with Ubuntu Mate and crash from time to time on boot (see : https://forum.pine64.org/showthread.php?tid=8436 ). You have then to force the shutdown and start it again. No crash when it has started.

I can send in the EU, but I live in France near the French/German/Swiss border if someone want to buy it without shipping costs.
Price : 150 euros + shipping.

The photos are attached to this post.



Attached Files Thumbnail(s)