<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ubuntu intrepid &#8211; Everything is Broken</title>
	<atom:link href="https://play.datalude.com/blog/tag/ubuntu-intrepid/feed/" rel="self" type="application/rss+xml" />
	<link>https://play.datalude.com/blog</link>
	<description>Efficiency vs. Inefficiency, in a no-holds barred fight.</description>
	<lastBuildDate>Sat, 03 Jan 2009 06:40:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Z-star Video Camera working in Ubuntu Intrepid</title>
		<link>https://play.datalude.com/blog/2009/01/zmicro-video-camera-working-in-ubuntu-intrepid/</link>
					<comments>https://play.datalude.com/blog/2009/01/zmicro-video-camera-working-in-ubuntu-intrepid/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 03 Jan 2009 06:33:42 +0000</pubDate>
				<category><![CDATA[General IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu intrepid]]></category>
		<category><![CDATA[video camera]]></category>
		<category><![CDATA[webcam]]></category>
		<category><![CDATA[zstar microelectronics ZC0301]]></category>
		<guid isPermaLink="false">http://play.datalude.com/blog/?p=117</guid>

					<description><![CDATA[At last. Its a lazy Saturday after New Year, and I just got around to fixing another one of the things which broke when I upgraded to Intrepid &#8211; the video camera. Actually I don't really use it much, hence it got dropped to the back of the queue, but its nice to get things ... <a title="Z-star Video Camera working in Ubuntu Intrepid" class="read-more" href="https://play.datalude.com/blog/2009/01/zmicro-video-camera-working-in-ubuntu-intrepid/" aria-label="Read more about Z-star Video Camera working in Ubuntu Intrepid">Read more</a>]]></description>
										<content:encoded><![CDATA[<p>At last. Its a lazy Saturday after New Year, and I just got around to fixing another one of the things which broke when I <a href="http://play.datalude.com/blog/?p=107">upgraded to Intrepid</a> &#8211; the video camera. Actually I don't really use it much, hence it got dropped to the back of the queue, but its nice to get things working again.</p>
<p>Here's the relevant info:<span id="more-117"></span></p>
<blockquote><p>$&gt; tail -f /var/log/messages</p>
<p>{insert camera}</p>
<p>Jan  3 14:28:13  kernel: [18540.528056] usb 5-1: new full speed USB device using uhci_hcd and address 4<br />
Jan  3 14:28:13  kernel: [18540.741888] usb 5-1: configuration #1 chosen from 1 choice<br />
Jan  3 14:28:13  kernel: [18540.745214] gspca: probing 0ac8:301b<br />
Jan  3 14:28:14  kernel: [18541.048159] zc3xx: probe sensor -&gt; 0a<br />
Jan  3 14:28:14  kernel: [18541.048168] zc3xx: Find Sensor PB0330. Chip revision 0<br />
Jan  3 14:28:14  kernel: [18541.055586] gspca: probe ok</p>
<p>$&gt; lsusb<br />
Bus 005 Device 004: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam</p>
<p>$&gt; lsmod | grep gspca<br />
gspca_zc3xx            55936  0<br />
gspca_main             29312  1 gspca_zc3xx<br />
videodev               41344  1 gspca_main<br />
usbcore               148848  6 gspca_zc3xx,gspca_main,usbhid,uhci_hcd,ehci_hcd</p>
<p>$ ls /dev/video*<br />
/dev/video0</p></blockquote>
<p>So everything <strong>seemed</strong> to be making the right noises, but any app I tried (camorama, skype) would just bomb out, being unable to find the camera.  I'd tried a couple of things before, such as recompiling the drivers, and adding lines to /etc/modprobe.d/blacklist and /etc/modprobe.d/options but nothing had worked, mainly I suspect, because these fixes related to the previous version of Ubuntu, 8.04. The answer was eventually very simple and was detailed <a href="https://answers.launchpad.net/ubuntu/+question/49739">here</a>. I'm gong to reproduce it below anyway:</p>
<blockquote><p>The core of the problem is that gspca drivers in 8.10 apparently implement V4L2, while many applications are still using V4L1 protocol. See <a rel="nofollow" href="http://hansdegoede.livejournal.com/3636.html">http://hansdegoede.livejournal.com/3636.html</a> .</p>
<p>Diagnostics:<br />
install camstream<br />
start camstream, open trace window, and start camera. Expect to see messages like:<br />
VIDIOCSYNC(1) failed (Invalid argument)</p>
<p>How to workaround this (see also <a rel="nofollow" href="https://lists.linux-foundation.org/pipermail/bugme-janitors/2008-October/011912.html">https://lists.linux-foundation.org/pipermail/bugme-janitors/2008-October/011912.html</a>):</p>
<p>1. Download and unpack <a rel="nofollow" href="http://people.atrpms.net/%7Ehdegoede/libv4l-0.5.0.tar.gz">http://people.atrpms.net/~hdegoede/libv4l-0.5.0.tar.gz</a><br />
2. See README, and install: sudo make install<br />
3. Open terminal window<br />
4. $ export  LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so<br />
5. $ camstream<br />
Start camera, should now work.</p>
<p>How to make skype work:<br />
1. create new shell script (call it skype_wrapper), put it somehwere (e.g. /usr/local/bin/skype_wrapper). Content:<br />
#!/bin/bash<br />
export LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so<br />
skype<br />
2. Open System/Root Menu manager, locate Skype, Edit the shortcut replacing command "skype" =&gt; "/usr/local/bin/skype_wrapper".<br />
3. Start skype (restart, if already running). Test video should now work.</p></blockquote>
<p>All good. Even the skype fix worked. Now its just bluetooth to fix &#8230; mutter mutter.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://play.datalude.com/blog/2009/01/zmicro-video-camera-working-in-ubuntu-intrepid/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
