Ubiquity actually checks if the webcam is valid using:
gboolean
ubiquity_webcam_available (void) {
        GUdevEnumerator *enumerator;
        GUdevClient *client;
        GList *devices;
        guint length;
        const gchar *const subsystems[] = {NULL};
        client = g_udev_client_new (subsystems);
        enumerator = g_udev_enumerator_new (client);
        g_udev_enumerator_add_match_property (enumerator, 
"ID_V4L_CAPABILITIES", ":capture:");
        devices = g_udev_enumerator_execute (enumerator);
        length = g_list_length (devices);
        g_list_free_full (devices, g_object_unref);
        return length > 0;
}


As you can see, this doesn't actually try to use it, it just checks for a v4l 
capture device.
How would one differentiate one of your broken capture devices from a working 
one?

I'm really not sure we should have that logic in ubiquity, it sounds
like a bug to me to expose a /dev/videoX device that has the v4l capture
flag set and doesn't actually work like a capture device...

** Changed in: ubiquity (Ubuntu)
       Status: Triaged => Incomplete

-- 
You received this bug notification because you are a member of TI OMAP
Developers, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/924419

Title:
  oem-config detecting camera where no camera exists

Status in “ubiquity” package in Ubuntu:
  Incomplete

Bug description:
  On omap4, the camera module is built into the kernel for development
  purposes, and creates a /dev/video0 device, but there is no actual
  camera.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: oem-config 2.9.15
  ProcVersionSignature: User Name 3.2.0-1405.7-omap4 3.2.1
  Uname: Linux 3.2.0-1405-omap4 armv7l
  ApportVersion: 1.91-0ubuntu1
  Architecture: armel
  Date: Tue Jan 31 10:00:22 2012
  PackageArchitecture: all
  ProcEnviron:
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ubiquity
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/924419/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~tiomap-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tiomap-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to