[Bug 916781] New: Cannot integrate HP LaserJet 5MP on Direct Connection via Yast2
http://bugzilla.opensuse.org/show_bug.cgi?id=916781 Bug ID: 916781 Summary: Cannot integrate HP LaserJet 5MP on Direct Connection via Yast2 Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: x86-64 OS: openSUSE 13.2 Status: NEW Severity: Normal Priority: P5 - None Component: AutoYaST Assignee: autoyast-maintainers@suse.de Reporter: lee4home@btinternet.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Attempted to use Yast2 to attach LaserJet 5MP physically connected by parallel (Centronics) connection. Yast2 => Hardware => Printer => Add. Printer detected OK as "hplaserjet5mp", and offered various drivers. Chose HP Laserjet 5M Postscript (recommended). => Print Test Page => Single Test page: Printer does not respond. /var/log/cups/error_log states: E [08/Feb/2015:15:54:38 +0000] Unable to create "/var/cache/cups/job.cache.N": Read-only file system E [08/Feb/2015:16:22:21 +0000] [cups-driverd] Bad driver information file "/usr/share/cups/drv/sample.drv"! /var/cups/cache has User root, Group lp, and "Can view and modify content" for Owner, Group, Others --- so it is not obvious to me what is wrong. I have tried several alternative drivers, with similar results. In desperation I tried hplp approach, and got some life out of printer --- I believe without a queue. This offered a diagnostic which (foolishly) I tried, even though it said it was incompatible with SuSE 13.2. This told me a whole lot of software needed to be replaced, so I signed as root. In practice, I suspect it was replacing newer software with old. Net effect: for a while I got printer to work (it was physically OK), but computer performance was really bad and unreliable. In the end I had to re-install from scratch, and will not be allowing any HP "Doctor" to change my system. Printer always worked fine with SuSE 12.2, and still produces good test page from manual bottons on printer itself. Tried again using standard Yast2, and refuses to print a test page. Sorry I can't give more useful description of issues. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
Martin Pluskal
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
Johannes Meixner
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
Johannes Meixner
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
Johannes Meixner
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
Anthony Lee
Anthony Lee, Do you use btrfs as filesystem and did you boot from a btrfs snapshot?
I believe btrfs was offered by default as the filesystem for the main distribution, so I allowed it to continue (although I have little knowledge of what it is about). At one point I seemed to be asked for an alternative boot, and (with hindsight) believe I did inadvertently boot from a snapshot.
As far as I know in this case the filesystem is read-only and you have to do some manual steps to get from the booted snapshot to a normal usable system again.
This could well be correct. What do I have to do to get back to my normal usable system again? Do I have to do this _before_ root "modprobe lp" to attach my printer? MTIA for your advice! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
--- Comment #5 from Anthony Lee
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
--- Comment #6 from Anthony Lee
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
--- Comment #14 from Johannes Meixner
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
--- Comment #16 from Johannes Meixner
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
--- Comment #17 from Anthony Lee
So the "filesystem read-only" issue is solved?
I guess so. Many thanks. However, I still have the printer problem. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
--- Comment #18 from Anthony Lee
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
--- Comment #19 from Anthony Lee
The "Bad Driver Information File '/usr/share/cups/drv/sample.drv'" error message in your /var/log/cups/error_log has nothing to do with whether or not printing via parallel port works for your HP LaserJet 5MP.
That error message comes from cups-driverd that is run by the cupsd e.g. when lpinfo -m" is run to list all available printer drivers (PPDs) and then cups-driverd complains about some issues but cups-driverd is not involved when something is actually printed.
In short: You can ignore messages from cups-driverd here.
In general a single line from /var/log/cups/error_log is basically meaningless for me because I need more context to have at least a chance to help, see https://en.opensuse.org/SDB:How_to_Report_a_Printing_Issue In particular I need the whole CUPS debug messages for exactly one single failed print job.
Regarding basic tests whether or not the printer is accessible via the parallel port see https://en.opensuse.org/SDB:Installing_a_Printer
When you run as root
echo -en "\rHello\r\f" >/dev/lp0
does your HP LaserJet 5MP print one sheet with the word Hello on it?
vivaldi:/home/wendy # echo -en "\rHello\r\f" >/dev/lp0 bash: /dev/lp0: Device or resource busy No printing!
If not, when you run as root
rmmod lp rmmod ppdev rmmod parport_pc rmmod parport modprobe parport modprobe parport_pc modprobe ppdev modprobe lp echo -en "\rHello\r\f" >/dev/lp0
does it now print one sheet with the word Hello on it?
vivaldi:/home/wendy # rmmod lp rmmod: ERROR: Module lp is in use vivaldi:/home/wendy # rmmod ppdev vivaldi:/home/wendy # rmmod parport_pc rmmod: ERROR: Module parport_pc is in use vivaldi:/home/wendy # rmmod parport rmmod: ERROR: Module parport is in use by: lp parport_pc vivaldi:/home/wendy # modprobe parport vivaldi:/home/wendy # modprobe parport_pc vivaldi:/home/wendy # modprobe ppdev vivaldi:/home/wendy # modprobe lp vivaldi:/home/wendy # echo -en "\rHello\r\f" >/dev/lp0 bash: /dev/lp0: Device or resource busy No printing!
If not, when you run as root
rmmod lp rmmod ppdev rmmod parport_pc rmmod parport rm /dev/lp* systemd-tmpfiles --create /usr/lib/tmpfiles.d/parallel-printer.conf modprobe parport modprobe parport_pc modprobe ppdev modprobe lp echo -en "\rHello\r\f" >/dev/lp0
does it now print one sheet with the word Hello on it?
vivaldi:/home/wendy # rmmod lp rmmod: ERROR: Module lp is in use vivaldi:/home/wendy # rmmod ppdev vivaldi:/home/wendy # rmmod parport_pc rmmod: ERROR: Module parport_pc is in use vivaldi:/home/wendy # rmmod parport rmmod: ERROR: Module parport is in use by: lp parport_pc vivaldi:/home/wendy # rm /dev/lp* vivaldi:/home/wendy # systemd-tmpfiles --create /usr/lib/tmpfiles.d/parallel-printer.conf vivaldi:/home/wendy # modprobe parport vivaldi:/home/wendy # modprobe parport_pc vivaldi:/home/wendy # modprobe ppdev vivaldi:/home/wendy # modprobe lp vivaldi:/home/wendy # echo -en "\rHello\r\f" >/dev/lp0 bash: /dev/lp0: Device or resource busy And no printing! I have also attached a /var/log/cups/error_log file produced as a short debug while attempting to print a short textfile to hplaserjet5mp from KWrite. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
Johannes Meixner
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
--- Comment #21 from Johannes Meixner
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
--- Comment #22 from Anthony Lee
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
--- Comment #23 from Anthony Lee
In your error_log_1print.txt in attachment#622879 [details] there is: ------------------------------------------------------------------------- $ grep PID error_log_1print.txt
I [11/Feb/2015:17:45:10 +0000] [Job 9] Started filter /usr/lib/cups/filter/pdftops (PID 3304) I [11/Feb/2015:17:45:10 +0000] [Job 9] Started backend /usr/lib/cups/backend/parallel (PID 3305) D [11/Feb/2015:17:45:10 +0000] [Job 9] Started filter pdftops (PID 3306) D [11/Feb/2015:17:45:10 +0000] [Job 9] Started filter pstops (PID 3307) D [11/Feb/2015:17:45:11 +0000] [Job 9] PID 3306 (pdftops) exited with no errors. -------------------------------------------------------------------------
Only one preocess finished. The other ones, in particular /usr/lib/cups/backend/parallel seem to just hang because there are no error messages.
I guess /usr/lib/cups/backend/parallel endlessly hangs waiting to connect to the printer via the parallel port but that does somehow not work.
I guess while /usr/lib/cups/backend/parallel endlessly hangs there is "/dev/lp0: Device or resource busy".
Anthony Lee, ar root run
cancel -a
to stop and remove all pending/active print jobs, then reboot your system and retry the various echo -en "\rHello\r\f" >/dev/lp0 tests to directly access your printer.
I have to say I hate this feedback system. I ran a load of your scripts (which failed to make the printer print), recording results etc, then performed yast2 => Hardware Information, and extracted Printer stuff from file (now attached: evidence that printer is physically and logically attached at some level), but the attachment process blew away all my previous results. I'll try and copy them here: vivaldi:/home/wendy # echo -en "\rHello\r\f" >/dev/lp0 Long wait, nothing happens. Power printer down, then up, and try again: ^C vivaldi:/home/wendy # echo -en "\rHello\r\f" >/dev/lp0 Same again. ^C vivaldi:/home/wendy # rmmod lp vivaldi:/home/wendy # rmmod ppdev vivaldi:/home/wendy # rmmod parport_pc vivaldi:/home/wendy # rmmod parport vivaldi:/home/wendy # modprobe parport_pc vivaldi:/home/wendy # modprobe parport vivaldi:/home/wendy # modprobe parport_pc vivaldi:/home/wendy # modprobe ppdev vivaldi:/home/wendy # modprobe lp vivaldi:/home/wendy # echo -en "\rHello\r\f" >/dev/lp0 Same again. ^C vivaldi:/home/wendy # rmmod lp vivaldi:/home/wendy # rmmod ppdev vivaldi:/home/wendy # rmmod parport_pc vivaldi:/home/wendy # rmmod parport vivaldi:/home/wendy # rm /dev/lp* vivaldi:/home/wendy # systemd-tmpfiles --create /usr/lib/tmpfiles.d/parallel-printer.conf vivaldi:/home/wendy # modprobe parport vivaldi:/home/wendy # modprobe parport_pc vivaldi:/home/wendy # modprobe ppdev vivaldi:/home/wendy # modprobe lp vivaldi:/home/wendy # echo -en "\rHello\r\f" >/dev/lp0 Same again. Sorry it's all taking so long. Please remember I'm just a guy who is trying to use this system. My LaserJet 5MP is in good condition, and gives a sharp clean print, even if it is a little slow, so I am not planning to junk it. Furthermore, it has always worked immediately from install by yast2, so I am no expert in this area --- and do need help. My previous SuSE install was 12.3, and before that 11.2 (I think), using the same physical hardware and daughterboard, and there was never any problem. I guess if you are partitioning off some (parallel) printers during installation, SuSE needs to make sure you have a foolproof way of bringing those printers in where necessary. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
Johannes Meixner
http://bugzilla.opensuse.org/show_bug.cgi?id=916781
--- Comment #24 from Anthony Lee
participants (1)
-
bugzilla_noreply@novell.com