Bug 311671 - lpinfo -l -v can't find make-and-model from any parallel printer
lpinfo -l -v can't find make-and-model from any parallel printer
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: cups (Show other bugs)
7
i386 Linux
low Severity high
: ---
: ---
Assigned To: Tim Waugh
Fedora Extras Quality Assurance
http://www.cups.org/str.php?L2535
:
Depends On:
Blocks: F7Update
  Show dependency treegraph
 
Reported: 2007-09-28 16:25 EDT by Dick Marinus
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version: 1.2.12-5.fc7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-10-24 03:04:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Dick Marinus 2007-09-28 16:25:25 EDT
# lpinfo -l -v

always gives:
...
Device: uri = parallel:/dev/lp0
        class = direct
        info = LPT #1
        make-and-model = Unknown
        device-id =
...

An unknown make-and-model.

I suppose LPIOC_GET_DEVICE_ID only works for USB printing devices.

Parallel devices should still be probed by the old code (as cups-1.1 did):
/proc/sys/dev/parport/parport%d/autoprobe

This is a strace on the parallel backend:
...
open("/dev/lp0", O_RDWR|O_EXCL|O_LARGEFILE) = 3
ioctl(3, SNDCTL_DSP_SYNC, 0xbfc44e3a)   = -1 EINVAL (Invalid argument)
...

I'm using Fedora 7 on a i686, 2.6.22.5-76.fc7

An older version of cups (1.1) worked with Fedora Core 4.

I've reported this bug at cups.org (see URL) and they answered:

"Please report this bug to Red Hat.  The ioctl() is supposed to work in current
kernels, and if it doesn't this is a kernel bug."
Comment 1 Dick Marinus 2007-10-09 10:30:35 EDT
I'm thinking of writing a kernel patch to implement this ioctl. How do you think
about this?
Comment 2 Tim Waugh 2007-10-09 11:17:56 EDT
Please hold off.  There was an implementation of this at one stage but it's been
taken out by the look of it.

Another solution is to use libieee1284.
Comment 3 Tim Waugh 2007-10-09 12:27:40 EDT
Fixed for F-8 using libieee1284: cups-1.3.3-2.fc8.  Keeping open for an F-7
backport.
Comment 4 Dick Marinus 2007-10-09 15:30:59 EDT
Very nice! Thank you so much!

Will you be sending this patch upstream? Michael Sweet (cups developer) insists
this is a kernel bug and he wants an ioctl.

http://www.cups.org/newsgroups.php?s4219+gcups.bugs+v4228+T0
Comment 5 Tim Waugh 2007-10-10 09:20:06 EDT
I've submitted the patch upstream and there will be a test update for F-7 shortly.
Comment 6 Fedora Update System 2007-10-10 21:47:39 EDT
cups-1.2.12-5.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cups'
Comment 7 Tim Waugh 2007-10-12 04:55:53 EDT
Please do test this and let me know if it works for you.  Thanks.
Comment 8 Fedora Update System 2007-10-24 03:04:09 EDT
cups-1.2.12-5.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 9 Dick Marinus 2007-10-24 03:15:12 EDT
Sorry for my late reaction, it works like a charm... Thanks a lot!

Note You need to log in before you can comment on or make changes to this bug.