Haiku Beta 5 on Acer Aspire One ZG5, maybe ACPI problems?

So, i have this 2008 netbook, with 1GB RAM and a Intel Atom

Tried Haiku and looks like that works flawlessly, but when im gonna poweroff/reboot the machine, it goes normal, all windows closes, dont appear new messages, ect.

But the machine doesnt poweroff/reboot, looks like it hangs, in poweroff the only thing that stays is a blue screen, same color of the wallpaper, but not the wallpaper, for reboot, blacks out the screen, but the system doesnt reboot, stays that way

I asked for some people and they said that probably was some problem with ACPI, but they didnt know exactly what was causing

At least hard resetting when holding the power button works

Searched, and the only thread with a problem looking like similar to mine, was more saying that what “fixed” was disabling ACPI. And i dont want that

Someone had this problem and fixed, or nothing?

1 Like

This machine looks old enough that it may just not shut down unless the ACPI shutdown command is invoked from CPU 0. We have code to do that, but it’s disabled because that was causing system hangs on other machines. I think that’s due to a different Haiku bug, which is that if you disable CPUs sometimes the OS will just hang. If that got fixed, we could re-enable this, which would probably fix shutdown for you.

(Alternatively, now that we have support for thread CPU affinity, we may be able to use that instead of disabling all CPUs besides CPU 0, and fix the problem in ACPI that way. This may be the better solution anyway.)

4 Likes

What version of operating system Haiku are you using?

FWIW I saw exctly the same thing on an Acer Aspire One A110L.

Haiku R1/Beta 5 x86

I know this isnt gonna be to the next day.

But when added/merged/introduced, is gonna be available through an package update? Beta 6? Or going in the release builds of nightly?

(i didnt know what term was the best one to use here, so i added the 3 that i could think)

Don’t shoot me if this is a dumb idea. Could he go into process controller and disable all processors except cpu 0 and then try shutting down to see if that works around the bug? If it works, then he could turn the cpu’s back on after reboot.

Intel Atom N270 ?
Single core processor?

Correct, a Intel Atom N270, single core CPU

In the title i noticed that i mistyped, is ZG5, not ZG2 the netbook model

1 Like

So, now that i saw your comment, in the process controller there is CPU 1 and 2, CPU 1 is the CPU 0? or it should be shown as CPU 0 in the process controller

In Process Controller it is listed as CPU1, CPU2 etc.

A ok, because disabling one of the CPUs in the controller, being CPU 1 or 2

Didnt do anything, stays the same, so i thought that could be some problem with the identification of the threads of the CPU

Its a single core CPU with 2 threads

1 Like

I don’t know why ACPI always seems to get suggested as the main problem. ACPI is rarely the problem. We havn’t found or fixed any bugs related to ACPI in a long time.
A more scientific way to do things would be to narrow down the problem, disabling components, drivers and apps until the problem is identified.

It is more often something hangs in the shutdown process.
Sometimes it is the media kit, an FS or a third party app.

The ancient ACPI problem that keeps getting iterated:
On very old hardware ACPI needed to shutdown on the boot cpu (which is not guaranteed to be the same as cpu 0).
We did that for a while but since we had (or still have) some scheduling or inter cpu communication problems it caused a lot more hangs on shutdown on “modern” hardware As almost all hardware that require that became ancient ( think Asus EEE pc) and can’t even boot haiku it is very unlikely that this is your problem.

Disabling CPU’s before shutdown would be a way to test for this behaviour, as long as you figure out which CPU booted. Also trying if reset works properly is interesting as we fall back to reset by the keyboard controller doing the same as “CTRL - ALT - DELETE” if we fail ACPI reset.So if reset works it is less likely to be an app issue.

1 Like

So, via the boot loader, im disabling multiple components, drivers, apps, servers, ect. Giving yet the same problem, poweroff stays in a blank blue screen, and reboot justs stays in a black screen and dont reboot

The only way where actually rebooted normally and by it self, was disabling ACPI, to poweroff needs to hold power button when appears the window that can safely reboot, if i try to shutdown

But since im no dev to have total certainty , there are logs that shows what happens during shutdown/reboot? Because in the syslog files, i didnt find anything related to shutdown/reboot or anything that looked uncommon,

And forgot to say about the CPU, i tried to see with the debug output during boot to see what CPU was using to boot up, so, what CPU is it? (idk if matter, because being 2 threads, disabling one or the other didnt do anything)


(debug output of when i dont disable anything)

And yes, i know there are more pages, but they werent CPU related and more of PCI, drivers and bus related stuff

2 Likes

So, since there were no updates to this post, i decided to install Linux distro in it

Any Linux distro is being able to poweroff and reboot with no problems, BUT, every time that the system boot up
I see some interesting messages related to ACPI and ACPI BIOS Error and invalid ELF headers

I know that what i send it now was related to Linux, but idk if this could mean something to the problem Haiku was facing in this netbook for reboot and poweroff

It seems that this BIOS is not fully compliant and linux is using a workaround.
With no big hope, I’d check Acer site to see if there has been a BIOS update to fix that.

1 Like

If you know of these workarounds it’d be nice to open a ticket. We can do whatever linux is doing

@I7sReact Is it a screenshot of Ventoy booting a linux distro? Did you use ventoy as well when trying Haiku? It isn’t supported.

No, Im using Ventoy only for Linux and Windows ISOs, when i installed Haiku in this netboot, i burned the ISO to the USB using dd

Gonna try the BIOS Update

But im not gonna lie, i fear a little bit because i never done it and the fear of bricking it is there

You can also check in a linux boot log or syslog what is happening later during ACPI initialisation. Are the lines about buggy BIOS also appearing there? Is there mention of a quirk used? etc.