Gentoo Archives: gentoo-user

From: Kevin O'Gorman <kogorman@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gentoo rebuild, cups won't work WORKAROUND (i.e. mysteriously solved)
Date: Sun, 03 Feb 2008 23:19:10
Message-Id: 9acccfe50802031519o2dc2898dh249a9214e3519d4c@mail.gmail.com
1 On Feb 3, 2008 4:27 AM, Dave Jones <Dave.Jones@××××××.nl> wrote:
2
3 > Kevin O'Gorman wrote on 02/02/08 22:26:
4 >
5 > > >>>> I've installed cups and hplip. I cannot follow the Gentoo
6 > > >>>> printing guide, because that worthy document requires me to add
7 > > >>>> hplip to the default runlevel, but hplip does not put anything
8 > in
9 > > >>>> /etc/init.d. My printer is an old HP Laserjet 4M, which I
10 > > >>>> usually run as a Postscrpt printer.
11 > >
12 > > >>>> What have I missed?
13 > >
14 > > >>> Run hp-setup
15 > >
16 > > >>> You'll probably need to rework your cups config files if you've
17 > > >>> retained them from the broken install. hp-setup should enable
18 > > >>> local printing OK.
19 > >
20 > > >> And if it still gives you problems, delete /etc/cups then
21 > reemerge
22 > > >> cups. I had to do that last part too.
23 > >
24 > > > The problem is that my printer is on the LPT port (/dev/lp0), and
25 > > > hp-setup does not find it. In fact it has an option for LPT
26 > > > printers, but it is greyed out.
27 > >
28 > > > The printer is really there: I can print by "cat printme
29 > >/dev/lp0"
30 > > > with a suitably formed "printme" file (lines need CR, file ends
31 > with
32 > > > ^L^D).
33 > >
34 > > > Hmmm. Digging slightly deeper, I found the /usr/bin/hp-probe
35 > > > program. It lets me specifically request a probe of LPT, but finds
36 > > > nothing there. The printer remains attached. I'm even more
37 > deeply
38 > > > stumped than before.
39 > >
40 > > Try: hp-setup -i /dev/parport0
41 > >
42 > > See if that helps.
43 > >
44 > > Try hp-setup -h for other options.
45 > >
46 > > I take it that your kernel has parallel port support generated, and
47 > that
48 > > you have file permission to access /dev/lp0 ?
49 >
50 > > It runs, but only gives me options for usb and net. This makes some
51 > > sense since there are no /dev/parport* entries in my system.
52 >
53 > > Nevertheless, I have parallel port support as I understand it. From my
54 > > kernel (2.6.22-gentoo-r6) .config file:
55 >
56 > > #
57 > > # Generic Driver Options
58 > > #
59 > > CONFIG_STANDALONE=y
60 > > CONFIG_PREVENT_FIRMWARE_BUILD=y
61 > > CONFIG_FW_LOADER=m
62 > > # CONFIG_SYS_HYPERVISOR is not set
63 > > # CONFIG_CONNECTOR is not set
64 > > # CONFIG_MTD is not set
65 > > CONFIG_PARPORT=y <<<< parallel port
66 > > CONFIG_PARPORT_PC=y <<<< PC style
67 > > # CONFIG_PARPORT_SERIAL is not set
68 > > # CONFIG_PARPORT_PC_FIFO is not set
69 > > # CONFIG_PARPORT_PC_SUPERIO is not set
70 > > # CONFIG_PARPORT_GSC is not set
71 > > # CONFIG_PARPORT_AX88796 is not set
72 > > CONFIG_PARPORT_1284=y
73 > > CONFIG_PNP=y
74 > > # CONFIG_PNP_DEBUG is not set
75 >
76 > Your kernel set-up looks reasonable to me.
77 >
78 > I don't have parallel port support generated into my system, as I don't
79 > have a parallel printer.
80 >
81 > On a Centos host with parallel port support, 2.6.18 kernel:
82 >
83 > CONFIG_PARPORT=m
84 > CONFIG_PARPORT_PC=m
85 > CONFIG_PARPORT_SERIAL=m
86 > # CONFIG_PARPORT_PC_FIFO is not set
87 > # CONFIG_PARPORT_PC_SUPERIO is not set
88 > CONFIG_PARPORT_PC_PCMCIA=m
89 > CONFIG_PARPORT_NOT_PC=y
90 > # CONFIG_PARPORT_GSC is not set
91 > # CONFIG_PARPORT_AX88796 is not set
92 > CONFIG_PARPORT_1284=y
93 > CONFIG_PARIDE_PARPORT=m
94 > CONFIG_I2C_PARPORT=m
95 > CONFIG_I2C_PARPORT_LIGHT=m
96 >
97 > ls /dev/par* shows:
98 >
99 > /dev/par0 /dev/parport0 /dev/parport1 /dev/parport2 /dev/parport3
100 >
101 > Do you have a standard parallel port, or a special IO card?
102 >
103 > Have you modified /etc/udev.d rules? I have these (unmodified) entries:
104 >
105 > rules.d/50-udev.rules:KERNEL=="lp*", NAME="%k", GROUP="lp"
106 > rules.d/50-udev.rules:KERNEL=="parport*", NAME="%k", GROUP="lp"
107 >
108 > I'm puzzled by this, as your /dev/lp0 print test worked.
109 >
110 > The only other suggestion I have would be to try:
111 >
112 > hp-setup -i /dev/lp0
113 >
114 > Don't know if hp-setup will accept this, might be worth having a go.
115 >
116 > Cheers, Dave
117 > --
118 > gentoo-user@l.g.o mailing list
119 >
120 > hp-setup stubbornly refuses to acknowledge /dev/lp0
121
122 I got it to work, but don't really know what was wrong. The drive that held
123 my root directory and all
124 configs had failed. Friday, i got it back from the DiskSavers, along with
125 the data on a new USB
126 external drive. Copying over the cups config files just magically made the
127 printer work locally.
128 That's enough for now.
129
130 I'm still struggling with a host of issues, so I'm going to ignore the fact
131 that I have no idea what
132 keeps my CUPS working.
133
134 I think I've got cron backing up to that USB drive nightly -- using rsync it
135 takes about an hour for
136 all partitions, unattended. Beats the blazes out of hovering over the DVD
137 drive. And i'm pretty sure
138 I won't end up in the same fix again.
139
140 But I've still got to get the LPD service going, not to mention apache,
141 vmware, ntp and gaim/pidgin.
142 And I have a day job.
143
144 I'll get around to it. Real Soon Now.
145
146 ++ kevin
147
148
149 --
150 Kevin O'Gorman, PhD

Replies