andrew.mcmillan.net.nz
cd /var/www; more /dev/rant >>index.html
 
projects


tags
CalDAV Catalyst DAViCal Debian Family FOSS Howto Humour installs ipv6 Kids lca moodle Music N770 Programming Rants RSCDS Travel Ubuntu Web


Recent comments


 

Closing the lid

If you have the acpi-support package installed, and you close the lid then a script will be run to attempt to suspend the laptop in some way. If you are using the default Etch install then the kernel will not support some of the nx6320 and I would recommend building yourself a 2.6.20.9 kernel (which is what I have been using most successfully).

Even with that kernel though, the keyboard won't work after resume from ram using the version of s2ram from the 'uswsusp' package in Etch. At present I use the following script to suspend to ram:


#!/bin/bash
#

/etc/init.d/ipw3945d stop

MODULES="ipw3945"

for M in $MODULES ; do
  rmmod $M
done

sync
sleep 1
chvt 1

# Unbind the AT keyboard interface.
if [ -f /sys/bus/platform/drivers/i8042/unbind ]; then
  echo -n "i8042" > /sys/bus/platform/drivers/i8042/unbind
fi

sleep 1

# Assuage paranoia
sync

# Force the s2ram (needed until s2ram recognises this laptop).
s2ram -f

sleep 1

# Reload the modules we got rid of earliler
for M in $MODULES ; do
  modprobe $M
done

# Rebind the AT keyboard interface.
if [ -f /sys/bus/platform/drivers/i8042/bind ]; then
  echo -n "i8042" > /sys/bus/platform/drivers/i8042/bind
fi

# Using Xorg 7.3 (xserver-xorg-video-intel 2.0) it is necessary
# to switch VT a couple of times before things work correctly
chvt 7
chvt 1
chvt 7

# Restart Network Manager, which seems to help it get sorted faster
/etc/dbus-1/event.d/25NetworkManager restart


Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.