[ltp] Boot delay caused by lp module

Daniel Castro linux-thinkpad@linux-thinkpad.org
Tue, 21 Jul 2009 09:34:29 +0100


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

2009/7/21 Michael Gaber <Michael.Gaber@gmx.net>

> 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

how? rename instead of delete just in case... but where or how?

>
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>
>


-- 
________________________

Daniel Castro, M.Sc.
+353 083-318-2058
dancasmo@gmail.com
castromd@tcd.ie
________________________

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

<br><div class=3D"gmail_quote">2009/7/21 Michael Gaber <span dir=3D"ltr">&l=
t;<a href=3D"mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a>&gt;</s=
pan><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid r=
gb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am 20.07.2009 20:53, schrieb Daniel Castro:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><=
div class=3D"h5">
Hi All,<br>
<br>
Hope someone can help. I just installed 9.04 on a T61p, everything<br>
worked fine for a while but suddenly I was getting 3 minute delays at<br>
startup. After digging into the logs I found that:<br>
<br>
[ =A0 13.910198] synaptics was reset on resume, see synaptics_resume_reset<=
br>
if you have trouble on resume<br>
[ =A0 15.371139] psmouse serio2: ID: 10 00 64&lt;6&gt;IBM TrackPoint firmwa=
re:<br>
0x0e, buttons: 3/3<br>
[ =A0 19.084301] input: TPPS/2 IBM TrackPoint as<br>
/devices/platform/i8042/serio1/serio2/input/input12<br>
*[ =A0189.238041] lp0: using parport0 (interrupt-driven).*<br>
[ =A0189.302500] Adding 1927760k swap on /dev/sda6. =A0Priority:-1 extents:=
1<br>
across:1927760k<br>
[ =A0198.914676] EXT3-fs warning: maximal mount count reached, running<br>
e2fsck is recommended<br>
[ =A0198.914861] EXT3 FS on sda5, internal journal<br>
[ =A0200.088590] type=3D1505 audit(1248115283.366:2):<br>
operation=3D&quot;profile_load&quot; name=3D&quot;/usr/share/gdm/guest-sess=
ion/Xsession&quot;<br>
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<br>
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<br>
<a href=3D"http://ubuntuforums.org/showthread.php?t=3D1138455" target=3D"_b=
lank">http://ubuntuforums.org/showthread.php?t=3D1138455</a><br>
<br>
So I see two ways of fixing this, to blacklist the modules or to build a<br=
>
custom kernel.<br>
<br>
The first one does not work. I have created a file<br>
/etc/modprobe.d/blacklist_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<br>
familiar with that and find it a bit scary. I would prefer to go back to<br=
>
8.10 before doing this.<br>
<br>
Does anyone know how I can fix this?<br>
<br>
Thanks,<br>
<br>
--<br>
________________________<br>
<br>
Daniel Castro, M.Sc.<br>
+353 083-318-2058<br>
</div></div><a href=3D"mailto:dancasmo@gmail.com" target=3D"_blank">dancasm=
o@gmail.com</a> &lt;mailto:<a href=3D"mailto:dancasmo@gmail.com" target=3D"=
_blank">dancasmo@gmail.com</a>&gt;<br>
<a href=3D"mailto:castromd@tcd.ie" target=3D"_blank">castromd@tcd.ie</a> &l=
t;mailto:<a href=3D"mailto:castromd@tcd.ie" target=3D"_blank">castromd@tcd.=
ie</a>&gt;<br>
________________________<br>
</blockquote>
<br>
maybe deleting instead of blacklisting the modules would help, then the can=
&#39;t be loaded anymore, but i don&#39;t know what that might break</block=
quote><div>how? rename instead of delete just in case... but where or how? =
<br>
</div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb=
(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><font c=
olor=3D"#888888">
-- <br>
The linux-thinkpad mailing list home page is at:<br>
<a href=3D"http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpa=
d" target=3D"_blank">http://mailman.linux-thinkpad.org/mailman/listinfo/lin=
ux-thinkpad</a><br>
<br>
</font></blockquote></div><br><br clear=3D"all"><br>-- <br>________________=
________<br><br>Daniel Castro, M.Sc.<br>+353 083-318-2058<br><a href=3D"mai=
lto:dancasmo@gmail.com">dancasmo@gmail.com</a><br><a href=3D"mailto:castrom=
d@tcd.ie">castromd@tcd.ie</a><br>
________________________<br>

--0016e6d7841d83793c046f331fa8--