Did you answer "Yes" when it was asked whether you want to have 
auto-detection (installation, embedded view in MCC, wizard in expert 
mode) and did you not turn off auto-detection on the first wizard page 
(normal/recommended mode)? If so your device will get an MLC name as 
"ptal-init setup" would produce. If you really used auto-detection and 
got the MLC name "mlc:usb:0" then please run the following Perl program:

------------------------------------------------------------------------

#!/usr/bin/perl

open FILE, "$ARGV[0]" or die;

my $result;
# Calculation of IOCTL function 0x84005001 (to get device ID string):
# len = 1024
# IOCNR_GET_DEVICE_ID = 1
# LPIOC_GET_DEVICE_ID(len) = _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, len)
# _IOC(), _IOC_READ as defined in /usr/include/asm/ioctl.h

ioctl(FILE, 0x84005001, $result) or die;
close FILE;
# Remove non-printable characters
$result =~ tr/[\x0-\x1f]/\./;
print "$result\n";

-----------------------------------------------------------------------

and post its output when calling it with the device name of your printer 
as argument, as

    getusbprinterid /dev/usb/lp0

So i could see whether the auto-detection works correctly.

    Till


Con Kolivas wrote:

> Well done. The printer was detected correctly and the HPOJ ptal driver was 
> installed and printing worked fine.
> 
> I have a few comments to make though. Printerdrake chooses to setup the ptal 
> driver as the following device:
> 
> mlc:usb:0
> 
> and if it is setup with that name, scanning will NOT work even if the sane.d 
> settings for hp are changed.
> 
> If the name is the same as the device identified by the ptal-init setup 
> program to something like this:
> 
> mlc:usb:OfficeJet_G55
> 
> then scanning will work fine if the file is edited in /etc/sane.d/hp.conf to 
> look like this:
> 
> mlc:usb:OfficeJet_G55
> option connect-ptal
> 
> 
> A better option is the following:
> Start the device as the detected device name and add a new entry into 
> /etc/sane.d at the same time and call it
> hpoj.conf (that way the hp.conf file is not modified) and make it:
> 
> mlc:usb:$devicename
> option connect-ptal
> 
> where $devicename is that detected and setup by ptal-init
> 
> Then scanning will automatically work in xsane and all other gui scanner 
> programs as well.
> 
> Scannerdrake as you mentioned does not setup these devices, but instead of 
> saying "not supported" it should say "setup with printerdrake"
> 
> nb: This is a copy of a post I made on mandrakeforum.
> Keep up the good work!
> Con.
> 
> 


Reply via email to