Jami on Pinephone [ IM and VOIP ]
#2
So I know what the problem with camera is

according to :
Code:
[alarm@danctnix ~]$ media-ctl --device /dev/media1 --print-topology
Media controller API version 5.10.13

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

Device topology
- entity 1: sun6i-csi (1 pad, 2 links)
            type Node subtype V4L flags 0
            device node name /dev/video1
    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:UYVY8_2X8/640x480@1/30 field:none 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 []

the camera it tries to use supports
Code:
640x480@1/30

but in Jami, if you go to Audio and Video settings it picks up "sun6i-csi" as Device but the Resolution is set to "1280x720" and cannot be changed. Therefore I see this in dmesg:
Code:
[ 1442.649326] ov5640 4-004c: firmware upload success
[ 1442.956426] ov5640 4-004c: uploaded firmware didn't start, got to 0x7f, retrying...
[ 1443.269030] ov5640 4-004c: uploaded firmware didn't start, got to 0x7f
[ 1443.275662] ov5640 4-004c: ov5640_set_ctrl_focus: no autofocus firmware loaded
[ 1443.364636] sun6i-csi 1cb0000.csi: Wrong width or height 1280x720 (640x480 expected)

RIght now I don't know where Jami takes this resolution from.  Trying to change manually the /home/alarm/.config/jami/dring.yml where following section is:
Code:
video:
  recordPreview: true
  recordQuality: 0
  decodingAccelerated: true
  encodingAccelerated: true
  conferenceResolution: 1280x720
  devices:
    - name: sun6i-csi
      id: /dev/video1
      input: /dev/video1
      video_size: 1280x720
      channel: camera
      framerate: 25.000000

leads to no effect and is overwritten each time I access settings. (making it not writable made it not to be overwritten but made no change). I guess I will fire up another issue in jami-qt gitlab.

So according to https://linux-sunxi.org/CSI#Media_bus_an...re_formats

the OV5640 doesn't even support 1280x720, it supports:
2592*1936@5fps
2048*1536@5fps
1600*1200@5fps
1280*960@5fps
1024*768@5fps
1920*1080@30fps
1280*720@30fps
640*480@30fps

I've tried to change it but I get Invalid argument error

Code:
[alarm@danctnix jami-daemon-git]$ sudo media-ctl --set-v4l2 '"ov5640 4-004c":0[fmt:UYVY8_2X8/1280x720@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]'
Unable to setup formats: Invalid argument (22)

even with supported resolution

Code:
[alarm@danctnix jami-daemon-git]$ sudo media-ctl --set-v4l2 '"ov5640 4-004c":0[fmt:UYVY8_2X8/1920x1080@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]'
Unable to setup formats: Invalid argument (22)
  Reply


Messages In This Thread
Jami on Pinephone [ IM and VOIP ] - by p1trson - 02-05-2021, 02:39 PM
RE: Jami on Pinephone [ IM and VOIP ] - by p1trson - 02-11-2021, 04:06 PM
RE: Jami on Pinephone [ IM and VOIP ] - by AndyM - 08-04-2021, 03:52 AM
RE: Jami on Pinephone [ IM and VOIP ] - by Fish - 06-08-2022, 11:48 AM
RE: Jami on Pinephone [ IM and VOIP ] - by Fish - 06-08-2022, 01:53 PM
RE: Jami on Pinephone [ IM and VOIP ] - by AndyM - 06-08-2022, 11:56 AM
RE: Jami on Pinephone [ IM and VOIP ] - by AndyM - 06-09-2022, 01:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using Signal on PinePhone in mid-2023? dante404 47 13,847 05-03-2024, 02:19 AM
Last Post: dragonhospital
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 38 25,467 04-23-2024, 10:29 AM
Last Post: donchurch
  PinePhone app development WhiteHexagon 15 4,121 04-23-2024, 05:19 AM
Last Post: Jonnyc
  VoIP with SIP Mangled 8 8,656 04-07-2024, 10:19 AM
Last Post: lm2
Wink PINEPHONE not booting Touchwood 2 512 02-23-2024, 07:27 AM
Last Post: Touchwood
  Slack on PinePhone Adam Seline 5 5,472 12-20-2023, 07:20 AM
Last Post: nickolas
  Struggle to install LibreOffice on the PinePhone Peter Gamma 48 24,777 11-24-2023, 07:02 AM
Last Post: Peter Gamma
  Which word processor to choose for the Pinephone? Peter Gamma 8 2,105 11-23-2023, 01:06 AM
Last Post: Peter Gamma
  openSUSE for Pinephone Alefnode 75 102,924 11-17-2023, 08:37 AM
Last Post: Uturn
  Genode- Sculpt OS for the PinePhone (non Linux) Surehand53 1 1,028 11-04-2023, 07:23 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)