parallel port lpt not detected by ubuntu

Asked by juergen fehr, md

after upgrade from 8.10 to 9.04 I got this problem: My printer was not contaceted any longer although it worked perfectly before. I erased the printer in ubuntu and tryed to recreate it again with the systems own program (gnome). I did not worker because the parallel port was not detected the system did as if there was no parallel port at all. So did the external programs cupsys and also the HPLIP - all same answeres : no LPT-Port just serial ports.
The hardware seems to be okay because it was possible to rpont screenshots with the keyboard-"print" while using the BIOS.

How can the parallel port be "found again"?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
conanait
Solved:
Last query:
Last reply:
Revision history for this message
juergen fehr, md (dr-fehr) said :
#1

help for resetting lpT

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2

Hi,

In order to gather more information about your Ubuntu printer configuration, please follow this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Run the following commands (copy/paste each command into the Terminal and then hit <enter>)

lsmod | grep lp
lsmod | grep ppdev
dmesg | grep par
lpinfo -v

Step 3: Please post results (copy/paste terminal output from each command) on this thread

Regards,

Mark

Revision history for this message
juergen fehr, md (dr-fehr) said :
#3

Thanks I did the abovementioned comnmands an this is the result:

jurgen@tux:~$ lsmod | grep lp
lp 17156 0
parport 42220 2 ppdev,lp
jurgen@tux:~$ lsmod | grep ppdev
ppdev 15620 0
parport 42220 2 ppdev,lp
jurgen@tux:~$ dmesg | grep par
[ 0.418926] Booting paravirtualized kernel on bare hardware
[ 5.621002] PM: Resume from partition 8:5
[ 39.375251] ppdev: user-space parallel port driver
jurgen@tux:~$ lpinfo -v
network socket
network beh
direct hal
direct hpfax
direct hp
network http
network ipp
network lpd
direct scsi
serial serial:/dev/ttyS0?baud=115200
serial serial:/dev/ttyS1?baud=115200
network smb
jurgen@tux:~$

I hope this may help to solve the problem

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#4

Hi,

Open a Terminal and enter the following command:

sudo gedit /etc/modules

# Add the following line to the end of the /etc/modules file

ppdev

Afterwards, reboot to enter the BIOS and reset all BIOS values back to default values. Then turn the printer off and on again. Then reboot the pc and retest configuring the printer in Gnome.

Then try playing around with the parallel port settings in the BIOS (if they exist there)

Then turn the printer off and on again. Then reboot the pc and retest configuring the printer in Gnome.

If this does not help, please specify the exact model and make of your printer.

Hope this helps,

Regards,

Mark

Revision history for this message
juergen fehr, md (dr-fehr) said :
#5

Thank you very much but that did not work.
I opend the modules and changed it like that:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

lp
floppy
ppdev

you were right that the ppdev was missing - I had to write it, but after then it was stable existing in this file (I looked a few times).

I tried playing with the BIOS (I have a Siemens SCENIC 600 computer with so calles PhoenixBIOS which gave you at least 40 possible settings - I have tried the default and a few other which looked well possible without success...

My Printer is a HP-Laser-Jet 6P (old fashioned and worked until ubuntu 9.04 without any problems - I have two computers connectet to one printer (the abovementioned) with a mechanical switch. Also this worked perfectly under Ubuntu 8.04 and 8.10. (And still does under WIN XP on the other computer)

The possible settings for the parallel port in BIOs are like this: you must at first choose the Parralel either to Auto or Enabled , Disabled or OS-Controlled.

If you choose Enabled you got the decisions between ECP, EPP printer and bidirection and then you must at last decide between adresses like this: Enabled>Printer>378h,IRQ7 or 278h,IRQ5 or 3BCh,IRQ7 .... It would be possible to draw a flowchart scan it and poste it if this may help... but you see it is nearly impossible ty find the right thing with trial and error.
The default Setup is: Auto>Bidirection (without such cryptic values like above) (that seems the right for me cause i have never changed anything before (e.g. as I used my printer for the first time. #
In all zhese settings it is possible to print right out of the BIOS with the PRINT-key on the keybord (so the contact is physically well).

If I tried to establish contact via HPLIPS the fault was like this:

jurgen@tux:~$ sudo hp-setup
[sudo] password for jurgen:

HP Linux Imaging and Printing System (ver. 3.9.4)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Searching... (bus=par, search=(None) desc=0)
error: No devices found on bus: par

Done.
jurgen@tux:~$
jurgen@tux:~$

I am very thankful for yor help
Regards
Juergen

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#6

Hi,

Please send us output of following command:

sudo hp-check -t

Regards,

Mark

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#7

Hi,

Please also try all the suggestions in the following bugreport:

https://bugs.launchpad.net/ubuntu/+source/gnome-cups-manager/+bug/29050

If all the suggestions there do not help (like manually running "sudo modprobe ppdev" in a Terminal), then I suggest you create a new bugreport for your issue.

Regards,

Mark

Revision history for this message
juergen fehr, md (dr-fehr) said :
#8

okay at first the command:
jurgen@tux:~$ sudo hp-check-t
[sudo] password for jurgen:
sudo: hp-check-t: command not found
jurgen@tux:~$ sudo hp-check -t

HP Linux Imaging and Printing System (ver. 3.9.4)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode
will check both of the above cases (both compile- and run-time dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux tux 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux

Distribution:
ubuntu 9.04

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.6.2 installed

Checking PyQt 4.x version...
OK, version 4.4.4 installed.

Checking for CUPS...
Status: Scheduler wird ausgeführt
Version: 1.3.9
error_log is set to level: debug

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS DDK - CUPS driver development kit...
OK, found.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image development files...
OK, found.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.

Checking for dependency: Python ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python devel - Python development files...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.

----------------------
| HPLIP INSTALLATION |
----------------------

Currently installed HPLIP version...
HPLIP 3.9.4 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.9.4

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hpijs/HP
ppdbase=/usr/share/ppd/hpijs
doc=/usr/share/doc/hplip-3.9.4
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp/

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
cups-ppd-install=no
cups-drv-install=no
internal-tag=3.9.4.102
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes

Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

Current contents of '~/.hplip/hplip.conf' file:
[last_used]
device_uri = serial:/dev/ttyS0?baud=115200

[installation]
date_time = 04/28/09 13:41:47
version = 3.9.4

-------------------------------
| DISCOVERED PARALLEL DEVICES |
-------------------------------

No devices found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

warning: No queues found.

----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.

---------------
| USER GROUPS |
---------------

root lpadmin

-----------
| SUMMARY |
-----------

No errors or warnings.

Done.
jurgen@tux:~$

next I try the bugreport, you mentioned

Revision history for this message
juergen fehr, md (dr-fehr) said :
#9

jurgen@tux:~$ sudo modprobe ppdev
jurgen@tux:~$ sudo modprobe ppdev
jurgen@tux:~$ sudo cat ~/.bashrc > /dev/lp0
bash: /dev/lp0: Permission denied

thats what the terminal said. The gnome printing manager did not work. I shut the system down, rebootet looked at BIOS confirmed that is was still AUTO and Bidirectionell. After Rebooting it was the same thing. The parallel Port had not been detected.

Revision history for this message
juergen fehr, md (dr-fehr) said :
#10

and here (perhaps it is interesting is the result of your first abovementioned command after using the recommended orders:
jurgen@tux:~$ sudo hp-check -t
[sudo] password for jurgen:

HP Linux Imaging and Printing System (ver. 3.9.4)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode
will check both of the above cases (both compile- and run-time dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux tux 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux

Distribution:
ubuntu 9.04

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.6.2 installed

Checking PyQt 4.x version...
OK, version 4.4.4 installed.

Checking for CUPS...
Status: Scheduler wird ausgeführt
Version: 1.3.9
error_log is set to level: debug

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS DDK - CUPS driver development kit...
OK, found.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image development files...
OK, found.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.

Checking for dependency: Python ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python devel - Python development files...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.

----------------------
| HPLIP INSTALLATION |
----------------------

Currently installed HPLIP version...
HPLIP 3.9.4 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.9.4

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hpijs/HP
ppdbase=/usr/share/ppd/hpijs
doc=/usr/share/doc/hplip-3.9.4
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp/

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
cups-ppd-install=no
cups-drv-install=no
internal-tag=3.9.4.102
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes

Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

Current contents of '~/.hplip/hplip.conf' file:
[last_used]
device_uri = serial:/dev/ttyS0?baud=115200

[installation]
date_time = 04/28/09 13:41:47
version = 3.9.4

-------------------------------
| DISCOVERED PARALLEL DEVICES |
-------------------------------

No devices found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

warning: No queues found.

----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.

---------------
| USER GROUPS |
---------------

root lpadmin

-----------
| SUMMARY |
-----------

No errors or warnings.

Done.
jurgen@tux:~$

Revision history for this message
juergen fehr, md (dr-fehr) said :
#11

Dear Mr Rijckenberg,

thank you very much for your help. I am not so sure what to do, because I need the computers printing for my everyday work and so I was thinking of killing the system and installing 8.04LTS which workes fine.
I am no „freak“ but only a user – not more clever and only slightly more skilled as the normal windows user nowadays, but I'm convinced that it is necessary to use free source software because of political thinkings (Shuttelworth and so one).
I will not have to work next days cause it is the 1.May and this is holyday in Germany. I will try (with your very good help) to repair the system – just to find a way out how the bug works. I think that is the minimum I should give back to you for all your work creating this system. So I think, if you dont get the phiosophers stone I will work on this problem again on monday. But if so I return to my office to work again on this problem (it's about 15 km)
I wish you a perfect holidayweekend
Yours sincerely,
Jürgen Fehr
PS I have perhaps the possibility to give you direct access to my computer - if so it would be no problem because there are only a few personal data which I would transfer on a USBstick and remove for this time - this computer is mostely my 24/7 internet access...

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#12

Hi,

You're welcome.

I suggest booting from the Kubuntu 9.04 LiveCD (instead of Ubuntu 9.04). Then try to manually add the parallel port printer using KDE's Add printer wizard during the LiveCD session. Only install Kubuntu 9.04 if this print test works in the LiveCD session.

If that does not work, try the same test using the Kubuntu 8.10 LiveCD.

If that does not work, try the same test using the Kubuntu 8.04 LiveCD.

This is the last advice I can give, unfortunately.

Hopefully one of these 3 versions of Kubuntu will work.

Regards,

Mark

Revision history for this message
Best conanait (ait-tnn) said :
#13

hi, i had same problem till today
i only add that lines to /etc/modprobe.d/alsa-base.conf ( may be yours is /etc/modprobe.conf)
# paralel_port:
alias parport_lowlevel parport_pc
options parport_pc io=0x378 irq=auto

please check this article;
http://www.alinux.tv/linux-modules.txt

regards,
ait

Revision history for this message
juergen fehr, md (dr-fehr) said :
#14

Dear conanait,

Thats it - it solves that damned problem. I had been frustrated and was willing to change ton LTS 8.04 but this last simple advice solved my problem, I only had to enregister the Software for the printer out of a List, because the computer did not rec. automatical the type (although he named the printer he didnt find the riht driver.)

One thing - I had to restart the computer .

Thanks to all of you which helped me.
Yours
Jürgen

Revision history for this message
juergen fehr, md (dr-fehr) said :
#15

Thanks conanait, that solved my question.

Revision history for this message
Eddie Gleaton (egleaton) said :
#16

Thanks here also. conanait just fixed same problem for me. I have been looking at various sites for two days to find this fix.