The problem seems to be that V4L2_CID_PANTILT_RESET is set to the wrong
value in track.h. The correct value (from logitech.xml) is 0x0A046D03.
Setting the value in track.h cures the problem and I can now control the
pan and tilt via the http interface.
The values of V4L2_CID_PAN_RELATIVE and V4L2_CID_TILT_RELATIVE are
correct and in any case are defined in videodev2.h.
There has been a lot of related discussion on various forums but there
is disagreement about the values:
Only the 3rd set seems to work.
There are claims that V4L2_CID_PANTILT_RESET is defined in uvcvideo.h.
All I can say is that in Ubuntu 10.10 it isn't defined anywhere. However
there are separate V4L2_CID_PAN_RESET and V4L2_CID_TILT_RESET macros.
Changing the value in logitech.xml didn't have any effect (even after a
reboot). For the record, my device ID (from lsusb) is 046d:0994.
I did originally make some progress using various 'quirks' in the
uvcvideo driver. I wasn't able to get full operation but at least I
didn't get errors all the time. Unfortunately it wasn't repeatable and
in any case I couldn't find a full list of the options.
On 13/07/2011 02:03, Robert J. Simpson wrote:
> I have a (new model) logitech orbit on Ubuntu 10.10. I'm attempting to
> manually control the tracking via a browser running locally. The
> browser returns 'Track Error' and the console displays "Failed to
> reset UVC camera to starting position! Reason: Invalid argument".
> I tried the solution described in
> which involves changing the values of V4L2_CID_PAN_RELATIVE,
> V4L2_CID_TILT_RELATIVE and V4L2_CID_PANTILT_RESET in logitech.xml but
> it didn't appear to make any difference. I'm assuming just restarting
> motion will be enough to read the updated file. Is this true?
> Pan/Tilt works fine with guvcview and the other functionality in
> motion seems to work fine.
> Any help appreciated.