LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2018, 12:44 AM   #16
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 2,928

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492

Note that it is also possible to specify a CUPS server on a Linux client machine via /etc/cups/client.conf with the'ServerName <host>' directive eg
Code:
ServerName 192.168.1.12
Then the client applications use libcups2 communicate directly with the server's CUPS daemon instead of the local CUPS daemon. (In fact CUPS doesn't have to be running on the local machines when configured like this.) This approach is good for eliminating the need for any additional configuration on the client machines.
 
Old 01-03-2018, 06:38 PM   #17
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,384

Original Poster
Rep: Reputation: 120Reputation: 120
This is truly a demon printer! After it magically permitted me to set up this printer via hplip (post #10), today for no apparent reason that setup show a red X on the printer image in hp-setup and I repeatedly get the "Smart Install is enabled in 'HP Laserjet Professional P 1102w" message. Of course, it continues to have a signature verification failure and continues to fail to uninstall the Smart Install [sic] program. Who knows why it magically worked, briefly, yesterday.

So, I'd like to try a "raw" setup in cups. In the http://localhost:631/admin/ page, that printer is not found, but I have "HP Printer (HPLIP)" and "HP Fax (HPLIP)" options for 'Local Printers'. For Other Network Printers I have various options: ipp, https, http, ipps, AppSOcket/HP JetDirect, LPD/LPR Host or Printer.

Get me started? Which should I choose?

the Local Printer, HP Printer option gives me "hp" on the connection line and various "examples" such as http://hostname.631/ipp, etc.

In answer to ferrari's question, the cups version is 1.6g

lsusb shows the printer:
Bus 001 Device 007: ID 03f0:102a Hewlett-Packard

Is this printer even connectable from Linux? If not, I could try connecting it on the Win7 VM and possibly sharing from there.

Last edited by mfoley; 01-03-2018 at 06:42 PM.
 
Old 01-03-2018, 09:03 PM   #18
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 2,928

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You're dealing with more than one issue here. The 'Smart Install' needs to be dealt with first. It effectively causes the printer to present a cdrom storage device when connected, as you'll note if you do
Code:
ls l /dev/sr*
https://answers.launchpad.net/hplip/+question/197841
*Post #14 onwards

https://bugs.launchpad.net/hplip/+bug/672134
*Based on the information in the latter bug report it looks like it could be disabled via usb_modeswitch, and this could be implemented on demand with a suitable udev rule.

If you want to utilize network connectivity instead, then you'll need a Windows machine to help with the initial configuration as jlinkels already described. Once the printer is connected to your network and configured with a valid static IP address then you can proceed with configuring via hp-setup (or CUPS web interface if preferred).

Last edited by ferrari; 01-03-2018 at 09:04 PM.
 
Old 01-03-2018, 09:32 PM   #19
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 2,928

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
If wanting to investigate a possible 'automated' usb-modeswich approach, I found a page showing a configuration for a similar model (P1102 with product ID 0x002a). From one of your earlier posts I note that the P1102w model has a differnet Product ID (0x102a), so a suitable config file might be /usr/share/usb_modeswitch/03f0:102a containing...

Code:
# HP LaserJet Professional P1102w

DefaultVendor= 0x03f0
DefaultProduct=0x102a
TargetClass=0x07

MessageContent="555342431234567800000000000006d0000000000000000000000000000000"
NeedResponse=1
CheckSuccess=20
You would need to have usb-modeswitch installed of course.
https://mirrors.slackware.com/slackw...sb_modeswitch/

The idea is that when the printer is plugged in via USB, usb-modeswitch will take care of disabling the cdrom device, and hopefully it's seen only as a printer device consistently.
 
Old 01-03-2018, 10:31 PM   #20
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,384

Original Poster
Rep: Reputation: 120Reputation: 120
You all have given me lots of good ideas and I may have to try each one of them, but at the moment, I am suspecting a bad motherboard:

1. Whenever I unplug or plug-in a USB device on the back panel the computer stops. Screens still show, but nothing runs. No keyboard, no mouse, even remote sessions are unresponsive. Basically, this appears to 'glitch' the processor and causes it to freeze. The only remedy is the reset button. That shouldn't happen just by removing or inserting a USB device.

2. The 1102w printer and Fujitsu scanner appear and disappear between boots. In fact, between posting my last message and this, the 1102w "reappeared" on the Linux system with the url:

usb://HP/LaserJet%20Professional%20P%201102w?serial=000000000W400679SI1c

However, trying a test page failed. Nevertheless I have testpage printouts from that printer both from the Linux and Windows computer *proving* that at one time it worked on both systems, but it doesn't stay working. Right now, the Windows VM no longer connects to the printer, even though it shows in the list of printers and the user was printing on it all day. Furthermore, I definitely scanned something on Friday with the Fujitsu scanner and Foxit on the Windows VM, but haven't go it working since. The appearing/disappearing, working/not-working thing is strange.

3. I plugged a USB Backup drive into the other front panel connector. Windows gave and error that it could not communicate with that device.

4. The clincher (for me) when I plugged in the USB Backup drive into the front panel, the mouse and keyboard (on Linux and Windows) stopped working. The keyboard/mouse wireless dongle is plugged into the other front panel USB port. When I unplugged the drive, the mouse and keyboard started working again.

All this is very odd behavior for USB devices. My first step will be to move the SSD drive from the "new" computer into the old carcass -- which worked with all these devices and didn't glitch when moving USBs around. Then, I'll head off to the store to exchange this motherboard. Stay tooned!

Last edited by mfoley; 01-03-2018 at 10:33 PM.
 
Old 01-04-2018, 08:18 PM   #21
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,384

Original Poster
Rep: Reputation: 120Reputation: 120
Some minor progress. I've swapped motherboards, but that didn't appear to help. However, when I went to the office to disassemble the whole mess, I saw a "Windows Printer Test Page" on the printer! After some more experimentation, I have finally, after a week, got this !@#$% 1102w printer installed on the Windows VM. The immediate problem is that I continually get the "Smart Install Device(s) Detected message on the Linux host. How do I completely disable this message? Do I have to uninstall hplip?
 
Old 01-04-2018, 08:56 PM   #22
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 2,928

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
No, it has nothing to do with HPLIP. It is a setting in the printer to present a ‘cdrom’ device on the USB interface. Can you not disable it via Windows (HP printer utility)?
 
Old 01-06-2018, 05:09 PM   #23
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,384

Original Poster
Rep: Reputation: 120Reputation: 120
Quote:
Originally Posted by ferrari View Post
No, it has nothing to do with HPLIP. It is a setting in the printer to present a ‘cdrom’ device on the USB interface. Can you not disable it via Windows (HP printer utility)?
I've not yet found a utility on the Windows VM for that, but if I do, would it not also disable the "Smart Install" on the Windows side as well? Not sure I want to do that because, in the end, that's what it used to install itself on Windows. Also, the message on the Linux box is from "HP Device Manager". Is that not HPLIP?

More on that later. Meanwhile, I'm trying to configure this printer as shared on Windows and accessed from Linux. I've followed the instructions here: https://wiki.archlinux.org/index.php...-_Linux_client using the "Windows Server, Linux Client" section. The connection I'm using is lpd://192.168.0.174/CharmainesPrinter where "CharmainesPrinter" is the Windows share name. I've selected the driver: "HP LaserJet Professional P 1102w hpijs, 3.16.5, requires proprietary plugin (color)".

When trying to print a test page I get: State stopped "Filter Failed".

I have other choices of driver including ones with the string "CUPS" in the driver name. Does anyone have suggestions? Should I try all these 1102w drivers? They all say "requires proprietary plugin" so maybe none of them will work. The "(color)" bit confuses me because I don't believe the 1102w was capable of color. Should I try something other than lpd, Samba for example? Perhaps the proprietary plugin requirement is the problem. Perhaps I should use a PostScript or PCL driver?
 
Old 01-06-2018, 07:29 PM   #24
Launfal
Member
 
Registered: Jun 2014
Location: Ohio, USA
Posts: 69

Rep: Reputation: 54
I've had an 1102w for years, and I've never had any problems with it since Day 1. I used to use HPLIP for setting up the printer, but since I've gone Slack for the last few years, I use foo2zjs.

1. removepkg hplip (delete non-empty directories) Not completely necessary, but it's redundant, and you'll end up with double drivers for everything if you don't.
2. http://foo2zjs.rkkda.com - build and install the drivers per the instructions. I found a SlackBuild for it online somewhere and modified it slightly, but the driver instructions work fine.
3. lynx http://localhost:631 - Delete any printer that may be there, then re-add it, find the 1102w driver in the list, set the printer as server default, print test page.

These instructions have never failed me, and it's a good thing since I've lost all faith in HP's ability to write non-Windows driver software. Great hardware, lousy software IMO. foo2zjs works so well I dropped a donation for it in appreciation.

YMMV, but try this before you start installing any kind of weird proprietary crap.

[edit] clarified step 3

Last edited by Launfal; 01-06-2018 at 07:38 PM.
 
1 members found this post helpful.
Old 01-07-2018, 09:42 PM   #25
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,384

Original Poster
Rep: Reputation: 120Reputation: 120
launfal: I'd like to try this. Do you use foo2zjs for Windows shared printers too?
 
Old 01-08-2018, 06:15 AM   #26
Launfal
Member
 
Registered: Jun 2014
Location: Ohio, USA
Posts: 69

Rep: Reputation: 54
^ I don't share the printer over the network that way. The drivers for all the computers were locally installed, and while CUPS asked if I wanted to share it, I never saw the need, since everything just worked. I know you've already considered it, but I'm thinking that getting the printer set up and printing in linux then sharing it to windows is the right way around. Once you get it up and running, and verify that CUPS is doing its thing, working out how to get the VM to see it should be an easier job.

I've seen that smart device thing around the web, but I've never hit it, so I don't know how the HP utility is supposed to work. But until that's fixed, windows will never see the printer as a printer. It'll insist that it's a cdrom device.
 
Old 01-10-2018, 06:28 PM   #27
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,384

Original Poster
Rep: Reputation: 120Reputation: 120
This week the 1102w printer suddenly stopped working on Windows Arrrgghhh! I'm going to try your suggestion. I've removed hplip. I'm about to download foo2zjs. This question may be premature, but assuming foo2zjs asks for a printer driver, what did you use? I assume it's NOT "HP LaserJet Professional P 1102w hpijs, 3.16.5, requires proprietary plugin (color)".

Later ...

I've downloaded and done the make on foo2zjs. Did you install the "(Optional) Install hotplug (for HP LJ 1000/1005/1018/1020/P100[5678]/P1505)"?

Even later ...

Well, no joy so far. I've installed foo2zjs, restarted CUPS (rebooted, in fact), but when I go into http://localhost:631/admin/, NO local printers are shown! lsusb does see the printer:

Bus 001 Device 002: ID 03f0:102a Hewlett-Packard

Suggestions?

Last edited by mfoley; 01-10-2018 at 09:11 PM.
 
Old 01-10-2018, 07:18 PM   #28
Launfal
Member
 
Registered: Jun 2014
Location: Ohio, USA
Posts: 69

Rep: Reputation: 54
^ Once you remove hplip and rm the non=empty directories in /etc, there will only be one p1102w driver in the list. You can install foo2zjs without doing the delete, but you do get double drivers for each device in the list.

The one you want will be labeled HP LaserJet Pro P1102w Foomatic/foo2zjs-z2 (recommended). No need to download anything or install anything else. Select the driver, set it as the server default, tell CUPS to share it if you want, then print a test page.

It's always been just that simple for me, so I figure it was worth a shot.
 
Old 01-10-2018, 07:39 PM   #29
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 2,928

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
This question may be premature, but assuming foo2zjs asks for a printer driver, what did you use?
???....foo2zjs is a linux printer driver for ZjStream protocol supporting printers such as yours.
 
Old 01-11-2018, 12:51 AM   #30
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,384

Original Poster
Rep: Reputation: 120Reputation: 120
Quote:
Originally Posted by Launfal View Post
^ Once you remove hplip and rm the non=empty directories in /etc, there will only be one p1102w driver in the list.
Perhaps I need some hand-holding here. Most of the directories in /etc are non-empty and contain lots of important files, scripts, etc. Is there some sub-directory in etc you are thinking about? I'm not about to delete all the non-empty directories in /etc and I don't think that's what you meant.
Quote:
You can install foo2zjs without doing the delete, but you do get double drivers for each device in the list.

The one you want will be labeled HP LaserJet Pro P1102w Foomatic/foo2zjs-z2 (recommended). No need to download anything or install anything else. Select the driver, set it as the server default, tell CUPS to share it if you want, then print a test page.

It's always been just that simple for me, so I figure it was worth a shot.
Well, that's what I did (installed foo2zjs without deleting files in /etc). Now, where is this list of drivers you're talking about? As mentioned, when I run http://localhost:631/admin/ and go under either 'Add Printer' or 'Find New Printers', nothing at all is listed for local printers. Yet, as I mentioned, lsusb does see the printer device. Do I have to select some other connection type like ipp, http, etc.? Does yours just come up with "HP LaserJet Pro P1102w Foomatic/foo2zjs-z2" in the local Printers list? Is there a directory I can look in to confirm foo2zjs installed OK? (e.g. where are the foo2zjs drivers supposed to be kept?)

In fact, I looked through the list of HP drivers and the P1102w Footmatic is out there (and out there twice). But I guess my problem is that the computer doesn't see the hardware for some reason.

Last edited by mfoley; 01-11-2018 at 01:01 AM.
 
  


Reply

Tags
hplip, kde4


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing Xastir: Trouble with the dependency library gpsmanshp tristan.sebens Linux - Software 0 10-13-2017 04:48 AM
Trouble installing drivers for wireless usb device in Backtrack 5 toneloc51 Linux - Networking 5 03-22-2012 09:49 PM
Trouble installing GSM device driver using 'make' on Ubuntu 8.04, 2.6.24-19-lpia stephend Linux - Hardware 0 03-20-2009 03:02 PM
Trouble with Composite Manager??? rjohnson244 Linux - Software 2 05-20-2005 09:46 PM
trouble Installing multi port serial device unforgivn Linux - Hardware 0 06-02-2004 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration