help requested for ACPI configuration

Graaf, Rob graaf at Phys.LeidenUniv.nl
Mon Jul 19 11:19:39 PDT 2004


Hi,

am trying to configure acpi. This power management is already on my system,
and I can do 1 state   S1, but other states give no result.

On the internet not much is to be found.

Anybody now some nice resources to fully make acpi work?

Questions:
is /etc/rc.resume also for acpi or apm only?
is there any configuration file for acpi?
is it possible to map the power button anyway?

Thanks

Rob de Graaf


ps. below some results




dowould# uname -a
FreeBSD dowould.alice.org 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23
20:45:55 GMT 2004     root at wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC
i386





# testing acpiconf states
# /boot/loader.conf is empty, i.e. no snd_driver in it.


$ acpiconf -s 1
# gives:
# screen drops from X to console mode
# cpu down (assumed)
# harddisk and vents running
# power light is blinking slow
# resumes when close/open lid
# works!
# in /var/log/message: Jul 19 18:55:10 dowould kernel: wi0: detached


$ acpiconf -s 2
# gives:
# acpiconf: sleep type (2) failed: Invalid argument


$ acpiconf -s 3
# gives:
# screen turns black
# power light stays on
# system locks down, not any way it resumes, must hard boot to get it up
# in /var/log/message: Jul 19 19:05:04 dowould kernel: wi0: detached



$ acpiconf -s S4OS
# gives:
# screen turns X into console
# power light stays on
# system locks down, not any way it resumes, must hard boot to get it up
# in /var/log/message: Jul 19 19:10:41 dowould kernel: wi0: detached

$ acpiconf -s S4BIOS
# gives same as S4OS



# system controls are
dowould# sysctl -a | grep sleep
hw.acpi.supported_sleep_state: S1 S3 S4 S5
hw.acpi.sleep_button_state: S1
hw.acpi.sleep_delay: 5





dowould# sysctl -a | grep acpi
      acpidev    68     2K      2K       68  16,32
    acpicmbat     1     1K      1K        1  16
      acpisem    16     1K      1K       16  64
     acpitask     0     0K      1K        6  16,32
       acpica  1060    61K     65K    23799  16,32,64,128,256,512,1024
     acpibatt     1     1K      1K        1  16
debug.acpi.acpi_ca_version: 0x20030619
debug.acpi.semaphore_debug: 0
hw.acpi.supported_sleep_state: S1 S3 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: S1
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 5
hw.acpi.s4bios: 1
hw.acpi.verbose: 0
hw.acpi.disable_on_poweroff: 1
hw.acpi.reset_video: 1
hw.acpi.cpu.max_speed: 8
hw.acpi.cpu.current_speed: 8
hw.acpi.cpu.performance_speed: 8
hw.acpi.cpu.economy_speed: 4
hw.acpi.cpu.cx_supported: C1/0 C2/50 C3/50
hw.acpi.cpu.cx_lowest: 0
hw.acpi.cpu.cx_history: 56043/0 0/0 0/0
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 30
hw.acpi.thermal.tz0.temperature: 3237
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: -1
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 3512
hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
hw.acpi.acline: 1
hw.acpi.battery.life: 105
hw.acpi.battery.time: -1
hw.acpi.battery.state: 0
hw.acpi.battery.units: 1
hw.acpi.battery.info_expire: 5
machdep.acpi_timer_freq: 3579545
machdep.acpi_root: 1040128



More information about the freebsd-mobile mailing list