You are not logged in.

#1 2012-08-28 06:40:58

samtai
Member
From: Hong Kong
Registered: 2012-08-09
Posts: 7

[SOLVED] My asus laptop hangs/freeze when poweroff.

My laptop is asus K43SD:http://www.asus.com/Notebooks/Versatile … nce/K43SD/,
and running arch linux 64bit on it, everything work fine except when i try to shutdown my laptop using the battery.

I can poweroff my laptop when using AC power,
but when I using the battery, I cannot shut it down(no problem to reboot) no matter i use:

shutdown -h now
shutdown -h -P now
poweroff
init 0

also cannot shutdown probably.
The following photo is where I freeze during shutdown: covOu.jpg

I post my configuration files and log files here, hope someone can help to solve this problem.
/etc/rc.conf:

#
# /etc/rc.conf - configuration file for initscripts
#
# Most of rc.conf has been replaced by various other configuration
# files. See archlinux(7) for details.
#
# For more details on rc.conf see rc.conf(5).
#

DAEMONS=(syslog-ng network acpid laptop-mode dbus @wicd crond @lapsusd @alsa @bumblebeed)

# Storage
#
# USEDMRAID="no"
# USELVM="no"

# Network
#
interface=wlan0
address=
netmask=
gateway=

/etc/mkinitcpio.conf:

MODULES="i915 intel_agp"

dmesg | grep ACPI:

