{"id":429,"date":"2009-01-18T15:52:48","date_gmt":"2009-01-18T14:52:48","guid":{"rendered":"http:\/\/www.dotmana.com\/index.php\/?p=429"},"modified":"2009-01-18T15:52:48","modified_gmt":"2009-01-18T14:52:48","slug":"hercules-deluxe-webcam-compiling-drivers-for-ubuntu-810","status":"publish","type":"post","link":"http:\/\/www.dotmana.com\/weblog\/2009\/01\/hercules-deluxe-webcam-compiling-drivers-for-ubuntu-810\/","title":{"rendered":"Hercules Deluxe Webcam :compiling drivers for Ubuntu 8.10"},"content":{"rendered":"<p>Here again we are facing a crappy hardware with homebrewed drivers, not integrated: sunday morning, let&#8217;s compile something.<br \/>\nThat&#8217;s a translated how to from <a target=\"_blank\" href=\"http:\/\/alliberats.org\/arreglant-els-problemes-de-la-webcam-hercules-deluxe-amb-lubuntu-810-intrepid-ibex\/\">here<\/a><\/p>\n<p>Unplug the webcam<\/p>\n<div style=\"margin-left: 40px\">lsmod | grep ov<\/div>\n<p>to check if any module is loaded, and remove it<\/p>\n<div style=\"margin-left: 40px\">sudo rmmod gspca_ov519sudo rm -r\/lib\/modules\/`uname -r`\/kernel\/ubuntu\/misc\/media\/ov511<\/p>\n<p>sudo rm \/lib\/modules\/`uname -r`\/kernel\/drivers\/media\/video\/gspca<\/p><\/div>\n<p>So let&#8217;s download the drivers&#8217; sources:<\/p>\n<div style=\"margin-left: 40px\">wget http:\/\/www.rastageeks.org\/downloads\/ov51x-jpeg\/ov51x-jpeg-1.5.9.tar.gztar -zxwf ov51x-jpeg-1.5.9.tar.gz<\/p>\n<p>cd ov51x-jpeg-1.5.9\/<\/p>\n<p>sudo apt-get install build-essential linux-headers-`uname -r`<\/p>\n<p>make<\/p>\n<p>sudo make install<\/p>\n<p>sudo modprobe ov51x-jpeg<\/p>\n<p>echo &#8220;options ov51x-jpeg forceblock=1&#8221; | sudo tee -a \/etc\/modprobe.d\/options<\/p>\n<p>echo &#8220;options ov51x-jpeg force_palette=13&#8221; | sudo tee -a \/etc\/modprobe.d\/options<\/p>\n<p>tail -f \/var\/log\/syslog | grep &#8220;ov51x&#8221;<\/p><\/div>\n<p>and plug the webcam, something close to this should appears:<\/p>\n<p>kernel: [324189.288878] ov51x_jpeg: USB OV519 video device found<br \/>\nkernel: [324189.656291] ov51x_jpeg: Sensor is an OV7648<br \/>\nkernel: [324189.758541] ov51x_jpeg: Device at usb-0000:00:1d.1-2 registered to minor 1<\/p>\n<p>(control+c to quit)<\/p>\n<div style=\"margin-left: 40px\">gstreamer-properties<\/div>\n<p>and the webcam shoud show up<\/p>\n<p>If not, check the rights:<\/p>\n<div style=\"margin-left: 40px\">ls -l \/dev\/video*<br \/>\ncrwxrwxrwx+ 1 root video 81, 0 2009-01-14 20:03 \/dev\/video0<br \/>\ncrw-rw&#8212;-\u00a0 1 root video 81, 1 2009-01-18 14:10 \/dev\/video1<\/div>\n<p>The first one is good, but not the second webcam, only video access, so to correct it: create a simlink at the module initialisation:<\/p>\n<div style=\"margin-left: 40px\">sudo gedit \/etc\/udev\/rules.d\/80-programs.rules<\/div>\n<p>And add this line:<\/p>\n<div style=\"margin-left: 40px\">KERNEL==&#8221;video[0-1]&#8221;, NAME=&#8221;video%k&#8221;, SYMLINK+=&#8221;%k&#8221;, MODE=&#8221;0666&#8243;<\/div>\n<p>Restart the service<\/p>\n<div style=\"margin-left: 40px\">sudo \/etc\/init.d\/udev restart<\/div>\n<p>now check it works fine:<\/p>\n<div style=\"margin-left: 40px\">mplayer tv:\/\/ -tv driver=v4l:width=640:height=480:device=\/dev\/video0<\/div>\n<p>Now you end up with a perfectly working webcam, it&#8217;s time to check out the new cross plateform opensource webcam instant messaging:a<br \/>\n<a target=\"_blank\" href=\"http:\/\/www.qutecom.org\/\">http:\/\/www.qutecom.org\/<\/a><\/p>\n<p>(And to drop Skype)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here again we are facing a crappy hardware with homebrewed drivers, not integrated: sunday morning, let&#8217;s compile something. That&#8217;s a translated how to from here Unplug the webcam lsmod | grep ov to check if any module is loaded, and &hellip; <a href=\"http:\/\/www.dotmana.com\/weblog\/2009\/01\/hercules-deluxe-webcam-compiling-drivers-for-ubuntu-810\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,3,17],"tags":[],"class_list":["post-429","post","type-post","status-publish","format-standard","hentry","category-dev","category-ubuntu","category-voip"],"_links":{"self":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/comments?post=429"}],"version-history":[{"count":0,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/429\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/media?parent=429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/categories?post=429"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/tags?post=429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}