public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* White Balance Temperature
@ 2012-01-15 10:16 Aurel
  2012-01-15 18:01 ` Laurent Pinchart
  0 siblings, 1 reply; 5+ messages in thread
From: Aurel @ 2012-01-15 10:16 UTC (permalink / raw)
  To: linux-media

Hi there

my "Live! Cam Socialize HD VF0610", Device ID: 041e:4080, Driver: uvcvideo is
running perfectly on Fedora 16 Linux, except one thing:
When I try to switch on "White Balance Temperature, Auto" or just try to change
"White Balance Temperature" slider I get a failure message and it won't work.
All other controls, like contrast, gamma, etc. are working.
"v4l2-ctl -d 1 --set-ctrl=white_balance_temperature_auto=1" produces an error
message:
"VIDIOC_S_CTRL: failed: Input/output error
white_balance_temperature_auto: Input/output error"

As soon as I boot Windows (inside Linux out of a Virtual Box), start the camera
there and go back to Linux, I am able to adjust and switch on the White Balance
things in Linux.
"v4l2-ctl -d 1 --set-ctrl=white_balance_temperature_auto=1" working fine after
running the camera in Windows.

Everytime I switch off my computer or disconnect the camera, I have to run the
camera in Windows again, bevor I can adjust White Balance in Linux.

What can I do to get White Balance controls working in Linux, without having to
run the camera in Windows every time?
Is there a special command I have to send to the camera for initializing or so?

Best regards
Aurel


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: White Balance Temperature
  2012-01-15 10:16 White Balance Temperature Aurel
@ 2012-01-15 18:01 ` Laurent Pinchart
  2012-01-15 20:25   ` Aurel
  0 siblings, 1 reply; 5+ messages in thread
From: Laurent Pinchart @ 2012-01-15 18:01 UTC (permalink / raw)
  To: Aurel; +Cc: linux-media

Hi Aurel,

On Sunday 15 January 2012 11:16:30 Aurel wrote:
> Hi there
> 
> my "Live! Cam Socialize HD VF0610", Device ID: 041e:4080, Driver: uvcvideo
> is running perfectly on Fedora 16 Linux, except one thing:
> When I try to switch on "White Balance Temperature, Auto" or just try to
> change "White Balance Temperature" slider I get a failure message and it
> won't work. All other controls, like contrast, gamma, etc. are working.
> "v4l2-ctl -d 1 --set-ctrl=white_balance_temperature_auto=1" produces an
> error message:
> "VIDIOC_S_CTRL: failed: Input/output error
> white_balance_temperature_auto: Input/output error"
> 
> As soon as I boot Windows (inside Linux out of a Virtual Box), start the
> camera there and go back to Linux, I am able to adjust and switch on the
> White Balance things in Linux.
> "v4l2-ctl -d 1 --set-ctrl=white_balance_temperature_auto=1" working fine
> after running the camera in Windows.
> 
> Everytime I switch off my computer or disconnect the camera, I have to run
> the camera in Windows again, bevor I can adjust White Balance in Linux.
> 
> What can I do to get White Balance controls working in Linux, without
> having to run the camera in Windows every time?
> Is there a special command I have to send to the camera for initializing or
> so?

Not that I know of. If you use the stock UVC driver in Windows, without having 
installed a custom driver for your device, that's quite unlikely.

Could you dump the value of all controls in Linux before and after booting 
Windows ?

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: White Balance Temperature
  2012-01-15 18:01 ` Laurent Pinchart
@ 2012-01-15 20:25   ` Aurel
  2012-01-17 10:56     ` Laurent Pinchart
  0 siblings, 1 reply; 5+ messages in thread
From: Aurel @ 2012-01-15 20:25 UTC (permalink / raw)
  To: linux-media

Laurent Pinchart <laurent.pinchart <at> ideasonboard.com> writes:

