You are not logged in.

#1 2016-01-28 06:19:30

BigEars431
Member
Registered: 2015-09-23
Posts: 14

Openbox: Can't Start Webcam (Linux UVC Driver) (guvcview frontend)

Proud to admit I'm a noob... and... I'm just 16 anyways smile

I've been using more of the "heavy" desktop environments since my time with Linux and I recently adapted a taste for the Openbox WM as a productivity Environment. I code very frequently in HTML, CSS and XML which made the configuration files feel right at home for me. I managed to get dbus and everything I want to work running (Everything has to be done manually in Openbox) but I have came across a very deal-breaking problem.. and I don't want to go back to another DE becasue my Openbox setup just FLIES on my Lenovo X1 Carbon 3rd Gen... My webcam just won't start using the UVC Linux Driver. This was very odd to me at first so i looked for a webcam hardware switch and found myself surprised that It was enabled. However the webcam won't work everytime I start guvcview or cheese. To my surprise when I reinstalled Xfce4 and MATE 1.12.1 Guvcview started just fine, seeing myself at 30 FPS. I really want my Openbox Setup to be complete and It wouldn't be complete without my webcam working
Here's the Error when I start guvcview in Openbox (This doesn't happen in XFCE and MATE for some reason)

GUVCVIEW: couldn't open /home/kylert/.config/guvcview2/video0 for read: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
Segmentation fault (core dumped)

UPDATE:

I've noticed the line;

Segmentation fault (core dumped)

and according to Google (heyyooo!) this has nothing to do with the webcam or the UVC Linux Driver but it is more related to GTK if anything else...The reason (I believe) why Guvcview works under Xfce4 and MATE 1.12.1 is because X already knows that it is a gtk-based session (gtk is used for the guvcview settings dialog) and you don't have to "export" or "env" anything... which means the mime-database (i think) doesn't need to be updated or updates automatically within these desktop environments, However I am still a top-level user only familiar with bash, a little python and Web Languages so I may be very wrong. Again in Openbox, I've noticed that most things have to be done or even coded manually so this is how I fixed this very uncommon problem:

AS ROOT:

update-mime-database /usr/share/mime && rm ~/.local/share/mime/mime.cache

not everyone is comfortable using sudo so i'm leaving it... use gksu if that's what you believe is the smarter choice smile

If it still doesn't work just use guvcview-qt5-git from the AUR

THIS ERROR ONLY OCCURS IN OPENBOX

Last edited by BigEars431 (2016-01-28 14:01:20)

Offline

#2 2016-01-28 06:32:04

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Openbox: Can't Start Webcam (Linux UVC Driver) (guvcview frontend)

@BigEars431,

our forum software doesn't support HTML inside posts. Please use BBCode and use the code tag for your output.

https://bbs.archlinux.org/help.php#bbcode

Also, what's the output of

pactree guvcview

Edit: Have you taken a look at this page: https://wiki.archlinux.org/index.php/Webcam_setup

Offline

#3 2016-01-28 06:44:12

BigEars431
Member
Registered: 2015-09-23
Posts: 14

Re: Openbox: Can't Start Webcam (Linux UVC Driver) (guvcview frontend)

Oh! Thanks for the BBCode info... here is the ouput of

$ pactree gucview

(Enter)

