Printer pauses randomly after upgrade to 16.04

printing

#38

In your picture; “Activee” is not ticked?, I assume that means “Active” or to “Activate” the printer?. :confused:


#39

Yes in printer properties TAB behavior the first line is “acivated”
If I check activated , queue a print and reboot, at the end of reboot printer properties is “activated” , device id is 009 ( as discovered) and document is printed, about 30 seconds later device is disconnected and reconnected with a new device id but printer properties shows activated unchecked ( inactivated , I think normal because device 009 does not exist any more )
I don’t understand why device number change very often. The scanner on same machine continue to work without any problem ( usb works )


#40

Hmmmmmm?,

try changing the USB port?, shut down your PC and swap the printer cable to a different USB port and restart and see if that clears the problem?. :smiley:


#41

Hi, i have already swapped usb ports, change usb cable without success, and problem has occured only when i installed 16.04. Before with mint 17.3 (based on ubuntu 14.04) i never had any problem neither with printer or scanner. Best regards Yannick


#42

Hi @yannick,

I’m not really sure where to go from here as I don’t have one myself!, is it part of a network?:


#43

Hi Wolfman, I try another way
-1-
Boot on a live usb ubuntu 16.04 ( standard - unity ) , my printer is well detected as a clx-3300, its deviceid ( in lsusb) is stable and i can print all documents i want.

-2-
Boot on a live usb ubuntu 16.04 Mate , my printer is not detected and deviceid change very often ( in lsusb command)
I cannot print.

What is so different in Mate compared to unity in usb printer management ?
Yannick


#44

Please use code tags. I have edited the above.

Thank you


#45

Hi @yannick,

the following terminal command (Ctrl + Alt + t) will make sure that any missing dependencies get installed if there are any missing!:

sudo apt-get update && sudo apt-get dist-upgrade -f

Restart after running the command if anything updates at all and MAKE SURE YOUR PRINTER IS SWITCHED ON AND ACTIVE!. :smiley:

I don’t know why it works under Unity and not Ubuntu Mate sorry?. :thumbsdown:


#46

After many tries without any success, i replaces ubuntu mate by unity , that i don’t like but it works with my mfp clx-3305. I regret mate interface … may be i will come back in a future if problem is resolved
Thanks a lot for your efforts . Yannick


#47

Hi @yannick,

you can install all the Mate stuff on top of unity with one command!:

sudo apt-get install mate-desktop-environment-core mate-desktop-environment-extras ubuntu-mate-welcome

and then click on “Subscribe to Welcome updates” after starting Welcome


#48

Bonjour,
I discovered Ubuntu Mate some months ago and it is the Linux distrib I prefer !
But I get the same issues as Yannick with my Samsung ML-2240 printer, and I tried many of the tricks that I found in this topic, without success.

Xubuntu is installed on the second HD of my computer. Both are Linux 16.04.
I really wonder why, with the same printer on the same PC, Xubuntu prints well everytime and Ubuntu Mate does not.
With Mate, the printer “enabled” unchecks some seconds after I checked it.
I may use the following tip, that does not always work: I press the printer button one time (short press) just before checking “enable” and immediately after, then generally it print… but sometimes not.
I hope the Ubuntu Mate programmers will find what is wrong, for UM is an excellent distro !
Michel


#49

Hi !
Just some words to say my Samsung ML-2240 works well after something I tried. I found this web page about installing the Samsung driver.
First, I uninstalled all the suld files I had installed from chemnet ppa (maybe there are very good drivers for some printers but it did not really help for my ML-2240).
I had tried the official samsung Linux Driver, too, and I uninstalled it (my printer staid plugged… until I tried to print)

The site where I found the procedure is this one:
http://downloadlinux.net/2016/03/01/how-to-get-install-samsung-ml-2240-printer-scanner-drivers-for-ubuntu-16-04-xenial-lts-linux/
The good thing to do was perhaps to copy the installation file in /tmp, then follow the doc.
Best regards,
Michel


#50

Guys,

I’m experiencing the same issue with a Samsung printer ML-1665. I have some knowledge with linux and I was able to trace the problem a little futher. I believe there is no bug in drivers (libgutenprint or those from samsung). The problem seems to be in a deeper layer (libusb or some other usb component or even with the kernel).

It is instructive to monitor the logs during when connect the printer. Try run
sudo tail -f /var/log/syslog
Then connect the printer to the USB port. I my case, it is clear that the printer is discovered correctly, but then after few seconds it is disconnect, no matter what it is being done. The block below was pasted from my syslog.

