6 Jun 2008 berend   » (Journeyer)

Still busy with my new HP CM1015. I tried to get the scanner to work by hacking the FreeBSD uscanner.ko module to recognise it. For this spare time kernel hacker this luckily involved no more than adding a USB id. But that didn't really work. Even when hacking the SANE hplj1005 driver to also recognise the ID.

But I finally found out that the HPLIP project completely supports my printer, so that includes scanning. So after "portinstall hplip" I hoped things would work. But it was a bit more difficult than that I found out. For FreeBSD you have to disable the ultp module. So recompile the kernel.

And this time hp-info found my printer:

$ hp-info

HP Linux Imaging and Printing System (ver. 2.8.2) Device Information Utility ver. 3.4

Copyright (c) 2001-7 Hewlett-Packard Development Company, LP This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details.

Using device: hp:/usb/HP_Color_LaserJet_CM1015?serial=00CNBY69BGD8

hp:/usb/HP_Color_LaserJet_CM1015?serial=00CNBY69BGD8

Device Parameters (dynamic data): Parameter Value(s)

I deleted all the previous CUPS printers I had setup and started to add HPLIP printers. The nice thing about HPLIP is that the printer is already listed in the drop down box. You could also upload a .ppd file which I did. I uploaded the .pdd file that came with the hplip distribution, which was /usr/local/share/ppd/HP/HP_Color_LaserJet_CM1015-ps.ppd in my case. It turned out to be the same one I used previously.

OK, printer working great. Pushing stuff through to my samba network for my Windows machines was just running cupsaddsmb as I still had everything setup for that Now the scanner.

sane-find-scanner immediately found my scanner. But scanimage -L tells me there's no scanner. I didn't have hpaio in my dll.conf, but adding that didn't help. So still stuck. I now have code that should work, but doesn't. Might be a FreeBSD problem or not. Too bad. It seems the state of printing and scanning on Linux is pretty good with HP printers, so maybe I should check if it works on Linux.

Latest blog entries     Older blog entries

New Advogato Features

FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!