[    0.000000]  BIOS-e820: 00000000aae23000 - 00000000aafe8000 (ACPI NVS)
[    0.000000]  BIOS-e820: 00000000aaffd000 - 00000000ab000000 (ACPI data)
[    0.000000] ACPI: RSDP 00000000000f0430 00024 (v02 _ASUS_)
[    0.000000] ACPI: XSDT 00000000aaffee18 00074 (v01 _ASUS_ Notebook 06222004 MSFT 00010013)
[    0.000000] ACPI: FACP 00000000aaf9ad98 000F4 (v04 _ASUS_ Notebook 06222004 MSFT 00010013)
[    0.000000] ACPI Warning: 32/64 FACS address mismatch in FADT - two FACS tables! (20120320/tbfadt-378)
[    0.000000] ACPI Warning: 32/64X FACS address mismatch in FADT - 0xAAFE4E40/0x00000000AAFE4D40, using 32 (20120320/tbfadt-502)
[    0.000000] ACPI: DSDT 00000000aaf86018 13679 (v01 _ASUS_ Notebook 00000000 INTL 20091112)
[    0.000000] ACPI: FACS 00000000aafe4e40 00040
[    0.000000] ACPI: APIC 00000000aaffdf18 000CC (v02 _ASUS_ Notebook 06222004 MSFT 00010013)
[    0.000000] ACPI: DBGP 00000000aaffff18 00034 (v01 _ASUS_ Notebook 06222004 MSFT 00010013)
[    0.000000] ACPI: ECDT 00000000aafe4b18 000C1 (v01 _ASUS_ Notebook 06222004 AMI. 00000003)
[    0.000000] ACPI: SLIC 00000000aaf9be18 00176 (v01 _ASUS_ Notebook 06222004 ASUS 00000001)
[    0.000000] ACPI: HPET 00000000aafe5d18 00038 (v01 _ASUS_ Notebook 06222004 AMI. 00000003)
[    0.000000] ACPI: MCFG 00000000aafe5c98 0003C (v01 _ASUS_ Notebook 06222004 MSFT 00000097)
[    0.000000] ACPI: SSDT 00000000aaf85818 00787 (v01  PmRef  Cpu0Ist 00003000 INTL 20091112)
[    0.000000] ACPI: SSDT 00000000aaf84018 00996 (v01  PmRef    CpuPm 00003000 INTL 20091112)
[    0.000000] ACPI: ASF! 00000000aafe4a18 000A0 (v32 INTEL       HCG 00000001 TFSM 000F4240)
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: PM-Timer IO Port: 0x408
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x01] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x03] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x05] lapic_id[0x04] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x06] lapic_id[0x05] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x07] lapic_id[0x06] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x08] lapic_id[0x07] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x09] lapic_id[0x08] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x09] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x0a] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x0b] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x0c] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x0d] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0f] lapic_id[0x0e] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x10] lapic_id[0x0f] disabled)
[    0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ2 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] ACPI: HPET id: 0x8086a701 base: 0xfed00000
[    0.003276] ACPI: Core revision 20120320
[    0.307305] PM: Registering ACPI NVS region [mem 0xaae23000-0xaafe7fff] (1855488 bytes)
[    0.308050] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
[    0.308053] ACPI: bus type pci registered
[    0.325593] ACPI: Added _OSI(Module Device)
[    0.325595] ACPI: Added _OSI(Processor Device)
[    0.325597] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.325599] ACPI: Added _OSI(Processor Aggregator Device)
[    0.325600] ACPI: Added _OSI(Linux)
[    0.327811] ACPI: EC: EC description table is found, configuring boot EC
[    0.327816] ACPI: EC: Look up EC in DSDT
[    0.330197] ACPI: Executed 1 blocks of module-level executable AML code
[    0.333381] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query honored via cmdline
[    0.437031] ACPI: SSDT 00000000aadca798 0073F (v01  PmRef  Cpu0Cst 00003001 INTL 20091112)
[    0.437586] ACPI: Dynamic OEM Table Load:
[    0.437589] ACPI: SSDT           (null) 0073F (v01  PmRef  Cpu0Cst 00003001 INTL 20091112)
[    0.437833] ACPI: SSDT 00000000aadcba98 00303 (v01  PmRef    ApIst 00003000 INTL 20091112)
[    0.438409] ACPI: Dynamic OEM Table Load:
[    0.438411] ACPI: SSDT           (null) 00303 (v01  PmRef    ApIst 00003000 INTL 20091112)
[    0.438527] ACPI: SSDT 00000000aadc9d98 00119 (v01  PmRef    ApCst 00003000 INTL 20091112)
[    0.439073] ACPI: Dynamic OEM Table Load:
[    0.439075] ACPI: SSDT           (null) 00119 (v01  PmRef    ApCst 00003000 INTL 20091112)
[    0.439599] ACPI: Interpreter enabled
[    0.439603] ACPI: (supports S0 S3 S4 S5)
[    0.439627] ACPI: Using IOAPIC for interrupt routing
[    0.544972] ACPI: EC: GPE = 0x1b, I/O: command/status = 0x66, data = 0x62
[    0.545179] ACPI: No dock devices found.
[    0.545182] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.545607] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-3e])
[    0.586299] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[    0.586418] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEG0._PRT]
[    0.586487] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP01._PRT]
[    0.586514] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP02._PRT]
[    0.586545] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP04._PRT]
[    0.586576] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP06._PRT]
[    0.586754]  pci0000:00: Requesting ACPI _OSC control (0x1d)
[    0.587031]  pci0000:00: ACPI _OSC control (0x1d) granted
[    1.333000] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12)
[    1.333042] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 *5 6 7 10 12)
[    1.333081] ACPI: PCI Interrupt Link [LNKC] (IRQs *3 4 5 6 7 10 12)
[    1.333119] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 *10 12)
[    1.333157] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 12) *0, disabled.
[    1.333196] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 12) *0, disabled.
[    1.333235] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 *5 6 7 10 12)
[    1.333274] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 *5 6 7 10 12)
[    1.333393] PCI: Using ACPI for IRQ routing
[    1.343059] pnp: PnP ACPI init
[    1.343073] ACPI: bus type pnp registered
[    1.343395] pnp 00:00: Plug and Play ACPI device, IDs PNP0a08 PNP0a03 (active)
[    1.391722] pnp 00:01: Plug and Play ACPI device, IDs PNP0200 (active)
[    1.391749] pnp 00:02: Plug and Play ACPI device, IDs INT0800 (active)
[    1.391843] pnp 00:03: Plug and Play ACPI device, IDs PNP0103 (active)
[    1.391882] pnp 00:04: Plug and Play ACPI device, IDs PNP0c04 (active)
[    1.391979] system 00:05: Plug and Play ACPI device, IDs PNP0c02 (active)
[    1.392010] pnp 00:06: Plug and Play ACPI device, IDs PNP0b00 (active)
[    1.392062] system 00:07: Plug and Play ACPI device, IDs INT3f0d PNP0c02 (active)
[    1.392104] system 00:08: Plug and Play ACPI device, IDs PNP0c02 (active)
[    1.392160] pnp 00:09: Plug and Play ACPI device, IDs SYN0a17 SYN0a00 SYN0002 PNP0f03 PNP0f13 PNP0f12 (active)
[    1.392203] pnp 00:0a: Plug and Play ACPI device, IDs PNP0303 PNP030b (active)
[    1.392470] system 00:0b: Plug and Play ACPI device, IDs PNP0c02 (active)
[    1.392557] system 00:0c: Plug and Play ACPI device, IDs PNP0c02 (active)
[    1.392706] system 00:0d: Plug and Play ACPI device, IDs PNP0c01 (active)
[    1.392727] pnp: PnP ACPI: found 14 devices
[    1.392728] ACPI: ACPI bus type pnp unregistered
[    1.898225] ACPI: Lid Switch [LID]
[    1.898284] ACPI: Sleep Button [SLPB]
[    1.898324] ACPI: Power Button [PWRF]
[    2.703903] ACPI: Video Device [GFX0] (multi-head: yes  rom: yes  post: no)
[    2.708497] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[    3.105341] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[    3.105540] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[    3.105724] ata1.00: ACPI cmd ef/90:03:00:00:00:a0 (SET FEATURES) succeeded
[    3.108249] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[    3.108555] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[    3.109746] ata3.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[    3.110529] ata3.00: ACPI cmd ef/90:03:00:00:00:a0 (SET FEATURES) succeeded
[    3.112651] ata3.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[    3.118396] ata3.00: ACPI cmd ef/90:03:00:00:00:a0 (SET FEATURES) succeeded
[    3.130437] ata1.00: ACPI cmd ef/90:03:00:00:00:a0 (SET FEATURES) succeeded
[    6.601345] ACPI Warning: 0x000000000000e040-0x000000000000e05f SystemIO conflicts with Region \SMB0 1 (20120320/utaddress-251)
[    6.601355] ACPI Warning: 0x000000000000e040-0x000000000000e05f SystemIO conflicts with Region \_SB_.PCI0.SBUS.SMBI 2 (20120320/utaddress-251)
[    6.601361] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[    6.721483] ACPI: Thermal Zone [THRM] (40 C)
[    6.735226] ACPI: Battery Slot [BAT0] (battery present)
[    6.735356] ACPI: AC Adapter [AC0] (on-line)
[    6.770768] ACPI: Requesting acpi_cpufreq
[    7.737520] nvidia 0000:01:00.0: power state changed by ACPI to D0
[    7.737525] nvidia 0000:01:00.0: power state changed by ACPI to D0

