On 2016-11-29 19:01, Mark Misulich wrote:
On Tue, 2016-11-29 at 16:49 +0100, Carlos E. R. wrote:
Now the journalcntl --follow is working for the moment. Here is the output:
It is journalctl, not journalcntl :-) I'll edit to unwrap, then I'll analyze.
# journalctl --follow -- Logs begin at Mon 2016-11-21 12:48:40 EST. -- Nov 29 12:55:44 linux python[5813]: io/hpmud/musb.c 779: read actual device_id successfully fd=1 len=220 Nov 29 12:55:46 linux python[5813]: io/hpmud/musb.c 561: released 7/1/2 interface Nov 29 12:55:46 linux python[5813]: io/hpmud/musb.c 427: Found interface conf=0, iface=0, altset=1, index=1 Nov 29 12:55:46 linux python[5813]: io/hpmud/musb.c 389: Active kernel driver on interface=0 ret=0 Nov 29 12:55:46 linux python[5813]: io/hpmud/musb.c 535: claimed 7/1/2 interface Nov 29 12:55:46 linux python[5813]: io/hpmud/musb.c 779: read actual device_id successfully fd=1 len=220 Nov 29 12:55:46 linux python[5813]: io/hpmud/musb.c 561: released 7/1/2 interface Nov 29 12:55:46 linux hp-firmware[5813]: hp-firmware[5813]: error: Device hp:/usb/DeskJet_970C?serial=MY07N1F1JTJQ does not support or require firmware download.
I think it is attempting to upload some firmware to the printer, but fails. Maybe this is not needed.
Nov 29 12:55:46 linux systemd-udevd[5810]: Process '/usr/bin/hp-firmware -s 002:014' failed with exit code 1. Nov 29 12:55:46 linux systemd[1]: Reached target Printer.
Printer is up.
Nov 29 12:59:14 linux kernel: usb 2-1.4: USB disconnect, device number 14 Nov 29 12:59:14 linux udev-configure-printer[5849]: remove /devices/pci0000:00/0000:00:1a.1/usb2/2-1/2-1.4 Nov 29 12:59:14 linux systemd[1]: printer.target: Unit not needed anymore. Stopping. Nov 29 12:59:14 linux systemd[1]: Stopped target Printer.
And here printer stops.
Nov 29 12:59:16 linux kernel: usb 2-1.4: new full-speed USB device number 15 using uhci_hcd
But two seconds later it is detecting that there is a new USB device being connected, so the printer has been powered up already.
Nov 29 12:59:16 linux kernel: usb 2-1.4: New USB device found, idVendor=03f0, idProduct=1004 Nov 29 12:59:16 linux kernel: usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Nov 29 12:59:16 linux kernel: usb 2-1.4: Product: DeskJet 970C Nov 29 12:59:16 linux kernel: usb 2-1.4: Manufacturer: Hewlett-Packard Nov 29 12:59:16 linux kernel: usb 2-1.4: SerialNumber: MY07N1F1JTJQ Nov 29 12:59:16 linux kernel: usblp 2-1.4:1.0: usblp0: USB Bidirectional printer dev 15 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1004 Nov 29 12:59:16 linux root[5853]: udev hpmud.rules runs hp-firmware to test if HP device with USB vendor ID 03f0 and USB product ID 1004 at USB bus ID 002 and USB device ID 015 needs firmware and if yes to upload it
The printer is detected. This explains the firmware upload attempt.
Nov 29 12:59:17 linux python[5854]: io/hpmud/musb.c 2179: [5854] hpmud_make_usb_uri() bus=002 dev=015 Nov 29 12:59:17 linux python[5854]: io/hpmud/musb.c 2276: hpmud_make_usb_uri() uri=hp:/usb/DeskJet_970C?serial=MY07N1F1JTJQ bytes_read=40 Nov 29 12:59:17 linux python[5854]: io/hpmud/musb.c 427: Found interface conf=0, iface=0, altset=1, index=1 Nov 29 12:59:17 linux python[5854]: io/hpmud/musb.c 389: Active kernel driver on interface=0 ret=1 Nov 29 12:59:17 linux python[5854]: io/hpmud/musb.c 393: Detaching kernel driver on interface=0 ret=0 Nov 29 12:59:17 linux kernel: usblp0: removed
The usblp0 interface is removed (parallel printer port emulation, I think)
Nov 29 12:59:17 linux python[5854]: io/hpmud/musb.c 535: claimed 7/1/2 interface Nov 29 12:59:17 linux python[5854]: io/hpmud/musb.c 779: read actual device_id successfully fd=1 len=220 Nov 29 12:59:19 linux python[5854]: io/hpmud/musb.c 561: released 7/1/2 interface Nov 29 12:59:19 linux python[5854]: io/hpmud/musb.c 427: Found interface conf=0, iface=0, altset=1, index=1 Nov 29 12:59:19 linux python[5854]: io/hpmud/musb.c 389: Active kernel driver on interface=0 ret=0 Nov 29 12:59:19 linux python[5854]: io/hpmud/musb.c 535: claimed 7/1/2 interface Nov 29 12:59:19 linux python[5854]: io/hpmud/musb.c 779: read actual device_id successfully fd=1 len=220 Nov 29 12:59:19 linux python[5854]: io/hpmud/musb.c 561: released 7/1/2 interface Nov 29 12:59:19 linux hp-firmware[5854]: hp-firmware[5854]: error: Device hp:/usb/DeskJet_970C?serial=MY07N1F1JTJQ does not support or require firmware download.
The printer firmware upload fails, as it should.
Nov 29 12:59:19 linux systemd-udevd[5851]: Process '/usr/bin/hp- firmware -s 002:015' failed with exit code 1. Nov 29 12:59:19 linux systemd[1]: Reached target Printer.
Printer is up. So no, the log does not show why the printer comes up. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)