> ...
> Nov 13 14:26:39 salvia kernel: [  402.469272] usblp1: removed
> Nov 13 14:26:39 salvia udev-configure-printer[2940]: remove /devices/pci0000:00/0000:00:14.0/usb1/1-4
> Nov 13 14:26:39 salvia kernel: [  402.635090] usb 1-4: new full-speed USB device number 9 using xhci_hcd
> Nov 13 14:26:40 salvia kernel: [  402.821168] usb 1-4: New USB device found, idVendor=04e8, idProduct=3301
> Nov 13 14:26:40 salvia kernel: [  402.821176] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> Nov 13 14:26:40 salvia kernel: [  402.821181] usb 1-4: Product: ML-1660 Series
> Nov 13 14:26:40 salvia kernel: [  402.821185] usb 1-4: Manufacturer: Samsung Electronics Co., Ltd.
> Nov 13 14:26:40 salvia kernel: [  402.821188] usb 1-4: SerialNumber: Z5ASBDAZ809914N.
> Nov 13 14:26:40 salvia kernel: [  402.823273] usblp 1-4:1.0: usblp1: USB Bidirectional printer dev 9 if 0 alt 0 proto 2 vid 0x04E8 pid 0x3301
> Nov 13 14:26:40 salvia mtp-probe: checking bus 1, device 9: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4"
> Nov 13 14:26:40 salvia mtp-probe: bus: 1, device: 9 was not an MTP device
> Nov 13 14:26:40 salvia udev-configure-printer[2903]: no corresponding CUPS device found
> Nov 13 14:26:40 salvia systemd[1]: Started Automatic USB/Bluetooth printer setup (-devices-pci0000:00-0000:00:14.0-usb1-1\x2d4).
> Nov 13 14:26:40 salvia systemd[1]: printer.target: Unit not needed anymore. Stopping.
> Nov 13 14:26:40 salvia systemd[1]: Stopped target Printer.
> Nov 13 14:26:40 salvia systemd[1]: Reached target Printer.
> Nov 13 14:26:40 salvia systemd[1]: Starting Automatic USB/Bluetooth printer setup (-devices-pci0000:00-0000:00:14.0-usb1-1\x2d4)...
> Nov 13 14:26:40 salvia udev-configure-printer[2960]: add /devices/pci0000:00/0000:00:14.0/usb1/1-4
> Nov 13 14:26:40 salvia udev-configure-printer[2960]: device devpath is /devices/pci0000:00/0000:00:14.0/usb1/1-4
> Nov 13 14:26:40 salvia udev-configure-printer[2960]: MFG:Samsung MDL:ML-1660 Series SERN:- serial:Z5ASBDAZ809914N.
> Nov 13 14:26:45 salvia kernel: [  408.655373] usb 1-4: reset full-speed USB device number 9 using xhci_hcd
> Nov 13 14:26:46 salvia kernel: [  408.841039] usb 1-4: USB disconnect, device number 9
> Nov 13 14:26:46 salvia kernel: [  408.841488] usblp1: removed
> ....

So far, I have tried to install a kernel from ubuntu 14.04, without success. Perhaps this is an indication that the problem is in usb components instead of in the kernel itself, but I am not 100% sure of that yet.

As someone has commented that her/his printer is working with other flavor of ubuntu 16.04, I will try to install the kernel of that particular flavor to test, as well as compare the versions of the usb components.

Good luck to all.


#51

I’ve got the same problem on Ubuntu 16.04 with a HP printer (HP Envy 4500). I need to go to printers to re activate it every time after printer goes to sleep.
Here is my sudo tail -f /var/log/syslog :

