Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Aug 2009 12:37:27 +0000
From:      "b. f." <bf1783@googlemail.com>
To:        Tim Matthews <tim.matthews7@gmail.com>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: laptop doesn't power off
Message-ID:  <d873d5be0908090537ifb6aa16h353625e9b6bdf082@mail.gmail.com>
In-Reply-To: <3f1d93450908090448p3553bfb7te177a3b247bf6cc@mail.gmail.com>
References:  <d873d5be0908090439o5ec6fb68p11655638a1412a23@mail.gmail.com> <3f1d93450908090448p3553bfb7te177a3b247bf6cc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
First, do you have the latest BIOS revision from your manufacturer?
It would be wise to check this before spending a lot of time
debugging.  There may be bugs in early versions that have been fixed
in later ones.  If you do find a later version and decide to update
it, _be careful_. :)

So, about suspend/resume.  Support for the deeper sleep states (S3,S4)
was only added to 8-CURRENT in May for amd64, and I don't remember if
it was backported to 7-STABLE before the 7.2-RELEASE.  Someone who has
been keeping up with 7-STABLE may be able to tell you more.  You may
want to upgrade to 8-BETA3 in a few days, because it has these
features, and a newer version of ACPI.  In any event, lack of
suspend/resume support does _not_ explain why your computer won't
shutdown properly.

I don't see any obvious problems in what you've posted, after a
cursory look.  So you should probably enable more debugging messages
to see exactly what is going on.

To enable ACPI debugging, you need to rebuild your kernel after either
adding ACPI_DEBUG=1 to your /etc/make.conf, or adding

options ACPI_DEBUG

to your kernel config file.  Then add to /boot/loader.conf (including
the quotes):

debug.acpi.layer="ACPI_ALL_COMPONENTS ACPI_ALL_DRIVERS"
debug.acpi.level="ACPI_LV_ALL_EXCEPTIONS"

and reboot.  Save the messages and post them to the list.

This will tell us more about what is happening, but will not fix the
problem.  The first thing you may want to try for this is to set:

hw.acpi.disable_on_poweroff="0"
debug.acpi.resume_beep="1"