cat user.log | grep ACPI:

Aug 16 14:55:19 localhost logger: ACPI group/action undefined: PNP0C14:01 / 000000ff
Aug 16 14:55:19 localhost logger: ACPI group/action undefined: button/volumeup / VOLUP
Aug 16 14:55:20 localhost logger: ACPI group/action undefined: PNP0C14:01 / 000000ff
Aug 16 14:55:20 localhost logger: ACPI group/action undefined: button/volumeup / VOLUP
Aug 16 14:55:20 localhost logger: ACPI group/action undefined: PNP0C14:01 / 000000ff
Aug 16 14:55:20 localhost logger: ACPI group/action undefined: button/volumeup / VOLUP
Aug 18 14:41:20 localhost logger: ACPI group/action undefined: PNP0C14:01 / 000000ff
Aug 18 14:41:40 localhost logger: ACPI group/action undefined: PNP0C14:01 / 000000ff

/var/log/acpid.log:

Aug 18 14:01:13 localhost acpid: starting up with netlink and the input layer
Aug 18 14:01:13 localhost acpid: 4 rules loaded
Aug 18 14:01:13 localhost acpid: waiting for events: event logging is off
Aug 18 14:01:16 localhost acpid: client connected from 1268[0:0]
Aug 18 14:01:16 localhost acpid: 1 client rule loaded
Aug 18 14:01:56 localhost acpid: client connected from 1486[0:100]
Aug 18 14:01:56 localhost acpid: 1 client rule loaded
Aug 18 14:18:29 localhost acpid: exiting
Aug 18 14:19:24 localhost acpid: starting up with netlink and the input layer
Aug 18 14:19:24 localhost acpid: 4 rules loaded
Aug 18 14:19:24 localhost acpid: waiting for events: event logging is off
Aug 18 14:19:27 localhost acpid: client connected from 1222[0:0]
Aug 18 14:19:27 localhost acpid: 1 client rule loaded
Aug 18 14:19:48 localhost acpid: client connected from 1417[0:100]
Aug 18 14:19:48 localhost acpid: 1 client rule loaded
Aug 18 14:20:41 localhost acpid: client 1417[0:100] has disconnected
Aug 18 14:21:01 localhost acpid: client connected from 1417[0:100]
Aug 18 14:21:01 localhost acpid: 1 client rule loaded
Aug 18 14:21:38 localhost acpid: client 1417[0:100] has disconnected
Aug 18 14:21:42 localhost acpid: client connected from 1417[0:100]
Aug 18 14:21:42 localhost acpid: 1 client rule loaded
Aug 18 14:24:51 localhost acpid: client connected from 2771[0:999]
Aug 18 14:24:51 localhost acpid: 1 client rule loaded
Aug 18 14:24:53 localhost acpid: client connected from 2771[0:999]
Aug 18 14:24:53 localhost acpid: 1 client rule loaded
Aug 18 14:24:56 localhost acpid: client 2771[0:999] has disconnected
Aug 18 14:24:56 localhost acpid: client 2771[0:999] has disconnected
Aug 18 14:24:57 localhost acpid: client connected from 2790[0:999]
Aug 18 14:24:57 localhost acpid: 1 client rule loaded
Aug 18 14:24:57 localhost acpid: client connected from 2790[0:999]
Aug 18 14:24:57 localhost acpid: 1 client rule loaded
Aug 18 14:25:13 localhost acpid: client 2790[0:999] has disconnected
Aug 18 14:25:13 localhost acpid: client 2790[0:999] has disconnected
Aug 18 14:29:02 localhost acpid: exiting
Aug 18 14:29:58 localhost acpid: starting up with netlink and the input layer
Aug 18 14:29:58 localhost acpid: 4 rules loaded
Aug 18 14:29:58 localhost acpid: waiting for events: event logging is off
Aug 18 14:30:00 localhost acpid: client connected from 1283[0:0]
Aug 18 14:30:00 localhost acpid: 1 client rule loaded
Aug 18 14:30:25 localhost acpid: client connected from 1504[0:100]
Aug 18 14:30:25 localhost acpid: 1 client rule loaded
Aug 18 14:42:16 localhost acpid: exiting

