Page 1 of 2 12 spacer Lastspacer
Results 1 to 10 of 13

Thread: Possible to blacklist lp module? Causing 3 minute boot delay!

  • Thread Tools
    • Show Printable Version
    • Subscribe to this Thread…
  • Display
    • Switch to Hybrid Mode
    • Switch to Threaded Mode
  1. April 26th, 2009 #1
    Beastie Boy
    • View Profile
    • View Forum Posts
    • Private Message
    spacer 5 Cups of Ubuntu spacer
    Join Date
    Mar 2007
    Location
    UK
    Beans
    20
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Possible to blacklist lp module? Causing 3 minute boot delay!

    I have a fresh install of Ubuntu 9.04 on an Acer Aspire 9110 laptop. Previous versions of Ubuntu (& derivatives) have been fine, but this one takes forever to boot. Here is an excerpt from dmesg:
    Code:
    [ 11.110893] EIP: [<f7fa52c0>] saa7134_board_init2+0x140/0x710 [saa7134] SS:ES
    P 0068:f619bc54
    [ 11.110906] ---[ end trace 9bd66193deb28a9c ]---
    [ 11.500080] Clocksource tsc unstable (delta = -341257333 ns)
    [ 11.588074] usb 4-2: new full speed USB device using uhci_hcd and address 2
    [ 11.759586] usb 4-2: configuration #1 chosen from 1 choice
    [ 11.790916] Bluetooth: Generic Bluetooth USB driver ver 0.3
    [ 11.791032] usbcore: registered new interface driver btusb
    [ 189.996709] lp: driver loaded but no devices found
    [ 190.062114] Adding 506008k swap on /dev/sda5. Priority:-1 extents:1 across:5
    06008k
    As you can see, there is a 3 minute wait whilst the lp module searches for devices. I believe that lp is associated with parallel ports, but I don't have any.
    I have created a file called 'blacklist-parallel.conf' and placed it in /etc/modprobe.d. The file contains 3 lines:
    Code:
    blacklist lp
    blacklist parport
    blacklist ppdev
    but lsmod shows that all 3 modules are loaded.
    How can I prevent this 3 minute search at boot? If I am going about it the wrong way, then please advise. Is this a kernel bug perhaps?

    Many thanks in advance.

    Cheers, Beastie.
    spacer Adv Reply  

  2. April 28th, 2009 #2
    spacer
    oOarthurOo
    • View Profile
    • View Forum Posts
    • Visit Homepage
    spacer Gee! These Aren't Roasted! spacer
    Join Date
    Oct 2008
    Location
    Canada
    Beans
    Hidden!

    Re: Possible to blacklist lp module? Causing 3 minute boot delay!

    After creating a blacklist file, such as blacklist.local in /etc/modprobe.d/ you need to update the boot image.
    Code:
    sudo dpkg-reconfigure linux-image-$(uname -r)
    A towel is about the most massively useful thing for fixing computers. Use it to muffle your screams when you mess up, or to dry your tears if it's broken beyond repair. When all else fails, use it to cover up the useless machine, then walk away.
    spacer Adv Reply  

  3. May 7th, 2009 #3
    charliemouse
    • View Profile
    • View Forum Posts
    • Private Message
    spacer First Cup of Ubuntu spacer
    Join Date
    May 2009
    Beans
    1

    Re: Possible to blacklist lp module? Causing 3 minute boot delay!

    Hi, did this fix work for you?

    I'm having the exact same problem with 9.04 and have also tried creating a blacklist file under /etc/modprobe.d/blacklist.conf, where I'm blacklisting lp, ppdev and parport.

    I've tried running

    sudo dpkg-reconfigure linux-image-$(uname -r)
    and have also tried removing them before rebooting (using rmmod) but each time the delay still occurs and when I type lsmod it shows all three have been started.

    Can anyone think of anything else I need to try?

    Thanks
    spacer Adv Reply  

  4. May 8th, 2009 #4
    spacer
    oOarthurOo
    • View Profile
    • View Forum Posts
    • Visit Homepage
    spacer Gee! These Aren't Roasted! spacer
    Join Date
    Oct 2008
    Location
    Canada
    Beans
    Hidden!

    Re: Possible to blacklist lp module? Causing 3 minute boot delay!

    Blacklisting only prevents the modules from being loaded at boot time, however, modules may still be loaded via other processes, like HAL if you should plug a device in.

    Check to ensure that you have blacklisted the modules correctly. The form is:

    Code:
    blacklist pcspkr
    Then update the initramfs file. A warning message occurs if you do not end the file name in .conf

    pcspkr is a good one to test with. Try the following sequence:
    Code:
    lsmod | grep pcspkr
    You should see it pop up in the terminal. Now do:
    Code:
    gksudo gedit /etc/modprobe.d/blacklist_custom.conf
    Then cut and paste this in there:
    Code:
    blacklist pcspkr
    Then update the initramfs by doing:
    Code:
    sudo dpkg-reconfigure linux-image-$(uname -r)
    Now reboot, the in a terminal do:
    Code:
    lsmod | grep pcspkr
    You shouldn't see anything. However, you can still load it by doing:
    Code:
    sudo modprobe pcspkr
    Now again do:
    Code:
    lsmod | grep pcspkr
    And you should see it once more. However, when you reboot it will not be loaded automatically.

    If you have done this experiment to prove to yourself that this method works, and you are still having problems with blacklisting the modules you desire, then what is likely happening is that the modules are not being loaded by the kernel at boot, but are being loaded by some other process later in the startup, perhaps by HAL or printing or some such.
    A towel is about the most massively useful thing for fixing computers. Use it to muffle your screams when you mess up, or to dry your tears if it's broken beyond repair. When all else fails, use it to cover up the useless machine, then walk away.
    spacer Adv Reply  

  5. May 8th, 2009 #5
    Beastie Boy
    • View Profile
    • View Forum Posts
    • Private Message
    spacer 5 Cups of Ubuntu spacer
    Join Date
    Mar 2007
    Location
    UK
    Beans
    20
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Possible to blacklist lp module? Causing 3 minute boot delay!

    To cure the problem, I took the rather drastic step of compiling a new kernel with all modules relating to parallel ports disabled. This has worked for me and I now have no boot delay.
    Compiling and installing a custom kernel was much easier than I expected. It can even be automated for the most part. Do a search for KernelChecker.

    Hope you cure your problem.

    Cheers, Beastie.
    spacer Adv Reply  

  6. May 19th, 2009 #6
    spacer
    oOarthurOo
    • View Profile
    • View Forum Posts
    • Visit Homepage
    spacer Gee! These Aren't Roasted! spacer
    Join Date
    Oct 2008
    Location
    Canada
    Beans
    Hidden!

    Re: Possible to blacklist lp module? Causing 3 minute boot delay!

    I have the following entries in my blacklist.conf file"
    blacklist joydev
    blacklist e100
    blacklist mii
    blacklist serio_raw
    blacklist pcspkr
    blacklist psmouse
    blacklist lp
    blacklist parport
    After updating my boot image and restarting, only lp and parport are loaded. Something else is loading them during the startup process, likely the printing configuration.
    A towel is about the most massively useful thing for fixing computers. Use it to muffle your screams when you mess up, or to dry your tears if it's broken beyond repair. When all else fails, use it to cover up the useless machine, then walk away.
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.