to /boot/loader.conf, to see if they make a difference.  The first
setting will change the handling of ACPI during the shutdown process,
and the second will cause a beep to sound if the ACPI resumes the
system (not what you want if you're shutting down).

b.

On 8/9/09, Tim Matthews <tim.matthews7@gmail.com> wrote:
> On Sun, Aug 9, 2009 at 11:39 PM, b. f. <bf1783@googlemail.com> wrote:
>
>> Before going to the trouble of enabling full debugging, what are the
>> output of "uname -a", "kldstat -v", and "sysctl hw.acpi" ?
>>
>> b.
>
>
>
> %uname -a
> FreeBSD tim-laptop 7.2-RELEASE FreeBSD 7.2-RELEASE #2: Tue May  5 20:51:55
> NZST 2009     root@tim-laptop:/usr/obj/usr/src/sys/GENERIC  amd64
> %kldstat -v
> Id Refs Address            Size     Name
>  1   27 0xffffffff80100000 bd23e0   kernel
>     Contains modules:
>         Id Name
>         304 msgctl
>         303 msgget
>         310 semsys
>         309 __semctl
>         308 semget
>         307 semop
>         302 msgsnd
>         301 msgrcv
>         305 msgsys
>         316 shmsys
>         315 shmat
>         314 shmctl
>         313 shmdt
>         312 shmget
>         66 ataraid
>         321 loop
>         295 elf64
>         396 elf32
>         296 shell
>         280 pseudofs
>         323 if_sl
>         320 if_gif
>         322 if_ppp
>         324 if_tun
>         318 if_faith
>         300 sysvmsg
>         306 sysvsem
>         311 sysvshm
>         336 nfslockd
>         335 nfsserver
>         349 krpc
>         350 ufs
>         333 nfs
>         278 msdosfs
>         332 nfs4
>         294 cd9660
>         277 devfs
>         279 procfs
>          8 cam
>         60 ata
>         11 cd
>         13 da
>         16 ses
>          9 probe
>         15 sa
>         14 pass
>         289 g_part_gpt
>         12 ch
>         10 xpt
>         91 miibus/pnphy
>         90 miibus/dcphy
>         89 cardbus/dc
>         166 pci/mly
>         165 pci/mlx
>         164 mlx/mlxd
>         163 miibus/xmphy
>         162 miibus/ukphy
>         161 miibus/truephy
>         160 miibus/tlphy
>         159 miibus/tdkphy
>         158 miibus/ruephy
>         157 miibus/rlphy
>         156 miibus/rgephy
>         155 miibus/qsphy
>         154 miibus/pnaphy
>         153 miibus/nsphyter
>         152 miibus/nsphy
>         151 miibus/nsgphy
>         150 miibus/mlphy
>         149 miibus/lxtphy
>         148 miibus/jmphy
>         147 miibus/ip1000phy
>         146 miibus/inphy
>         145 miibus/icsphy
>         144 miibus/gentbi
>         143 miibus/xlphy
>         399 cpu/p4tcc
>         142 miibus/e1000phy
>         398 cpu/est
>         397 cpu/powernow
>         141 miibus/ciphy
>         140 miibus/brgphy
>         139 miibus/bmtphy
>         138 miibus/atphy
>         395 hostb/agp_intel
>         394 vgapci/agp_i810
>         393 hostb/agp_amd64
>         137 miibus/amphy
>         392 isa/vga
>         136 miibus/acphy
>         391 isa/sc
>         390 scrndr-vga
>         389 scterm-sc
>         388 pci/sio
>         387 cardbus/sio
>         386 pccard/sio
>         385 isa/sio
>         384 acpi/sio
>         135 mfi/mfid
>         134 pci/mfi
>         88 pci/dc
>         87 dc/miibus
>         383 pci/nfe
>         382 nfe/miibus
>         381 pci/hptrr
>         380 pci/hptmv
>         379 pccard/fdc
>         378 isa/fdc
>         377 acpi/fdc
>         376 fdc/fd
>         375 io
>         86 pccard/cs
>         374 isa/ed
>         85 isa/cs
>         133 mem
>         373 atkbdc/psm
>         372 isa/psmcpnp
>         371 acpi/psmcpnp
>         52 ale/miibus
>         370 isa/atkbdc
>         369 acpi/atkbdc
>         368 atkbdc/atkbd
>         367 pci/arcmsr
>         51 ahc
>         366 legacy/pcib
>         365 isa/pcibus_pnp
>         364 isa/atdma
>         363 acpi/atdma
>         362 legacy/isa
>         361 isa/attimer
>         360 acpi/attimer
>         50 ahd
>         131 pci/lge
>         130 lge/miibus
>         359 root/nexus
>         358 nexus/ram
>         357 isa/sysresource
>         84 cpu/ichss
>         129 pci/le
>         49 pci/ahd
>         128 kbdmux
>         83 pci/ciss
>         48 cardbus/ahd
>         127 pci/jme
>         126 jme/miibus
>         356 nexus/legacy
>         355 legacy/cpu
>         125 pci/ixgbe
>         47 pci/ahc_pci
>         354 pci/ioapic
>         353 nexus/apic
>         46 cardbus/ahc_pci
>         352 acpi/fpupnp
>         45 isa/ahc_isa
>         82 cbb/cardbus
>         81 pci/bt
>         80 isa/bt
>         79 pci/bge
>         78 bge/miibus
>         44 pccard/aic
>         77 pci/bfe
>         76 bfe/miibus
>         75 pci/bce
>         74 bce/miibus
>         297 cpu/cpufreq
>         124 pci/isp
>         123 pci/ips
>         122 ips/ipsd
>         20 pci/aac
>         121 pci/iir
>         29 acpi/acpi_lid
>         120 pci/ida
>         119 ida/idad
>         118 pci/hptiop
>         117 pci/fxp
>         116 cardbus/fxp
>         115 fxp/miibus
>         73 pccard/awi
>         43 pci/age
>         72 pci/if_ath
>         293 isa/orm
>         292 isa/isahint
>         71 cardbus/if_ath
>         291 isab/isa
>         290 eisab/isa
>         42 age/miibus
>         41 pci/adw
>         40 pci/adv
>         39 acpi/acpi_timer
>         114 firewire/sbp
>         38 cpu/acpi_throttle
>         37 acpi/acpi_tz
>         113 firewire/fwip
>         28 acpi/acpi_isab
>         70 ata/ast
>         24 acpi/acpi_cmbat
>         69 ata/afd
>         112 firewire/fwe
>         111 pci/fwohci
>         110 cardbus/fwohci
>         36 acpi/acpi_smbat
>         68 ata/acd
>         35 acpi/acpi_sysresource
>         67 ad/subdisk
>         348 cardbus/xl
>         347 pci/xl
>         346 xl/miibus
>         345 pci/wb
>         344 wb/miibus
>         343 pci/tl
>         342 tl/miibus
>         341 pci/ste
>         340 ste/miibus
>         339 pci/rl
>         338 cardbus/rl
>         337 rl/miibus
>         109 fwohci/firewire
>         108 pccard/fe
>         107 exca
>         106 pccard/ex
>         105 isa/ex
>         104 pccard/ep
>         103 isa/ep
>         102 pci/et
>         101 et/miibus
>         334 nfslock
>         27 acpi/acpi_hpet
>         65 pci/atapci
>         276 pccard/xe
>         275 pci/wi
>         274 pccard/wi
>         273 watchdog
>         272 pci/vx
>         271 pci/vr
>         270 vr/miibus
>         269 pci/vge
>         268 cardbus/vge
>         267 vge/miibus
>         266 uhub/uvscom
>         265 uhub/uvisor
>         264 uhub/uslcom
>         263 uhub/uscanner
>         64 atapci/ata
>         63 isa/ata
>         100 pci/igb
>         262 ohci/usb
>         261 uhci/usb
>         260 ehci/usb
>         259 slhci/usb
>         258 uhub/urio
>         257 uhub/uplcom
>         256 uhub/ums
>         255 uhub/umass
>         254 uhub/ulpt
>         253 uhub/ukbd
>         252 uhub/uipaq
>         251 usb/uhub
>         250 uhub/uhub
>         249 uhub/uhid
>         248 pci/uhci
>         247 cardbus/uhci
>         246 uhub/ugen
>         245 uhub/uftdi
>         244 ucom
>         243 uhub/ubser
>         242 uhub/ubsa
>         241 uhub/uark
>         240 pci/ohci
>         239 cardbus/ohci
>         238 uhub/rue
>         237 rue/miibus
>         236 uhub/ural
>         235 uhub/kue
>         234 uhub/cue
>         233 uhub/cdce
>         232 uhub/axe
>         231 axe/miibus
>         230 uhub/aue
>         229 aue/miibus
>         228 pci/ehci
>         227 cardbus/ehci
>         23 acpi/acpi_button
>         226 pci/uart
>         225 cardbus/uart
>         224 pccard/uart
>         223 isa/uart
>         222 acpi/uart
>         19 pci/aacch
>         221 pci/txp
>         220 pci/tx
>         219 tx/miibus
>         218 pci/twe
>         217 twe/twed
>         62 ata/ad
>         61 pccard/ata
>         216 pci/twa
>         215 pci/trm
>         214 pci/ti
>         34 cpu/acpi_perf
>         213 pci/sym
>         212 pccard/sn
>         211 isa/sn
>         22 acpi/acpi_acad
>         210 pci/skc
>         209 skc/sk
>         208 sk/miibus
>         207 pci/sis
>         206 sis/miibus
>         205 pci/sf
>         204 sf/miibus
>         33 pci/acpi_pcib
>         32 acpi/acpi_pcib
>         203 pci/re
>         202 cardbus/re
>         201 re/miibus
>         18 aac/aacd
>         200 random
>         199 pci/ral
>         198 cardbus/ral
>         197 pci/ppc
>         196 isa/ppc
>         195 acpi/ppc
>         194 ppbus/ppi
>         26 acpi/acpi_ec
>         193 ppc/ppbus
>         192 ppbus/lpt
>         191 ppbus/plip
>         190 pci/pcn
>         189 pcn/miibus
>         188 pci/vgapci
>         187 pci/pcib
>         186 pcib/pci
>         59 pci/an
>         99 pci/em
>         58 pccard/an
>         57 isa/an
>         17 aac/aacp
>         56 pci/amr
>         185 pci/isab
>         184 pci/ignore_pci
>         183 pci/hostb
>         182 pci/fixup_pci
>         181 pci/cbb
>         55 amr/amrd
>         25 acpi/cpu
>         180 isa/cbb
>         31 acpi/acpi_pci_link
>         54 pci/amd
>         21 nexus/acpi
>         30 pcib/acpi_pci
>         98 pci/ed
>         97 pccard/ed
>         179 pcic/pccard
>         178 cbb/pccard
>         177 null
>         176 pci/nge
>         175 nge/miibus
>         96 ed/miibus
>         95 pci/dpt
>         94 pci/de
>         174 pci/mskc
>         173 mskc/msk
>         172 msk/miibus
>         93 dcons
>         53 pci/ale
>         92 firewire/dcons_crom
>         169 pci/mpt
>         170 mpt_raid
>         168 mpt_cam
>         171 mpt_user
>         327 wlan_tkip
>         326 wlan_ccmp
>         325 wlan_amrr
>         281 g_bsd
>         287 g_label
>         298 rootbus
>         286 g_vfs
>         351 g_class
>         285 g_mbr
>         284 g_mbrext
>         132 g_md
>         299 firmware
>         167 mpt_core
>         331 wlan_scan_sta
>         330 wlan_scan_ap
>         283 g_disk
>         282 g_dev
>         288 g_part
>         329 wlan
>         328 wlan_wep
>         319 if_firewire
>         317 ether
>  2    1 0xffffffff80cd3000 230e8    snd_hda.ko
>     Contains modules:
>         Id Name
>          4 pci/snd_hda
>          3 hdac/snd_hda_pcm
>  3    2 0xffffffff80cf7000 67470    sound.ko
>     Contains modules:
>         Id Name
>          2 midi
>          1 sound
>  4    1 0xffffffff80d5f000 1b70     acpi_sony.ko
>     Contains modules:
>         Id Name
>          5 acpi/acpi_sony
>  5    1 0xffffffff80d61000 5088     atapicam.ko
>     Contains modules:
>         Id Name
>          6 ata/atapicam
>  6    1 0xffffffff80d67000 6188     sem.ko
>     Contains modules:
>         Id Name
>          7 sem
>  7    2 0xffffffff80e22000 18b30    linux.ko
>     Contains modules:
>         Id Name
>         400 linuxelf
>  8    1 0xffffffff80e3b000 734      rtc.ko
>     Contains modules:
>         Id Name
>         401 rtc
>  9    1 0xffffffff80e3c000 7b46     i915.ko
>     Contains modules:
>         Id Name
>         402 vgapci/i915
> 10    1 0xffffffff80e44000 1161f    drm.ko
>     Contains modules:
>         Id Name
> 11    1 0xffffffff80e56000 6ea2     ntfs.ko
>     Contains modules:
>         Id Name
>         403 ntfs
> 12    1 0xffffffff80e5d000 8eb2     if_wpi.ko
>     Contains modules:
>         Id Name
>         404 pci/wpi
> 13    1 0xffffffff80e66000 24b2e    wpifw.ko
>     Contains modules:
>         Id Name
>         405 wpifw_fw
> %sysctl hw.acpi
> hw.acpi.supported_sleep_state: S3 S4 S5
> hw.acpi.power_button_state: S5
> hw.acpi.sleep_button_state: S3
> hw.acpi.lid_switch_state: NONE
> hw.acpi.standby_state: S1
> hw.acpi.suspend_state: S3
> hw.acpi.sleep_delay: 1
> hw.acpi.s4bios: 0
> hw.acpi.verbose: 0
> hw.acpi.disable_on_reboot: 0
> hw.acpi.handle_reboot: 0
> hw.acpi.thermal.min_runtime: 0
> hw.acpi.thermal.polling_rate: 10
> hw.acpi.thermal.user_override: 0
> hw.acpi.thermal.tz0.temperature: 58.9C
> hw.acpi.thermal.tz0.active: -1
> hw.acpi.thermal.tz0.passive_cooling: 1
> hw.acpi.thermal.tz0.thermal_flags: 0
> hw.acpi.thermal.tz0._PSV: 94.9C
> hw.acpi.thermal.tz0._HOT: -1
> hw.acpi.thermal.tz0._CRT: 99.9C
> hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
> hw.acpi.thermal.tz0._TC1: 1
> hw.acpi.thermal.tz0._TC2: 2
> hw.acpi.thermal.tz0._TSP: 50
> hw.acpi.thermal.tz1.temperature: 59.9C
> hw.acpi.thermal.tz1.active: -1
> hw.acpi.thermal.tz1.passive_cooling: 0
> hw.acpi.thermal.tz1.thermal_flags: 0
> hw.acpi.thermal.tz1._PSV: 99.8C
> hw.acpi.thermal.tz1._HOT: -1
> hw.acpi.thermal.tz1._CRT: 100.8C
> hw.acpi.thermal.tz1._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
> hw.acpi.thermal.tz1._TC1: 1
> hw.acpi.thermal.tz1._TC2: 2
> hw.acpi.thermal.tz1._TSP: 50
> hw.acpi.thermal.tz2.temperature: 59.9C
> hw.acpi.thermal.tz2.active: -1
> hw.acpi.thermal.tz2.passive_cooling: 0
> hw.acpi.thermal.tz2.thermal_flags: 0
> hw.acpi.thermal.tz2._PSV: 99.8C
> hw.acpi.thermal.tz2._HOT: -1
> hw.acpi.thermal.tz2._CRT: 100.8C
> hw.acpi.thermal.tz2._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
> hw.acpi.thermal.tz2._TC1: 1
> hw.acpi.thermal.tz2._TC2: 2
> hw.acpi.thermal.tz2._TSP: 50
> hw.acpi.battery.life: 100
> hw.acpi.battery.time: -1
> hw.acpi.battery.state: 0
> hw.acpi.battery.units: 1
> hw.acpi.battery.info_expire: 5
> hw.acpi.acline: 1
> hw.acpi.cpu.cx_lowest: C1
>
> Hope this helps in anyway
>
> Thanks
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d873d5be0908090537ifb6aa16h353625e9b6bdf082>