[ltp] Boot delay caused by lp module

Michael Gaber linux-thinkpad@linux-thinkpad.org
Tue, 21 Jul 2009 01:59:17 +0200


Am 20.07.2009 20:53, schrieb Daniel Castro:
> Hi All,
>
> Hope someone can help. I just installed 9.04 on a T61p, everything
> worked fine for a while but suddenly I was getting 3 minute delays at
> startup. After digging into the logs I found that:
>
> [   13.910198] synaptics was reset on resume, see synaptics_resume_reset
> if you have trouble on resume
> [   15.371139] psmouse serio2: ID: 10 00 64<6>IBM TrackPoint firmware:
> 0x0e, buttons: 3/3
> [   19.084301] input: TPPS/2 IBM TrackPoint as
> /devices/platform/i8042/serio1/serio2/input/input12
> *[  189.238041] lp0: using parport0 (interrupt-driven).*
> [  189.302500] Adding 1927760k swap on /dev/sda6.  Priority:-1 extents:1
> across:1927760k
> [  198.914676] EXT3-fs warning: maximal mount count reached, running
> e2fsck is recommended
> [  198.914861] EXT3 FS on sda5, internal journal
> [  200.088590] type=1505 audit(1248115283.366:2):
> operation="profile_load" name="/usr/share/gdm/guest-session/Xsession"
> name2="def
> ault" pid=2503
>
> So it looks like lp module is hanging there because it can't find a
> hardware device, of course, it's a laptop, it has no parallel port.
>
> This issue is very similar to the one reported at
> http://ubuntuforums.org/showthread.php?t=1138455
>
> So I see two ways of fixing this, to blacklist the modules or to build a
> custom kernel.
>
> The first one does not work. I have created a file
> /etc/modprobe.d/blacklist_custom.conf with:
> blacklist lp
> blacklist parport
> blacklist ppdev
>
> And then ran:
> sudo dpkg-reconfigure linux-image-$(uname -r)
> sudo update-initramfs -u
>
> But after rebooting it is still loading the modules.
>
> The second option of building a custom kernel, well I'm not very
> familiar with that and find it a bit scary. I would prefer to go back to
> 8.10 before doing this.
>
> Does anyone know how I can fix this?
>
> Thanks,
>
> --
> ________________________
>
> Daniel Castro, M.Sc.
> +353 083-318-2058
> dancasmo@gmail.com <mailto:dancasmo@gmail.com>
> castromd@tcd.ie <mailto:castromd@tcd.ie>
> ________________________

maybe deleting instead of blacklisting the modules would help, then the 
can't be loaded anymore, but i don't know what that might break