View previous topic :: View next topic |
Author |
Message |
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Sat Mar 18, 2006 12:39 pm Post subject: printer problem [SOLVED] |
|
|
Quote: | dads paul # dmesg |grep print
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0C17
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0C17
dads paul # lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 004: ID 03f0:0c17 Hewlett-Packard
Bus 001 Device 002: ID 05e3:0604 Genesys Logic, Inc.
Bus 001 Device 001: ID 0000:0000
dads paul # |
shows that its there , but after configuring CUPS it says 'not connected '
Code: | dads paul # cat /etc/cups/cupsd.conf |grep ^[A_Za-z]
Allow From 127.0.0.1
Allow from 192.168.0.*
AuthType Basic
AuthClass System
Allow From 127.0.0.1
AccessLog /var/log/cups/access_log
AutoPurgeJobs No
dads paul #
dads paul # cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Sat Mar 18 12:22:55 2006
<DefaultPrinter hp101>
Info Dads
Location DiningRoom
DeviceURI usb:/dev/usb/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
dads paul #
|
Dont know where my printer has gone ! _________________ join the optout - http://nhsconfidentiality.org
Last edited by thecooptoo on Tue Mar 28, 2006 8:58 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sat Mar 18, 2006 1:52 pm Post subject: |
|
|
thecooptoo,
Do you have the /dev entry Code: | DeviceURI usb:/dev/usb/lp0 | or do you have a different /dev node, like /dev/usblp0 ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Sat Mar 18, 2006 4:59 pm Post subject: |
|
|
nothing in /dev
is this relevant ?
Code: |
dads default # ls -la /dev/ |grep usb
dads default #
dads default # grep -R "usb" /etc/udev
/etc/udev/rules.d/50-udev.rules:# usb devices
/etc/udev/rules.d/50-udev.rules:KERNEL=="hiddev*", NAME="usb/%k"
/etc/udev/rules.d/50-udev.rules:KERNEL=="auer*", NAME="usb/%k"
/etc/udev/rules.d/50-udev.rules:KERNEL=="legousbtower*", NAME="usb/%k", GROUP="usb"
/etc/udev/rules.d/50-udev.rules:KERNEL=="dabusb*", NAME="usb/%k"
/etc/udev/rules.d/50-udev.rules:BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k", GROUP="lp"
/etc/udev/rules.d/50-udev.rules:KERNEL=="usblp", NAME="%k", GROUP="lp"
/etc/udev/rules.d/50-udev.rules:KERNEL=="sd*[!0-9]", ENV{ID_SERIAL}=="", IMPORT="/sbin/usb_id -x"
/etc/udev/rules.d/50-udev.rules:# usbfs-like device nodes
/etc/udev/rules.d/50-udev.rules:SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"
/etc/udev/permissions.d/50-udev.permissions:ttyUSB*:root:usb:0660
/etc/udev/permissions.d/50-udev.permissions:tts/USB[0-9]*:root:usb:0660
/etc/udev/permissions.d/50-udev.permissions:usblp*:root:lp:0660
/etc/udev/permissions.d/50-udev.permissions:usb/lp*:root:lp:0660
/etc/udev/permissions.d/50-udev.permissions:usb/scanner*:root:root:0600
/etc/udev/permissions.d/50-udev.permissions:usb/dc2xx*:root:root:0600
/etc/udev/permissions.d/50-udev.permissions:usb/mdc800*:root:root:0600
/etc/udev/permissions.d/50-udev.permissions:# usb devices
/etc/udev/permissions.d/50-udev.permissions:usb/dabusb*:root:usb:0660
/etc/udev/permissions.d/50-udev.permissions:usb/mdc800*:root:usb:0660
/etc/udev/permissions.d/50-udev.permissions:usb/rio500:root:usb:0660
/etc/udev/permissions.d/50-udev.permissions:usb/legousbtower*:root:usb:0660
dads default # |
_________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Sun Mar 19, 2006 8:58 am Post subject: |
|
|
looking around the fora there appears to be a problem with usb and udev/kernels
ive emerged hplip and run it but it didnt find d anything
when I add a symlink
Code: | dads default # ls -la /dev/usb
total 0
drwxr-xr-x 2 root root 60 Mar 19 07:23 .
drwxr-xr-x 23 root root 29880 Mar 19 07:23 ..
lrwxrwxrwx 1 root root 8 Mar 19 07:23 lp0 -> /dev/lp0
dads default # |
CUPS now sees the printer, but whne I send anything to it, it prints out the top LH corner ( 1 or 2 lines or 1/2 small graphic) and thats all. _________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
chrismortimore l33t
Joined: 03 Dec 2005 Posts: 721 Location: Edinburgh, UK
|
Posted: Sun Mar 19, 2006 11:10 am Post subject: |
|
|
Using hplip, if you go add your printer in cups there will be a new device starting hp:/usb/...
My PSC2355 works fine using that, it wouldn't work at all using the /dev node. _________________ Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB 7200rpm Maxtor DiamondMax 10, 2x320GB WD 7200rpm Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB 5400rpm IBM TravelStar, Nvidia 5200Go 64MB |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Sun Mar 19, 2006 10:38 pm Post subject: |
|
|
I ran hplip and configured the printer with CUPS, thanks
Code: | dads log # cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Sun Mar 19 21:34:29 2006
<DefaultPrinter hp101>
Info Dads
Location DiningRoom
DeviceURI usb://HP/LaserJet%201010
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
dads log # |
i can print a test page fom the printer without problem.
here s a tail of /var/log/cups/error_log , printing a test page from CUPS
Code: | I [19/Mar/2006:21:38:36 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=29196)
I [19/Mar/2006:21:38:42 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=29198)
I [19/Mar/2006:21:38:44 +0000] Adding start banner page "none" to job 55.
I [19/Mar/2006:21:38:44 +0000] Adding end banner page "none" to job 55.
I [19/Mar/2006:21:38:44 +0000] Job 55 queued on 'hp101' by 'root'.
I [19/Mar/2006:21:38:44 +0000] Started filter /usr/lib/cups/filter/pstops (PID 29199) for job 55.
I [19/Mar/2006:21:38:44 +0000] Started filter /usr/lib/cups/filter/pstoraster (PID 29200) for job 55.
I [19/Mar/2006:21:38:44 +0000] Started filter /usr/lib/cups/filter/rastertohp (PID 29201) for job 55.
I [19/Mar/2006:21:38:44 +0000] Started backend /usr/lib/cups/backend/usb (PID 29202) for job 55.
| and with debugging turned on Code: | D [19/Mar/2006:21:48:09 +0000] [Job 57] cupsBytesPerLine = 1168
D [19/Mar/2006:21:48:09 +0000] [Job 57] cupsColorOrder = 1
D [19/Mar/2006:21:48:09 +0000] [Job 57] cupsColorSpace = 8
D [19/Mar/2006:21:48:09 +0000] [Job 57] cupsCompression = 2
D [19/Mar/2006:21:48:09 +0000] [Job 57] cups_print_banded - flip = 0, height = 3208
D [19/Mar/2006:21:48:09 +0000] [Job 57] cups->header.Duplex = 0
D [19/Mar/2006:21:48:09 +0000] [Job 57] cups->page = 2
D [19/Mar/2006:21:48:09 +0000] [Job 57] cups->ppd = 0x89fbe00
D [19/Mar/2006:21:48:09 +0000] [Job 57] cups->ppd->flip_duplex = 0
D [19/Mar/2006:21:48:09 +0000] [Job 57] width = 2329, height = 3208
D [19/Mar/2006:21:48:09 +0000] [Job 57] PageSize = [ 595 842 ], HWResolution = [ 300 300 ]
D [19/Mar/2006:21:48:09 +0000] [Job 57] HWMargins = [ 18.000 36.000 18.000 36.000 ]
D [19/Mar/2006:21:48:09 +0000] [Job 57] matrix = [ 4.167 0.000 0.000 -4.167 -75.000 3358.333 ]
D [19/Mar/2006:21:48:09 +0000] UpdateJob: job 57, file 0 is complete.
D [19/Mar/2006:21:48:09 +0000] CancelJob: id = 57 |
and nothing comes out the printer _________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Thu Mar 23, 2006 7:46 pm Post subject: HP101 printer & unsupported personality |
|
|
hmmmm. Hplib has found the printer and when i try to print something I get
Unsupported personality: PCL as text on the page,
which others have got too according to
http://www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_1010
ive bee through https://forums.gentoo.org/viewtopic-t-437476-highlight-foomatic+ph+laserjet.html & added foo2zjs
After selecting USB printer #1(HP laserjet 1010)
it asked me for Make 'RAW/Dymo/EPSON/HP etc' - chose HP
then its Quote: |
'Color LaserJet Series PCL6 CUPS v1.1 (en)
HP DEskjet Series CUPS v1.1 (en)
HP Laserjet Series CUPS v1.1 (en)
HP Laserjet Series series PCL6 CUPS v1.1 (en)
HP New Deskjet Series CUPS v 1.1 (en)
|
No idea why ive got 2 lots of some
selected either the HP Laserjet Series CUPS v1.1 (en) or HP New Deskjet Series CUPS v 1.1 (en) gives me that same 'Unsupported personality' _________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
|
Back to top |
|
|
|