[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



#!/bin/sh

. /usr/share/acpi-support/power-funcs

getXuser;

grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
        . /usr/share/acpi-support/screenblank
        echo `fgconsole` > $LIDSTATE
        chvt 12
else
        grep -q off-line /proc/acpi/ac_adapter/*/state
        if [ $? = 1 ]
        then
                su - $user -c "xscreensaver-command -unthrottle"
        fi
        chvt `cat $LIDSTATE`
        su - $user -c "xscreensaver-command -deactivate"
fi

[ -x /etc/acpi/local/lid.sh.post ] && /etc/acpi/local/lid.sh.post



On Tuesday 07 June 2005 01:47 pm, Jay Loden wrote:
> I have a suddenly-appeared problem with my Kubuntu laptop. Everything was
> working fine for the past few weeks, and then one day upon opening my
> laptop I found that X had crashed. Since then, it has crashed every single
> time I leave the laptop closed for a while (as opposed to just turning off
> the screen). Now, this ONLY happens when my laptop is shut for an extended
> period of time, such as half an hour or more. I wasn't getting any errors
> so I tried logging in from console and running startx with the std error
> and output directed to a file, which I've pasted in below.


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00293" href="msg00293.html">[ale] annoying, unknown X crash - only when laptop lid is closed.</a></strong>
<ul><li><em>From:</em> jloden at toughguy.net (Jay Loden)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00326.html">[ale] iPod mounting</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00328.html">[ale] iPod mounting</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00356.html">[ale] annoying, unknown X crash - only when laptop lid is closed.</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00294.html">[ale] Question: Transparent document sharing over the Internet</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00327"><strong>Date</strong></a></li>
<li><a href="threads.html#00327"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>