[ltp] Boot delay caused by lp module

Daniel Castro linux-thinkpad@linux-thinkpad.org
Mon, 20 Jul 2009 19:53:02 +0100


--001636c5990bc7c65e046f27a5dd
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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
castromd@tcd.ie
________________________

--001636c5990bc7c65e046f27a5dd
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi All,<br>
<br>
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:<br>
<br>
[=A0=A0 13.910198] synaptics was reset on resume, see synaptics_resume_rese=
t if you have trouble on resume<br>
[=A0=A0 15.371139] psmouse serio2: ID: 10 00 64&lt;6&gt;IBM TrackPoint firm=
ware: 0x0e, buttons: 3/3<br>
[=A0=A0 19.084301] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/=
serio1/serio2/input/input12<br>
<b><font color=3D"#ff0000">[=A0 189.238041] lp0: using parport0 (interrupt-=
driven).</font></b><br>
[=A0 189.302500] Adding 1927760k swap on /dev/sda6.=A0 Priority:-1 extents:=
1 across:1927760k<br>
[=A0 198.914676] EXT3-fs warning: maximal mount count reached, running e2fs=
ck is recommended<br>
[=A0 198.914861] EXT3 FS on sda5, internal journal<br>
[=A0 200.088590] type=3D1505 audit(1248115283.366:2):
operation=3D&quot;profile_load&quot; name=3D&quot;/usr/share/gdm/guest-sess=
ion/Xsession&quot;
name2=3D&quot;def<br>
ault&quot; pid=3D2503<br>
<br>
So it looks like lp module is hanging there because it can&#39;t find a
hardware device, of course, it&#39;s a laptop, it has no parallel port.<br>
<br>
This issue is very similar to the one reported at <a href=3D"http://ubuntuf=
orums.org/showthread.php?t=3D1138455">http://ubuntuforums.org/showthread.ph=
p?t=3D1138455</a><br>
<br>
So I see two ways of fixing this, to blacklist the modules or to build a cu=
stom kernel.<br>
<br>
The first one does not work. I have created a file /etc/modprobe.d/blacklis=
t_custom.conf with:<br>
blacklist lp<br>
blacklist parport<br>
blacklist ppdev<br>
<br>
And then ran:<br>
sudo dpkg-reconfigure linux-image-$(uname -r)<br>
sudo update-initramfs -u<br>
<br>
But after rebooting it is still loading the modules.<br>
<br>
The second option of building a custom kernel, well I&#39;m not very
familiar with that and find it a bit scary. I would prefer to go back
to 8.10 before doing this.<br>
<br>
Does anyone know how I can fix this?<br>
<br>
Thanks,<br clear=3D"all"><br>-- <br>________________________<br><br>Daniel =
Castro, M.Sc.<br>+353 083-318-2058<br><a href=3D"mailto:dancasmo@gmail.com"=
>dancasmo@gmail.com</a><br><a href=3D"mailto:castromd@tcd.ie">castromd@tcd.=
ie</a><br>
________________________<br>

--001636c5990bc7c65e046f27a5dd--