Martin,

In http://bugs.debian.org/298064 you supplied a patch, used in ubuntu, to 
enable hpoj to run as non-root, which has been applied to the Debian 
hpoj-0.91-5.  While it does take care of the magic for usb printers, it 
doesn't seem to do the same for parallel printers.

This is a bit of a problem as while hpoj does support usb printers and running 
as non root is good, however hplip also supports and is preferred for usb 
printers.  However hpoj also supports parallel printers and hplip doesn't.

I see the problem is reported to ubuntu as well 
http://bugzilla.ubuntu.com/show_bug.cgi?id=11821. I couldn't find an easy way 
to link the ubuntu& debian bugs which is annoying :-(

It would appear that the generated user hpojlp isn't a member of the lp group 
and thus doesn't have permission to access the parallel port.

Looks like something funny is happening in debian/postint with the --ingroup 
call.

I have fixed in hpoj-0.91-6 with an explicit call to add hpojlp to the lp 
group.

Mark


----------  Forwarded Message  ----------

Subject: Bug#303260: hpoj: Found "printer" but failed to communicate with it!
Date: Tuesday 05 April 2005 17:58
From: "J.L. Fernandez Jambrina" <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>

Package: hpoj
Version: 0.91-4
Severity: important

ptal-init setup command is unable to comunicate with parallel printers.
I tried it with two printers (an "DESKJET 1120C" and an "HP Laserjet
4100"), two computers and two cables. This is the output of ptal-init
setup:

Probe parallel port "-base 0x378 -basehigh 0x778 -device /dev/lp0"
(y/[n])?  y

    *** Found "DESKJET 1120C" but failed to communicate with it!
    *** Elapsed time for this attempt was 1 second(s).
    *** Check syslog file for ptal-mlcd error messages.
    *** See hpoj documentation for troubleshooting information.



I am able to print to the printer through the pararalel backend provided
by cupsys.

The content of /proc/sys/dev/parport/parport0/modes is
PCSPP,TRISTATE,COMPAT,ECP,DMA

The content of /proc/sys/dev/parport/parport0/base-addr is
888     1912
translated to hexadecimal gives 0x378 0x778

The output in /var/log/syslog is

Apr  5 18:52:15 xuxa ptal-mlcd: SYSLOG at ExMgr.cpp:3512,
 dev=<mlc:par:probe>, pid=4521, e=2, t=1112719935 Apr  5 18:52:15 xuxa
 ptal-mlcd: SYSLOG at ExMgr.cpp:652, dev=<mlc:par:probe>, pid=4522, e=2,
 t=1112719935 Apr  5 18:52:15 xuxa kernel: lp0: ECP mode
Apr  5 18:52:15 xuxa ptal-mlcd: ERROR at
 /var/lib/mythtv/mnt/home/msp/src/debian/hpoj/hpoj-0.91/mlcd/ParPort.h:782Apr
 5 18:52:16 xuxa ptal-mlcd: ERROR at
 /var/lib/mythtv/mnt/home/msp/src/debian/hpoj/hpoj-0.91/mlcd/ParPort.h:641Apr
 5 18:52:16 xuxa ptal-mlcd: ERROR at ExMgr.cpp:3606,
 dev=<mlc:par:probe@/dev/lp0>, pid=4522, e=25, t=111271993Apr  5 18:52:16
 xuxa ptal-mlcd: ERROR at ExMgr.cpp:2559, dev=<mlc:par:probe@/dev/lp0>,
 pid=4522, e=25, t=111271993A

        José,


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=es_ES, LC_CTYPE=es_ES (charmap=ISO-8859-1)

Versions of packages hpoj depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries
 an ii  libgcc1                     1:3.4.3-12   GCC support library
ii  libsnmp5                    5.1.2-6.1    NET SNMP (Simple Network
 Managemen ii  libstdc++5                  1:3.3.5-8    The GNU Standard C++
 Library v3 ii  libusb-0.1-4                2:0.1.10a-6  userspace USB
 programming library

-- no debconf information

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

Reply via email to