suse specific info in troubleshooting

Asked by Tomas Ruzicka

I had troubles setting up printing on my Photosmart C3180 in openSUSE 10.3. It printed until I power-cycled or replugged the USB cable. Than it stopped printing (jobs hanging in the queue). hp-toolbox could see/operate the printer. After dropping the config in Yast and setting it up again it worked until the next power-cycle or replugg ... After spending a few hours in finding the reason I found out that SUSE has an cups-autoconfig.conf with the parameter DisablePrintersOnremoval set to "yes" which seems to stop the printer queue upon printer removal. The problem is that somehow it does not reenable the queue when the printer gets online again. After setting this parameter to "no" the printer works perfectly even after power-cycling it or replugging it's USB cable. Maybe it wouldn't be bad idea to add this info to the troubleshooting section on your hplip site (the first place I tried to find a solution for my problem) or even better invest some time into further research (sorry - I'm just more-or-less an advanced BFU :-) ) to find around...

btw. thanks for the drivers!

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Tomas Ruzicka
Solved:
Last query:
Last reply:
Revision history for this message
Tomas Ruzicka (tr3027) said :
#1

Setting the parameter DisablePrintersOnRemoval to "no" in /etc/cups-autoconfig.conf makes the problem disappear ...

Revision history for this message
Johannes Meixner (jsmeix) said :
#2

See
https://bugzilla.novell.com/show_bug.cgi?id=334166

Since openSUSE 10.3 we have the new RPM "cups-autoconfig"
which contains a utility for auto-configuring USB printers
which is triggered by udev/HAL device events.
Note that this tool neither comes from the CUPS authors
nor is the RPM a sub-package of the cups RPM.
From the CUPS point of view it is a "third-party" tool.
It was introduced by our "Desktop" team/department to make
printing more convenient in particular for "Desktop" users.

By default it disables/enables print queues when udev/HAL
events appear that a USB printer is disconnected/connected.
Its /etc/cups-autoconfig.conf contains by default:
--------------------------------------------------------------
[CUPS]
ConfigureNewPrinters=yes
DisablePrintersOnRemoval=yes
DefaultCUPSPolicy=relaxed
Debug=yes
--------------------------------------------------------------
It is triggered via
/usr/share/hal/fdi/policy/10osvendor/10-cups-autoconfig.fdi
which runs /usr/lib/cups-autoconfig/cups-autoconfig
which does the actual stuff, see
/usr/lib/cups-autoconfig/cups-autoconfig --help
(you must run even '--help' as root, otherwise you get errors)
Debugging output is in /var/log/cups-autoconfig.log

If you don't like what cups-autoconfig does (i.e. if you prefer
that you control the print queues and not whatever automatism),
uninstall the cups-autoconfig package and reboot (or restart HAL)
to make HAL aware of its changed config files, see
https://bugzilla.novell.com/show_bug.cgi?id=218393#c28

For some background information, see
http://code.google.com/p/cups-autoconfig/