You are not logged in.

#1 2007-12-10 03:02:08

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

what to put for scan line?

I've set up my hp printer and everything is working fine but i need to manually specify a scan command. could someone help me with this?

screenshothpdevicemanagjy1.th.png


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

#2 2007-12-10 06:55:38

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: what to put for scan line?

Hi theringmaster,
I have this command:

xsane -V $SANE_URI$

Offline

#3 2007-12-10 08:36:17

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: what to put for scan line?

Or if you need a specific URI you can get it with hp-makeuri which is part of hplip package.

Offline

#4 2007-12-10 20:16:24

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

Re: what to put for scan line?

mico wrote:

Or if you need a specific URI you can get it with hp-makeuri which is part of hplip package.

$ hp-makeuri -s 03f0:5c11
error: Device not found


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

#5 2007-12-10 20:18:22

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

Re: what to put for scan line?

luca wrote:

Hi theringmaster,
I have this command:

xsane -V $SANE_URI$

screenshoterrorwd4.th.png


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

#6 2007-12-10 23:16:25

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: what to put for scan line?

theringmaster wrote:
mico wrote:

Or if you need a specific URI you can get it with hp-makeuri which is part of hplip package.

$ hp-makeuri -s 03f0:5c11
error: Device not found

Try with increased verbosity to get more info on why it is not found:

Set the logging level:  -l<level> or --logging=<level>
<level>: none, info*, error, warn, debug (*default)
Run in debug mode:      -g (same as option: -ldebug)

Offline

#7 2007-12-11 02:14:21

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

Re: what to put for scan line?

mico wrote:
theringmaster wrote:
mico wrote:

Or if you need a specific URI you can get it with hp-makeuri which is part of hplip package.

$ hp-makeuri -s 03f0:5c11
error: Device not found

Try with increased verbosity to get more info on why it is not found:

Set the logging level:  -l<level> or --logging=<level>
<level>: none, info*, error, warn, debug (*default)
Run in debug mode:      -g (same as option: -ldebug)
[jeff@gnome-box ~]$ lsusb
Bus 004 Device 005: ID 03f0:5c11 Hewlett-Packard 
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 003: ID 045e:009d Microsoft Corp. 
Bus 001 Device 001: ID 0000:0000

there's my lsusb

[jeff@gnome-box ~]$ hp-makeuri -g 03f0:5c11

HP Linux Imaging and Printing System (ver. 2.7.10)
Device URI Creation Utility ver. 4.3

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.

hp-makeuri[11638]: debug: Gethostbyname() failed. Trying other patterns...
hp-makeuri[11638]: debug: Trying USB with bus=0 dev=5...
hp-makeuri[11638]: debug: Not found.
error: Device not found

and here is my verbose output. I could only do the -g flag and not the -s and -g flag together because it would just say "device not found"

Last edited by theringmaster (2007-12-11 02:16:57)


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

#8 2007-12-11 09:29:35

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: what to put for scan line?

gethostbyname() should work if you add your hostname to /etc/hosts but I think this error is not important anyway.

It looks as it is not trying the right bus:
Bus 004 Device 005: ID 03f0:5c11 Hewlett-Packard
hp-makeuri[11638]: debug: Trying USB with bus=0 dev=5...

I don't know how to fix this though.

Anyway, I just checked my config, I have this as external scan command:
xsane -V %SANE_URI%
Notice the % signs instead of $

What about
scanimage -L
does it find your scanner? If not, check permissions (are you in scanner group) and enabled modules in /etc/sane.d/dll.conf

Offline

#9 2007-12-11 17:41:03

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

Re: what to put for scan line?

mico wrote:

gethostbyname() should work if you add your hostname to /etc/hosts but I think this error is not important anyway.

It looks as it is not trying the right bus:
Bus 004 Device 005: ID 03f0:5c11 Hewlett-Packard
hp-makeuri[11638]: debug: Trying USB with bus=0 dev=5...

I don't know how to fix this though.

Anyway, I just checked my config, I have this as external scan command:
xsane -V %SANE_URI%
Notice the % signs instead of $

What about
scanimage -L
does it find your scanner? If not, check permissions (are you in scanner group) and enabled modules in /etc/sane.d/dll.conf

using xsane -V %SANE_URI% works. It will open xsane and i can then begin to scan my image. The scanimage -L command gives me:

[jeff@gnome-box ~]$ scanimage -L
device `hpaio:/usb/Photosmart_C4200_series?serial=CN798MY12J04VP' is a Hewlett-Packard Photosmart_C4200_series all-in-one

Last edited by theringmaster (2007-12-11 18:08:28)


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

Board footer

Powered by FluxBB