# Ubuntu – How to make webcam settings permanent

samsungwebcam

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}


% uvcdynctrl -L webcam_settings.gpfl

% uvcdynctrl -W webcam_settings.gpfl