`Jan 26 20:50:35 christine-G43M01 packagekitd[22272]: (packagekitd:22272): GLib-CRITICAL **: Source ID 9 was not found when attempting to remove it
Jan 26 20:51:53 christine-G43M01 dbus[833]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service'
Jan 26 20:51:53 christine-G43M01 systemd[1]: Starting PackageKit Daemon...
Jan 26 20:51:53 christine-G43M01 PackageKit: daemon start
Jan 26 20:51:53 christine-G43M01 dbus[833]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Jan 26 20:51:53 christine-G43M01 systemd[1]: Started PackageKit Daemon.
Jan 26 20:55:48 christine-G43M01 AptDaemon: INFO: Quitting due to inactivity
Jan 26 20:55:48 christine-G43M01 AptDaemon: INFO: Quitting was requested
Jan 26 20:55:48 christine-G43M01 org.debian.apt[833]: 20:55:48 AptDaemon [INFO]: Quitting due to inactivity
Jan 26 20:55:48 christine-G43M01 org.debian.apt[833]: 20:55:48 AptDaemon [INFO]: Quitting was requested
Jan 26 20:58:18 christine-G43M01 kernel: [264140.272061] usb 2-2: new high-speed USB device number 8 using ehci-pci
Jan 26 20:58:18 christine-G43M01 kernel: [264140.404933] usb 2-2: New USB device found, idVendor=03f0, idProduct=c511
Jan 26 20:58:18 christine-G43M01 kernel: [264140.404939] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 26 20:58:18 christine-G43M01 kernel: [264140.404942] usb 2-2: Product: ENVY 4500 series
Jan 26 20:58:18 christine-G43M01 kernel: [264140.404944] usb 2-2: Manufacturer: HP
Jan 26 20:58:18 christine-G43M01 kernel: [264140.404946] usb 2-2: SerialNumber: CN5783307105X4
Jan 26 20:58:18 christine-G43M01 kernel: [264140.405752] usblp 2-2:1.1: usblp0: USB Bidirectional printer dev 8 if 1 alt 0 proto 2 vid 0x03F0 pid 0xC511
Jan 26 20:58:18 christine-G43M01 root: loading HP Device 002 008
Jan 26 20:58:21 christine-G43M01 python3: io/hpmud/musb.c 2183: [23862] hpmud_make_usb_uri() bus=002 dev=008
Jan 26 20:58:21 christine-G43M01 python3: io/hpmud/musb.c 2281: hpmud_make_usb_uri() uri=hp:/usb/ENVY_4500_series?serial=CN5783307105X4 bytes_read=46
Jan 26 20:58:22 christine-G43M01 systemd[1]: Starting Automatic USB/Bluetooth printer setup (-devices-pci0000:00-0000:00:1d.7-usb2-2\x2d2)...
Jan 26 20:58:22 christine-G43M01 udev-configure-printer[23873]: add /devices/pci0000:00/0000:00:1d.7/usb2/2-2
Jan 26 20:58:22 christine-G43M01 systemd[1]: [email protected]:00-0000:00:1d.7-usb2-2\x2d2.service: Control process exited, code=exited status=1
Jan 26 20:58:22 christine-G43M01 udev-configure-printer[23873]: device devpath is /devices/pci0000:00/0000:00:1d.7/usb2/2-2
Jan 26 20:58:22 christine-G43M01 systemd[1]: Failed to start Automatic USB/Bluetooth printer setup (-devices-pci0000:00-0000:00:1d.7-usb2-2\x2d2).
Jan 26 20:58:22 christine-G43M01 udev-configure-printer[23873]: Device already handled
Jan 26 20:58:22 christine-G43M01 systemd[1]: [email protected]:00-0000:00:1d.7-usb2-2\x2d2.service: Unit entered failed state.
Jan 26 20:58:23 christine-G43M01 systemd[1]: [email protected]:00-0000:00:1d.7-usb2-2\x2d2.service: Failed with result 'exit-code'.
Jan 26 20:58:31 christine-G43M01 colord-sane: io/hpmud/musb.c 2095: Invalid usb_open: Permission denied
Jan 26 20:58:31 christine-G43M01 colord-sane: message repeated 3 times: [ io/hpmud/musb.c 2095: Invalid usb_open: Permission denied]
Jan 26 20:58:31 christine-G43M01 colord-sane: io/hpmud/pp.c 627: unable to read device-id ret=-1
Jan 26 20:58:38 christine-G43M01 PackageKit: daemon quit
Jan 26 20:58:38 christine-G43M01 packagekitd[23514]: (packagekitd:23514): GLib-CRITICAL **: Source ID 9 was not found when attempting to remove it

`


#52

Guys I think I found the cause. When I booted into a Live System my printer worked fine (Samsung ML-1640), also on a fresh installed system (16.04, 16.10, 17.04 Beta). I’ve made a postinstall script a while ago for the installation of some software and themes and after running it my printer get randomly paused. So I decided to reinstall Ubuntu and then install every single program one after another with reboots between and tried to print something.

To cut a long story short, it seems to be tlp. Have you guys installed it? If so try to remove it with:

sudo apt purge tlp tlp-rdw

and reboot. After that your printer should work as expected, at least mine is. I hope this solves the issue for you, it was really annoying that the printer wasn’t working as he should.

You can still use tlp but you have to deactivate USB-autosuspend or add your printer ID to the blacklist. To add the printer ID do the following:

  1. connect your printer to your computer
  2. open a terminal
  3. get the printer ID with ‘lsusb’ (should look like this: Bus 003 Device 052: ID 04e8:3292 Samsung Electronics Co., Ltd ML-1640 Series Laser Printer)
  4. open the config file with a texteditor (pluma, gedit, nano etc.) ‘sudo pluma /etc/default/tlp’
  5. scroll to line 178 or search for ‘#USB_BLACKLIST=’
  6. remove the # and the numbers between the " and add your printer ID there (should look like this: USB_BLACKLIST=“04e8:3292”)
  7. save the file and reboot
  8. your printer should work again

http://linrunner.de/en/tlp/docs/tlp-configuration.html#usb

I filed a bug report here


I can't print from Ubuntu
External USB Gigabit Ethernet Disconnects
Ubuntu MATE 16.04 LTS - Common Problems, Known Bugs, Workarounds
#53

@mrprobot, thanks for your investigation.
I don’t know why I have the weirdest déjà-vu about this thread.

Edit: maybe because of that:


#54

Thank you Mrprobot.

I can confirm that from a clean install of Ubuntu Mate 16.04, followed by installing the Samsung Unified Linux Drivers, and then blacklisting my Samsung printer in tlp, the printer pausing has been resolved.


#55

Thank You, that seemed to do the trick for me, too! (I did not even have to reboot, just ran “sudo tlp usb” in a terminal…)


#57

thank you so much! I searched for weeks and noone found the solution but you. I am so happy :slight_smile:


#58

It usually happen after the updates if you have older printer. I have seen alot of similar issue but if you take proper tech support it can be resolved easly. Try lenovo support