Unix Technical Forum

usb printer with udev

This is a discussion on usb printer with udev within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I open a new tread for this argument. I have Slackware current with udev without hotplug. All devices work ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 05:28 PM
Mauro Sacchetto
 
Posts: n/a
Default usb printer with udev

I open a new tread for this argument. I have Slackware current
with udev without hotplug. All devices work fine, except the
printer, a USB HP Deskjet 6122. The printer is correctly identified
(lsusb -v) and the driver is charges (lsmod -v). In /dev
/dev/lp0 is regularly created. I configure the printer by CUPS
via browser, but when I try to print, CUPS tells me:
================================================== ====
HP DeskJet 6122 Foomatic/hpijs (recommended)
Description:
Location: locale
Printer State: idle, accepting jobs.
"Printer not connected; will retry in 30 seconds..."
Device URI: usb:/dev/usb/lp0
================================================== ====
Instead, another USB device, the scanner, works regularly.
Any suggestion?

Thanx!
MS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 05:28 PM
Wild Wizard
 
Posts: n/a
Default Re: usb printer with udev

"Mauro Sacchetto" <mauro.sacchetto@alice.it> wrote in message
news:44547630$0$18295$4fafbaef@reader1.news.tin.it ...
>I open a new tread for this argument. I have Slackware current
> with udev without hotplug. All devices work fine, except the
> printer, a USB HP Deskjet 6122. The printer is correctly identified
> (lsusb -v) and the driver is charges (lsmod -v). In /dev
> /dev/lp0 is regularly created. I configure the printer by CUPS
> via browser, but when I try to print, CUPS tells me:
> ================================================== ====
> HP DeskJet 6122 Foomatic/hpijs (recommended)
> Description:
> Location: locale
> Printer State: idle, accepting jobs.
> "Printer not connected; will retry in 30 seconds..."


> Device URI: usb:/dev/usb/lp0


My HP 845c has

DeviceURI usb://HP/DeskJet%20845C?serial=TH25T130VFSX

Considerably different don't you think? In fact there is no
reference to lp anything in any config file for that printer.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 05:28 PM
Mauro Sacchetto
 
Posts: n/a
Default Re: usb printer with udev

Wild Wizard wrote:
> My HP 845c has
> DeviceURI usb://HP/DeskJet%20845C?serial=TH25T130VFSX
> Considerably different don't you think? In fact there is no
> reference to lp anything in any config file for that printer.


Do u wrote a new udev rules?
Do u receive that configuration
in another way?

Thanx
MS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 05:29 PM
mgronk@gmail.com
 
Posts: n/a
Default Re: usb printer with udev

I have exactly the same problem with my hp 940c after last uprading
udev to slackware-current

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 05:29 PM
Bradley Reed
 
Posts: n/a
Default Re: usb printer with udev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 30 Apr 2006 10:32:47 +0200, Mauro Sacchetto wrote:
> I open a new tread for this argument. I have Slackware current
> with udev without hotplug. All devices work fine, except the
> printer, a USB HP Deskjet 6122. The printer is correctly identified
> (lsusb -v) and the driver is charges (lsmod -v). In /dev
> /dev/lp0 is regularly created. I configure the printer by CUPS


Ok... /dev/lp0 is created

> via browser, but when I try to print, CUPS tells me:
>================================================= =====
> HP DeskJet 6122 Foomatic/hpijs (recommended)
> "Printer not connected; will retry in 30 seconds..."
> Device URI: usb:/dev/usb/lp0


but it is looking for /dev/usb/lp0

They are not the same. I'd either reconfigure CUPS to look for
/dev/lp0 or rewrite the udev rule to write /dev/usb/lp0.

Actually, I'd probably do both. Make udev create a symlink to
/dev/printer or /dev/deskjet6122 or something similar. Then I'd
reconfigure CUPS to look for that.

Brad



-----BEGIN PGP SIGNATURE-----

iD8DBQFEVPM2kDp4KjYna1ARArATAJ4oP0AugX3mJVyoTj41WK jcmpbszACfR8QM
aWNHSmW2d41KCM5KbltsPDU=
=DrIa
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 05:29 PM
ANC
 
Posts: n/a
Default Re: usb printer with udev

mgronk@gmail.com wrote:

> I have exactly the same problem with my hp 940c after last uprading
> udev to slackware-current


The version of udev in slackware-current is .064 which is almost a year old
( the concept of 'current' in Slack does not mean that it has the 'latest'
packages from upstream. )

The latest version of udev for the 2.6.x (required) kernel is .091. You
might get this version at
http://www.us.kernel.org/pub/linux/u...ernel/hotplug/
and give it whack.

For what it is worth, in the Debian world udev is under almost constant
change (some say it is constantly broken). In the Sid repository we get a
new version almost every ten minutes!
http://packages.qa.debian.org/u/udev.html

I've had no problem with my Palm, jump drive, or camera, using udev but I've
not tried a USB printer. And on the deb boards I don't see too many
postings about printer problems and udev with cups. It's usually udev with
an external USB hard drive that you see postings.

anc

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 05:29 PM
Eric Hameleers
 
Posts: n/a
Default Re: usb printer with udev

ANC wrote:

> The version of udev in slackware-current is .064 which is almost a year old
> ( the concept of 'current' in Slack does not mean that it has the 'latest'
> packages from upstream. )


In -current, you will find 071 which is also the minimum required
version for recent 2.6 kernels.

Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 05:29 PM
Mauro Sacchetto
 
Posts: n/a
Default Re: usb printer with udev

ANC wrote:
> The version of udev in slackware-current is .064 which is almost a year
> old

I know, but I've the Peter Punk's udev version (i. e. 0.90).
And not able to print if I don't adopt hotplug....


MS

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 05:29 PM
Wild Wizard
 
Posts: n/a
Default Re: usb printer with udev

"Mauro Sacchetto" <mauro.sacchetto@alice.it> wrote in message
news:4454924e$0$14790$4fafbaef@reader4.news.tin.it ...
> Wild Wizard wrote:
>> My HP 845c has
>> DeviceURI usb://HP/DeskJet%20845C?serial=TH25T130VFSX
>> Considerably different don't you think? In fact there is no
>> reference to lp anything in any config file for that printer.

>
> Do u wrote a new udev rules?
> Do u receive that configuration
> in another way?


Nothing to do with /dev, cups no longer uses /dev for usb
printers.

Run '/usr/lib/cups/backend/usb' to get the URI for the usb
printer, or just select the printer from the web interface
when you set it up.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 05:29 PM
Mauro Sacchetto
 
Posts: n/a
Default Re: usb printer with udev

Bradley Reed wrote:
> Ok... /dev/lp0 is created
> but it is looking for /dev/usb/lp0
> They are not the same. I'd either reconfigure CUPS to look for
> /dev/lp0 or rewrite the udev rule to write /dev/usb/lp0.
> Actually, I'd probably do both. Make udev create a symlink to
> /dev/printer or /dev/deskjet6122 or something similar. Then I'd
> reconfigure CUPS to look for that.


Y're absolutly right. Solved!
Thanx!!

MS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:07 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com