Last edited by samtai (2012-09-04 05:45:22)

Offline

#2 2012-08-31 07:53:05

mutterschiff
Member
From: somewhere around Dresden, Ger
Registered: 2012-08-02
Posts: 31

Re: [SOLVED] My asus laptop hangs/freeze when poweroff.

Hi,
I have no experience with NVIDIA Optimus and Bumblebee, but "Enabling NVIDIA GPU" seems odd to me. Maybe it is the GPU that still is on? If you only boot until init3 and don't load the Bumblebee modules, does the problem persists?


Last.Fm
thou shalt not kill -9

Offline

#3 2012-08-31 11:27:12

Narve
Member
Registered: 2012-07-14
Posts: 4

Re: [SOLVED] My asus laptop hangs/freeze when poweroff.

Nope, the enabling NVIDIA GPU thing is intended. It's solving an issue that sometimes the NVIDIA GPU isnt working correctly after a shutdown where it was inactive.
This shouldn't affect the shutdown process at all.

Offline

#4 2012-08-31 15:53:58

samtai
Member
From: Hong Kong
Registered: 2012-08-09
Posts: 7

Re: [SOLVED] My asus laptop hangs/freeze when poweroff.

Yes, this problem is not related to the NVIDIA graphic card, I think that is the acpi cause this issue.
I have solved this problem temporary by disable the "laptop mode tools" in /etc/rc.conf.
Now my DAEMONS line in rc.conf look like the following:

