Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I looked around the forum and did not find questions of this nature. I'm running LM17 in a HP2000-210 laptop. Can't get Cheese or Guvcview to open/use the built-in webcam. I'll post the read out of both (from terminal)
The following NEW packages will be installed:
guvcview
0 upgraded, 1 newly installed, 0 to remove and 46 not upgraded.
Need to get 254 kB of archives.
After this operation, 889 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe guvcview amd64 1.7.1-1ubuntu1 [254 kB]
Fetched 254 kB in 0s (444 kB/s)
Selecting previously unselected package guvcview.
(Reading database ... 159114 files and directories currently installed.)
Preparing to unpack .../guvcview_1.7.1-1ubuntu1_amd64.deb ...
Unpacking guvcview (1.7.1-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/guvcview_1.7.1-1ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/share/locale/bg/LC_MESSAGES/guvcview.mo', which is also in package guvcview-i18n 2.0.1+ubuntu1~ppa1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Errors were encountered while processing:
/var/cache/apt/archives/guvcview_1.7.1-1ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1) cheese
** Message: cheese-application.vala:291: Error during camera setup: No device found
(cheese:3391): GLib-GIO-CRITICAL **: g_settings_set_value: key 'camera' in 'org.gnome.Cheese' expects type 's', but a GVariant of type '(null)' was given
Ok, there it is. 2 things here. If someone could tell me what it's saying, and/or direct me to where I could get an explanation of the readout. Someone who could tell me how or show me where to get the "fix" for this problem.
Thanks:
Rick
lsusb -t
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M
|__ Port 2: Dev 2, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 2: Dev 2, If 1, Class=Video, Driver=uvcvideo, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M
My webcam is powered by uvcvideo on port 2.
Quote:
E: Sub-process /usr/bin/dpkg returned an error code (1) cheese
I find that more disturbing
You might want to open synaptic and use the "fix broken packages" function in it.
You might want to test the webcam in mplayer or vlc instead.
Quote:
3.1. Configuring Webcam Software
In some cases your media player (VLC, mplayer, amongst others) will need to know the video and audio device files for your webcam. Before you plug in your webcam, try the following two commands at a console:
ls /dev/video*
ls /dev/audio*
Make a note of the devices appearing. Now plug in your webcam, allow the system a few seconds to register the device, and run the two commands again. The new appearances should belong to your webcam (for instance, /dev/video0 and /dev/audio2). If nothing new appears, you may need to switch your webcam on. For a built-in webcam, you may have a function key to do so.
Code:
@biker1:~$ cd /dev
@biker1:/dev$ ls
<snip>
loop2 ram9 tty23 tty54 ttyS26 vhost-net
loop3 random tty24 tty55 ttyS27 video0
loop4 rfkill tty25 tty56 ttyS28 watchdog
<snip>
My webcam shows in /dev as video0.
Quote:
If someone could tell me what it's saying
I think it is saying cheese cannot find your webcam which makes it sound like a loose connection or camera is turned off with
a hotkey or in bios maybe?
Here is a link to help you search and sort things out.
Thank You for responding! Well, I think your on the right track. I was able to "open" the built-in webcam with VLC (?). I opened Synaptic Pkg. Mgr. and was not able to find "fix broken packages". (I'm going to keep searching for that) These are the results of
ls /dev/video* /dev/video0(in yellow text) ls /dev/audio* ls: cannot access /dev/audio*: no such file or directory.
The suggestion of a 'function key" to turn on the cam: I'll need to download a HP users guide (will get back to you on that)! I should tell you that when I first used "Cheese", the built-in cam did come on for a few seconds, then went to "black" screen and stated "Device Not Found"??? Well, it did find the device (for a second or 2), but just didn't support it(I guess). Now, VLC supports it (???). This is getting kinda weird! I appreciate your help and anymore that you can offer on this. Perhaps it might be of help to let you know what I'm using: [HP2000-210 HP VGA webcam(built-in) LinuxMint 17 "Cheese"(but that can/could change]
Funny you mention HP. I just unboxed a a350n HP Desktop P4, 512MB ram, XP sp3
Desktop computer. A Bro mailed it to me.
It is in the M/C shop running disk cleanup.
I am on my little 9" Salix 14.1 Fluxbox netbook right now. I was looking for some ram online for that HP.
Anyways. Reading your post. I tested my webcam on this netbook.
Code:
$ mplayer tv:// -tv driver=v4l2:device=/dev/video0
Creating config file: /home/harry/.mplayer/config
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
Cannot open file '/home/harry/.mplayer/input.conf': No such file or directory
Failed to open /home/harry/.mplayer/input.conf.
Cannot open file '/etc/mplayer/input.conf': No such file or directory
Failed to open /etc/mplayer/input.conf.
Playing tv://.
Detected file format: TV
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: Sirius USB2.0 Camera
Capabilities: video capture streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: YUYV
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Inappropriate ioctl for device
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
[ass] auto-open
VIDEO: 640x480 30.000 fps 0.0 kbps ( 0.0 kB/s)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
[swscaler @ 0xb62d4b20]using unscaled yuyv422 -> yuv420p special converter
VO: [xv] 640x480 => 640x480 Planar YV12
Selected video codec: RAW YUY2 [raw]
Audio: no sound
Starting playback...
V: 0.0 60/ 60 ??% ??% ??,?% 0 0
v4l2: ioctl set mute failed: Invalid argument
v4l2: 62 frames successfully processed, 212 frames dropped.
Exiting... (Quit)
Sure enough. My ugly mug made it onto the screen.
Edit: Took this out because I tested it on my Mint 17 Mate laptop and it works but not like I thought it would.
I am going to be busy on that HP. Sorting out Windows Xp 1st. Which takes me days vs a Linux setup which takes a hour or so.
West Tex? Well, I sure don't envy your place of residence! But, then, in winter I'm not too fond of my place of residence!(mid Ohio)
I went to this site: www.community.linuxmint.com/tutorial/view/482 This is where I got terminal commands to 'fix broken packages". I have it running at this time. I don't know, but I find it strange that VLC would recognize/run the webcam(without audio?), yet Cheese and guvcview will not!!? But, as you speak of broken packages, there could very well be something to that. I've also been struggling with SoundJuicer. It runs well the first 2 or 3 rips, then deteriorates--gets buggy and finally crashes. I've uninstalled and re-installed it many times with the same results. Installed/ran Asunder and as it has worked so far, it is very slow (IMO). Yes, there is something wrong within Linux and the "packages" that are recommended for it. I got the iso. directly from the Linux site(torrent), so....??? I'm sure it's a simple fix, but finding what that fix is, is turning into a major endeavor/P.I.T.A.
Good luck w/ the HP mini. I not familiar with them. When I first started out on a laptop, I had MSXP. Liked it, but couldn't get updates and some of the 'programs" required new drivers that were not available through MSWin. So, was turned on to Ubuntu 10. Thought it was fantastic, however I stupidly "upgraded" to 12.04 and now LM17 and have been running into problems every since! One thing about Linux vs. MSWin, you can get all you need with Linux(updates/drivers/modules etc.) without having to spend a fortune, as you would with MSWin.
I'll chat at you after/later, and let you know how the "fix broken packages" turned out.
Take it Easy:
Rick
I found this: http://askubuntu.com/questions/33896...urce-in-raring I read through it and have some questions. This seems like an awful lot of "configuring" for something that should be working "out-of-box". I know this says it's for 'Raring", but wondered if it would work for LM17 as well????? I've had an awful lot of trouble getting Cheese to work, as well as SoundJuicer, ...something terribly wrong with LM17! Built-in webcam won't operate, SJ constanly crashes, Asunder is extremely slow(IMO). I need some help to get these problems solved!!! And a logical explanation for all the failures(if there is one)
Thank You:
Rick
To rokytnji:
Was running 'fix broken packages". Came to a part that said "It is reccommended you reboot now", which I did. System would not boot-up. It didn't go to 'B.S.O.D.", but never got farther than intial LM logo. Couldn't even get "live" O.S. to recover files. Lost everything. All the files I've been rebuilding since 12.04 crashed on me. S.O.B!!! I'm not happy at all. Have downloaded PINGUY to pendrive and thinking of doing the same w/ Ubuntu 10.04 (first Linux derivative I used) which never gave any "problems" and certainly NOTHING like LM17 and U12.04 did/has. Right now, I've re-installed LM17, because that's what I had available, and still cannot get Cheese, and now, VLC to open webcam. You probably heard me cussin' all the way out there!!! So, looks like we're back to 'SQUARE 1".
"Fuming in Central Ohio"
Rick
Take Care:
Rick
$ inxi -r
Repos: Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com qiana main upstream import #id:linuxmint_main
deb http://extra.linuxmint.com qiana main #id:linuxmint_extra
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner
Because I have smooth sailing on this Mint 17 Samsung RV510 Laptop ruuning Mint 17 Mate 64bit.
OK, please point out what I should be looking for. What should it have that it doesn't? What MUST be done to get the damn thing correct? This is getting ridiculous!!! NOTHING, not even MSWin, should be this difficult/involved. After all, LINUX bills itself as "Ubuntu fixed"....B.S.!!!! Yes, I'm pissed/frustrated, wouldn't you be? I'd be much obliged to anyone who can help get this P.O.S. in working order!!
Much Thanks:
Rick
and see they matched. So I know my download came in correctly and the iso was not corrupted in the process.
Think of it as a Fed Ex mail delivery where they toss your package around and stack heavy stuff on there and
you wish to check if they broke anything.
Quote:
This is getting ridiculous!!! NOTHING, not even MSWin, should be this difficult/involved.
Wrong attitude. Don't compare your 1 week experience with Linux with your years of experience with Windows. You won't learn spanish/french or german/chinese in one day either.
Quote:
What MUST be done to get the damn thing correct?
I don't cuss or throw wrenches when I work on motorcycles either. I stop and think instead. Maybe make a cup of coffee or tea.
Kick back and calm down.
If this really
Quote:
Yes, I'm pissed/frustrated, wouldn't you be?
I'd walk away and keep using Windows. Life is too short. But. What do I know? I am just a knuckle dragging, Neanderthal looking,
Linux using Biker with a GED education. Not smart like all these College educated programming Windows power users.
I guess I am too dumb to know better. I must not be too bright. Being the only responder to this thread.
OK, so far I've succeeded in nothing...but angering some folks. Yes, we are all frustrated, some folks at me, and me at not getting a problem solved. STOP, let's see IF we can solve this together. OK, here's the scenerio: I'm running LM17 on a HP laptop and it's just not working properly. It does not seem to have the ability to run certain media programs as they should be run. Those programs being Soundjuicer,Cheese,Guvcview,and the webcam video in VLC. The webcam is a built-in HP VGA, the laptop-HP2000-210 and the O.S.-LM17 Cinnamon. The suggestion is I have a corrupted .iso--which was D/l from www.linuxmint/download.php-Download-linuxmint. It was suggested I md5sum, and I did and posted the readout...this turns out to be NOT what the person wanted. He wishes I run the md5sum against the iso?? So, let's start over..shall we.
I will, once again, D/l an .iso from aforementioned site (for I believe it to be a trusted site). Now, once D/l, what must be done from there, to insure I get the .iso to the pendrive for installation without altering the .iso. The last time I used LM17 USB Image Writer to put .iso on pendrive from the "download" file, before that, I'd used Unetbootin. So, is there a "specific" .iso I must download? Is there some error I used to transfer the D/l .iso to the pendrive. Does it seem possible I'd get a corrupted .iso (as per suggestion) from the site mentioned? What are the 'trusted" sites to D/l an Ubuntu or LinuxMint O.S.? Hopefully, now, WE can get this solved quickly and easily without anyone getting their panties bunched up. THANK YOU for your co-operation!!
Rick
Been having a difficult time getting either "cheese" or gucview to operate. Latest 'error report" from guvcview suggests checking for the correct/right driver!(makes sense). So, now we may be getting somewhere. I have a built-in HP VGA webcam. Where/how do I find the "correct" driver? Or, could it even be a codec? (When I first "opened" CHEESE, it ran for about 10-15 seconds--guvcview operated for only a few) [HP2000-210~ HPVGA built-in webcam~ LM17 Cinnamon 64bit] I'm posting this readout in hopes of finding the problem:
(cheese:3230): GLib-GIO-CRITICAL **: g_settings_set_value: key 'camera' in 'org.gnome.Cheese' expects type 's', but a GVariant of type '(null)' was given
Well, it seems no one has a clue(?) 4 months now and I'm not even close to a 'fix" for, what I consider, a simple and easily correctable problem? What gives? Today, as per a suggestion, I booted up from the "live O.S." (2 Gb Kingston pendrive w/LinuxMint 17 cinnamon 64bit); camera operated for approx 1 min., then went black and read "There was an error playing video from the webcam". So, here is what we know --The integrated webcam DOES operate; we know that Cheese can/does "recognize" cam; cam will operates for a limited time!
I'm hoping the "clues" will provide the "answer/fix. Please folks, somehow I just don't believe that this is such a complicated anomaly; that it can't be or shouldn't have been fixed already!(?) I'm countin' on someone to "show me the way".
[HP2000-210~HPVGA integrated webcam~LM17 cinnamon 64bit~3Gb RAM~80Gb Hdd]
Thanx:
RICK
Ahmmm...here's one for you all. Last night my laptop crashed. So, loaded LM17.1Xfce on a pendrive, just see if laptop would work. It booted up and lo and behold CHEESE worked. I took a couple of pics and let it run for awhile. It didn't crash and when I rebooted, it was there again and working. OK.....what made this happen? Really, all this time fighting with it and suddenly. out-of-nowhere, it starts working? Now, I also tried Ubuntu 14.04.2 and cheese did NOT work there??? OK, I'm all ears..what happened?
Stay Sharp: Rick
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.