[Bug 526657] New: Printer tool: be ready for cups-autoconfig replacement
http://bugzilla.novell.com/show_bug.cgi?id=526657 Summary: Printer tool: be ready for cups-autoconfig replacement Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: vuntz@novell.com QAContact: jsrain@novell.com Found By: --- As discussed in https://features.opensuse.org/305345, cups-autoconfig will be replaced. The new system-config-printer comes with some udev helpers that will play the role. Looking at the preferences of cups-autoconfig in the yast tool, I don't think they're really that useful, so we could just remove it and replace the part about installing/removing cups-autoconfig with the same code but for the udev-configure-printer package. (note: I didn't push the new package to factory yet, will hopefully do it soon) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=526657
User jsmeix@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=526657#c1
Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=526657
User jsmeix@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=526657#c2
Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=526657
User vuntz@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=526657#c3
Vincent Untz
Perhaps a good idea to have the yast2-printer author in CC ;-)
(I thought you'd get notified, wrong assumption ;-) apologies)
Vincent, what are the reasonable configure options for the new printer autoconfig tool?
There's no option as far as I can tell.
Is cups-autoconfig already dropped for 11.2?
No, but I'd like to drop it: it's really not maintained at all, with nobody at all even looking at it.
If not, I will keep the current cups-autoconfig stuff in yast2-printer. If yes, what about an update 11.1 -> 11.2? Will cups-autoconfig be obsoleted by the new printer autoconfig tool?
In theory, it will get obsoleted, yes (there's an Obsoletes tag in the package).
How can printer autoconfiguration be switched off and on?
Add/remove the udev-configure-printer package. An alternative is to edit/add/remove the %{_sysconfdir}/udev/rules.d/70-printers.rules file which contains the following: # Low-level USB device add trigger ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="07", ATTR{bInterfaceSubClass}=="01", RUN+="udev-configure-printer add %p" # usblp device add trigger (needed when usblp is already loaded) ACTION=="add", KERNEL=="lp*", RUN+="udev-configure-printer add %p" # Low-level USB device remove trigger ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:0701*:*", RUN+="udev-configure-printer remove %p" If it helps, I can put a copy of the file somewhere else in the package, so that you can blindly remove it and easily get the latest version of the package when adding it back.
Is there a sub-package in system-config-printer which contains only the printer autoconfig stuff so that removing this sub-package would switch off printer autoconfiguration?
Yes, this subpackage is named udev-configure-printer. I can rename the package to something else if you think it makes sense.
If not, ist there a config file option to switch autoconfiguration off and on? If not, could one move the "some udev helpers" (which exxct files?) away to switch off autoconfiguration?
See above :-)
In short: How does the "some udev helpers" work? Is there documentation? If yes, where?
It's really all in the 70-printers.rules file. If you need more details, just ask. (fwiw, it's coming a bit late, but we skipped the hal-cups-utils step and went directly to this udev approach, which is really new) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=526657
User jsmeix@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=526657#c4
Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=526657
Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=526657
User vuntz@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=526657#c5
Vincent Untz
When in the running system udev-configure-printer gets installed or removed, how is udev notified about its changed rules so that udev will start to configure printers automatically versus will stop to configure printers automatically?
Or is a restart of the whole udev system needed which means - as far as I understand - a complete reboot because udev is part of /etc/init.d/boot...)?
As far as I know, you have nothing to do: for example, I just installed the package, plugged a printer and it worked. udev is using inotify to monitor the rules, so it picks up any change there automatically. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=526657
Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=526657
User jsmeix@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=526657#c6
--- Comment #6 from Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=526657
Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=526657
User vuntz@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=526657#c7
Vincent Untz
Vincent, could you verify if it also works the other way round: Unplug the printer, remove all print queues (lpadmin -x <queue>), remove udev-configure-printer, finally replug the printer. Now there should be still no print queue.
Works as expected. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=526657
User jsmeix@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=526657#c8
--- Comment #8 from Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=526657
User jsmeix@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=526657#c9
Johannes Meixner
participants (1)
-
bugzilla_noreply@novell.com