[Bug 469721] New: scanner found because hplip provides wrong fdi files
https://bugzilla.novell.com/show_bug.cgi?id=469721 Summary: scanner found because hplip provides wrong fdi files Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: cstender@novell.com QAContact: jsmeix@novell.com Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.5) Gecko/2008121300 SUSE/3.0.5-1.1 Firefox/3.0.5 When I boot into a fresh installed openSUSE 11.1 and connect my HP Deskjet 6540 I get two SusePlugger popup windows. Strangely the first one says that a scanner was found and asks me if I want to configure it. The HP is a printer only and no all-in-on device or something like this. I searched for 'scanner' in the output of lshal and found the following: udi = '/org/freedesktop/Hal/devices/usb_device_3f0_8204_MY47D2R0X7040N_if0' access_control.file = '/dev/bus/usb/001/008' (string) access_control.type = 'scanner' (string) info.callouts.add = {'hal-acl-tool --add-device'} (string list) info.callouts.remove = {'hal-acl-tool --remove-device'} (string list) info.capabilities = {'scanner', 'access_control'} (string list) info.linux.driver = 'usblp' (string) info.parent = '/org/freedesktop/Hal/devices/usb_device_3f0_8204_MY47D2R0X7040N' (string) info.product = 'USB Printer Interface' (string) info.subsystem = 'usb' (string) ... The culprit seems to be the following entry in /usr/share/hal/fdi/information/20thirdparty/70-hpmud.fdi: <match key="info.subsystem" string="usb"> <match key="usb.vendor_id" int="0x03f0"> <match key="usb.product_id" int="0x8204"> <append key="info.capabilities" type="strlist">scanner</append> </match> </match> </match> These are exactly the vendor and product ids for my printer.. Reproducible: Always Steps to Reproduce: 1. Install a fresh openSUSE 11.1 2. Connect the HP Deskjet 6540 to your computer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=469721
User jsmeix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469721#c1
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=469721
User cstender@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469721#c2
--- Comment #2 from Christopher Stender
https://bugzilla.novell.com/show_bug.cgi?id=469721
User jsmeix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469721#c3
--- Comment #3 from Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=469721
User jsmeix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469721#c5
--- Comment #5 from Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=469721
User dkukawka@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469721#c6
Danny Kukawka
Simply ignore unwanted SusePlugger popups. As far as I know it does not use 70-hpmud.fdi. As far as I know it works on whatever else data. As far as I know the SusePlugger stuff is basically only a best-guess and cannot work correctly in any case.
That's not correct. If you take a look at the source (kdebase3-suse) suseplugger ask hal to find out what kind of device was added to the machine. In this case the information in 70-hpmud.fdi is used and it's clearly wrong, since the device is a printer and not a scanner. (In reply to comment #3)
info.capabilities is always set to 'scanner' because this is the only working value which is currently available for me (nothing would happen if I set info.capabilities to 'printer')
There is already a printer namespace in HAL (http://people.freedesktop.org/~dkukawka/hal-spec-git/hal-spec.html#device-pr...). The only problem was that there was no ACL/PolicyKit rule/policy. I've added the needed stuff to git (which grand access for active users to printer.device, which need to be set via a fdi file (e.g. copy it from the parent device)) and it will be in the next SLE11/openSUSE hal package/update. IMO the 70-hpmud.fdi is plain incorrect/buggy if there is no way to differ between pure scanner and printer devices (not sure atm what to do with combo devices, depends if there are different /dev/* devices for the scanner and the printer). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=469721
User jsmeix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469721#c7
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=469721
User dkukawka@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469721#c8
--- Comment #8 from Danny Kukawka
https://bugzilla.novell.com/show_bug.cgi?id=469721
User jsmeix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469721#c9
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=469721
User jsmeix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469721#c10
--- Comment #10 from Johannes Meixner
participants (1)
-
bugzilla_noreply@novell.com