Results 1 to 5 of 5

Thread: webcam problems with various cam programs

  1. #1
    Join Date
    Jul 2009
    Beans
    224
    Distro
    Xubuntu 13.04 Raring Ringtail

    eyeshot webcam problems with various cam programs/need drivers

    Hi there:

    the problem concerns an eyeshot integrated webcam:

    My laptop has an incorporated webcam i am trying to make work, to no effect so far.

    I have tried several pieces of software, such as Camorama, but when I try to use it, an error message appears:

    "Could not connect to video device (/dev/video0). Please check connection

    I have also tried Camera Monitor, but:

    "Another instance of Camera Monitor is already running!

    This line appears everytime I click on the Camera Monitor icon.

    Any guess? tip?


    K, dont call me an idiot yet... It seems need some drivers... what I read on the laptop right next to the "eye" of the cam is eyeshot. Now, what ubuntu-compatible driver should I download? Is there any site where I can find the drivers in a .deb package instead of a .zip one?

    Thanks
    Last edited by hihihi100; February 28th, 2010 at 08:37 PM.

  2. #2
    Join Date
    Jul 2008
    Beans
    9

    Re: webcam problems with various cam programs

    I had the same problem. It has something to do with file .cameramonitor.pid in your home directory. It is created when camera monitor is run, and deleted when it is closed. Perhaps your computer was not properly shutdown, so it wasn't erased. Just delete it manually, and the error message should disappear.

  3. #3
    Join Date
    Apr 2011
    Beans
    Hidden!

    Re: webcam problems with various cam programs

    Camera Monitor - Ubuntu 12.04 Update:

    If the message appears again after deleting cameramonitor.pid
    then edit the following file
    Code:
    sudo gedit /usr/share/pyshared/cameramonitor/utils.py
    Look for this function
    Code:
    # Check if the process with pid is running
    def pid_running(pid):
    ...
    and replace it with
    Code:
    # Check if the process with pid is running
    def pid_running(pid):
          if os.path.isdir('/proc/' + str(pid)):
                with open('/proc/' + str(pid) + '/comm') as fd:
                      cmd = fd.read()
                      return cmd.strip() == 'cameramonitor'
          else:
                return False

  4. #4
    Join Date
    Apr 2011
    Beans
    Hidden!

    Re: webcam problems with various cam programs

    My suggestions in the first post are not working anymore.

    The problem is that the .cameramonitor.pid file in the home directory is not deleted every time at shutdown or reboot.

    The solution is to delete the file with a script at startup.
    Code:
    sudo gedit /etc/rc.local
    Paste the following
    Code:
    rm /home/USER/.cameramonitor.pid
    Replace USER with your username

    The script then looks like this
    Code:
    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    
    rm /home/USER/.cameramonitor.pid
    
    exit 0
    Last edited by Marric; August 12th, 2012 at 11:12 PM.

  5. #5
    Join Date
    Apr 2011
    Beans
    Hidden!

    Re: webcam problems with various cam programs

    http://ubuntuforums.org/showthread.php?t=2043616
    Quote Originally Posted by Marric View Post
    Another solution is to edit the cameramonitor file
    Code:
    gksu gedit /usr/bin/cameramonitor
    at line 110 change utils.pid_clean() to utils.pid_delete()
    Code:
        # Callback: exit
        def exit_callback(self, widget):
            gtk.main_quit()
            utils.pid_delete()
            return

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •