Postupoval jsem dle vyřešeného problému v
http://forum.ubuntu.cz/index.php/topic,38851.0.html :
Uživatel PC je "bozb"
Na stránce
http://localhost:631/printers/ je:
Description: HP LaserJet 4L
Location: Business Bridge
Driver: HP LaserJet 4L Foomatic/ljet4 (recommended) (grayscale)
Connection: parallel:/dev/lp0
Defaults: job-sheets=none, none media=iso_a4_210x297mm
Zkouška_1:
lpoptions -l
lp /etc/motd
bozb@bozb-desktop:~$ lp /etc/motd
lp: Error - unable to access "/etc/motd" - No such file or directory
hp-testpage
HP Linux Imaging and Printing System (ver. 3.10.2)
Testpage Print Utility ver. 6.0
warning: Qt/PyQt 4 initialization failed.
error: hp-testpage -u/--gui requires Qt4 GUI support. Entering interactive mode.
System Tray Status Service ver. 2.0
warning: Qt/PyQt 4 initialization failed.
error: hp-systray requires Qt4 GUI and DBus support. Exiting.
warning: Unable to connect to dbus. Is hp-systray running?
error: Device error (Device not found).
Tiskárna tedy neexistuje.
Info:
bozb@bozb-desktop:~$ lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 02)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 02)
00:0d.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
00:10.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U (rev 01)
00:12.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 (rev 05)
00:14.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:14.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:14.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:14.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage Pro AGP 1X/2X (rev 5c)
=> 00.14.3 (je to totéž, jako io=0xec00 hex???) podle manuálu jižní můstek I82371 obsluhuje řadič I/O I87307 (port KB, MOUSE, FD, serial, parallel)
Hledám:
bozb@bozb-desktop:~$ lsmod | grep lp
lp 7028 0
parport 32635 2 ppdev,lp
bozb@bozb-desktop:~$ ls -l /dev/lp*
ls: cannot access /dev/lp*: No such file or directory
bozb@bozb-desktop:~$ ls -l /dev/parport*
ls: cannot access /dev/parport*: No such file or directory
bozb@bozb-desktop:~$ groups
bozb adm lp dialout cdrom floppy audio dip video plugdev fuse lpadmin admin sambashare
bozb@bozb-desktop:~$ dmesg | grep -E 'parport|lp'
[ 0.000000] On node 0 totalpages: 196507
[ 0.004016] Calibrating delay loop (skipped), value calculated using timer frequency.. 896.03 BogoMIPS (lpj=1792068)
[ 41.519902] lp: driver loaded but no devices found
=> rozumím tomu tak,že ovladač je a tiskárna ne.
Doporučený výběr z výpisu:
sudo lspci -v
bozb@bozb-desktop:~$ sudo lspci -v
00:14.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
Flags: bus master, medium devsel, latency 0
00:14.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
Flags: medium devsel, IRQ 9
Kernel driver in use: piix4_smbus
Kernel modules: i2c-piix4
=> vím, že řadič I82371 obsluhuje FD, LPT, SER, KB, MOUSE ale výstupu nerozumím
Pokus o aktivaci tisku:
sudo -s
modprobe -r lp
modprobe -r parport_pc
modprobe parport_pc io=0xec00 irq=auto
modprobe lp
dmesg | tail -n20
exit
Výstup
[sudo] password for bozb:
root@bozb-desktop:~# sudo -s
root@bozb-desktop:~# modprobe -r lp
WARNING: All config files need .conf: /etc/modprobe.d/blacklist-modem, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base, it will be ignored in a future release.
root@bozb-desktop:~# modprobe -r parport_pc
WARNING: All config files need .conf: /etc/modprobe.d/blacklist-modem, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base, it will be ignored in a future release.
root@bozb-desktop:~# modprobe parport_pc io=0xec00 irq=auto
WARNING: All config files need .conf: /etc/modprobe.d/blacklist-modem, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base, it will be ignored in a future release.
root@bozb-desktop:~# modprobe lp
WARNING: All config files need .conf: /etc/modprobe.d/blacklist-modem, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base, it will be ignored in a future release.
root@bozb-desktop:~# dmesg | tail -n20
[ 46.503633] type=1505 audit(1304278175.601:8): operation="profile_replace" pid=649 name="/usr/lib/connman/scripts/dhclient-script"
[ 46.912586] type=1505 audit(1304278176.009:9): operation="profile_load" pid=653 name="/usr/bin/evince"
[ 46.916439] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 46.917658] e100: eth0 NIC Link is Up 100 Mbps Full Duplex
[ 46.919463] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 47.134760] type=1505 audit(1304278176.233:10): operation="profile_load" pid=653 name="/usr/bin/evince-previewer"
[ 47.294544] type=1505 audit(1304278176.393:11): operation="profile_load" pid=653 name="/usr/bin/evince-thumbnailer"
[ 47.610155] __ratelimit: 9 callbacks suppressed
[ 47.610173] type=1505 audit(1304278176.709:15): operation="profile_load" pid=732 name="/usr/lib/cups/backend/cups-pdf"
[ 47.613640] type=1505 audit(1304278176.713:16): operation="profile_load" pid=732 name="/usr/sbin/cupsd"
[ 47.681075] type=1505 audit(1304278176.777:17): operation="profile_load" pid=735 name="/usr/sbin/tcpdump"
[ 48.704889] apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
[ 50.875016] ppdev: user-space parallel port driver
[ 57.002792] eth0: no IPv6 routers present
[ 7152.257143] parport 0xec00 (WARNING): CTR: wrote 0x0c, read 0xff
[ 7152.257166] parport 0xec00 (WARNING): DATA: wrote 0xaa, read 0xff
[ 7152.257179] parport 0xec00: You gave this address, but there is probably no parallel port there!
[ 7152.257212] parport0: PC-style at 0xec00, irq 0 [PCSPP,TRISTATE]
[ 7152.257268] parport0: irq 0 in use, resorting to polled operation
[ 7152.445522] lp0: using parport0 (polling).
root@bozb-desktop:~# exit
=> Výsledek:
V konfigurátoru tisku Systém->Správa->Tisk->Tiskárna-> Přidat - už je v nabídce LPT#1 paralelní port,
v Nastavení je URI: parallel /dev/lpt0, Stav: Nečinný - Printer is now online,
Tisk testovací stránky - asi na 2 vteřiny problikne na horním panelu oznamovací ikona fronty tiskových úloh, leč tiskárna nereaguje ani bliknutím LEDek.
Poslednímu výstupu nerozumím vůbec. Potřebuji radu, jak tento postup zdárně dokončit tak, jak se to podařilo mému předchůdci. Díky Ota.