Printer worked until today. Running SuSE 9.2. Printer is HP Laserjet 1100A. Tried installing hpoj-0.91 in an attempt to get the scanner to work. Somewhere along the line the printer no longer works. I notice that when I first boot the system there is a /dev/lp0 file. "crw-rw--- 1 root lp 6, 0 2004-12-18 21:16 /dev/lp0" In Yast at "Parallel printer connection" I specify /dev/lp0 as the first parallel port. When I "Test Printer Connection" it is suppose to print "Hello, world" on the printer. Well, /dev/lp0 changes to an ascii file, see the follow eck@linux:/dev> file /dev/lp0 /dev/lp0: ASCII text, with CR line terminators Can anyone help me get my printer working again? I've tried reinstalling the printer software under Yast. I've remove and reinstalled Cups. I'm at a loss as to what to do next short of reinstalling SuSE 9.2 again. -- SuSE Linux 9.2 (i586) ---- 2.6.8-24.5-default --- Sat 12/18/04 20:40 8:40pm up 0:29, 4 users, load average: 0.32, 0.13, 0.10
Sat, 18 Dec 2004, by terry_eck@comcast.net:
Printer worked until today. Running SuSE 9.2. Printer is HP Laserjet 1100A.
Tried installing hpoj-0.91 in an attempt to get the scanner to work. Somewhere along the line the printer no longer works.
I notice that when I first boot the system there is a /dev/lp0 file. "crw-rw--- 1 root lp 6, 0 2004-12-18 21:16 /dev/lp0"
Correct.
In Yast at "Parallel printer connection" I specify /dev/lp0 as the first parallel port. When I "Test Printer Connection" it is suppose to print "Hello, world" on the printer. Well, /dev/lp0 changes to an ascii file, see the follow
eck@linux:/dev> file /dev/lp0 /dev/lp0: ASCII text, with CR line terminators
That's weird.
Can anyone help me get my printer working again?
What does /var/log/cups/error_log or maybe /var/log/messages have to say? Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 27N , 4 29 45E. + ICQ: 277217131 SUSE 9.2 + Jabber: gurp@nedlinux.nl Kernel 2.6.8 + MSN: twe-msn@ferrets4me.xs4all.nl See headers for PGP/GPG info. +
On Saturday 18 December 2004 09:32 pm, Terry Eck wrote:
Printer worked until today. Running SuSE 9.2. Printer is HP Laserjet 1100A.
Tried installing hpoj-0.91 in an attempt to get the scanner to work. Somewhere along the line the printer no longer works.
I am hesitant to reply , because I haven't used this printer, I use a hp psc 2400xi all-in-one, but the problems I had may apply. A look at http://www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_1100A shows it should work with hpoj. Since you have installed hpoj, have you run ptal-init and answered the questions? I believe you will need to do that to get the scanner working any way and it is the only way to get both printer and scanner. ptal must run as a service after it is setup (and I think that will be done during the ptal-init, but you might want to check). Even with that done, when I set up the printer with yast (/dev/usb0 or the psc2400 device that was detected), I couldn't get the scanner to work, and if I messed around to get the scanner working, I would lose the printer. On reboot, I almost always had to redetect and setup the printer again. Sometimes I had to delete the printer and set it up again. I solved the problem by using cups to set up the printer. I read somewhere that i had to use the PTAL device to get things working and Yast didn't offer the PTAL device but cups did. Since using cups to set things up, all works as expected and survives reboot. Try it, I've got a feeling you'll like it. Hope that helps Doug
Doug B wrote:
On Saturday 18 December 2004 09:32 pm, Terry Eck wrote:
Printer worked until today. Printer is HP Laserjet 1100A.
Since you have installed hpoj, have you run ptal-init and answered the questions? I believe you will need to do that to get the scanner working any way and it is the only way to get both printer and scanner. ptal must run as a service after it is setup (and I think that will be done during the ptal-init, but you might want to check).
Your referenced web site is where I got the information about hpoj. I did run ptal-init. I believe ptal was loaded when I rebooted.
I solved the problem by using cups to set up the printer. I read somewhere that i had to use the PTAL device to get things working and Yast didn't offer the PTAL device but cups did. Since using cups to set things up, all works as expected and survives reboot.
Maybe the mistake I made was to change the Parallel port from "Normal" to "ECP/EPP" in the BIOS. How is your Parallel port setup in you BIOS? I kept trying to setup the printer using Yast. I thought cups was a daemon to handle printing. I believe I'm using cups since I think that is the default under SuSE 9.2. How do you go about configuring the printer using cups instead of Yast? On one of the reboots I noticed something strange concerning one of the parport0 lines. It was showing strange numbers for the io=. This may be the cause of /dev/lp0 disappearing when I tried to use Yast to configure the printer. I assume the system on booting checks and generates all the /dev/files which explains why /dev/lp0 was correct before using Yast. I was able to restore my system by copying the system files from a backup partition. (thanks to doing an rsync each night). I will wait a while before I try installing hpoj again. Need to learn more. Linux is getting much more complex then under 1.2.13 of 10 years ago. Back then you had to recompile the kernel to get sound. I may have to wait for someone to build a hpoj*.rpm file for SuSE. Thanks Terry -- SuSE Linux 9.2 (i586) ---- 2.6.8-24.5-default --- Sun 12/19/04 16:30 4:30pm up 18:03, 3 users, load average: 0.16, 0.23, 0.18
On Sunday 19 December 2004 05:08 pm, Terry Eck wrote:
Maybe the mistake I made was to change the Parallel port from "Normal" to "ECP/EPP" in the BIOS. How is your Parallel port setup in you BIOS?
I don't think this was your mistake, but I'm not currently using a parallel port so I can't know for sure. All my printers are usb. I would set it to however you had it before you installed hpoj. I believe the mistake was trying to use /dev/lp0 with PTAL. hpoj will work with parallel printers (or at least it looks like it will)
I kept trying to setup the printer using Yast. I thought cups was a daemon to handle printing. I believe I'm using cups since I think that is the default under SuSE 9.2. How do you go about configuring the printer using cups instead of Yast?
I fought this battle off and on for almost a year (that may prove patience but doesn't say much for being smart!). As far as I can tell, if you don't run PTAL (from hpoj) then you can configure printer to /dev/lp0 but your scanner won't be found. If you install hpoj and use PTAL, you shouldn't use the regular print device (like /dev/lp0 or /dev/usb0). That seems to cause problems. If you use PTAL (so you can scan), you need to set up your printer using the PTAL device created when you run ptal-init. Yast doesn't handle this (at least not in 9.1 which is the version I have my printer hung on). To use cups, you first need to create a user/password with lppasswd (man lppasswd for details -- that's for you Patrick ;) --) then point your browser to localhost:631 to bring up the cups interface. Go to manage printers > add printer. The important part here is selecting PTAL in the device screen (so make sure you have it installed, setup, and running).
I was able to restore my system by copying the system files from a backup partition. (thanks to doing an rsync each night). I will wait a while before I try installing hpoj again. Need to learn more. Linux
By this I assume you mean you no longer have hpoj installed and ptal is not running. Suse comes with hpoj, by the way, they just don't call it that. Suse calls it hp-officejet. Search for it in yast and install that way. (Searching for hpoj will only find it if you check the 'Search in > Provides' checkbox) If the install hpoj > run ptal-init > setup printer in cups doesn't work for you, you can just disable ptal and use yast to setup the printer. If you are gui oriented, you can disable/enable ptal in yast > system > runlevel editor. Good luck.... but most of all, have fun Doug
Hello, On Dec 18 21:32 Terry Eck wrote (shortened):
Running SuSE 9.2. Printer is HP Laserjet 1100A. ... I notice that when I first boot the system there is a /dev/lp0 file. "crw-rw--- 1 root lp 6, 0 2004-12-18 21:16 /dev/lp0"
In Yast at "Parallel printer connection" I specify /dev/lp0 as the first parallel port. When I "Test Printer Connection" it is suppose to print "Hello, world" on the printer. Well, /dev/lp0 changes to an ascii file ...
Whether or not /dev/lp* exists depends on the udev system. For example on my workstation with only one parallel port: root@host# mknod /dev/lp0 c 6 0 root@host# ls -l /dev/lp0 crw------- 1 root root 6, 0 2004-12-16 11:58 /dev/lp0 root@host# lsmod | egrep 'parport|^lp' parport_pc 43968 1 lp 14856 0 parport 44616 2 parport_pc,lp root@host# rmmod lp root@host# ls -l /dev/lp0 /bin/ls: /dev/lp0: No such file or directory root@host# echo -en '\r' >/dev/lp0 root@host# ls -l /dev/lp0 -rw------- 1 root root 1 2004-12-16 11:59 /dev/lp0 Now /dev/lp0 has become a normal file. But when the lp module is loaded again the device node is forced to be re-created by udev automatically: root@host# modprobe lp root@host# lsmod | egrep 'parport|^lp' lp 14856 0 parport_pc 43968 1 parport 44616 2 lp,parport_pc root@host# ls -l /dev/lp0 crw-rw---- 1 root lp 6, 0 2004-12-16 12:01 /dev/lp0 Note that the owner, group and permissions are now set by udev to what is specified according to root@host# grep ^lp /etc/udev/permissions.d/50-udev.permissions lp*:root:lp:660 Summary: It is crucial that the parport related kernel modules are loaded correctly at boot time and that they are not removed by some unknown process. It may happen that the parallel port kernel modules parport, parport_pc and lp are not loaded automatically at boot time. In this case add modprobe calls to /etc/init.d/boot.local Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsmeix@suse.de 90409 Nuernberg, Germany WWW: http://www.suse.de/
participants (4)
-
Doug B
-
Johannes Meixner
-
Terry Eck
-
Theo v. Werkhoven