How do I make udev give me /dev/lp0 ?

View: New views
5 Messages — Rating Filter:   Alert me  

How do I make udev give me /dev/lp0 ?

by Mark Weyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Please CC me, I am not subscribed.

I am using lenny on an amd64 with the standard kernel.

The short question is in the subject. The long version follows.

When trying to use my printer, I installed cups and foomatic, because the
package descriptions suggested that I needed to. However, foomatic did not
know the printer model and thus configuration of cups failed. Then I just
tried
  cp bla.ps /dev/lp0
because I felt that it "should" work. It did.
So I happily uninstalled cups, foomatic and all the bloat that they pull
in as dependencies. The problem: Next time I tried (after a number of
reboots), /dev/lp0 was gone.

The standard kernel (which I use) uses udev and if I understand the latter
correctly, it should always give me (in /dev) the devices which are
physically present. As my parallel port is always present and there is no
way to detect whether anything is conected to the far end, why is there no
/dev/lp0 by default? Or at least when there is something at the far end?
How do I get /dev/lp0 back?

Best regards,

  Caeles


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: How do I make udev give me /dev/lp0 ?

by Eduardo M KALINOWSKI-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mark Weyer wrote:

> Please CC me, I am not subscribed.
>
> I am using lenny on an amd64 with the standard kernel.
>
> The short question is in the subject. The long version follows.
>
> When trying to use my printer, I installed cups and foomatic, because the
> package descriptions suggested that I needed to. However, foomatic did not
> know the printer model and thus configuration of cups failed. Then I just
> tried
>   cp bla.ps /dev/lp0
> because I felt that it "should" work. It did.
> So I happily uninstalled cups, foomatic and all the bloat that they pull
> in as dependencies. The problem: Next time I tried (after a number of
> reboots), /dev/lp0 was gone.
>
> The standard kernel (which I use) uses udev and if I understand the latter
> correctly, it should always give me (in /dev) the devices which are
> physically present. As my parallel port is always present and there is no
> way to detect whether anything is conected to the far end, why is there no
> /dev/lp0 by default? Or at least when there is something at the far end?
> How do I get /dev/lp0 back?
>  

Does the device appear if you run as root 'modprobe parport'? If so, you
just need to make sure this module is always loaded. Easiest way to do
that is add a line containing 'parport' to the file /etc/modules.

--
"His eyes were cold.  As cold as the bitter winter snow that was falling
outside.  Yes, cold and therefore difficult to chew..."

Eduardo M KALINOWSKI
eduardo@...


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: How do I make udev give me /dev/lp0 ?

by Mark Weyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Does the device appear if you run as root 'modprobe parport'?

No, this does not change the contents of /dev at all.

Thanks anyway,

  Caeles


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: How do I make udev give me /dev/lp0 ?

by Florian Kulzer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Nov 05, 2009 at 20:17:55 +0100, Mark Weyer wrote:
> > Does the device appear if you run as root 'modprobe parport'?
>
> No, this does not change the contents of /dev at all.

Try "modprobe lp".

--
Regards,            |
          Florian   |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: How do I make udev give me /dev/lp0 ?

by Mark Weyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Florian Kulzer wrote:
> Try "modprobe lp".

This worked. Thanks,

  Caeles


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...