Built-in Webcam Not Working
#1
I received my PBP today, and just trying out all the features, but for some reason I can't get the built-in webcam to work.

I've tried Kamoso and Cheese - cheese outputs this "cheese-application.vala:214: Error during camera setup: No device found"

Under the /dev/ there is /dev/video0, /dev/video1, /dev/video2. Using that, I've tried smplayer /dev/video0 as well as video1 and video2, but nothing shows.

I've also checked that the webcam is enabled (double flash from [Pine]+[F12]).

Can someone help me diagnose this please?
  Reply
#2
check if your user is added to the video group
dmesg|grep video
if not detected, toggle the privacy hardware disable and reboot
dmesg again

the camera works, but is not great
  Reply
#3
On my system, the camera is /dev/video3. video0, video1, video2, and video4 are all different handles on the video processing unit, as I understand it, and won't respond correctly when opened under the assumption that they're cameras.

Does yours not have a /dev/video3?
  Reply
#4
I also received my PBP today too! Have you tried enabling it via the privacy switch?
https://wiki.pine64.org/index.php/Pinebo...y_Switches
  Reply
#5
(05-28-2020, 07:49 PM)xmixahlx Wrote: check if your user is added to the video group
dmesg|grep video
if not detected, toggle the privacy hardware disable and reboot
dmesg again

the camera works, but is not great

Yes, my user is added to the video group.

