LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-08-2014, 05:09 AM   #1
opul
LQ Newbie
 
Registered: Jul 2012
Posts: 9

Rep: Reputation: Disabled
Change default webcam settings


Hi

I have a webcam connected via USB that I connect/ disconnect quite frequently. I also need to change the settings (shutter speed, gain etc..), every time, which I do in guvcview for Ubuntu 14.

But at some point this becomes a bit of a hassle. Does someone know what files I have to change so that when I reconnect a webcam, it will automatically have the preferred settings?
 
Old 10-09-2014, 02:09 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
I do not know whether there is config file you could edit but you could set the values in a script like below.

Quote:
#!/usr/bin/perl

# Logitech HD 720p Autofocus
system("uvcdynctrl -s 'Brightness' 120");
system("uvcdynctrl -s 'Contrast' 35");
system("uvcdynctrl -s 'Saturation' 50");
system("uvcdynctrl -s 'Sharpness' 100");
system("uvcdynctrl -s 'Focus, Auto' 1");
Then call the script when the webcam has started. It must be executable. (chmod 0755 /path/file.pl)
 
1 members found this post helpful.
  


Reply

Tags
default, settings, webcam



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change default jiffy settings junmuz Linux - Software 4 08-28-2011 03:39 PM
Cannot change webcam settings on Acer Aspire 9423 and 5010 EricTRA Ubuntu 0 10-08-2009 04:42 PM
How do I change the default settings for the guest account? win32sux Ubuntu 5 12-18-2008 05:13 PM
change grub boot order, all instructions say change default, but I don't see default mhg Linux - Newbie 5 11-09-2008 10:01 AM
How to reset monitor settings to default autodetected settings in openSUSE? chengas123 Linux - General 2 09-17-2008 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration