I have a HP-ColorLaserjet-MFP-M278-M281 installed for about 4 years now. It is on a usb cord directly to the back of the computer. Printer runs on hplip software from repos. No network install of printer. Generally works fine, i.e., print, copy, scan. I am not a big print user and printing is very standard stuff. Never use fax. Scan very infrequently.
Quite often it just stops working. Print jobs are seen in the print queue but just sit as “pending”; never print. Diagnosis in Yast -> Printer says that the printer is not enabled. The enable printer box in the dialogue is now, inexplicably, unchecked. Enabling that box is not sufficient to restart the print functioning.
Sometime a power off from the front panel button will start it working. Most often not.
Pulling the electrical plug from the back of the machine (not a very accessible location) and reinstalling works most often but then the “enable” box in Yast -> Printer needs to be rechecked to see that it is enabled and very often needs to be checked to the enable position.
Annoying problem. Would like to fix it.
What could be making the printer to become un-enabled?
Could this be a CUPS problem? I really don’t understand how cups really works.
Not new issue so I don’t suspect hardware deterioration.
While your report is a bit confusing, (please, copy/paste from the terminal the unchanged text from the prompt/command line inclusing the output and up to and including the next prompt line between CODE tags, the # button in the post editor tool bar), I tried myself
boven:~ # enable printer
-bash: enable: printer: not a shell builtin
Which brought me into:
boven:~ # type enable
enable is a shell builtin
Then. consulting the bash man page:
enable -a] -dnps] -f filename] [name …]
Enable and disable builtin shell commands. Disabling a builtin allows a disk command which has the same name as a shell builtin to be executed without specifying a full pathname, even though the shell normally searches for builtins before disk commands. If -n is used, each name is disabled; otherwise, names are enabled. For example, to use the test binary found via the PATH instead of the shell builtin version, run ``enable -n test’’. The -f option means to load the new builtin command name from shared object filename, on systems that support dynamic loading. The -d option will delete a builtin previously loaded with -f. If no name arguments are given, or if the -p option is supplied, a list of shell builtins is printed. With no other option arguments, the list consists of all enabled shell builtins. If -n is supplied, only disabled builtins are printed. If -a is supplied, the list printed includes all builtins, with an indication of whether or not each is enabled. If -s is supplied, the output is restricted to the POSIX special builtins. The return value is 0 unless a name is not a shell builtin or there is an error loading a new builtin from a shared object.
which shows that enable command has nothing to do with printer management.
Thus, a question to larryr:
Did you test what you advised before posting it above?
Log into the cups interface http://localhost:631 (user:root password:root user password) and check the status, might be stuck in maintenance mode. Perhaps the USB port it’s on goes to sleep, plug/unplug may help.
adding this to the startup in /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT line inside the " "
usbcore.autosuspend=-1 intel_pstate=disable, as was suggested above did not work. Several reboots were done before a print job was needed so grub mods were in play…
A print job did not print. It just hung in queue as pending for an hour. In Yast -> printer -> edit, the printer was un-enabled again, i.e., enabled lost the check mark that was there previously.
Rechecking the enable box did not start the printer.
Did a plug removal restart of printer. Yast -> printer -> edit was again un-enabled. Upon rechecking the enable box, the print job started and ran fine.
I think I need either another diagnosis and/or another fix. Just an annoyance but due to location of printer plug, it makes for a pain.
No fighting with USB Yes, delete and re-install the printer as a network one. I set a fixed IP address on mine, the P1102w never misses a beat, it’s on the wireless network as well, so can be moved if a family member needs it close by.