[SOLVED] Parallel PCI interface card not detected/not works
- 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
Yes, that reads as an eminently sensible suggestion to be in the immediate vicinity of the printer, when testing.
100% Linux and, previously, Unix. Co-founder of the ELRepo Project.
Re: Parallel PCI interface card not detected / not working
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.
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.
- 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
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.)
100% Linux and, previously, Unix. Co-founder of the ELRepo Project.
Re: Parallel PCI interface card not detected / not working
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!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.)
***
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"