Webcam: Can't control brightness/contrast.

Add any particular hints or tricks you have found to help with your ZoneMinder experience.
Post Reply
makeee
Posts: 2
Joined: Tue Apr 15, 2008 1:45 pm

Webcam: Can't control brightness/contrast.

Post by makeee »

I have a Ubutun LAMP server running gutsy that has a working copy of zoneminder installed on it (http://www.zoneminder.com).

Zoneminder allows you to view and change brightness/contrast for a camera. When I make changes to these settings through zoneminder the picture looks great for about 1 second, then the settings revert to their previous levels.

How can I gain control of the brightness/contrast? Is there some way I can hard set them via the driver?

lsusb:

Code: Select all

046d:092f Logitech, Inc.
makeee
Posts: 2
Joined: Tue Apr 15, 2008 1:45 pm

Re: Webcam: Can't control brightness/contrast. - Ubutun

Post by makeee »

makeee wrote:I have a Ubutun LAMP server running gutsy that has a working copy of zoneminder installed on it (http://www.zoneminder.com).

Zoneminder allows you to view and change brightness/contrast for a camera. When I make changes to these settings through zoneminder the picture looks great for about 1 second, then the settings revert to their previous levels.

How can I gain control of the brightness/contrast? Is there some way I can hard set them via the driver?

lsusb:

Code: Select all

046d:092f Logitech, Inc.
Ok, i answer for me...


sudo gedit /etc/modprobe.d/options

add at the end:

options gspca gamma=6

*note*, if this makes the display look distorted, try the value 5.

save this file.

simplest thing to do at this point is to reboot your PC.
roidayan
Posts: 12
Joined: Fri Apr 11, 2008 11:10 am

Post by roidayan »

to unload a module you could use rmmod and then do
modprobe again
but nice thanks for the trick

i searched google and also found this:

# modinfo gspca | grep parm
parm: autoexpo:Enable/Disable auto exposure (default=1: enabled) (PC-CAM 600/Zc03xx/spca561a/Etoms Only !!!) (int)
parm: debugebug level: 0=none, 1=init/detection, 2=warning, 3=config/control, 4=function call, 5=max (int)
parm: force_rgb:Read RGB instead of BGR (int)
parm: gamma:gamma setting range 0 to 7 3-> gamma=1 (int)
parm: OffRed:OffRed setting range -128 to 128 (int)
parm: OffBlue:OffBlue setting range -128 to 128 (int)
parm: OffGreen:OffGreen setting range -128 to 128 (int)
parm: GRed:Gain Red setting range 0 to 512 /256 (int)
parm: GBlue:Gain Blue setting range 0 to 512 /256 (int)
parm: GGreen:Gain Green setting range 0 to 512 /256 (int)
parm: compress:Turn on/off compression (not functional yet) (int)
parm: usbgrabber:Is a usb grabber 0x0733:0x0430 ? (default 1) (int)
parm: lightfreq:Light frequency banding filter. Set to 50 or 60 Hz, or zero to NoFliker (default=50) (int)

you have lots of other options :)

and about changing the options i saw those examples:
#echo "4" > /sys/module/gspca/parameters/gamma
#echo "240" > /sys/module/gspca/parameters/GRed
Post Reply