Bug 577302

Summary: Missing Device ID for HP PhotoSmart 380 (Bluetooth)
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: hplipAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: hplip-3.10.2-11.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-07 04:01:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 568351    
Bug Blocks: 219467    

Description Tim Waugh 2010-03-26 16:29:22 UTC
Description of problem:
Using the CUPS backend output from bug #241352, I get this:

$ ~/devel/system-config-printer/check-device-ids.py 'HP Photosmart 380' "MFG:HP;MDL:Photosmart 380 series_BT;CMD:PCL,DW-PCL,DESKJET,DYN;CLS:PRINTER;DES:385;"
Installing relevant drivers using session service
Fetching driver list
└── HP Photosmart 380: MFG:HP;MDL:Photosmart 380 series_BT;CMD:PCL,DW-PCL,DESKJET,DYN;
    └── foomatic:HP-PhotoSmart_380-hpijs.ppd [/usr/lib/cups/driver/foomatic]
        MISSING  drv:///hp/hpcups.drv/hp-photosmart_380_series.ppd [/usr/share/cups/drv/hp/hpcups.drv]

It's because the ID listed in hpcups.drv is for the non-bluetooth edition, and HP sticks "_BT" on the end of the model name for bluetooth editions(!).

Needs an *additional* 1284DeviceID attribute with _BT added.

Version-Release number of selected component (if applicable):
hplip-3.10.2-5.fc13.x86_64

Comment 1 Jiri Popelka 2010-04-08 16:35:26 UTC
If I add the second 1284DeviceID attribute like
{
  ModelName "HP Photosmart 380 Series"
  Attribute "NickName" "" "HP Photosmart 380 Series, $Version"
  Attribute "ShortNickName" "" "HP Photosmart 380 Series"
  Attribute "1284DeviceID" "" "MFG:HP;MDL:photosmart 380 series;DES:photosmart 380 series;"
+ Attribute "1284DeviceID" "" "MFG:HP;MDL:Photosmart 380 series_BT;DES:385;"
  PCFileName "hp-photosmart_380_series.ppd"
  Attribute "Product" "" "(HP Photosmart 385 Compact Photo Printer)"
  Attribute "Product" "" "(HP Photosmart 385xi Compact Photo Printer)"
  Attribute "Product" "" "(HP Photosmart 385v Compact Photo Printer)"
}

the check-device-ids.py still marks it as MISSING.
"It" probably takes only the first 1284DeviceID attribute, because when I add it as first 1284DeviceID attribute check-device-ids.py finds it, but then
./check-device-ids.py "HP Photosmart 380" "MFG:HP;MDL:Photosmart 380 series;" (without _BT) marks it as MISSING.

Only solution I have is to add new entry with different 1284DeviceID.

Comment 2 Tim Waugh 2010-04-08 17:07:15 UTC
That's actually a bug in my RPM provides script: see bug #568351.

It's perfectly valid for a PPD to contain several 1284DeviceID attributes; I just didn't realise that when I wrote the script.

For cases like this, let's add the additional 1284DeviceIDs anyway -- the RPM provides script will eventually get fixed and pick them up.

Comment 3 Fedora Update System 2010-04-16 22:08:39 UTC
hplip-3.10.2-11.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/hplip-3.10.2-11.fc13

Comment 4 Fedora Update System 2010-04-20 13:27:02 UTC
hplip-3.10.2-11.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/hplip-3.10.2-11.fc13

Comment 5 Fedora Update System 2010-05-07 04:00:29 UTC
hplip-3.10.2-11.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.