DebuggingPrintingProblems

Differences between revisions 18 and 20 (spanning 2 versions)
Revision 18 as of 2007-03-06 16:12:24
Size: 3527
Editor: cF5A6BF51
Comment: merged in DebuggingPrintingErrors
Revision 20 as of 2007-03-10 09:50:38
Size: 2876
Editor: 86-39-14-117
Comment: Added known bug #29050
Deletions are marked like this. Additions are marked like this.
Line 26: Line 26:
== CUPS error_log == = CUPS error_log =
Line 33: Line 33:

== Debugging printing errors ==

 * Try both in GNOME and KDE and report whether the problem appears on both or only on one of them. This helps to identify where in the chain of printing program the error may be located.

 * Debugging CUPS [http://www.linux-foundation.org/en/OpenPrinting/Database/ErrorLogFAQ]

 * Find your printers' URIs :
{{{
lpstat -v
}}}

 * Restart cupsd :
{{{
sudo /etc/init.d/cupsys restart
}}}
instead of
{{{
killall -HUP cupsd
}}}

Info from the kernel:
{{{
dmesg|grep lp0
}}}
If it indicates that ECP is used, please switch to EPP in the BIOS setup and try again.
If it doesn't show anything, do:
{{{
sudo modprobe lp
}}}
and try again.

 * Configure your printer with the CUPS configuration page: type [WWW] http://127.0.0.1:631/ into any browser.
Line 71: Line 37:
'''Open''' ## '''Open'''
Line 73: Line 39:
|| TBD. || TBD. || TBD. || || [https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/29050 29050] || Parallel/LPT printer not detected in Dapper and Edgy. Fixed in Feisty. || add "ppdev" to /etc/modules ||
Line 75: Line 41:
'''Closed'''
||<rowbgcolor="#eeeeee"> '''Bug#''' || '''Description''' || '''Action''' ||
|| TBD. || TBD. || TBD. ||
## '''Closed'''
## ||<rowbgcolor="#eeeeee"> '''Bug#''' || '''Description''' || '''Action''' ||
## || TBD. || TBD. || TBD. ||

Printer detection

USB printer

  1. Make sure that the printer is connected to your system and powered on.
  2. Open a terminal/console and check if the usb kernel modules are loaded: BR $ lsmod | grep usb

  3. Unplug the USB printer cable from your computer and enter this command: BR $ tail -f /var/log/messages 

  4. Reconnect the USB printer cable, you should see some messages appearing.
  5. Press Ctrl-C to stop the logging.
  6. Find out if your printer gets detected by CUPS: BR $ lpinfo -v

  7. Attach the output of the above commands to the bug report.

Parallel port printer

  1. Make sure that the printer is connected to your system and powered on.
  2. Open a terminal/console and check if the lp and ppdev kernel modules are loaded: BR $ lsmod | grep lp

  3. Check if the kernel detected the parallel port during bootup: BR $ cat /var/log/messages | grep par 

  4. Find out if your printer gets detected by CUPS: BR $ lpinfo -v

  5. Attach the output of the above commands to the bug report.

Printing bug info

Attach the output of the printingbuginfo script for some useful information about your system related to printing like the version of Ubuntu you use, configured printers and the versions of important printing packages installed. The printingbuginfo script can be found here: https://wiki.ubuntu.com/PrintingBugInfoScript.

CUPS error_log

This is a file where CUPS writes information about what it is doing. Almost all printing problems can be diagnosed from the error log, so it is the first place to look to start solving problems. To be useful, you must change the logging level: BR

  1. Edit the file /etc/cups/cupsd.conf, find the line LogLevel and change it to debug, save the file.

  2. Restart CUPS: BR $ sudo /etc/init.d/cupsys restart

  3. Try to print something.
  4. Attach /var/log/cups/error_log to the bug report.

Known bugs

Description of known issues, how to recognise them and stock responses/actions.

Bug#

Description

Action

[https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/29050 29050]

Parallel/LPT printer not detected in Dapper and Edgy. Fixed in Feisty.

add "ppdev" to /etc/modules


Also see:


CategoryBugSquad

DebuggingPrintingProblems (last edited 2018-07-03 19:37:28 by vorlon)