Here is my dmesg output (doesn't change if the privacy switch is enabled or disabled):

$ dmesg|grep video
[    0.000000] Kernel command line: initrd=/initramfs-linux.img console=tty1 console=ttyS2,1500000 root=LABEL=ROOT_MNJRO rw rootwait video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60 bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
[    0.276266] videodev: Linux video capture interface: v2.00
[    8.459274] rockchip-rga ff680000.rga: Registered rockchip-rga as /dev/video0
[    8.472188] hantro-vpu ff650000.video-codec: Adding to iommu group 0
[    8.472803] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-enc as /dev/video1
[    8.472906] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-dec as /dev/video2

As you can see - only video 0, 1 and 2 are detected
  Reply
#6
exact same problem here...
  Reply
#7
Also having the exact same issue with a PBP from the latest batch .
  Reply
#8
what happens if you use a different OS from sdcard?
  Reply
#9
(05-29-2020, 01:13 PM)fozzedout Wrote:
(05-28-2020, 07:49 PM)xmixahlx Wrote: check if your user is added to the video group
dmesg|grep video
if not detected, toggle the privacy hardware disable and reboot
dmesg again

the camera works, but is not great

Yes, my user is added to the video group.

Here is my dmesg output (doesn't change if the privacy switch is enabled or disabled):

$ dmesg|grep video
[    0.000000] Kernel command line: initrd=/initramfs-linux.img console=tty1 console=ttyS2,1500000 root=LABEL=ROOT_MNJRO rw rootwait video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60 bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
[    0.276266] videodev: Linux video capture interface: v2.00
[    8.459274] rockchip-rga ff680000.rga: Registered rockchip-rga as /dev/video0
[    8.472188] hantro-vpu ff650000.video-codec: Adding to iommu group 0
[    8.472803] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-enc as /dev/video1
[    8.472906] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-dec as /dev/video2

As you can see - only video 0, 1 and 2 are detected

Code:
[opvolger@pine64 ~]$ dmesg|grep video
[    0.000000] Kernel command line: initrd=/initramfs-linux.img console=tty1 console=ttyS2,1500000 root=LABEL=ROOT_MNJRO rw rootwait video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60 bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
[    0.286198] videodev: Linux video capture interface: v2.00
[    6.521834] rockchip-rga ff680000.rga: Registered rockchip-rga as /dev/video0
[    6.527476] hantro-vpu ff650000.video-codec: Adding to iommu group 0
[    6.530597] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-enc as /dev/video1
[    6.530769] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-dec as /dev/video2
[    8.693178] uvcvideo: Found UVC 1.00 device USB Camera (0c45:6321)
[    8.729161] uvcvideo 2-1.2:1.0: Entity type for entity Extension 4 was not initialized!
[    8.729175] uvcvideo 2-1.2:1.0: Entity type for entity Processing 3 was not initialized!
[    8.729182] uvcvideo 2-1.2:1.0: Entity type for entity Camera 1 was not initialized!
[    8.730958] usbcore: registered new interface driver uvcvideo
[opvolger@pine64 ~]$
output of a working webcam. (is the same).

I received my laptop this week. Only had problems with WIFI (so was turned off, privacy switch). My webcam works.

https://wiki.pine64.org/index.php/Pinebo...y_Switches <- switches. i had to reboot.
The future is here! ARM laptops!
  Reply
#10
(06-07-2020, 01:55 AM)xmixahlx Wrote: what happens if you use a different OS from sdcard?

I tried Manjaro KDE, Debian and Android images, camera did not work in any of those.
I also tried switching the camera off with SUPER + F12, rebooting, switching it back on and rebooting again. Still no luck.

My dmesg | grep video output:
Code:
[    0.000000] Kernel command line: initrd=/initramfs-linux.img console=tty1 console=ttyS2,1500000 root=LABEL=ROOT_MNJRO rw rootwait video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60 bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
[    0.316806] videodev: Linux video capture interface: v2.00
[    6.883165] hantro-vpu ff650000.video-codec: Adding to iommu group 0
[    6.885306] rockchip-rga ff680000.rga: Registered rockchip-rga as /dev/video1
[    6.888777] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-enc as /dev/video0
[    6.895759] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-dec as /dev/video2

If I try to run smplayer /dev/video1 I'm getting this error:

Code:
/usr/bin/mpv --no-config --no-quiet --terminal --no-msg-color --input-ipc-server=/tmp/smplayer-mpv-80f --msg-level=ffmpeg/demuxer=error --no-fs --hwdec=no --sub-auto=fuzzy --no-input-default-bindings --input-vo-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=77594644 --monitorpixelaspect=1 --osd-level=1 --osd-scale=1 --osd-bar-align-y=0.6 --sub-ass --embeddedfonts --sub-ass-line-spacing=0 --sub-scale=1 --sub-font=Arial --sub-color=#ffffffff --sub-shadow-color=#ff000000 --sub-border-color=#ff000000 --sub-border-size=0.75 --sub-shadow-offset=2.5 --sub-font-size=50 --sub-bold=no --sub-italic=no --sub-margin-y=8 --sub-margin-x=20 --sub-codepage=ISO-8859-1 --sub-pos=100 --volume=55 --cache=auto --screenshot-template=cap_%F_%p_%02n --screenshot-format=jpg --screenshot-directory=/home/nick/Pictures/smplayer_screenshots --audio-pitch-correction=yes --volume-max=110 --term-playing-msg=MPV_VERSION=${=mpv-version:}
INFO_VIDEO_WIDTH=${=width}
INFO_VIDEO_HEIGHT=${=height}
INFO_VIDEO_ASPECT=${=video-params/aspect}
INFO_VIDEO_FPS=${=container-fps:${=fps}}
INFO_VIDEO_FORMAT=${=video-format}
INFO_VIDEO_CODEC=${=video-codec}
INFO_AUDIO_FORMAT=${=audio-codec-name}
INFO_AUDIO_CODEC=${=audio-codec}
INFO_AUDIO_RATE=${=audio-params/samplerate}
INFO_AUDIO_NCH=${=audio-params/channel-count}
INFO_LENGTH=${=duration:${=length}}
INFO_DEMUXER=${=current-demuxer:${=demuxer}}
INFO_SEEKABLE=${=seekable}
INFO_TITLES=${=disc-titles}
INFO_CHAPTERS=${=chapters}
INFO_TRACKS_COUNT=${=track-list/count}
METADATA_TITLE=${metadata/by-key/title:}
METADATA_ARTIST=${metadata/by-key/artist:}
METADATA_ALBUM=${metadata/by-key/album:}
METADATA_GENRE=${metadata/by-key/genre:}
METADATA_DATE=${metadata/by-key/date:}
METADATA_TRACK=${metadata/by-key/track:}
METADATA_COPYRIGHT=${metadata/by-key/copyright:}
INFO_MEDIA_TITLE=${=media-title:}
INFO_STREAM_PATH=${stream-path}
--audio-client-name=SMPlayer --term-status-msg=STATUS: ${=time-pos} / ${=duration:${=length:0}} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} VB: ${=video-bitrate:0} AB: ${=audio-bitrate:0} /dev/video1

[ffmpeg/demuxer] video4linux2,v4l2: Not a video capture device.
[lavf] avformat_open_input() failed
[ffmpeg/demuxer] video4linux2,v4l2: Not a video capture device.
[lavf] avformat_open_input() failed
Failed to recognize file format.
Exiting... (Errors when loading file)

I also tried Jitsi Meet and Google Hangouts, both in Firefox and Chromium, Kamoso and Cheese, nothing works.

Is there anything else I could do to check if the camera hardware works?

(06-07-2020, 07:09 AM)Opvolger Wrote:
(05-29-2020, 01:13 PM)fozzedout Wrote:
(05-28-2020, 07:49 PM)xmixahlx Wrote: check if your user is added to the video group
dmesg|grep video
if not detected, toggle the privacy hardware disable and reboot
dmesg again

the camera works, but is not great

Yes, my user is added to the video group.

Here is my dmesg output (doesn't change if the privacy switch is enabled or disabled):

$ dmesg|grep video
[    0.000000] Kernel command line: initrd=/initramfs-linux.img console=tty1 console=ttyS2,1500000 root=LABEL=ROOT_MNJRO rw rootwait video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60 bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
[    0.276266] videodev: Linux video capture interface: v2.00
[    8.459274] rockchip-rga ff680000.rga: Registered rockchip-rga as /dev/video0
[    8.472188] hantro-vpu ff650000.video-codec: Adding to iommu group 0
[    8.472803] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-enc as /dev/video1
[    8.472906] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-dec as /dev/video2

As you can see - only video 0, 1 and 2 are detected

Code:
[opvolger@pine64 ~]$ dmesg|grep video
[    0.000000] Kernel command line: initrd=/initramfs-linux.img console=tty1 console=ttyS2,1500000 root=LABEL=ROOT_MNJRO rw rootwait video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60 bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
[    0.286198] videodev: Linux video capture interface: v2.00
[    6.521834] rockchip-rga ff680000.rga: Registered rockchip-rga as /dev/video0
[    6.527476] hantro-vpu ff650000.video-codec: Adding to iommu group 0
[    6.530597] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-enc as /dev/video1
[    6.530769] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-dec as /dev/video2
[    8.693178] uvcvideo: Found UVC 1.00 device USB Camera (0c45:6321)
[    8.729161] uvcvideo 2-1.2:1.0: Entity type for entity Extension 4 was not initialized!
[    8.729175] uvcvideo 2-1.2:1.0: Entity type for entity Processing 3 was not initialized!
[    8.729182] uvcvideo 2-1.2:1.0: Entity type for entity Camera 1 was not initialized!
[    8.730958] usbcore: registered new interface driver uvcvideo
[opvolger@pine64 ~]$
output of a working webcam. (is the same).

I received my laptop this week. Only had problems with WIFI (so was turned off, privacy switch). My webcam works.

https://wiki.pine64.org/index.php/Pinebo...y_Switches <- switches. i had to reboot.

Actually, your output is different. Notice that you have these lines:

Code:
[    8.693178] uvcvideo: Found UVC 1.00 device USB Camera (0c45:6321)
[    8.729161] uvcvideo 2-1.2:1.0: Entity type for entity Extension 4 was not initialized!
[    8.729175] uvcvideo 2-1.2:1.0: Entity type for entity Processing 3 was not initialized!
[    8.729182] uvcvideo 2-1.2:1.0: Entity type for entity Camera 1 was not initialized!
[    8.730958] usbcore: registered new interface driver uvcvideo

I'm not getting those, and it looks like fozzedout is not getting those lines either.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  bliuetooth not working in Armbian 22.11.1 Pinebook Pro River 0 984 12-09-2022, 04:48 PM
Last Post: River
  Mid 2022: what is in your humble opinion the best working OS for the PinePro? walterbe 3 3,165 06-29-2022, 02:00 PM
Last Post: Chief
Sad Webcam not working in pinebook pro with Manjaro jcarball 2 3,599 04-28-2021, 03:23 PM
Last Post: jcarball
  [split] U-Boot with NVMe support, keyboard & display working as400 78 93,630 01-27-2021, 12:48 AM
Last Post: as400
  webcam photo solid gray stozi 0 1,727 01-05-2021, 05:35 PM
Last Post: stozi
  Booting to sdcard stopped working after emmc flash techiedog 3 4,515 12-31-2020, 06:30 PM
Last Post: Anarethos
  Needed basic Info on using Webcam on PBP User 17828 6 7,739 12-18-2020, 07:24 PM
Last Post: Arwen
  Wifi stopped working after updates pineitup 10 12,486 11-07-2020, 02:59 AM
Last Post: wdt
  Working terminal emulator bookguy1 7 10,698 08-04-2020, 02:34 PM
Last Post: mfashby
  Suspend with NVME not working - Default Debian appdev46 5 9,829 07-14-2020, 01:53 PM
Last Post: Jeremiah Cornelius

Forum Jump:


Users browsing this thread: 6 Guest(s)