User avatar
liamkennedy
Posts: 68
Joined: Thu Dec 19, 2013 10:12 am

Latest Firmware / Kernel - LED activity lights on after halt

Thu Jul 24, 2014 2:46 am

I just went through the whole sudo apt-get update / upgrade thing in order to make sure my image was compatible with B+.

Now when I issue a sudo halt command the ethernet activity lights remain on even after it has fully shut down (according to what gets displayed to an attached monitor)

The is new behavior - as the prior image I had all the lights would go out except the power indicator.

What's more the device remains "pingable" while it is fully shut down (seems crazy to me).

I've confirmed this on multiple Pi's so it's got to be something with the new firmware (I think).

This is a bit of a problem for my use as I distribute a headless device that is often used by non-raspberry pi "hackers". My "safe shutdown" guidelines up to now was to describe how they can notice that only the power light remains on.

I no longer have that "safety" it seems.. unless there is some new way of shutting down the Pi and having the ethernet activity lights go out as before.

Anyone else see this behavior?

Any way to make this "better" (without adding a "real" power switch as an add-on)?

Thanks!

User avatar
rpdom
Posts: 23524
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 5:12 am

I'm sure I've seen this mentioned in another thread. Something about missing turning off the LAN951x chip during shutdown. It is going to be fixed soon.

FWIW I seem to have the same problem with my B+, but I haven't updated the firmware for a few days.

User avatar
liamkennedy
Posts: 68
Joined: Thu Dec 19, 2013 10:12 am

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 6:00 am

Thanks for the info and confirmation of the behavior. I spent a little time searching the forum but did not find the key phrase to look for. Hopefully we'll see a fix soon.

shuckle
Posts: 565
Joined: Sun Aug 26, 2012 11:49 am
Location: Finland

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 6:05 am

It is actually fixed now.

I just tested that it still happened yesterday with:
uname -a:
Linux raspberry3 3.12.24+ #694 PREEMPT Tue Jul 15 17:34:35 BST 2014 armv6l GNU/Linux
Jul 20 2014 16:07:56
Copyright (c) 2012 Broadcom
version d8cfa5ccd979ca458fef97e87c14eb804c93762b (clean) (release)
But after new rpi-update it now works with:
Linux raspberry2 3.12.25+ #698 PREEMPT Wed Jul 23 21:00:22 BST 2014 armv6l GNU/Linux
vcgencmd version:
Jul 23 2014 21:08:37
Copyright (c) 2012 Broadcom
version 174cdd77563b98023955a94cb8d072d9c7095d6f (clean) (release)

User avatar
rpdom
Posts: 23524
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 6:38 am

I've just ran rpi-update on my B+ and even after a hard restart the LAN lights are still on after sudo halt. Also I didn't get 10 flashes of the ACT LED. Perhaps that update hasn't bee released to mainstream updates yet.

Code: Select all

root@raspi3:~# uname -a
Linux raspi3 3.12.25+ #698 PREEMPT Wed Jul 23 21:00:22 BST 2014 armv6l GNU/Linux
root@raspi3:~# vcgencmd version
Jul 23 2014 21:12:29 
Copyright (c) 2012 Broadcom
version 174cdd77563b98023955a94cb8d072d9c7095d6f (clean) (release)

shuckle
Posts: 565
Joined: Sun Aug 26, 2012 11:49 am
Location: Finland

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 6:51 am

Strange. I saw this issue with two old B models, but now they both work ok. 10 blinks + no ethernet leds after

Code: Select all

sudo halt
.
Just tested wuth my only B+ and it also works correctly.

User avatar
rpdom
Posts: 23524
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 7:15 am

shuckle wrote:Just tested wuth my only B+ and it also works correctly.
Very odd.

I notice my vcgencmd version reported a very slightly later time than yours.

I've just tried again, with a different power source and a screen connected. Still the same behaviour and the text stays on the screen.
The last couple of lines are

Code: Select all

Storage is finalized
[   43.089430] reboot: System halted
I can't see any errors

User avatar
jojopi
Posts: 3930
Joined: Tue Oct 11, 2011 8:38 pm

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 9:00 am

rpdom wrote:Still the same behaviour and the text stays on the screen.
The last couple of lines are
Storage is finalized
[ 43.089430] reboot: System halted
That sounds like a distribution (or kernel) issue. It is what you get if the shutdown sequence ends with "halt -f" instead of "poweroff -f". Otherwise the last message, which you do not have time to read, should be "reboot: Power down".

How are you shutting down, and what does /etc/default/halt say?

User avatar
rpdom
Posts: 23524
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 10:17 am

jojopi wrote:
rpdom wrote:Still the same behaviour and the text stays on the screen.
The last couple of lines are
Storage is finalized
[ 43.089430] reboot: System halted
That sounds like a distribution (or kernel) issue. It is what you get if the shutdown sequence ends with "halt -f" instead of "poweroff -f". Otherwise the last message, which you do not have time to read, should be "reboot: Power down".

How are you shutting down, and what does /etc/default/halt say?
It's a recent Raspbian image (I can't remember which), upgraded to Jessie and had rp-update run on it on my old B. I've run apt-get update/upgrade/dist-upgrade, then rpi-update again since then.

I'm using either sudo halt or just halt as root.

/etc/default/halt is

Code: Select all

# Default behaviour of shutdown -h / halt. Set to "halt" or "poweroff".
HALT=poweroff
[edit]
shutdown -h works as expected, but halt doesn't.
[/edit]

User avatar
jojopi
Posts: 3930
Joined: Tue Oct 11, 2011 8:38 pm

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 10:46 am

In wheezy, "sudo halt -f" (immediately) software halts, whereas "sudo halt" (eventually) powers off. Perhaps jessie has fixed this, so that you always get the behaviour you asked for.

Do "sudo poweroff" and "sudo halt -p" still work?

User avatar
rpdom
Posts: 23524
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 11:18 am

Yes, halt -p and poweroff both work as expected.

I can't see anything in the changelogs about the change in behaviour. I'm sure it was ok until fairly recently on an A and a B with Jessie.

[edit]
I've found a Debian bug report for it. Apparently the /etc/default/halt file was only supposed to control the behaviour of shutdown -h, not of the halt command. That has now been fixed. I suppose I'll have to get used to it (or set up an alias). :(

diederik
Posts: 394
Joined: Wed Mar 26, 2014 11:17 pm

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 11:47 am

rpdom wrote:I've found a Debian bug report for it. Apparently the /etc/default/halt file was only supposed to control the behaviour of shutdown -h, not of the halt command. That has now been fixed.
Link?

User avatar
rpdom
Posts: 23524
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 12:31 pm

Sorry, I forgot the link when I edited that last reply.

https://bugs.debian.org/cgi-bin/bugrepo ... bug=743555

diederik
Posts: 394
Joined: Wed Mar 26, 2014 11:17 pm

Re: Latest Firmware / Kernel - LED activity lights on after

Thu Jul 24, 2014 1:33 pm

rpdom wrote:Sorry, I forgot the link when I edited that last reply.

https://bugs.debian.org/cgi-bin/bugrepo ... bug=743555
Thanks!

Return to “Raspberry Pi OS”