Re: [PARPORT] parport_pc will not load

From: Gabriel M. Elder (
Date: Fri Jan 17 2003 - 14:02:35 EST

  • Next message: Duncan Haldane: "[PARPORT] How to switch PIO cards between ECP and EPP modes?"

    Not sure if anyone's tried to help you out with this yet, but i haven't
    noticed any replies on the parport list, so here goes:

    I would query the procinfo to see if you can verify and locate whatever
    else may be grabbing those resources. i.e. cat /proc/interrupts and cat
    /proc/ioports, use the procinfo command, or use the pretty system
    information boxes in the gui control center(s). If that doesn't show
    anything that you can use, then manually unload and reload the parport
    module stack using rmmod and modprobe. Remember, it won't let you rmmod
    something if it's in use (use count > 0), even if you're root. lsmod
    will show a module's use count and module dependencies. So:

    lsmod | sort | less
    for each par* module and the lp module: rmmod -v modname_here

    Then try reloading the module stack (i prefer to use modprobe, a cleaner
    interface to insmod) from the bottom up:

    modprobe -v parport
    modprobe -v parport_pc
    modprobe -v lp

    What mode is your parallel port set to in the CMOS/BIOS? What messages
    show up in /var/log/messages when you try to load these modules? I'm
    really not sure why this isn't loading properly from the outset; weird.
    But hopefully these troubleshooting tips will help you out.

    I hope this was useful to someone. If i have erred, or someone knows
    better, please LMK.

    - gabriel

    On Tue, 2003-01-14 at 15:31, Adam Knutson wrote:
    > Hi, I'm using Gentoo linux and I have the parport and lp drivers enabled
    > and compiled as modules in my kernel. I can load parport just fine, but
    > the parport_pc driver will not load with or without IRQ and IO params:
    > $insmod parport_pc io=0x378 irq=7
    > Using /lib/modules/2.4.19-gentoo-r10/kernel/drivers/parport/parport_pc.o
    > /lib/modules/2.4.19-gentoo-r10/kernel/drivers/parport/parport_pc.o:
    > init_module: Device or resource busy
    > Hint: insmod errors can be caused by incorrect module parameters,
    > including invalid IO or IRQ parameters.
    > You may find more information in syslog or the output from dmesg
    > I even tried changing my irq in the bios to 5 instead of 7. So the
    > output of dmesg | grep parport is:
    > parport0: PC-style at 0x278 (0x678) [PCSPP(,...)]
    > parport0: irq 5 detected
    > lp0: using parport0 (polling).
    > My printer is an HP Deskjet 712c. I hope someone has some good advice,
    > because I've really been trying to figure this error out, and have never
    > had THIS much trouble printing in Linux before. Thanks --Adam

    -- To unsubscribe, send mail to: --
    -- with the single word "unsubscribe" in the body of the message. --

    This archive was generated by hypermail 2b29 : Fri Jan 17 2003 - 13:24:40 EST