Bug 1206808 - HP p1102 must be reinstalled every power-cycle
Summary: HP p1102 must be reinstalled every power-cycle
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-28 17:48 UTC by Medic Momcilo
Modified: 2015-07-29 01:53 UTC (History)
3 users (show)

Fixed In Version: system-config-printer-1.5.7-3.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-02 18:05:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
dmesg output (81.30 KB, text/plain)
2015-03-28 17:48 UTC, Medic Momcilo
no flags Details
journalctl -b output (477.51 KB, text/plain)
2015-03-28 17:50 UTC, Medic Momcilo
no flags Details

Description Medic Momcilo 2015-03-28 17:48:42 UTC
Created attachment 1007744 [details]
dmesg output

Description of problem:
When printer is turned off and back on it reports different serial number and it must be installed again as it's detected as different printer.

Version-Release number of selected component (if applicable):
3.14.10-5.fc21

How reproducible:
always

Steps to Reproduce:
1. Install printer
2. Turn off printer
3. Turn on printer

Actual results:
Printer must be installed again

Expected results:
Printer operates under the same name

Additional info:
Attached are outputs of 'journalctl -b' and 'dmesg' which clearly shows that serial number has changed.

Comment 1 Medic Momcilo 2015-03-28 17:50:06 UTC
Created attachment 1007745 [details]
journalctl -b output

Comment 2 Tim Waugh 2015-03-31 11:40:29 UTC
It looks like the printer connects as device 6, pretending to be a USB mass storage device (18:38:46) with a serial number ending SI1c, then usb_modeswitch steps in and kicks it into 'I'm a printer' mode.

It then disconnects as device 6 and reconnects as device 7 (18:38:48), a printer, at which point udev-configure-printer is invoked. It asks the printer for its IEEE 1284 ID, looks for a serial number in that (there isn't one) and so uses the USB serial number instead, the one ending PR1a.

What happens next is that udev-configure-printer waits for 1s to let things calm down a bit before asking CUPS to give it a list of device URIs by running each of the backends. What's weird is that both the usb and hp backends see the serial number ending SI1c (18:38:49), when that device had disconnected a second ago.

My best guess at how to avoid this is to increase the 1s delay to something like 5s.

Please could you try this scratch build, which makes that change?:
https://koji.fedoraproject.org/koji/taskinfo?taskID=9378487

Comment 3 Medic Momcilo 2015-03-31 18:07:41 UTC
Thanks Tim!

It was very quick and well explained breakdown of things.

I can confirm that increasing delay resolves the issue completely.

Regards,
Momcilo.

Comment 5 Fedora Update System 2015-04-29 14:14:02 UTC
system-config-printer-1.5.7-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/system-config-printer-1.5.7-1.fc22

Comment 6 Fedora Update System 2015-04-29 14:16:27 UTC
system-config-printer-1.5.7-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/system-config-printer-1.5.7-1.fc21

Comment 7 Fedora Update System 2015-04-30 11:47:35 UTC
Package system-config-printer-1.5.7-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing system-config-printer-1.5.7-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-7265/system-config-printer-1.5.7-1.fc22
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2015-05-02 18:05:51 UTC
system-config-printer-1.5.7-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2015-07-29 01:53:22 UTC
system-config-printer-1.5.7-3.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.