Opened 15 years ago
Last modified 5 years ago
#5064 reopened bug
Laptop doesn't shutdown anymore with ACPI enabled
Reported by: | jackburton | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Drivers/ACPI | Version: | R1/Development |
Keywords: | shutdown | Cc: | vegarwa@… |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Since some time (I can't say how much, since I haven't tested that so often), my laptop doesn't shutdown correctly using ACPI. It was shutting down correctly since hrev33781.
Attachments (2)
Change History (36)
comment:1 by , 15 years ago
Version: | R1/alpha1 → R1/Development |
---|
comment:2 by , 15 years ago
hrev34452 gcc4h2 fresh install and it did shut down correctly last night. (ThinkPad T500)
comment:3 by , 15 years ago
Seems to be working again since a few revisions. I'd be for closing this. Axel ?
comment:6 by , 15 years ago
Cc: | added |
---|
Afaict it works on my machines, so I'm not sure if I can do that much.
comment:7 by , 15 years ago
FYI: My Thinkpad T43 with ACPI enabled shuts down properly as of hrev35012 x86gcc2hybrid
comment:8 by , 15 years ago
I think this might be related to #5449, can anyone not being able to shutdown fo the following?
- Check that ACPI is running, more -f /dev/acpi/namespace should work if ACPI is running
- Provide a syslog from boot
follow-up: 10 comment:9 by , 15 years ago
Should be:
- Check that ACPI is running, more -f /dev/acpi/namespace should work if ACPI is running
- Provide a syslog from boot
(I loathe the comment editor btw. Can't it be made sane.)
comment:10 by , 15 years ago
Replying to tqh:
(I loathe the comment editor btw. Can't it be made sane.)
Just add a space before your "*" or "-" bullets and your list items will be formatted correctly. Please have a look at http://dev.haiku-os.org/wiki/WikiFormatting.
comment:11 by , 15 years ago
Yes, but I was thinking of linebreaks, which works everywhere, except here. Fobar according to me.
comment:13 by , 15 years ago
Cc: | added |
---|
comment:14 by , 15 years ago
Hi vegarwa, did your Acer Aspire AOA110 ever shutdown with any Haiku version, though? And just to make sure, you did enable ACPI in the kernel settings file, correct? hrev35726 does not enable ACPI by default, it's just suppose to fix a bug, in case you do have it already enabled manually.
comment:15 by , 15 years ago
He has it enabled as he helped with another ACPI bug. wegardw, could you provide the syslog after you have tried to run shutdown. Just reboot after that and grab it.
comment:16 by , 15 years ago
The attached syslog is when booting (cold boot), then trying to shut after the system has finished booting, without doing anything else first.
follow-up: 18 comment:17 by , 15 years ago
That one only seems to be one boot. I want one after you've tried shutdown.
(Or is the syslog behaviour changed so it's not written to disk or overwritten on boot?)
comment:18 by , 15 years ago
Replying to tqh:
That one only seems to be one boot. I want one after you've tried shutdown.
(Or is the syslog behaviour changed so it's not written to disk or overwritten on boot?)
Yeah, thats just from the one boot and attempted shutdown. I booted from another haiku partition to copy out the syslog. Will do it again so you also get the subsequent reboot.
by , 15 years ago
Attachment: | syslog_acpi_no_shutdown.txt added |
---|
comment:20 by , 15 years ago
To me it looks like media-server or debug-server halts shutdown.
KERN: vm_page_fault: vm_soft_fault returned error 'Bad address' on fault at 0x6d3a6566, ip 0x4a7490, write 0, user 1, thread 0x92 KERN: vm_page_fault: thread "media_addon_server" (146) in team "media_addon_server" (146) tried to read address 0x6d3a6566, ip 0x4a7490 ("libmedia.so_seg0ro" +0x59490) KERN: debug_server: Thread 146 entered the debugger: Segment violation
Could you try killing media-server before shutting down?
by , 15 years ago
Attachment: | syslog_acpi_no_shutdown_2.txt added |
---|
media_server, media_addon_server and debug_server killed before trying to shut down
comment:24 by , 15 years ago
I'm afraid my Desktop has gotten resistant to the change; after the update it shut down 4 times in a row (which it didn't ever do before), but the last two times it didn't properly shut down.
I'll do another update soon, maybe that brings things back in order. If not, I'll just reopen that bug again.
comment:25 by , 15 years ago
I guess we need more logging. I wonder if dpc still does its job til the very end..
follow-up: 27 comment:26 by , 15 years ago
I'm trying to look into this in #5880.
If someone can reproduce pls: Try going in to kernel debugger (ctrl + alt + sys req + d) and see what the end lines of the command 'syslog' returns?
Also what 'threads' and 'sc <threadnr>' shows for any interesting threads can also help.
comment:27 by , 14 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Replying to tqh:
Try going in to kernel debugger (ctrl + alt + sys req + d) and see what the end lines of the command 'syslog' returns?
Nothing interesting, I'm afraid.
Also what 'threads' and 'sc <threadnr>' shows for any interesting threads can also help.
What would be an interesting thread? I have 3 idle threads running, as well as the shutdown worker (I guess that one would have been interesting - will see next time).
In any case, the problem goes away completely if I disable SMP.
comment:28 by , 14 years ago
Then it's probably true what comments in FreeBSD say, that shutdown should only be called on the boot cpu. Also it says that interrupts should be disabled in ACPI-headers, but with interrupts disabled it doesn't work at all afaict.
comment:29 by , 14 years ago
That could explain the situation, indeed. Should be pretty easy to do, too (just disable the other CPUs, and then yield once).
comment:30 by , 14 years ago
BTW should I attach a stack trace of the shutdown worker? It's busy reading some data from PCI over ACPI.
comment:32 by , 14 years ago
#5880 suggests this might be a wifi-issue. Please try removing wifi and see if that allows proper shutdown.
comment:33 by , 7 years ago
Cc: | removed |
---|---|
Keywords: | shutdown added |
FWIW my desktop machine has the same problem since a few weeks.