Tech Blog

PiklesOnFire's Tech Postings

Well it's that time again - Arch and my HP Photosmart AIO

, , , , , , , , , , ,

If you are like me and have an HP Photosmart All In One scanner (mine is the c4435 - known as c4400 series on Linux), and you want to use sane or xsane to scan, you'll probably run into a few nasty issues. Don't fret though, we have a few simple fixes for these.

Warning: As is typical, the commands in this post are run as root, they are fairly easy, but I still take no responsibility for any damage that may arise from you following these instructions. Running anything as root on a Linux system can cause serious damage. If you are not the system administrator, computer owner, or someone authorized to be working on the system, please do not run these commands.

The first one is rather simple, add your user to the lp and scanner groups. As root, run:
usermod -a -G lp,scanner YourUser


Easy peasy.

The next bit is a little harder to find, it took several searches on Google, and didn't even relate to my distro. So I'm hoping this makes it easier for others to find.
What we need to do is add hpaio to the /etc/sane.d/dll.conf.

so we want to run (again as root):
nano /etc/sane.d/dll.conf


A side note: you can replace nano with gedit, kate, mousepad, medit, etc. I use nano because it doesn't leave nasty temp files like gedit does, and because I feel comfortable in the command interface. The choice is yours really though.

And find the section with all the hp devices listed. I had read we should comment those out. I advise against that just so you can keep your other devices working (in case you ever hook up another scanner).
I like to keep mine organized, so I put "hpaio" in this file right after "hp".

For refernce, here is a copy of my /etc/sane.d/dll.conf file:
[p0f@p0f ~]$ cat /etc/sane.d/dll.conf 
# enable the next line if you want to allow access through the network:
net
abaton
agfafocus
apple
avision
artec
artec_eplus48u
as6e
bh
canon
canon630u
canon_dr
canon_pp
cardscan
coolscan
coolscan2
coolscan3
dc25
dc210
dc240
dell1600n_net
dmc
epjitsu
epson
epson2
fujitsu
gphoto2
genesys
gt68xx
hp
hp3900
hpaio
hp3500
hp4200
hp5400
hp5590
hpljm1005
hpsj5s
hs2p
ibm
leo
lexmark
ma1509
matsushita
microtek
microtek2
mustek
mustek_pp
mustek_usb
mustek_usb2
nec
niash
pie
pint
pixma
plustek
plustek_pp
pnm
qcam
ricoh
rts8891
s9036
sceptre
sharp
sm3600
sm3840
snapscan
sp15c
st400
stv680
tamarack
teco1
teco2
teco3
test
u12
umax
umax_pp
umax1220u
v4l
xerox_mfp
[p0f@p0f ~]$ 


Hope this solves your issues like it did mine!

Happy Hacking
~Pikles~

Arch Linux... Hm, it feels like home.Arch on an ULPC + Why Windows 7 irks me...

Write a comment

New comments have been disabled for this post.