Scanner

Jan 7, 2013·
Julio Batista Silva
Julio Batista Silva
· 1 min read
blog

Install the programs

sudo pacman -Ss sane xsane xsane-gimp hplip

Add your user to the lp and scanner groups

sudo gpasswd -a julio lp
sudo gpasswd -a julio scanner

Test if the scanner is recognized

$ scanimage -L
  device `v4l:/dev/video0' is a Noname HD Video WebCam virtual device

In my case, it was not recognized.

lsusb

$ lsusb
  Bus 001 Device 002: ID 064e:a133 Suyin Corp.
  Bus 006 Device 003: ID 03f0:3f11 Hewlett-Packard PSC-1315/PSC-1317

ptal-init

$ sudo ptal-init setup
  Probing "/dev/usb/lp0"      Found "psc 1310 series "
      with serial number "BR5763H068O2".
      This device is already set up as "mlc:usb:psc_1310_series_".
$ sudo ptal-init start
  Stopping the HP OfficeJet Linux driver.
  Starting the HP OfficeJet Linux driver.
      mlc:usb:psc_1310_series_

Test if it is working

scanimage -d hpoj:mlc:usb:psc_1310_series_ --test
scanimage -d hpoj:mlc:usb:psc_1310_series_ --format=tiff > test.tiff

File /etc/sane.d/dll.conf

Add hpoj and hpaio to the file /etc/sane.d/dll.conf

$ scanimage -L
  device `hpaio:/usb/psc_1310_series?serial=BR5763H068O2' is a Hewlett-Packard psc_1310_series all-in-one
  device `v4l:/dev/video0' is a Noname HD Video WebCam virtual device
  device `hpoj:mlc:usb:psc_1310_series_' is a hp psc 1310 series  multi-function peripheral

Julio Batista Silva
Authors
Senior Cloud Developer

I’m a Brazilian computer engineer based in Germany, passionate about tech, science, photography, and languages.

I’ve been programming for about two decades already, exploring everything from mobile apps and web development to machine learning. These days I focus on cloud SRE and data engineering.

I volunteer in the open source and Python communities, helping organize PyCon DE and PyData Berlin, mentoring, and contributing with code and translations.

On my blog, I share Linux tips, setup guides, and personal notes I’ve written for future reference. I hope others find them helpful as well. The content is available in multiple languages.

Browse my gallery for some of my photography.

Away from the keyboard, you’ll find me at concerts, playing clarinet, cycling, scuba diving, or exploring new places, cultures, and cuisines.

Always happy to connect! 🙂

comments powered by Disqus