linux安装摄像头的方法(2)

  [root@localhost ~]# lshal |grep usb
  然后就找 ZC0303字样的设备 ,那一大段都要仔细的看;
  也可以这样的方法;
  [root@localhost ~]# lshal -s |grep usbusb_device_0_0_0000_00_1d_0usb_device_0_0_0000_00_1d_0_if0usb_device_4fc_3_noserialusb_device_4fc_3_noserial_if0usb_
device_4fc_3_noserial_if0_logicaldev_inputusb_device_4fc_3_noserial_usbrawusb_device_0_0_0000_00_1d_0_usbrawusb_device_
0_0_0000_00_1d_1usb_device_0_0_0000_00_1d_1_if0usb_device_ac8_303b_noserialusb_device_ac8_303b_noserial_if0usb_
device_ac8_303b_noserial_usbrawusb_device_ac8_303b_noserial_video4linuxusb_device_0_0_0000_00_1d_1_usbrawusb_
device_0_0_0000_00_1d_2usb_device_0_0_0000_00_1d_2_if0usb_device_0_0_0000_00_1d_2_usbrawusb_device_0_0_
0000_00_1d_7usb_device_0_0_0000_00_1d_7_if0usb_device_0_0_0000_00_1d_7_usbraw
  我们看到带有video4linux字样的,他的设备号是 usb_device_ac8_303b_noserial_video4linux字样的,在其前面还有几个差不多的编号的设备。比如 usb_device_ac8_303b_noserial。我们就先查这个设备,大多数这样的一组相似的设备号,查第一个就能知道是什么设备。于是用。。
  [root@localhost ~]# lshal -l -u usb_device_ac8_303b_noserial
  udi = '/org/freedesktop/Hal/devices/usb_device_ac8_303b_noserial'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_ac8_303b_noserial' (string)
  linux.subsystem = 'usb' (string)
  linux.hotplug_type = 1 (0x1) (int)
  usb_device.bus_number = 3 (0x3) (int)
  usb_device.can_wake_up = false (bool)
  usb_device.is_self_powered = false (bool)
  usb_device.version_bcd = 272 (0x110) (int)
  usb_device.speed_bcd = 4608 (0x1200) (int)
  usb_device.linux.device_number = 2 (0x2) (int)
  usb_device.num_ports = 0 (0x0) (int)
  usb_device.max_power = 160 (0xa0) (int)
  usb_device.device_revision_bcd = 256 (0x100) (int)
  info.product = 'ZC0303 WebCam' (string)
  usb_device.product = 'ZC0303 WebCam' (string)
  info.vendor = 'Z-Star Microelectronics Corp.' (string)
  usb_device.vendor = 'Z-Star Microelectronics Corp.' (string)
  usb_device.product_id = 12347 (0x303b) (int)
  usb_device.vendor_id = 2760 (0xac8) (int)
  usb_device.device_protocol = 0 (0x0) (int)
  usb_device.device_subclass = 0 (0x0) (int)
  usb_device.device_class = 255 (0xff) (int)
  usb_device.num_interfaces = 1 (0x1) (int)
  usb_device.num_configurations = 1 (0x1) (int)
  usb_device.configuration_value = 1 (0x1) (int)
  usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb3/3-1' (string)
  info.linux.driver = 'usb' (string)
  info.bus = 'usb_device' (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1' (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1d.1/usb3/3-1' (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb3/3-1' (string)
  这回应该详细了吧。看上面的设备是哪个厂出品的?
  usb_device.vendor_id = 2760 (0xac8) (int)
  usb_device.product_id = 12347 (0x303b) (int)
  info.product = 'ZC0303 WebCam' (string)
  info.vendor = 'Z-Star Microelectronics Corp.' (string)
  usb_device.product_id = 12347 (0x303b) (int)
  在Gnome桌面环境下,还用hal-gnome软件包工具可用;您可以通过下面的方式来安装此软件包
  [root@localhost ~]# yum install hal-gnome
  然后运行hal-device-manager工具;
  [root@localhost ~]# hal-device-manager
  点鼠标查看摄像头的详细信息还是没有问题吧。
  2.2 根据摄像头信息到驱动网站对号入座;
  请参见:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/18c5c15a0a3bfad537ebbc6f017db48d.html