[SOLVED] Parallel PCI interface card not detected/not works

Issues related to hardware problems
User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Parallel PCI interface card not detected / not working

Post by AlanBartlett » 2014/12/20 19:21:48

Yes, that reads as an eminently sensible suggestion to be in the immediate vicinity of the printer, when testing.
Image 100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

aveintie
Posts: 15
Joined: 2014/11/11 08:54:40
Location: Finland

Re: Parallel PCI interface card not detected / not working

Post by aveintie » 2014/12/29 07:46:40

I tried "modprobe parport_serial" with the motherboard parallel port set to disabled.
Dmesg reports: ppdev: user-space parallel port driver
# lsmod | grep parp
parport_serial 13024 0
parport_pc 28165 1 parport_serial
parport 42348 2 ppdev,parport_pc

There is no /dev/parport0, however, and attempting to print (/dev/lp0) causes an error message from Cups: Printer not connected; will retry in 30 seconds.

Meanwhile the ugly looking parport_pc experiment which looked to me from distance to have worked actually did, too. There was a test print here waiting for me this morning. Today dmesg also shows no errors:
# modprobe parport_pc io=0xe800 irq=10,auto
[ 1391.558691] parport 0xe800 (WARNING): CTR: wrote 0x0c, read 0x04
[ 1391.558721] parport0: PC-style at 0xe800, irq 10 [PCSPP]
[ 1391.650620] lp0: using parport0 (interrupt-driven).

And I can print now.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Parallel PCI interface card not detected / not working

Post by AlanBartlett » 2014/12/29 18:32:18

Thank you for reporting back with news of the success. (It was unfortunate that you had to travel to the site to physically check the hardware.)
Image 100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

aveintie
Posts: 15
Joined: 2014/11/11 08:54:40
Location: Finland

Re: Parallel PCI interface card not detected / not working

Post by aveintie » 2014/12/30 08:24:32

AlanBartlett wrote:Thank you for reporting back with news of the success. (It was unfortunate that you had to travel to the site to physically check the hardware.)
I should have trusted my instinct and just left the motherboard setting "disabled" to begin with. And this one is not (yet) out of reach at all, I was just away for the holidays. Thank you for the help! :)

***

Just in case someone has the same or very similar issue I guess I should add that since this card is not automatically recognized at boot time I added an udev rule like this:

/etc/udev/rules.d/99-parallel-PCI-card.rules

Code: Select all

SUBSYSTEM=="pci",ATTR{idVendor}=="1fd4",ATTR{idProduct}=="1999",
        RUN+="/sbin/modprobe -q parport_pc io=0xe800 irq=10,auto"

Post Reply