LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 04-11-2007, 12:05 AM   #1
misophist
Member
 
Registered: Aug 2003
Location: here
Distribution: suse 8.2
Posts: 169

Rep: Reputation: 30
parallel port not there?


When I installed opensuse 10.2, my HP 920c worked fine but it recently stopped. There's no Communication to the printer. /dev/lp0 seems to be detected and configured, modprobe lists parport and parport_pc (and lp) but it still won't print. Here is a section from system messages:

Apr 9 15:47:58 x kernel: parport 0x378: You gave this address, but there is probably no parallel port there!
Apr 9 15:47:58 x kernel: parport0: PC-style at 0x378 [PCSPP,TRISTATE]
Apr 9 15:47:59 x kernel: pnp: Device 00:0c activated.
Apr 9 15:47:59 x kernel: parport: PnPBIOS parport detected.
Apr 9 15:47:59 x kernel: parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
Apr 9 15:47:59 x kernel: lp0: using parport0 (interrupt-driven).
Apr 9 15:48:09 x kernel: pnp: Device 00:0c disabled.
Apr 9 15:48:09 x kernel: parport 0x378 (WARNING): CTR: wrote 0x0c, read 0xff
Apr 9 15:48:09 x kernel: parport 0x378 (WARNING): DATA: wrote 0xaa, read 0xff
Apr 9 15:48:09 x kernel: parport 0x378: You gave this address, but there is probably no parallel port there!
Apr 9 15:48:09 orca kernel: parport0: PC-style at 0x378 [PCSPP,TRISTATE]
Apr 9 15:48:09 x kernel: ppa: Version 2.07 (for Linux 2.4.x)
Apr 9 15:48:09 x kernel: end_request: I/O error, dev fd0, sector 0
Apr 9 15:48:09 x kernel: end_request: I/O error, dev fd0, sector 0
Apr 9 15:48:24 x kernel: end_request: I/O error, dev fd0, sector 0
Apr 9 15:48:24 x kernel: end_request: I/O error, dev fd0, sector 0
Apr 9 15:50:54 x kernel: hdc: drive_cmd: status=0x01 { Error }
Apr 9 15:50:54 x kernel: hdc: drive_cmd: error=0x04 { AbortedCommand }
Apr 9 15:50:54 x kernel: ide: failed opcode was: 0xec
Apr 9 15:50:54 x kernel: hdd: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
Apr 9 15:50:54 x kernel: hdd: drive_cmd: error=0x04 { AbortedCommand }
Apr 9 15:50:54 x kernel: ide: failed opcode was: 0xec

I'm pretty sure it's parallel port thats not working but don't have any idea how to fix it. Suggestions?


Note: I haven't used floppies in a long time so I don't understand why it was mentioned.

Last edited by misophist; 04-11-2007 at 12:07 AM.
 
Old 04-11-2007, 10:47 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I haven't used a parallel port printer for years. Have you tried to send stuff to the printer directly, by e.g.:

echo hello > /dev/lp0

(maybe have to be root, depending on permissions)? If you get a reaction from the printer then at least you know data is going through the port.

You could also check the log files, usually in /var/log/cups.

I guess you have checked the lsmod output. I noticed I now have a module 'ppdev' which I don't recall seeing before. Maybe the way the kernel handles the port has been changed.

You can also try changing the parallel port settings in the BIOS to see if it makes any difference.

Edit: it looks like ppdev has replaced ppa on my system. Not sure of the significance of that.

Last edited by maroonbaboon; 04-11-2007 at 10:51 AM.
 
Old 04-11-2007, 10:56 AM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
In the BIOS, the address of the parallel port can be changed. The default should be 0x378.
 
Old 04-11-2007, 09:59 PM   #4
misophist
Member
 
Registered: Aug 2003
Location: here
Distribution: suse 8.2
Posts: 169

Original Poster
Rep: Reputation: 30
Thank you both for responding.

"echo hello > /dev/lp0" had no effect.
Neither ppdev nor ppa were installed. Adding them had no effect.
The bios address of the port was correct.
/var/log/cups may have a clue. There were no error messages but at the end of each test attempt was this entry: "CUPS-Delete-Printer: Unauthorized". Means nothrng specific to me. Do either of you have any ideas?



PS. Tested all memory addresses and modes. No luck.

Last edited by misophist; 04-11-2007 at 10:38 PM.
 
Old 04-12-2007, 07:08 AM   #5
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
If you google your warning message with search terms:

"parport 0x378" warning ctr

you will see several reports of similar problems. No standard fix unfortunately.

It is strange that your printer suddenly stopped working - seems to suggest hardware failure rather than driver problems. Can you try another printer, or the same printer on a different computer? Just rebooting with a live CD and trying to print from that might tell you something.

Do you have a parport0 entry in the output of 'cat /proc/ioports'?
 
Old 04-12-2007, 11:58 AM   #6
misophist
Member
 
Registered: Aug 2003
Location: here
Distribution: suse 8.2
Posts: 169

Original Poster
Rep: Reputation: 30
Here's what proc has to say:
0378-037a : parport0
037b-037f : parport0
My Knoppix cd has gone kaput. I'll report back later. Should have thought of Knoppix myself. Sorry.


A new Knoppix was unable to detect the printer. If there is a separate way to test the port, I didn't find it. So either the motherboard or the printer is at fault. Looks like I need to find a usb printer. Thanks for the help.

Last edited by misophist; 04-12-2007 at 06:54 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parallel Port & Serial Port device identification helpmeforlinux Linux - Hardware 3 01-02-2007 02:15 AM
About parallel port yugandhar Linux - General 1 07-11-2006 08:02 AM
Where is the parallel port? kwyjibo99 Linux - Hardware 5 07-20-2005 06:47 PM
What's using my parallel port?! DiBosco Linux - Hardware 10 06-20-2004 11:18 AM
Cannot use parallel port under 2.6.4 jimbob1234 Slackware 2 03-14-2004 09:34 PM


All times are GMT -5. The time now is 04:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration