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:
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.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
I have created a file called 'blacklist-parallel.conf' and placed it in /etc/modprobe.d. The file contains 3 lines:
but lsmod shows that all 3 modules are loaded.Code:blacklist lp blacklist parport blacklist ppdev
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.
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.
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
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:
Then update the initramfs file. A warning message occurs if you do not end the file name in .confCode:blacklist pcspkr
pcspkr is a good one to test with. Try the following sequence:
You should see it pop up in the terminal. Now do:Code:lsmod | grep pcspkr
Then cut and paste this in there:Code:gksudo gedit /etc/modprobe.d/blacklist_custom.conf
Then update the initramfs by doing:Code:blacklist pcspkr
Now reboot, the in a terminal do:Code:sudo dpkg-reconfigure linux-image-$(uname -r)
You shouldn't see anything. However, you can still load it by doing:Code:lsmod | grep pcspkr
Now again do:Code:sudo modprobe pcspkr
And you should see it once more. However, when you reboot it will not be loaded automatically.Code:lsmod | grep pcspkr
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.
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.
I have the following entries in my blacklist.conf file"
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.blacklist joydev
blacklist e100
blacklist mii
blacklist serio_raw
blacklist pcspkr
blacklist psmouse
blacklist lp
blacklist parport
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.