093a:2460 Webcam (Pixart PAC207BCA) - inverted LED logic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hi all,
Problem:
The LED on this webcam is always turned on when connected to USB, unless some application uses it - the behavior that is opposite to what is expected.
It was tested on Ubuntu 9.10 32 bit, kernel 2.6.31-19-generic.
lsusb shows the webcam information as follows:
ID 093a:2460 Pixart Imaging, Inc. Q-TEC WEBCAM 100
Suggested solution:
The driver for this camera is gspca_pac207 (located at /lib/modules/
In the driver source file pac207.c it can be seen that the bit 1 of the register at 0x41 controls the LED. Looks like it was assumed that '0' at this bit turns the light off, when actually '1' does that. After I've changed the value of this register to the opposite, the re-compiled driver works correctly and the LED is on only when the camera is in use.
I've attached the modified pac207.c. The diff of the changed file vs. original is below:
272c272 change:
pac207_
to:
pac207_
308c308 change:
mode = 0x02; /* Image Format (Bit 0), LED (1), Compr. test mode (2) */
to:
mode = 0x00; /* Image Format (Bit 0), LED (1), Compr. test mode (2) */
331c331 change:
pac207_
to:
pac207_
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: i386
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'PCH'/'HDA Intel PCH at 0xfaa00000 irq 52'
Mixer name : 'Intel CougarPoint HDMI'
Components : 'HDA:10ec0892,
Controls : 39
Simple ctrls : 21
Card1.Amixer.info:
Card hw:1 'NVidia'/'HDA NVidia at 0xfa080000 irq 17'
Mixer name : 'Nvidia GPU 15 HDMI/DP'
Components : 'HDA:10de0015,
Controls : 16
Simple ctrls : 4
DistroRelease: Ubuntu 11.10
HibernationDevice: RESUME=
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
IwConfig:
lo no wireless extensions.
eth2 no wireless extensions.
MachineType: System manufacturer System Product Name
NonfreeKernelMo
Package: linux (not installed)
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.60.1
RfKill:
StagingDrivers: mei
Tags: oneiric running-unity staging
Uname: Linux 3.0.0-26-
UpgradeStatus: Upgraded to oneiric on 2011-10-30 (353 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 04/01/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1002
dmi.board.
dmi.board.name: P8H67-M PRO
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
affects: | gspca (Ubuntu) → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
summary: |
- Webcam 093a:2460 (Pixart PAC207BCA) - inverted LED logic + 093a:2460 Webcam (Pixart PAC207BCA) - inverted LED logic |
tags: | added: patch |
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
tags: | removed: needs-kernel-logs |
description: | updated |
Same behaviour here with my "Pixart Imaging, Inc. Q-TEC WEBCAM 100" (093a:2460).