Hi,
I think this a problem that hits many people, since I have it on two
very different laptops, a 4 year old Compaq and a 1 year old Acer. It
causes all ends of problems, like troubles with hibernation and the X
setup in the installer:

The script laptop-detect fails to detect a laptop when the script is
early in the boot, since the acpi battery module is not loaded.

This is not obvious to find out, since laptop-detect works nicely once
the machine is fully booted.

I would suggest people that have any trouble with their laptop (and
please others as well, to see if this is as common as I believe) to
check this. For instance by modifying the laptop-detect check in
/etc/init.d/vbesave to something like this:
      if sh -x /usr/sbin/laptop-detect >> /tmp/laptopdetection 2>&1; then
               LAPTOP=true;
       fi
You can also use the attached patch like this:
sudo patch /etc/init.d/vbesave vbesave.debug.patch
(If this list permits attachments, that is.)

If /tmp/laptopdetection shows no battery module, and the scripts bails
out after
"[ -d /proc/acpi/battery ]", please add you comments to bug #40503.

Thanks,
Tormod
--- vbesave.orig	2006-10-15 12:18:06.000000000 +0200
+++ vbesave	2006-10-15 12:18:21.000000000 +0200
@@ -11,7 +11,8 @@ test -f /usr/share/acpi-support/device-f
 
 case "$1" in
  start)
-	if laptop-detect > /dev/null; then
+	ls /proc/acpi > /tmp/laptopdetection
+	if sh -x /usr/sbin/laptop-detect >> /tmp/laptopdetection 2>&1; then
 		LAPTOP=true;
 	fi
 
-- 
laptop-testing-team mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/laptop-testing-team

Reply via email to