guvcview
├─portaudio
│ ├─gcc-libs-multilib provides gcc-libs
│ │ ├─glibc
│ │ │ ├─linux-api-headers
│ │ │ ├─tzdata
│ │ │ └─filesystem
│ │ │   └─iana-etc
│ │ └─lib32-gcc-libs
│ │   └─lib32-glibc
│ └─jack
│   ├─libsamplerate
│   │ └─libsndfile
│   │   ├─alsa-lib
│   │   │ └─glibc
│   │   ├─flac
│   │   │ ├─gcc-libs-multilib provides gcc-libs
│   │   │ └─libogg
│   │   │   └─glibc
│   │   └─libvorbis
│   │     └─libogg
│   ├─db
│   │ ├─gcc-libs-multilib provides gcc-libs
│   │ └─bash provides sh
│   │   ├─readline
│   │   │ ├─glibc
│   │   │ ├─ncurses
│   │   │ │ ├─glibc
│   │   │ │ └─gcc-libs-multilib provides gcc-libs
│   │   │ └─ncurses provides libncursesw.so
│   │   ├─glibc
│   │   ├─ncurses
│   │   └─ncurses provides libncursesw.so
│   ├─zita-alsa-pcmi
│   │ ├─gcc-libs-multilib provides gcc-libs
│   │ └─alsa-lib
│   └─zita-resampler
│     ├─gcc-libs-multilib provides gcc-libs
│     └─libsndfile
├─ffmpeg
│ ├─alsa-lib
│ ├─bzip2
│ │ └─glibc
│ ├─fontconfig
│ │ ├─expat
│ │ │ └─glibc
│ │ └─freetype2
│ │   ├─zlib
│ │   │ └─glibc
│ │   ├─bzip2
│ │   ├─bash provides sh
│ │   ├─libpng
│ │   │ ├─zlib
│ │   │ └─bash provides sh
│ │   └─harfbuzz
│ │     ├─glib2
│ │     │ ├─pcre
│ │     │ │ ├─gcc-libs-multilib provides gcc-libs
│ │     │ │ ├─readline
│ │     │ │ ├─zlib
│ │     │ │ ├─bzip2
│ │     │ │ └─bash
│ │     │ └─libffi
│ │     │   └─glibc
│ │     ├─freetype2
│ │     └─graphite
│ │       └─gcc-libs-multilib provides gcc-libs
│ ├─fribidi
│ │ └─glib2
│ ├─gnutls
│ │ ├─gcc-libs-multilib provides gcc-libs
│ │ ├─libtasn1
│ │ │ ├─glibc
│ │ │ └─texinfo
│ │ │   ├─ncurses
│ │ │   ├─findutils
│ │ │   │ ├─glibc
│ │ │   │ └─bash provides sh
│ │ │   ├─gzip
│ │ │   │ ├─glibc
│ │ │   │ ├─bash
│ │ │   │ └─less
│ │ │   │   ├─glibc
│ │ │   │   ├─ncurses
│ │ │   │   └─pcre
│ │ │   ├─perl
│ │ │   │ ├─gdbm
│ │ │   │ │ ├─glibc
│ │ │   │ │ └─bash provides sh
│ │ │   │ ├─db
│ │ │   │ └─glibc
│ │ │   └─bash provides sh
│ │ ├─readline
│ │ ├─zlib
│ │ ├─nettle
│ │ │ └─gmp
│ │ │   ├─gcc-libs-multilib provides gcc-libs
│ │ │   └─bash provides sh
│ │ └─p11-kit
│ │   ├─glibc
│ │   ├─libtasn1
│ │   └─libffi
│ ├─gsm
│ │ └─glibc
│ ├─lame
│ │ └─ncurses
│ ├─libass
│ │ ├─fribidi
│ │ └─fontconfig
│ ├─libbluray
│ │ ├─libxml2
│ │ │ ├─zlib
│ │ │ ├─readline
│ │ │ ├─ncurses
│ │ │ └─xz
│ │ │   └─bash provides sh
│ │ ├─freetype2
│ │ └─fontconfig
│ ├─libmodplug
│ │ └─gcc-libs-multilib provides gcc-libs
│ ├─libpulse
│ │ ├─dbus
│ │ │ ├─libdbus
│ │ │ │ └─libsystemd
│ │ │ │   ├─glibc
│ │ │ │   ├─libgcrypt
│ │ │ │   │ └─libgpg-error
│ │ │ │   │   ├─glibc
│ │ │ │   │   └─bash provides sh
│ │ │ │   ├─lz4
│ │ │ │   │ └─glibc
│ │ │ │   └─xz
│ │ │ └─expat
│ │ ├─libasyncns
│ │ │ └─glibc
│ │ ├─libcap
│ │ │ ├─glibc
│ │ │ └─attr
│ │ │   └─glibc
│ │ ├─libxtst
│ │ │ ├─libxext
│ │ │ │ ├─libx11
│ │ │ │ │ ├─libxcb
│ │ │ │ │ │ ├─xcb-proto
│ │ │ │ │ │ ├─libxdmcp
│ │ │ │ │ │ │ ├─xproto
│ │ │ │ │ │ │ └─glibc
│ │ │ │ │ │ └─libxau
│ │ │ │ │ │   ├─glibc
│ │ │ │ │ │   └─xproto
│ │ │ │ │ ├─xproto
│ │ │ │ │ └─kbproto
│ │ │ │ └─xextproto
│ │ │ ├─libxi
│ │ │ │ ├─libxext
│ │ │ │ └─inputproto
│ │ │ ├─recordproto
│ │ │ ├─inputproto
│ │ │ └─libxfixes
│ │ │   ├─libx11
│ │ │   └─fixesproto
│ │ │     ├─xproto
│ │ │     └─xextproto
│ │ ├─libsm
│ │ │ ├─libice
│ │ │ │ ├─glibc
│ │ │ │ └─xproto
│ │ │ └─util-linux
│ │ │   ├─pam
│ │ │   │ ├─glibc
│ │ │   │ ├─cracklib
│ │ │   │ │ ├─glibc
│ │ │   │ │ └─zlib
│ │ │   │ ├─libtirpc
│ │ │   │ │ └─krb5
│ │ │   │ │   ├─e2fsprogs
│ │ │   │ │   │ ├─bash provides sh
│ │ │   │ │   │ └─libutil-linux
│ │ │   │ │   ├─libldap
│ │ │   │ │   │ ├─libsasl
│ │ │   │ │   │ │ └─openssl
│ │ │   │ │   │ │   ├─zlib
│ │ │   │ │   │ │   └─perl
│ │ │   │ │   │ └─e2fsprogs
│ │ │   │ │   └─keyutils
│ │ │   │ │     ├─glibc
│ │ │   │ │     └─bash provides sh
│ │ │   │ └─pambase
│ │ │   ├─shadow
│ │ │   │ ├─bash
│ │ │   │ ├─pam
│ │ │   │ └─acl
│ │ │   │   └─attr
│ │ │   ├─coreutils
│ │ │   │ ├─glibc
│ │ │   │ ├─acl
│ │ │   │ ├─attr
│ │ │   │ ├─gmp
│ │ │   │ ├─libcap
│ │ │   │ └─openssl
│ │ │   ├─libsystemd
│ │ │   └─libutil-linux
│ │ ├─libsndfile
│ │ ├─json-c
│ │ │ └─glibc
│ │ └─systemd
│ │   ├─acl
│ │   ├─bash
│ │   ├─dbus
│ │   ├─iptables
│ │   │ ├─glibc
│ │   │ └─bash
│ │   ├─kbd
│ │   │ ├─glibc
│ │   │ └─pam
│ │   ├─kmod
│ │   │ ├─glibc
│ │   │ ├─zlib
│ │   │ └─xz
│ │   ├─hwids
│ │   ├─libcap
│ │   ├─libgcrypt
│ │   ├─libsystemd
│ │   ├─libidn
│ │   │ ├─glibc
│ │   │ └─texinfo
│ │   ├─lz4
│ │   ├─pam
│ │   ├─libelf
│ │   │ ├─gcc-libs-multilib provides gcc-libs
│ │   │ ├─zlib
│ │   │ ├─bzip2
│ │   │ └─xz
│ │   ├─libseccomp
│ │   │ └─glibc
│ │   ├─util-linux
│ │   └─xz
│ ├─libsoxr
│ │ └─gcc-libs-multilib provides gcc-libs
│ ├─libssh
│ │ └─openssl
│ ├─libtheora
│ │ └─libogg
│ ├─libva
│ │ ├─mesa-libgl provides libgl
│ │ │ └─mesa
│ │ │   ├─libdrm
│ │ │   │ ├─glibc
│ │ │   │ └─libpciaccess
│ │ │   │   └─glibc
│ │ │   ├─wayland
│ │ │   │ ├─libffi
│ │ │   │ └─expat
│ │ │   ├─libxxf86vm
│ │ │   │ ├─libxext
│ │ │   │ └─xf86vidmodeproto
│ │ │   ├─libxdamage
│ │ │   │ ├─libxfixes
│ │ │   │ └─damageproto
│ │ │   │   ├─xproto
│ │ │   │   └─fixesproto
│ │ │   ├─libxshmfence
│ │ │   │ └─glibc
│ │ │   ├─systemd
│ │ │   ├─elfutils
│ │ │   │ └─libelf
│ │ │   ├─libomxil-bellagio
│ │ │   │ └─glibc
│ │ │   ├─expat
│ │ │   ├─libgcrypt
│ │ │   ├─libtxc_dxtn
│ │ │   │ └─glibc
│ │ │   └─llvm-libs
│ │ │     ├─gcc-libs-multilib provides gcc-libs
│ │ │     ├─zlib
│ │ │     ├─libffi
│ │ │     ├─libedit
│ │ │     │ └─ncurses
│ │ │     └─ncurses
│ │ ├─libdrm
│ │ └─libxfixes
│ ├─libvdpau
│ │ ├─gcc-libs-multilib provides gcc-libs
│ │ └─libxext
│ ├─libwebp
│ │ ├─libpng
│ │ ├─libjpeg-turbo provides libjpeg
│ │ ├─libtiff
│ │ │ ├─gcc-libs-multilib provides gcc-libs
│ │ │ ├─libjpeg-turbo provides libjpeg
│ │ │ ├─zlib
│ │ │ └─xz
│ │ └─giflib
│ │   └─glibc
│ ├─opencore-amr
│ │ └─glibc
│ ├─openjpeg
│ │ └─zlib
│ ├─opus
│ │ └─glibc
│ ├─schroedinger
│ │ ├─orc
│ │ │ └─glibc
│ │ └─gcc-libs-multilib provides gcc-libs
│ ├─sdl
│ │ ├─glibc
│ │ ├─libxext
│ │ ├─libxrender
│ │ │ ├─libx11
│ │ │ └─renderproto
│ │ └─libx11
│ ├─speex
│ │ ├─libogg
│ │ └─speexdsp
│ │   └─glibc
│ ├─v4l-utils
│ │ ├─glibc
│ │ ├─gcc-libs-multilib provides gcc-libs
│ │ ├─sysfsutils
│ │ │ └─glibc
│ │ └─libjpeg-turbo
│ ├─xvidcore
│ │ └─glibc
│ ├─zlib
│ ├─dcadec provides libdcadec.so
│ │ └─glibc
│ ├─vid.stab provides libvidstab.so
│ │ ├─gcc-libs-multilib provides gcc-libs
│ │ └─glibc
│ ├─lib32-libvorbis provides libvorbis.so
│ │ ├─lib32-libogg
│ │ │ ├─lib32-glibc
│ │ │ └─libogg
│ │ └─libvorbis
│ ├─lib32-libvorbis provides libvorbisenc.so
│ ├─libvpx provides libvpx.so
│ │ ├─glibc
│ │ └─gcc-libs-multilib provides gcc-libs
│ ├─libx264 provides libx264.so
│ │ └─glibc
│ └─x265 provides libx265.so
│   └─gcc-libs-multilib provides gcc-libs
├─gtk3
│ ├─atk
│ │ └─glib2
│ ├─cairo
│ │ ├─libpng
│ │ ├─libxrender
│ │ ├─libxext
│ │ ├─fontconfig
│ │ ├─pixman
│ │ │ └─glibc
│ │ ├─glib2
│ │ ├─mesa
│ │ ├─mesa-libgl provides libgl
│ │ └─lzo
│ │   └─glibc
│ ├─libcups
│ │ ├─gnutls
│ │ ├─libtiff
│ │ ├─libpng
│ │ ├─krb5
│ │ ├─avahi
│ │ │ ├─expat
│ │ │ ├─libdaemon
│ │ │ ├─glib2
│ │ │ ├─libcap
│ │ │ ├─gdbm
│ │ │ └─dbus
│ │ └─libusb
│ │   ├─glibc
│ │   └─systemd
│ ├─libxcursor
│ │ ├─libxfixes
│ │ └─libxrender
│ ├─libxinerama
│ │ ├─libxext
│ │ └─xineramaproto
│ ├─libxrandr
│ │ ├─libxext
│ │ ├─libxrender
│ │ └─randrproto
│ ├─libxi
│ ├─libepoxy
│ │ └─glibc
│ ├─gdk-pixbuf2
│ │ ├─glib2
│ │ ├─libpng
│ │ ├─libtiff
│ │ ├─libjpeg-turbo provides libjpeg
│ │ ├─libx11
│ │ └─jasper
│ │   └─libjpeg-turbo provides libjpeg
│ ├─libxcomposite
│ │ ├─libxfixes
│ │ └─compositeproto
│ │   └─fixesproto
│ ├─libxdamage
│ ├─pango
│ │ ├─libthai
│ │ │ └─libdatrie
│ │ │   └─glibc
│ │ ├─cairo
│ │ ├─libxft
│ │ │ ├─fontconfig
│ │ │ └─libxrender
│ │ └─harfbuzz
│ ├─shared-mime-info
│ │ ├─libxml2
│ │ └─glib2
│ ├─colord
│ │ ├─lcms2
│ │ │ └─libtiff
│ │ ├─libgusb
│ │ │ ├─glib2
│ │ │ ├─glibc
│ │ │ └─libusb
│ │ ├─polkit
│ │ │ ├─glib2
│ │ │ ├─pam
│ │ │ ├─expat
│ │ │ ├─systemd
│ │ │ └─js17
│ │ │   ├─nspr
│ │ │   │ └─glibc
│ │ │   ├─gcc-libs-multilib provides gcc-libs
│ │ │   └─readline
│ │ ├─sqlite
│ │ │ └─readline
│ │ ├─systemd
│ │ ├─dconf
│ │ │ ├─glib2
│ │ │ └─libdbus
│ │ ├─dbus
│ │ └─libgudev
│ │   └─libsystemd
│ ├─at-spi2-atk
│ │ ├─at-spi2-core
│ │ │ ├─dbus
│ │ │ ├─glib2
│ │ │ └─libxtst
│ │ ├─libx11
│ │ └─atk
│ ├─wayland
│ ├─libxkbcommon
│ │ ├─xkeyboard-config
│ │ └─glibc
│ ├─adwaita-icon-theme
│ │ ├─hicolor-icon-theme
│ │ ├─gtk-update-icon-cache
│ │ │ ├─gdk-pixbuf2
│ │ │ └─hicolor-icon-theme
│ │ └─librsvg
│ │   ├─gdk-pixbuf2
│ │   ├─pango
│ │   └─libcroco
│ │     ├─glib2
│ │     └─libxml2
│ ├─json-glib
│ │ └─glib2
│ ├─rest
│ │ ├─glib2
│ │ ├─libxml2
│ │ └─libsoup
│ │   ├─glib2
│ │   ├─libxml2
│ │   ├─glib-networking
│ │   │ ├─glib2
│ │   │ ├─libproxy
│ │   │ │ └─gcc-libs-multilib provides gcc-libs
│ │   │ ├─gnutls
│ │   │ ├─ca-certificates
│ │   │ │ ├─ca-certificates-mozilla
│ │   │ │ │ └─ca-certificates-utils
│ │   │ │ │   ├─bash
│ │   │ │ │   ├─coreutils
│ │   │ │ │   ├─findutils
│ │   │ │ │   └─p11-kit
│ │   │ │ └─ca-certificates-cacert
│ │   │ │   └─ca-certificates-utils
│ │   │ └─gsettings-desktop-schemas
│ │   │   └─glib2
│ │   └─sqlite
│ ├─librsvg
│ └─gtk-update-icon-cache
├─sdl2
│ ├─glibc
│ ├─libxext
│ ├─libxrender
│ ├─libx11
│ ├─mesa-libgl provides libgl
│ └─libxcursor
└─gsl
  ├─glibc
  └─bash

any help is greatly appreciated

(yes I have read the wiki)

and Thank you arch community for such fast replies

Last edited by BigEars431 (2016-01-28 06:46:13)

Offline

#4 2016-01-28 07:08:54

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Openbox: Can't Start Webcam (Linux UVC Driver) (guvcview frontend)

Which webcam module are you using?

Offline

#5 2016-01-28 07:26:58

BigEars431
Member
Registered: 2015-09-23
Posts: 14

Re: Openbox: Can't Start Webcam (Linux UVC Driver) (guvcview frontend)

@x33a

Thanks for the quick replies... the Arch Community is really good at this.. I have now solved the problem smile If you dont mind I am a huge noob, can you verify my update, if what I wrote has some truth to it...and If it's again kinda noobish, I'm sorry, the Bold text on the Top of my post will explain hahah big_smile

Offline

#6 2016-01-28 08:30:48

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Openbox: Can't Start Webcam (Linux UVC Driver) (guvcview frontend)

@BigEars431,

the solution looks fine. Please mark your thread as solved.

Offline

Board footer

Powered by FluxBB