[Spca50x-devs] Black/Very Dark display with Philips SPC 610NC
- Date: Sun, 23 Mar 2008 03:08:35 +0000
- From: TJ <linux@xxxxxxxxxxx>
- Subject: [Spca50x-devs] Black/Very Dark display with Philips SPC 610NC
Black/Very Dark display with Philips SPC 610NC on Ubuntu Gutsy x86_64 (2.6.22-14) with gspca 20071224. I've noticed other reports in the mailing-list of 'black' displays with 64-bit kernels. I'm wondering if this is a 64-bit issue. In my case the display is actually VERY DARK, but not always totally black. The SPC 610NC has a slide-down sleeve that reveals a bright LED. With that lit the display shows my finger if it is within about 5 centimetres of the lens. Any further away and the display is totally black. I used spcagui and noticed it always reports 'whiteness=0' and starts with brightness, contrast, and colour all set to 0 or close-to (sliders are at the bottom of the scale): grabbing method default MMAP asked VIDIOCGMBUF size 2457632 frames 2 offets[0]=0 offsets[1]=1228816 VIDIOCGPICT brightnes=44 hue=0 color=0 contrast=0 whiteness=0depth=12 palette=15 I wondered if this is relevant since using spcagui with another camera that uses the ov51x-jpeg driver reports 'whiteness=26880', the sliders are mid-scale, and the video from that camera is good and bright: grabbing method default MMAP asked VIDIOCGMBUF size 1843232 frames 2 offets[0]=0 offsets[1]=921616 VIDIOCGPICT brightnes=32768 hue=40960 color=32768 contrast=31744 whiteness=26880depth=12 palette=15 Is there a way to manually increase the 'whiteness' value by writing directly to sysfs or some other mechanism? $ sudo modprobe gspca debug=5 # connect Philips SPC 610NC camera $ lsusb | egrep Pixart Bus 002 Device 002: ID 093a:2601 Pixart Imaging, Inc. $ tail /var/log/kern.log [ 457.078768] usbcore: registered new interface driver gspca [ 457.078778] gspca_core.c: gspca driver 01.00.20 registered [ 463.796404] usb 2-2: new full speed USB device using uhci_hcd and address 2 [ 464.029430] usb 2-2: configuration #1 chosen from 1 choice [ 464.032362] gspca_core.c: USB SPCA5XX camera found. (PAC7311) [ 464.032371] gspca_core.c: [spca5xx_probe:4275] Camera type JPEG [ 464.032376] gspca_core.c: [spca50x_configure:2633] video_register_device succeeded [ 464.032383] Pixart/pac7311.h: [pac7311_config:193] Find Sensor PAC7311 [ 464.034289] utils/spcausb.h: [spca5xxRegWrite:130] reg write: 0x40, 0x00, 0x40, 0x78: 0x0040 [ 464.035284] utils/spcausb.h: [spca5xxRegWrite:130] reg write: 0x40, 0x00, 0x40, 0x78: 0x0040 [ 464.036287] utils/spcausb.h: [spca5xxRegWrite:130] reg write: 0x40, 0x00, 0x44, 0x78: 0x0044 [ 464.037290] utils/spcausb.h: [spca5xxRegWrite:130] reg write: 0x40, 0x00, 0x04, 0xFF: 0x0004 [ 464.038285] utils/spcausb.h: [spca5xxRegWrite:130] reg write: 0x40, 0x00, 0x80, 0x27: 0x0080 [ 464.039363] utils/spcausb.h: [spca5xxRegWrite:130] reg write: 0x40, 0x00, 0xCA, 0x28: 0x00CA [ 464.040280] utils/spcausb.h: [spca5xxRegWrite:130] reg write: 0x40, 0x00, 0x53, 0x29: 0x0053 [ 464.041278] utils/spcausb.h: [spca5xxRegWrite:130] reg write: 0x40, 0x00, 0x0E, 0x2A: 0x000E [ 464.042277] utils/spcausb.h: [spca5xxRegWrite:130] reg write: 0x40, 0x00, 0x01, 0xFF: 0x0001 [ 464.043277] utils/spcausb.h: [spca5xxRegWrite:130] reg write: 0x40, 0x00, 0x20, 0x3E: 0x0020 [ 464.044550] gspca_core.c: [spca5xx_getcapability:1249] maxw 640 maxh 480 minw 160 minh 120 [ 464.044557] gspca_core.c: [spca50x_configure:2650] Spca5xx Configure done !! [ 464.044567] gspca_core.c: [spca5xx_probe:4304] setting video device = ffff810048ec8800, spca50x = ffff81004ea44000 $ spcagui -d /dev/video1 SpcaGui version: 0.3.5 date: 18 September 2005 video device /dev/video1 Camera found: Pixart PAC7311 VIDIOCGPICT brightnes=18 hue=0 color=0 contrast=0 whiteness=0depth=24 palette=4 Bridge found: PAC7311 Unable to find a StreamId !! StreamId: 6 Unknow Camera try palette 15 depth 12 Available palette 15 try palette 3 depth 16 Available palette 3 try palette 4 depth 24 Available palette 4 try palette 5 depth 32 Available palette 5 probe size in Available Resolutions width 640 heigth 480 Available Resolutions width 384 heigth 288 Available Resolutions width 352 heigth 288 Available Resolutions width 320 heigth 240 Available Resolutions width 192 heigth 144 Available Resolutions width 176 heigth 144 Available Resolutions width 160 heigth 120 grabbing method default MMAP asked VIDIOCGMBUF size 2457632 frames 2 offets[0]=0 offsets[1]=1228816 VIDIOCGPICT brightnes=44 hue=0 color=0 contrast=0 whiteness=0depth=12 palette=15 VIDIOCGPICT brightnes=44 hue=0 color=0 contrast=0 whiteness=0depth=12 palette=15 VIDIOCGPICT brightnes=44 hue=0 color=0 contrast=0 whiteness=0depth=12 palette=15 VIDIOCSPICT brightnes=44 hue=0 color=0 contrast=0 whiteness=0depth=12 palette=15 ByeBye !! unmapping frame buffer freeing frame buffer close v4l $ for param in /sys/module/gspca/parameters/*; do echo "$param = $(cat $param)" ; done /sys/module/gspca/parameters/autoexpo = 1 /sys/module/gspca/parameters/compress = 0 /sys/module/gspca/parameters/debug = 5 /sys/module/gspca/parameters/force_gamma_id = -1 /sys/module/gspca/parameters/force_rgb = 0 /sys/module/gspca/parameters/force_sensor_id = -1 /sys/module/gspca/parameters/gamma = 3 /sys/module/gspca/parameters/GBlue = 256 /sys/module/gspca/parameters/GGreen = 256 /sys/module/gspca/parameters/GRed = 256 /sys/module/gspca/parameters/lightfreq = 50 /sys/module/gspca/parameters/OffBlue = 0 /sys/module/gspca/parameters/OffGreen = 0 /sys/module/gspca/parameters/OffRed = 0 /sys/module/gspca/parameters/usbgrabber = 0 Because it is relatively long I've attached the kernel debug log of the very short spcagui session reported above (8613 lines, 77KB gzip-ed, 827KB uncompressed).
Attachment:
spc610nc-spcagui-black-video.log.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Spca50x-devs mailing list Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/spca50x-devs
- Prev by Date: Re: [Spca50x-devs] gspca v4l2
- Next by Date: [Spca50x-devs] gspcav1-20071224 Sonix (sn9c1xx) embedded problem
- Previous by thread: [Spca50x-devs] gspca v4l2
- Next by thread: [Spca50x-devs] gspcav1-20071224 Sonix (sn9c1xx) embedded problem
- Index(es):