LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-23-2005, 04:54 AM   #1
conio
LQ Newbie
 
Registered: Jan 2005
Location: Poland
Distribution: Slackware 10.0
Posts: 2

Rep: Reputation: 0
/dev/lp0 doesn't exists


Hi, I've got Hewlett Packard 710c on Slackware 10.0. I've wanted to install this printer, but I saw in /dev/ that lp0 (normally printer) doesn't exists. On other distros like SuSE, Aurox, system has found printer and make auto config, on Slack this printer doesn't work, Slack doesn't see it in /dev/. Why and how to make it work????
 
Old 01-23-2005, 11:26 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I saw in /dev/ that lp0 (normally printer) doesn't exists."

You can create /dev/lp0 wiht the mknod command:

mknod /dev/lp0 b 6 0

Give /dev/lp0 permissions of 660. On SuSE the ownership is root lp but the group name used will be distribution dependent.

-----------------------
Steve Stites
 
Old 01-25-2005, 06:54 AM   #3
conio
LQ Newbie
 
Registered: Jan 2005
Location: Poland
Distribution: Slackware 10.0
Posts: 2

Original Poster
Rep: Reputation: 0
And will my printer work? Now it doesn't... On other distros (diiffrent than slack) it works correctly - this distros "see" this printer... My printer is Hewlett Packard 710c.
Thx
 
Old 01-25-2005, 01:57 PM   #4
lp449
Member
 
Registered: Oct 2004
Location: Olsztyn, Poland
Distribution: Debian Squeeze / CentOS 6
Posts: 60

Rep: Reputation: 15
Quote:
Originally posted by conio
And will my printer work? Now it doesn't...
It should work fine (according to www.linuxprinting.org) it should work perfectly The most important thing you have to do with it is ti configure it. Then system will "see" it definitely. Try configuring it by CUPS, quite easy and simple tool for configuring printers.
 
Old 01-25-2005, 02:15 PM   #5
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Rep: Reputation: 30
is it plugged in parellel port or USB port? If it's usb, you will find it in /dev/usb/lp0.
 
Old 08-31-2009, 02:59 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
Have you tried switching the printer on afresh, waiting 5 seconds, and surfing to
http://localhost:631 and adding it in there?
If the usb is set up right, the device should be found. No probs here on slack with 2 different printers. Not _that_ problem anyhow :-).
 
Old 08-31-2009, 11:00 PM   #7
mrspaghetti
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Rep: Reputation: 1
Quote:
Originally Posted by conio View Post
Hi, I've got Hewlett Packard 710c on Slackware 10.0. I've wanted to install this printer, but I saw in /dev/ that lp0 (normally printer) doesn't exists. On other distros like SuSE, Aurox, system has found printer and make auto config, on Slack this printer doesn't work, Slack doesn't see it in /dev/. Why and how to make it work????
I had a similar problem and it turned out I didn't compile support for the right modules when I compiled the kernel. Try the following:

lsmod | grep par

Here's what I get on my system:

Code:
$ lsmod | grep par
parport_pc             23588  1
parport                33608  3 ppdev,lp,parport_pc
If you don't see ppdev, lp and parport_pc listed like that then try adding the missing one(s) as follows:

modprobe lp
modprobe ppdev
modprobe parport_pc

and then see if you have /dev/lp0 listed. If not, and especially if it complains that it couldn't find the module then you might have to recompile your kernel with the right options (which sounds scary but is not necessarily that difficult).
 
1 members found this post helpful.
Old 09-01-2009, 07:37 AM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
business_kid & mrspaghetti,
This thread is four YEARS old.
Please don't resurrect dead threads.
 
Old 09-01-2009, 07:53 AM   #9
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
How on earth do people manage to find those old threads
 
Old 09-01-2009, 07:59 AM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by Wim Sturkenboom View Post
How on earth do people manage to find those old threads
They must hold seances.
 
Old 09-29-2010, 08:44 AM   #11
RBEmerson
Member
 
