Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

With the built-in webcam of my Samsung NP535U3C I have the common problem of the picture looking too dark. I can easily adjust the settings of brightness, contrast, etc. using guvcview, but I can't avoid repeating this operation every time I start a new session.

I've noticed that guvcview allows me to save the settings in a *.gpfl file. My question is: is there a way to make these settings permanent? Or alternatively, how can I make a script that loads these settings at startup?

The content of my webcam_settings.gpfl is as follows:

#V4L2/CTRL/0.0.2
APP{"guvcview 1.5.3"}
# control data
#Brightness
ID{0x00980900};CHK{0:255:1:135}=VAL{186}
#Contrast
ID{0x00980901};CHK{0:255:1:33}=VAL{47}
#Saturation
ID{0x00980902};CHK{0:255:1:40}=VAL{69}
#Hue
ID{0x00980903};CHK{-180:180:1:0}=VAL{0}
#Gamma
ID{0x00980910};CHK{90:150:1:128}=VAL{150}
#Power Line Frequency
ID{0x00980918};CHK{0:2:1:2}=VAL{2}
#Sharpness
ID{0x0098091b};CHK{0:128:1:80}=VAL{80}
#Backlight Compensation
ID{0x0098091c};CHK{0:1:1:0}=VAL{0}
#Exposure, Auto Priority
ID{0x009a0903};CHK{0:1:1:0}=VAL{0}
share|improve this question
add comment

1 Answer

The program guvcview uses a config file called .guvcviewrc in your home directory which controls all of the settings for guvcview. Inside you'll see in this example there is a profile path which defaults to default.gpfl

So, save your gpfl file as default.gpfl in your home directory and see if that works, if not, then change the location mentioned in the config file to where your profile file is.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.