> 
> Hi Aurel,
> 
> On Sunday 15 January 2012 11:16:30 Aurel wrote:
> > Hi there
> > 
> > my "Live! Cam Socialize HD VF0610", Device ID: 041e:4080, Driver: uvcvideo
> > is running perfectly on Fedora 16 Linux, except one thing:
> > When I try to switch on "White Balance Temperature, Auto" or just try to
> > change "White Balance Temperature" slider I get a failure message and it
> > won't work. All other controls, like contrast, gamma, etc. are working.
> > "v4l2-ctl -d 1 --set-ctrl=white_balance_temperature_auto=1" produces an
> > error message:
> > "VIDIOC_S_CTRL: failed: Input/output error
> > white_balance_temperature_auto: Input/output error"
> > 
> > As soon as I boot Windows (inside Linux out of a Virtual Box), start the
> > camera there and go back to Linux, I am able to adjust and switch on the
> > White Balance things in Linux.
> > "v4l2-ctl -d 1 --set-ctrl=white_balance_temperature_auto=1" working fine
> > after running the camera in Windows.
> > 
> > Everytime I switch off my computer or disconnect the camera, I have to run
> > the camera in Windows again, bevor I can adjust White Balance in Linux.
> > 
> > What can I do to get White Balance controls working in Linux, without
> > having to run the camera in Windows every time?
> > Is there a special command I have to send to the camera for initializing or
> > so?
> 
> Not that I know of. If you use the stock UVC driver in Windows, without having 
> installed a custom driver for your device, that's quite unlikely.
> 
> Could you dump the value of all controls in Linux before and after booting 
> Windows ?
> 
Many thanks for your quick reply Laurent!

Here are the values before...
[aurel@DualCore ~]$ v4l2-ctl -d 1 -L
                     brightness (int)    : min=-128 max=127 step=1 default=0
value=0
                       contrast (int)    : min=64 max=255 step=1 default=128
value=128
                     saturation (int)    : min=0 max=255 step=1 default=128
value=128
                            hue (int)    : min=-128 max=127 step=1 default=0
value=0
 white_balance_temperature_auto (bool)   : default=1 value=0
                          gamma (int)    : min=72 max=500 step=1 default=100
value=128
                           gain (int)    : min=0 max=2 step=1 default=0 value=0
           power_line_frequency (menu)   : min=0 max=2 default=2 value=1
                                0: Disabled
                                1: 50 Hz
                                2: 60 Hz
      white_balance_temperature (int)    : min=2800 max=6500 step=1
 default=4600 value=4600
                      sharpness (int)    : min=0 max=100 step=1 default=0
value=0
         backlight_compensation (int)    : min=0 max=4 step=1 default=1 value=1
                               
                  exposure_auto (menu)   : min=0 max=3 default=1 value=3
                                1: Manual Mode
                                3: Aperture Priority Mode
              exposure_absolute (int)    : min=2 max=20000 step=1 default=156
value=16777372
[aurel@DualCore ~]$
...and after Windows...
[aurel@DualCore ~]$ v4l2-ctl -d 1 -L
                     brightness (int)    : min=-128 max=127 step=1 default=0
value=0
                       contrast (int)    : min=64 max=255 step=1 default=128
value=128
                     saturation (int)    : min=0 max=255 step=1 default=128
value=137
                            hue (int)    : min=-128 max=127 step=1 default=0
value=0
 white_balance_temperature_auto (bool)   : default=1 value=0
                          gamma (int)    : min=72 max=500 step=1 default=100
value=100
                           gain (int)    : min=0 max=2 step=1 default=0 value=0
           power_line_frequency (menu)   : min=0 max=2 default=2 value=1
                                0: Disabled
                                1: 50 Hz
                                2: 60 Hz
      white_balance_temperature (int)    : min=2800 max=6500 step=1
default=4600 value=4600
                      sharpness (int)    : min=0 max=100 step=1 default=0
value=0
         backlight_compensation (int)    : min=0 max=4 step=1 default=1 value=1
                  exposure_auto (menu)   : min=0 max=3 default=1 value=3
                                1: Manual Mode
                                3: Aperture Priority Mode
              exposure_absolute (int)    : min=2 max=20000 step=1 default=156
value=16777372
[aurel@DualCore ~]$ 
...not so much difference. 

And may be I didn't tell right before: I did install the original Live! Central
3 software by Creative in Windows. All I do is just start it and switch off
again. 
The interesting thing here is the "exposure_absolute" value. Much too high, but
can also be changed before Windows.

