Gentoo Archives: gentoo-user

From: Dave Jones <Dave.Jones@××××××.nl>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gentoo rebuild, cups won't work
Date: Sun, 03 Feb 2008 12:27:27
Message-Id: 47A5B32C.8070603@xs4all.nl
In Reply to: Re: [gentoo-user] gentoo rebuild, cups won't work by Kevin O'Gorman
1 Kevin O'Gorman wrote on 02/02/08 22:26:
2
3 > >>>> I've installed cups and hplip. I cannot follow the Gentoo
4 > >>>> printing guide, because that worthy document requires me to add
5 > >>>> hplip to the default runlevel, but hplip does not put anything in
6 > >>>> /etc/init.d. My printer is an old HP Laserjet 4M, which I
7 > >>>> usually run as a Postscrpt printer.
8 >
9 > >>>> What have I missed?
10 >
11 > >>> Run hp-setup
12 >
13 > >>> You'll probably need to rework your cups config files if you've
14 > >>> retained them from the broken install. hp-setup should enable
15 > >>> local printing OK.
16 >
17 > >> And if it still gives you problems, delete /etc/cups then reemerge
18 > >> cups. I had to do that last part too.
19 >
20 > > The problem is that my printer is on the LPT port (/dev/lp0), and
21 > > hp-setup does not find it. In fact it has an option for LPT
22 > > printers, but it is greyed out.
23 >
24 > > The printer is really there: I can print by "cat printme >/dev/lp0"
25 > > with a suitably formed "printme" file (lines need CR, file ends with
26 > > ^L^D).
27 >
28 > > Hmmm. Digging slightly deeper, I found the /usr/bin/hp-probe
29 > > program. It lets me specifically request a probe of LPT, but finds
30 > > nothing there. The printer remains attached. I'm even more deeply
31 > > stumped than before.
32 >
33 > Try: hp-setup -i /dev/parport0
34 >
35 > See if that helps.
36 >
37 > Try hp-setup -h for other options.
38 >
39 > I take it that your kernel has parallel port support generated, and that
40 > you have file permission to access /dev/lp0 ?
41
42 > It runs, but only gives me options for usb and net. This makes some
43 > sense since there are no /dev/parport* entries in my system.
44
45 > Nevertheless, I have parallel port support as I understand it. From my
46 > kernel (2.6.22-gentoo-r6) .config file:
47
48 > #
49 > # Generic Driver Options
50 > #
51 > CONFIG_STANDALONE=y
52 > CONFIG_PREVENT_FIRMWARE_BUILD=y
53 > CONFIG_FW_LOADER=m
54 > # CONFIG_SYS_HYPERVISOR is not set
55 > # CONFIG_CONNECTOR is not set
56 > # CONFIG_MTD is not set
57 > CONFIG_PARPORT=y <<<< parallel port
58 > CONFIG_PARPORT_PC=y <<<< PC style
59 > # CONFIG_PARPORT_SERIAL is not set
60 > # CONFIG_PARPORT_PC_FIFO is not set
61 > # CONFIG_PARPORT_PC_SUPERIO is not set
62 > # CONFIG_PARPORT_GSC is not set
63 > # CONFIG_PARPORT_AX88796 is not set
64 > CONFIG_PARPORT_1284=y
65 > CONFIG_PNP=y
66 > # CONFIG_PNP_DEBUG is not set
67
68 Your kernel set-up looks reasonable to me.
69
70 I don't have parallel port support generated into my system, as I don't
71 have a parallel printer.
72
73 On a Centos host with parallel port support, 2.6.18 kernel:
74
75 CONFIG_PARPORT=m
76 CONFIG_PARPORT_PC=m
77 CONFIG_PARPORT_SERIAL=m
78 # CONFIG_PARPORT_PC_FIFO is not set
79 # CONFIG_PARPORT_PC_SUPERIO is not set
80 CONFIG_PARPORT_PC_PCMCIA=m
81 CONFIG_PARPORT_NOT_PC=y
82 # CONFIG_PARPORT_GSC is not set
83 # CONFIG_PARPORT_AX88796 is not set
84 CONFIG_PARPORT_1284=y
85 CONFIG_PARIDE_PARPORT=m
86 CONFIG_I2C_PARPORT=m
87 CONFIG_I2C_PARPORT_LIGHT=m
88
89 ls /dev/par* shows:
90
91 /dev/par0 /dev/parport0 /dev/parport1 /dev/parport2 /dev/parport3
92
93 Do you have a standard parallel port, or a special IO card?
94
95 Have you modified /etc/udev.d rules? I have these (unmodified) entries:
96
97 rules.d/50-udev.rules:KERNEL=="lp*", NAME="%k", GROUP="lp"
98 rules.d/50-udev.rules:KERNEL=="parport*", NAME="%k", GROUP="lp"
99
100 I'm puzzled by this, as your /dev/lp0 print test worked.
101
102 The only other suggestion I have would be to try:
103
104 hp-setup -i /dev/lp0
105
106 Don't know if hp-setup will accept this, might be worth having a go.
107
108 Cheers, Dave
109 --
110 gentoo-user@l.g.o mailing list