[PC-BSD Commits] r2770 - in pcbsd/trunk: installcd-overlay/usr/local/pcbsd/scripts system-overlay/PCBSD/Services system-overlay/PCBSD/Services/acpinotebook

svn at pcbsd.org svn at pcbsd.org
Sun Sep 14 10:33:45 PDT 2008


Author: ayerenkow
Date: 2008-09-14 10:33:44 -0700 (Sun, 14 Sep 2008)
New Revision: 2770

Added:
   pcbsd/trunk/system-overlay/PCBSD/Services/acpinotebook/
   pcbsd/trunk/system-overlay/PCBSD/Services/acpinotebook/disable.sh
   pcbsd/trunk/system-overlay/PCBSD/Services/acpinotebook/enable.sh
   pcbsd/trunk/system-overlay/PCBSD/Services/acpinotebook/isEnabled.sh
   pcbsd/trunk/system-overlay/PCBSD/Services/acpinotebook/isRunning.sh
   pcbsd/trunk/system-overlay/PCBSD/Services/acpinotebook/restart.sh
   pcbsd/trunk/system-overlay/PCBSD/Services/acpinotebook/selected-acpi.sh
   pcbsd/trunk/system-overlay/PCBSD/Services/acpinotebook/service-config.sh
   pcbsd/trunk/system-overlay/PCBSD/Services/acpinotebook/service.cfg
   pcbsd/trunk/system-overlay/PCBSD/Services/acpinotebook/start.sh
   pcbsd/trunk/system-overlay/PCBSD/Services/acpinotebook/stop.sh
Modified:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.LaptopSetup.sh
Log:
Disabling ACPI detection for notebooks if we boot in "Disable ACPI Mode";
ACPI for notebooks is now service; it has auto-configure, and should work fine.

Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.LaptopSetup.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.LaptopSetup.sh	2008-09-13 21:41:05 UTC (rev 2769)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.LaptopSetup.sh	2008-09-14 17:33:44 UTC (rev 2770)
@@ -21,6 +21,11 @@
 
 #and now we try to detect, which ACPI do your laptop use, and enable it...
 
+dmesgLine=`kldstat -n acpi`
+if test "${dmesgLine}" = ""; then
+       #echo "We have acpi disabled during startup, so better not try to detect notebook type, could catch hung"
+else
+       #echo "We have acpi enabled, searhing for correct one acpi module"
 acpi_vendors="asus fujitsu ibm panasonic sony toshiba"
 
 for vendor in $acpi_vendors
@@ -37,3 +42,4 @@
 fi 
     `kldunload acpi_${vendor}`
 done
+fi



More information about the Commits mailing list