[ale] annoying, unknown X crash - only when laptop lid is closed.
Jay Loden
jloden at toughguy.net
Tue Jun 7 20:55:26 EDT 2005
I thought I'd post my "lid.sh" that runs when the lid is shut, maybe someone
else will see something in it that could be causing a crash:
#!/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.
More information about the Ale
mailing list