---
layout: post
status: publish
published: true
title: Fixing scanning on an HP Photosmart C6300 series in Ubuntu 12.10

wordpress_id: 2518
wordpress_url: https://www.martineve.com/?p=2518
date: !binary |-
  MjAxMi0xMi0wNyAwOToxNzo0OSArMDEwMA==
date_gmt: !binary |-
  MjAxMi0xMi0wNyAwOToxNzo0OSArMDEwMA==
categories:
- Technology
- Linux
tags:
- Linux
- Ubuntu
- hplip
- xsane
- gscan2pdf
- scannning
comments: []
---
<p>If you own an HP Photosmart C6300 series and upgraded to Ubuntu 12.10, you may have noticed that you are unable to set the scan resolution (DPI) in any of your programs. gscan2pdf has the scan resolution dropdown menu greyed out and you will be unable to get xsane to present you with a list of resolutions.</p>
<p>The answer is that the models.dat shipped with <a href="http://hplipopensource.com/hplip-web/release_notes.html">hplip versions under 3.12.10</a> contains <a href="https://bugs.mageia.org/show_bug.cgi?id=7637">an error</a>. To fix this, <a href="https://answers.launchpad.net/hplip/+question/208678">you simply need to edit</a> (as root) /usr/share/hplip/data/models/models.dat and change</p>
<p>scan-src=2<br />
to<br />
scan-src=1</p>
<p>in the section called photosmart_c6300_series (it has to be this section, not the generic photosmart section).</p>
<p>For those who don't know how to do this, if you open up a Terminal window and type the following, you should, once you've entered your password at the prompt, get a visual editor that will make this easier:</p>
{% highlight bash %}
sudo gedit /usr/share/hplip/data/models/models.dat
{% endhighlight %}

<p>Hope that helps somebody!</p>