DAEMONS=(syslog-ng network acpid !laptop-mode dbus @wicd crond @lapsusd @alsa @bumblebeed)

And now I try to investigate that why "laptop mode tools" make my laptop cannot shutdown.

Thank you for all of your replies and assistance.

Last edited by samtai (2012-08-31 16:12:27)

Offline

#5 2012-09-24 15:13:13

dstruck
Member
Registered: 2012-09-06
Posts: 3

Re: [SOLVED] My asus laptop hangs/freeze when poweroff.

Have the same issue on my Asus R252B / 1225B netbook. On charger shutdown works normally but on battery I have also to disable "laptop mode tools" for the shutdown to work.

Offline

#6 2012-09-24 18:11:53

bwat47
Member
Registered: 2009-10-07
Posts: 637

Re: [SOLVED] My asus laptop hangs/freeze when poweroff.

Exact same problem on my asus laptop. It shuts down fine on AC, but on bat it gets stuck on power off, its a known bug. You need to rmmod ehci_hcd on shutdown to fix it. If you are using sysvinit you can stick that in rc.local.shutdown  (Here's the thread where I first found the fix https://bbs.archlinux.org/viewtopic.php?id=113985&p=4). The bug report linked there says its fixed, but I think its only fixed for people that had the issue caused by the e1000e module, I still need to rmmod ehci_hcd on the latest kernel. Doing this should let you continue to use laptop-mode-tools. I think the reason laptop-mode-tools triggers the bug is that LMT enables runtime-pm for that module when on battery, and runtime-pm is what triggers the bug.

Since I'm using systemd I wrote my own unit to fix shutdown: http://pastie.org/4792434, and the script the unit calls: http://pastie.org/4792450

The same bug also stopped hibernation from working on my machine (It would sucessfully save the session to swap, but it would get stuck on powerdown just like screenshot in the OP), so I created a systemd-sleep hook to fix it there: http://pastie.org/4792462. I adapted that hook from a pm-utils hook I found, so here is the version that should work if you use pm-utils to hibernate: http://pastie.org/4792491

Last edited by bwat47 (2012-09-24 18:25:45)

Offline

#7 2012-09-29 12:20:41

cellux
Member
Registered: 2012-09-29
Posts: 2

Re: [SOLVED] My asus laptop hangs/freeze when poweroff.

I found an even simpler way to do it (on systemd):

Excerpt from systemd-shutdown manpage:

Immediately before executing the actual system halt/poweroff/reboot/kexec system-shutdown will run all executables in /usr/lib/systemd/system-shutdown/ and pass one arguments to them: either "halt", "poweroff", "reboot" or "kexec", depending on the chosen action.

So I shoved bwat47's shell script into this directory, chmodded it to 755 and the "system freezes on shutdown" bug was gone.

Offline

Board footer

Powered by FluxBB