Registered: May 2006
Location: Skippack
Distribution: SuSE Linux 11.1
Posts: 63

Rep: Reputation: 15
Actually, this old thread addresses a problem I'm having right now. I have to add a PCI parallel port card to a mail server because of a legacy issue. Unfortunately, I still can't get the card running. Anyone want to take a shot at this?

Using lspci -v I can see the card and its ports (c800, c400, c000, b800, and b400 are all listed as 8-bit ports, b000 is listed as a 16-bit port). It's listed as using irq 19. Doing modprobe parport_pc io=0xb000 irq=0x19 seems to work - at least there's no error back. But it's not clear how to tie this to /dev/lp0. I tried the mknod command, which makes the port, of course, and did chown root.lp /dev/lp0 but neither YaST2 or CUPS can find a printer. The printer is an HP LJ-5P which worked just fine in the old server until it was shutdown yesterday.
 
Old 09-29-2010, 09:02 AM   #12
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
IRQ numbers as listed by lspci -v are in decimal AFAIK, so your modprobe command may be telling it to use the wrong IRQ

I am surprised that suse doesn't just see the card at boot, and set everything up for you.
 
Old 09-30-2010, 07:54 AM   #13
RBEmerson
Member
 
Registered: May 2006
Location: Skippack
Distribution: SuSE Linux 11.1
Posts: 63

Rep: Reputation: 15
Since I posted the note, I've done some more work on the problem and now have a /dev/lp0. I'm not sure why it decided to appear now, though. The card has been in place for a few days and, of course, there've been a few re-boots including (duh!) the one following the card's installation. And, yes, that should be 0d19 and not 0x19 - the IRQ number is a decimal number not hex.

The problem has now become a little uglier, though. The good news is CUPS can see the printer and add it to CUPS' list of printers (well, all one printer...). The bad news is printing to the printer is a disaster. Even using cat to put "Hello, world!<NL><FF>" into /dev/lp0 gives a badly scrambled "AHello word" with some junk characters tossed in for good measure. Attempting to print a test page with CUPS is even worse as all I see is junk characters instead of the expected test page. In short, the link to /dev/lp0 is in deep trouble.

The printer, BTW, is an HP LaserJet-5P and I'm using the same drivers that worked on the previous openSUSE install (10.3).
 
Old 09-30-2010, 08:03 AM   #14
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Bad cable? Please try a different one.
Is the card properly seated in its slot?
 
Old 09-30-2010, 08:29 AM   #15
RBEmerson
Member
 
Registered: May 2006
Location: Skippack
Distribution: SuSE Linux 11.1
Posts: 63

Rep: Reputation: 15
The cable is the same one that's been working for years and it's the only one I have left. However, I did think about re-seating it "just because". Ditto for the card although there I'd say a loose card is more of a GO/NO GO situation than prone to garbled output.

Repeated tries at "Hello world" give the same results, even to the junk characters, every time. That doesn't have the feel of a poor connection, but rather something wrong with the driver or something else in the system. Of course, the big question is just what is doing that.

At this point, I'm about to pitch the printer out the window and put in a networked printer. The LJ-5P is ancient, the drum has a couple of marks on it, and the printer is generally reaching the end of its service life. It's the easy way out and doesn't solve the problem, really, but I do need to move on to other projects. "Plug the printer in, set the driver... how hard can it be?"
 
  


Reply



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
Why no /dev/lp0 in CUPS sharper Slackware 0 12-25-2004 07:19 PM
/dev/lp0 not recognized tiagobt Linux - General 8 09-27-2004 01:26 PM
Who stole my /dev/lp0 ? Timer Linux - Hardware 0 07-13-2004 03:26 PM
No /dev/lp0 in Gentoo 1.4 darin3200 Linux - General 2 12-28-2003 06:54 PM
Redirection > /dev/lp0 XT8088 Linux - Newbie 2 09-20-2003 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:04 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
Open Source Consulting | Domain Registration