How can I record video on a Pinephone?
#6
Interesting! Looks like it needs more tweaking to work on Mobian though.

I did find that device references needed to be changed to from "device4" to "device1". (The devices 0, 1, and 2 exist. Only #1 had the required entries.)

Code:
CUR_X=$(cat /sys/bus/iio/devices/iio\:device4/in_accel_x_raw)
CUR_Y=$(cat /sys/bus/iio/devices/iio\:device4/in_accel_y_raw)

...changed to...

CUR_X=$(cat /sys/bus/iio/devices/iio\:device1/in_accel_x_raw)
CUR_Y=$(cat /sys/bus/iio/devices/iio\:device1/in_accel_y_raw)

However, when running the script after making those changes, the first invocation of media-ctl barfs up on an invalid arg. I'm not familiar enough with that program to know what it's complaining about. Here's the output including an echo of the command line that fails (I believe I got the single and double quotes to echo correctly):

Code:
[mobian@mobian bin]$ ./record.sh test
portrait

**** Executing the following command:
**** media-ctl -d1 -l'"gc2145 4-003c":0->1:0[0],"ov5640 4-004c":0->1:0[1]'

Unable to parse link: Invalid argument (22)
[mobian@mobian bin]$
  Reply


Messages In This Thread
How can I record video on a Pinephone? - by kk22 - 04-22-2022, 07:01 PM
RE: How can I record video on a Pinephone? - by Zebulon Walton - 01-21-2023, 02:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinephone won't boot. spha 13 3,638 05-15-2024, 10:31 PM
Last Post: Richy_T
  Pinephone boot. Richy_T 5 461 05-15-2024, 03:35 PM
Last Post: Richy_T
  eSIM on PinePhone just_a_q 4 2,998 05-14-2024, 01:35 PM
Last Post: Kevin Kofler
  PinePhone - boot from microSD laserpyramid 9 1,305 05-03-2024, 10:09 AM
Last Post: laserpyramid
  pinephone virtual keyboard aular 4 651 04-10-2024, 03:45 PM
Last Post: aular
  PinePhone Doesn't Boot LED Doesn't Show Any Signs When Charging dorkydev 1 451 04-02-2024, 11:50 AM
Last Post: Kevin Kofler
  Are you using the Pinephone as your daily driver? jro 157 115,465 02-18-2024, 11:33 PM
Last Post: aular
  2020 PinePhone Manjaro CE EU for sale, name your price astrojuanlu 7 2,266 02-14-2024, 04:51 PM
Last Post: astrojuanlu
  pinephone is not bootble for the box. ijij 1 844 01-19-2024, 01:29 PM
Last Post: fxc
  Multiple issues with the Pinephone MTXP 12 3,050 12-28-2023, 07:55 AM
Last Post: MTXP

Forum Jump:


Users browsing this thread: 1 Guest(s)