power button won't shutdown debian kernel linux-image-3.14.29-ti-r46

When pressing the power button on a bbb with debian kernel linux-image-3.14.29-ti-r46 nothing happens. When using 3.8.13-bone70 the system powers down. Looking for clues I’m missing /dev/input/event0 on the ti kernel. Any pointers on how to solve this?

thx,
Michiel

Are you letting systemd know:

https://github.com/RobertCNelson/boot-scripts/blob/master/mods/jessie-systemd-poweroff.diff

Regards,

Hi, I’m running the same kernel and the power button shuts down the BBB. I have to hold it for about 5 seconds, but it does work…

When pressing the power button on a bbb with debian kernel
linux-image-3.14.29-ti-r46 nothing happens. When using 3.8.13-bone70 the
system powers down. Looking for clues I’m missing /dev/input/event0 on the
ti kernel. Any pointers on how to solve this?

Are you letting systemd know:

https://github.com/RobertCNelson/boot-scripts/blob/master/mods/jessie-systemd-poweroff.diff

Hmm, running wheezy. That patch looks only for jessue? Adding this diff more or less to /etc/udev/rules doesn’t work. Time to explore jessie?

thx,
Michiel

Actually, 5 seconds means the pmic just cycled...

It's been a little while since i tested:

jessie + systemd
3.14-ti
push button power off

Anyone running: 1-19 jessie snapshot?

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Jessie_Snapshot

But i'm just heading out, will look at it early next week..

Regards,

Maybe it has to do with differences in tps65217 driver 3.8 v.s 3.14?

https://github.com/beagleboard/linux/blob/3.8/drivers/mfd/tps65217.c
https://github.com/beagleboard/linux/blob/3.14/drivers/mfd/tps65217.c

regards,
Michiel

Did you check /etc/inittab ?

As far as I know systemd isn’t using initab. What should be in it that I / systemd is missing? I thought the pmic chip pwr button (can) present itself as a /dev/input/event0 on which acpid can do its shutdown trick.

thx,
Michiel

Just to follow up, the push button is currently ignored in the
v3.14.x-ti kernel..

Investigating...

Regards,

Looks like these patches are missing in the ti-kernel:

https://github.com/RobertCNelson/bb-kernel/tree/am33x-v3.14/patches/beaglebone/power

regards,
Michiel

Yeap..

https://github.com/RobertCNelson/ti-linux-kernel-dev/commit/54f82fdfb2bef5660acc1753612279db62201cd9

Nothing like re-discovering & re-porting a patch I had re-ported awhile ago. :wink:

Tested/works on one bbb..

Regards,

Well, enjoy the warmth feeling of a job well done twice:)
thx,
Michiel

A few months ago I downloaded this image:

http://debian.beagleboard.org/images/bone-debian-7.8-lxde-4gb-armhf-2015-03-01-4gb.img.xz

Yesterday I upgraded from wheezy to jessie (changing sources.list, apt-get update && apt-get upgrade etc), and now the pwr_but does not work.

Any suggestions as to how I could fix this would be appreciated.

Thanks.

Here are the stats for my BBB:

debian@beaglebone:~$ uname -a
Linux beaglebone 3.8.13-bone72 #1 SMP Tue Jun 16 21:36:04 UTC 2015 armv7l GNU/Linux
debian@beaglebone:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.2 (jessie)
Release: 8.2
Codename: jessie

patch systemd's udev rule:

https://github.com/RobertCNelson/boot-scripts/blob/master/mods/jessie-systemd-poweroff.diff

Regards,

Hi Robert,

Thanks for your previous help, and all the work you do developing the BBB images!

I am now using a different kernel:

kernel: 3.8.13-bone79 Debian Wheezy image

And unfortunately, with this kernel, the power button is also not working.

I have tried the fix you suggested last time, and the fix for wheezy, but have not been able to get the power button to work. Below is the /lib/udev/rules.d/70-power-switch.rules file contained in the image above:

This file is part of systemd.

Which board revision is this?

Regards,

Which board revision is this?

I am using an element14 PCB RevB6.

Actually, I just checked, and it has a 3.5G /rootfs, which must mean that it is a Rev C, despite the labelling on the PCB.