Archlinux 3.16 Beagle Black ACPI

Discussion about U-Boot and the kernel.

Archlinux 3.16 Beagle Black ACPI

Postby dsc3507 » Thu Aug 28, 2014 4:35 pm

ACPI in Archlinux Kernel 3.16 on the Beaglebone Black seems to be broken regarding power button shutdown. Also unlike earlier versions a keyboard manual shutdown does not turn the power LED off. Is there going to be a fix for this?
dsc3507
 
Posts: 13
Joined: Sat Apr 12, 2014 5:07 pm

Re: Archlinux 3.16 Beagle Black ACPI

Postby WarheadsSE » Thu Aug 28, 2014 5:55 pm

You seem to be under the impression that the BBB (or really, many ARM boards) have ACPI.

We can look into this, but likely it is not a change we had any effect on.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Archlinux 3.16 Beagle Black ACPI

Postby dsc3507 » Fri Aug 29, 2014 1:10 am

Well it is pseudo ACPI. Not sure what is broken or where but prior kernels (3.8.13-24-ARCH) handled this correctly. When the system was shutdown it turned off the power led and the power button could be programmed to shutdown.

I took these comments from another list if it is helpful....

The problem has something to do with the register settings in the PMIC. Here is what I think is happening:

It looks like the BB Linux Kernel is configured to enter sleep mode when the command shutdown or halt is used. After a little investigation, here is the sequence after shutdown or halt:

kernel_power_off()
machine_power_off()
pm_power_off()
rtc_power_off() //Toggles PWR_EN pin

When the PMIC is in sleep mode, some of the regulators remain on which I believe is the issue some of the user are experiencing. Making the default state to OFF mode (same as pulling the power plug) and not SLEEP mode will probably be more suitable for most users. The solution is pretty simple:

The solution I have Robert was to add pmic-shutdown-controller as shown in
/Documentation/devicetree/bindings/regulator/tps65217.txt.

However, Robert added this into his kernel but this doesn’t seem to have fixed the issue. Here are some other references that might be helpful.

In /drivers/mfd/tps65217.c search for PWR_EN, the
comments “Set the PMIC to shutdown on PWR_EN toggle”

Reading “Power Down Sequence” on page 18 (TPS65217C TRM), this will initiate the power down sequence and leave the PMIC in OFF mode.

Ultimately, we probably need to look at the PMIC register setting just before toggling PWR_EN as this might explain why this is not working correctly.
dsc3507
 
Posts: 13
Joined: Sat Apr 12, 2014 5:07 pm

Re: Archlinux 3.16 Beagle Black ACPI

Postby kmihelich » Fri Aug 29, 2014 1:27 am

Are you using `shutdown` or `poweroff`?
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Archlinux 3.16 Beagle Black ACPI

Postby dsc3507 » Fri Aug 29, 2014 3:58 am

In the Beagle Black 3.8.13-24 archlinux kernel the following works -

install acpi and acpid: pacman -S acpi acpid
enable the acpid service: systemctl enable acpid.service
start the acpid service: systemctl start acpid.service
edit /etc/systemd/logind.conf and replace #HandlePowerKey=poweroff with HandlePowerKey=ignore

This lets acpi handle the power and pressing the power switch completely shuts down the Black including the power light.

Although you can load and enable acpi and acpid in 3.16 it does not work.
dsc3507
 
Posts: 13
Joined: Sat Apr 12, 2014 5:07 pm


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 5 guests