{"id":492,"date":"2010-07-17T11:17:38","date_gmt":"2010-07-17T15:17:38","guid":{"rendered":"http:\/\/www.timelordz.com\/blog\/?p=492"},"modified":"2010-07-27T16:43:24","modified_gmt":"2010-07-27T20:43:24","slug":"hp-c309g-wireless-linux-printing-hplip","status":"publish","type":"post","link":"https:\/\/www.timelordz.com\/blog\/2010\/07\/hp-c309g-wireless-linux-printing-hplip\/","title":{"rendered":"HP C309g Wireless Linux Printing &#038; HPLIP"},"content":{"rendered":"<p>We have wanted a wireless printer for our home, and I&#8217;ve been waiting for the prices to become reasonable. Then last weekend we scored on a refurbished Photosmart Premium C309g-m at CompUSA. Normally $199, we got it with a -$120 <em>instant<\/em> savings for a total of $79 at the register. For a 802.11g + Bluetooth enabled, reasonable quality photo printer and scanner, $79 just was a damn good deal. Especially considering it uses separate CMYK cartridges &#8211; it&#8217;s exactly what we were looking for. Best. Price. Ever.<\/p>\n<p>But the best thing about it really is the fantastic Linux drivers HP provides via the HP Linux Imaging and Printing (HPLIP) software. You can download the latest version at the <a title=\"HPIP\" href=\"http:\/\/hplipopensource.com\/hplip-web\/index.html\" target=\"_blank\">official HPLIP<\/a> site, but you might very well find it is already installed in your Linux distro, it commonly is these days. Just check to see if you have commands such as <span style=\"color: #00ffff;\">hp-setup<\/span>, <span style=\"color: #00ffff;\">hp-wirelessconfig<\/span> or <span style=\"color: #00ffff;\">hp-toolbox<\/span> already. If not, see if hplip is available in your distors repository, or download it using the above link.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.timelordz.com\/blog\/.\/wp-content\/uploads\/2010\/07\/HPLIP.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-493\" title=\"HPLIP\" src=\"http:\/\/www.timelordz.com\/blog\/.\/wp-content\/uploads\/2010\/07\/HPLIP-300x225.png\" alt=\"HPLIP Linux Interface\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.timelordz.com\/blog\/.\/wp-content\/uploads\/2010\/07\/HPLIP-300x225.png 300w, https:\/\/www.timelordz.com\/blog\/.\/wp-content\/uploads\/2010\/07\/HPLIP.png 843w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">Once installed you will have an HP icon in your systray for quick access to your printer settings:<\/p>\n<p style=\"text-align: left;\">\u00a0<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.timelordz.com\/blog\/.\/wp-content\/uploads\/2010\/07\/HPLIP-Systray.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-494\" title=\"HPLIP-Systray\" src=\"http:\/\/www.timelordz.com\/blog\/.\/wp-content\/uploads\/2010\/07\/HPLIP-Systray.png\" alt=\"\" width=\"295\" height=\"50\" \/><\/a><\/p>\n<p>I first used HPLIP about two years ago at work and was delighted to see how complete it was. It provides a full set of tools to interface with HP devices from Linux and provides a delightful user experience.<\/p>\n<p>On my device, which is a relatively new product, nearly all functions are supported: Wireless printing of course, photo printing (see tips below) and even wireless scanning &#8211; which really surprised me. Overall, using this printer in Linux- like many other HP products &#8211; is very well supported. Way to go HP!<\/p>\n<p>I did however run into a few little issues which had to be worked though, and you may encounter the same. So here are some notes on what\u00a0 I did to resolve the snags I encountered.<\/p>\n<p><!--more--><span style=\"color: #00ffff;\"><strong>Printer Not Found by HPLIP<\/strong><\/span><\/p>\n<p>The version on HPLIP (3.8.8) in Suse 11.2 did not contain information for my printer in its device database. Thus when running hp-setup the device was not and \/var\/log\/messages showed:<\/p>\n<p><span style=\"color: #00ffff;\">Jul\u00a0 5 18:20:41 Callandor hp[14231]: io\/hpmud\/musb.c 2022: ignoring hp:\/usb\/Photosmart_Premium_C309g-m?serial=MY026580C705D7 support=0<br \/>\n Jul\u00a0 5 18:20:41 Callandor hp[14231]: io\/hpmud\/model.c 539: no Photosmart_Premium_C309g-m attributes found in \/usr\/share\/hplip\/data\/models\/unreleased\/unreleased.dat<br \/>\n Jul\u00a0 5 18:20:41 Callandor hp[14231]: io\/hpmud\/model.c 528: no Photosmart_Premium_C309g-m attributes found in \/usr\/share\/hplip\/data\/models\/models.dat<\/span><\/p>\n<p>Clearly, it was not included in the models.dat file, which is just a huge txt file containing config information. Now, I could just update to a newer version of HPLIP &#8211; but Suse&#8217;s case that lead to an annoying issue with zypper wanting to install <a href=\"http:\/\/www.pubbs.net\/200912\/opensuse\/35514-opensuse-oss-112-bug-in-hplip.html\">mixed versions<\/a> of some of the packages from the Pakman repo, and OSS only has the older version. And of course, I could have simply downloaded the new version from HP &#8211; but just as an experiment, I simply copied over the models.dat file form a newer Unbuntu Lucid install of HPLIP and it worked perfectly.<\/p>\n<p><strong><span style=\"color: #00ffff;\">Suse 11.3 Upgrade and CUPS Issues<\/span><\/strong><\/p>\n<p>After upgrading to Suse 11.3 I had a few issues.<\/p>\n<p>First, HPLIP was updated and the printer was no longer recognized. When re-running hp-setup it did not find it attached when connected via USB and the output showed permission errors reading the \/dev\/ device files. A quick fix on this was simply to run (as root):<\/p>\n<p><span style=\"color: #00ffff;\">Callandor:~ # chmod -R a+rw \/dev\/bus\/usb\/*<\/span><\/p>\n<p>While this only works for your current log in session (as \/dev is a psudo-file system, recreated each time you boot) this is fine, as you just need to get the printer recognized once to set up the wireless and it will thereafter be detected on the net bus rather than the usb. You could add your user to the uucp group, but this did not work in my case.<\/p>\n<p>Second, once recognized in hp-setup, the step to add the printer failed, sdaly giving this error:<\/p>\n<p><span style=\"color: #00ffff;\">Searching&#8230; (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=mdns)<br \/>\n\\error: No PPD found for model photosmart_premium_c309g-m using new algorithm. Trying old algorithm&#8230;<br \/>\nerror:\u00a0 Printer queue setup failed.\u00a0 Please restart CUPS and try again.<\/span><\/p>\n<p>Turning on debug in cups in \/etc\/cups\/cupsd.conf and restarting CUPS, and then doing a tail -f \/var\/log\/cups\/error_log showed a permissions issue when hp-setup attemtped to add the device. While there are several ways you could resolve this, I opted for the easiest, and simply modified the policy in \/etc\/cups\/cupsd.conf (It looks like the new Suse \/ Novell version of CUPS has some more restrictive permissions which you can review in the config.) You can open up the permissions fully by changing the DefalutPolicy to:<\/p>\n<p><span style=\"color: #00ffff;\"># Explicitely set the CUPS &#8216;default&#8217; policy to be used by default:<br \/>\n#DefaultPolicy default<br \/>\nDefaultPolicy allowallforanybody<br \/>\n# End of additions by openSUSE\/Novell.<\/span><\/p>\n<p><span style=\"color: #00ffff;\"><strong>Photo Printing &#8211; &#8220;Paper size mismatch&#8221; Error<\/strong><\/span><\/p>\n<p>Despite adjusting settings in applications like F-Stop and in the HP Printer interface, I was never able to get around this error. Lots of sites recommend setting the paper type to &#8220;normal&#8221; rather than photo or auto, adjusting paper sizes ad nauseum, etc. and that this would correct it &#8211; but nay, every setting I attempted was not successful. Bummer as this printer does a decent job printing photos and has a dedicated photo paper try that slides in automatically when used etc., so I really wanted this to work.<\/p>\n<p>The solution that which for me was to install GutenPrint and print my photos from Gimp. This works well, though I am still figuring out how to get full edge to edge printing. Installing GutenPrint is easy, but you then need to configure the printer in it. To do so you will need the .ppd file for your model. Now, you may find you do not actually have that if\u00a0 you installed a pre-packaged version of HPLIP. To get the .ppd, just download the software from HP and run the installer which will unzip the archive for you &#8211; then just exit the installer. Now, look in the uncompressed HPLIP folder and you will find the .ppd you can use for GutenPrint. It w will bu gziped, so just uncompress it and then feed it into the GutenPrint setup. For example, mine was located in:<\/p>\n<p><span style=\"color: #00ffff;\">mieren@mieren-ubuntu:~\/Downloads$ find hplip-3.10.5\/ -iname *ppd* | grep c309g<br \/>\n hplip-3.10.5\/ppd\/hpcups\/hp-photosmart_premium_c309g-m.ppd<br \/>\n hplip-3.10.5\/ppd\/hpcups\/hp-photosmart_premium_c309g-m.ppd.gz<br \/>\n <\/span><\/p>\n<p>Note: There are <em>LOTS<\/em> of settings for paper sizes, etc. in both the HP and GutenPrint settings, and it is pretty easy to get the wrong size selected. Dig around and make sure you really have selected everything correctly and it should work. You just have to figure out the interface and sort through the many settings.<\/p>\n<p><span style=\"color: #00ffff;\"><strong>Scanning<\/strong><\/span><\/p>\n<p>I have not had much trouble scanning from either the HPLIP software or Xsane, both of which seem to work quite nicely. Please note however that should you have trouble here, you may also use the web scan feature of the printer. Just go to the printers web page (which you can get to from the HPLIP Device Manger ==&gt; Actions ==&gt; Open Printers Web Page in your Browser) and use Webscan. This will scan the image and download it via your browser with no need to use any other software on your system. Nice.<\/p>\n<p><span style=\"color: #00ffff;\"><strong>Web Resources<\/strong><\/span><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"P3riNWcysF\"><p><a href=\"https:\/\/www.susegeek.com\/general\/installconfigure-hplip-hp-linux-imaging-printing\/\">Install\/Configure HPLIP &#8211; HP Linux Imaging &#038; Printing<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Install\/Configure HPLIP &#8211; HP Linux Imaging &#038; Printing&#8221; &#8212; SUSEGEEK\" src=\"https:\/\/www.susegeek.com\/general\/installconfigure-hplip-hp-linux-imaging-printing\/embed\/#?secret=ZcAVGpLiel#?secret=P3riNWcysF\" data-secret=\"P3riNWcysF\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>http:\/\/gimp-print.sourceforge.net\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have wanted a wireless printer for our home, and I&#8217;ve been waiting for the prices to become reasonable. Then last weekend we scored on a refurbished Photosmart Premium C309g-m at CompUSA. Normally $199, we got it with a -$120 instant savings for a total of $79 at the register. For a 802.11g + Bluetooth [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,13],"tags":[46,47,45,48],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-linux","category-my-life","tag-c309g","tag-gutenprint","tag-hplip","tag-paper-size-mismatch"],"_links":{"self":[{"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/comments?post=492"}],"version-history":[{"count":5,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/posts\/492\/revisions"}],"predecessor-version":[{"id":497,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/posts\/492\/revisions\/497"}],"wp:attachment":[{"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/media?parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/categories?post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/tags?post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}