Regards
Aurel





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: White Balance Temperature
  2012-01-15 20:25   ` Aurel
@ 2012-01-17 10:56     ` Laurent Pinchart
  2012-01-17 20:47       ` Aurel
  0 siblings, 1 reply; 5+ messages in thread
From: Laurent Pinchart @ 2012-01-17 10:56 UTC (permalink / raw)
  To: Aurel; +Cc: linux-media

Hi Aurel,

On Sunday 15 January 2012 21:25:53 Aurel wrote:
> Laurent Pinchart <laurent.pinchart <at> ideasonboard.com> writes:
> > On Sunday 15 January 2012 11:16:30 Aurel wrote:
> > > Hi there
> > > 
> > > my "Live! Cam Socialize HD VF0610", Device ID: 041e:4080, Driver:
> > > uvcvideo is running perfectly on Fedora 16 Linux, except one thing:
> > > When I try to switch on "White Balance Temperature, Auto" or just try
> > > to change "White Balance Temperature" slider I get a failure message
> > > and it won't work. All other controls, like contrast, gamma, etc. are
> > > working. "v4l2-ctl -d 1 --set-ctrl=white_balance_temperature_auto=1"
> > > produces an error message:
> > > "VIDIOC_S_CTRL: failed: Input/output error
> > > white_balance_temperature_auto: Input/output error"
> > > 
> > > As soon as I boot Windows (inside Linux out of a Virtual Box), start
> > > the camera there and go back to Linux, I am able to adjust and switch
> > > on the White Balance things in Linux.
> > > "v4l2-ctl -d 1 --set-ctrl=white_balance_temperature_auto=1" working
> > > fine after running the camera in Windows.
> > > 
> > > Everytime I switch off my computer or disconnect the camera, I have to
> > > run the camera in Windows again, bevor I can adjust White Balance in
> > > Linux.
> > > 
> > > What can I do to get White Balance controls working in Linux, without
> > > having to run the camera in Windows every time?
> > > Is there a special command I have to send to the camera for
> > > initializing or so?
> > 
> > Not that I know of. If you use the stock UVC driver in Windows, without
> > having installed a custom driver for your device, that's quite unlikely.
> > 
> > Could you dump the value of all controls in Linux before and after
> > booting Windows ?

[snip]

> Here are the values before...
[snip]
>            saturation (int)    : min=0 max=255 step=1 default=128 value=128
>                 gamma (int)    : min=72 max=500 step=1 default=100 value=128
[snip]
> ...and after Windows...
[snip]
>            saturation (int)    : min=0 max=255 step=1 default=128 value=137
>                 gamma (int)    : min=72 max=500 step=1 default=100 value=100
[snip]
> ...not so much difference.

Indeed, only saturation and gamma differ. Have you tried setting saturation to 
137 and gamma to 100 in Linux (without booting Windows) and then changing the 
white balance controls ? I don't expect that to make any difference, but just 
in case...

> And may be I didn't tell right before: I did install the original Live!
> Central 3 software by Creative in Windows. All I do is just start it and
> switch off again.

Ah, that can play a role. The software might configure the camera when you 
plug it in using vendor-specific requests or extension units. Sniffing USB 
traffic in Windows could help verifying that.

> The interesting thing here is the "exposure_absolute" value. Much too high,
> but can also be changed before Windows.

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: White Balance Temperature
  2012-01-17 10:56     ` Laurent Pinchart
@ 2012-01-17 20:47       ` Aurel
  0 siblings, 0 replies; 5+ messages in thread
From: Aurel @ 2012-01-17 20:47 UTC (permalink / raw)
  To: linux-media

Hi Laurent

yes, I tried with saturation=137 and gamma=100, but no success.

Unfortunately I am not so familiar with sniffing USB traffic, but I could try to
send you a file captured with wireshark, when switching on the camera in
Windows. Only thing I have to figure out, how to filter out required traffic,
since it might be a very long file otherwise.
Would this be ok for you?

Regards
Aurel






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-17 20:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-15 10:16 White Balance Temperature Aurel
2012-01-15 18:01 ` Laurent Pinchart
2012-01-15 20:25   ` Aurel
2012-01-17 10:56     ` Laurent Pinchart
2012-01-17 20:47       ` Aurel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox