Mailinglist Archive: opensuse-bugs (15100 mails)

< Previous Next >
[Bug 326319] yast2-printer uses outdated 'usb:/dev/usb/lp0' URI
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 19 Sep 2007 09:07:39 -0600 (MDT)
  • Message-id: <20070919150739.AABEB245358@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=326319#c7





--- Comment #7 from Johannes Meixner <jsmeix@xxxxxxxxxx>  2007-09-19 09:07:39 MST ---
I don't know if there is an easy fix.
The yast2-printer code is complicated (at least for me).

It worked for 10.2 (at least for me).

It seems somehow "hwinfo" stuff is now re-introduced
(perhaps in an attempt to fix bug #307118)
or whatever else the current reason is.

Manual USB printer setup works for me on my test machine caps.suse.de
via [Add] -> (*) Directly connected printers -> (*) USB printer ...

But it does not work when there is no queue for the printer
so that YaST does something automatically (i.e. select the
model from the list and then [Edit] -> ...).
This way I get the outdated DeviceURI.

Perhaps for Klaus it is the same as for me or for him
the reason is as in bug #264771 in particular
https://bugzilla.novell.com/show_bug.cgi?id=264771#c6

But when there is no "new-style" usb URI,
it doesn't work to fall back to the outdated style, see
https://bugzilla.novell.com/show_bug.cgi?id=264771#c9

Perhaps this leads to an easy "fix":

  if "usb://dev/usb/lp" is a substing of the URI in YaST
  then do not set up a queue with this URI
       but show an error message to the user

In contrast to
https://bugzilla.novell.com/show_bug.cgi?id=264771#c6
it doesn't work for me even when /usr/lib/cups/backend/usb
results perfect output:
--------------------------------------------------------------------------
caps:~ # /usr/lib/cups/backend/usb 
direct usb://hp/deskjet%203320?serial=TH27T2H35B35
 "hp deskjet 3320" "hp deskjet 3320 USB #1"
 "MFG:hp;MDL:deskjet 3320;CID:hpdeskjet_332011B3;
  CMD:LDL,DYN;CLS:PRINTER;DES:hp deskjet 3320;
  SN:TH27T2H35B35;S:0380008000021000092c148104cc2501055;"

caps:~ # mv /var/log/YaST2/y2log /var/log/YaST2/y2log.save

caps:~ # yast2 printer

caps:~ # lpstat -v | grep -v ipp
device for deskjet3320: usb:/dev/usb/lp0

caps:~ # /usr/lib/cups/backend/usb 
direct usb://hp/deskjet%203320?serial=TH27T2H35B35
 "hp deskjet 3320" "hp deskjet 3320 USB #1"
 "MFG:hp;MDL:deskjet 3320;CID:hpdeskjet_332011B3;
 CMD:LDL,DYN;CLS:PRINTER;DES:hp deskjet 3320;
 SN:TH27T2H35B35;S:0380008000021000092c148104cc2501055;"
--------------------------------------------------------------------------

Yast should have set up the queue deskjet3320 using the DeviceURI
usb://hp/deskjet%203320?serial=TH27T2H35B35


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References