[mythtv-users] Annoying shutdown problem

Darac Marjal mailinglist at darac.org.uk
Mon Sep 5 10:04:05 UTC 2016


On Mon, Sep 05, 2016 at 10:43:29AM +0100, David Cunningham wrote:
>I've been running MythTV 0.27 or Debian Jessie for a while without 
>problem. I've just switched to 0.28 on Debian Stretch and have been 
>hit with an annoying problem on the frontend.
>
>The frontend is netbooted and controlled by a Harmony remote sending 
>commands to an iMon receiver.
>
>I map the power command on the remote to a shutdown command in the 
>lircrc config file. On Jessie this worked fine. The power button was 
>mapped to "sudo halt" and the system shut down as expected.
>
>On Stretch/0.28 no such luck. The system shuts down OK but never 
>powers off. It gets to a point where the last message is (something 
>like - don't remember the message) "Shutdown complete, system halted" 
>then freezes, i.e. the fronted does not power off and is not 
>responsive to anything but manually pressing the physical power button 
>on the frontend itself. It then boots on the next powerup as expected.
>
>I've tried changing the shutdown command, all of:
>
>/sbin/halt
>/sbin/shutdown -h now

As part of systemd's adherence to doing things "correctly", "halt" and 
"poweroff" have once again been separated to two separate actions.  

"halt" should now bring the system to a state where it's suitable to 
halt processing. That is, all user-land processes are stopped.  As far 
as I know, that's all that happens. In particular, nothing happens with 
the kernel and so the kernel will continue to function (some people have 
been known to use this for firewalls: the kernel will continue to 
process traffic, but with no processes running, it's virtually 
impossible to attack the system).

>/sbin/poweroff

This SHOULD work, though. "poweroff" performs all the shutdown tasks 
that "halt" does, but also asks the kernel to poweroff the system. You 
could try increasing the verbosity of the kernel if you wish to debug 
the issue, though (remove 'quiet' and 'splash' from the kernel command 
line, then run "echo 7 > /proc/sys/kernel/printk" just before calling 
"poweroff")

>
>
>behave the same way, i.e. the system does not power off.
>
>From googling I've tried adding acpi=forced as a kernel parameter but 
>this has no affect.
>
>Interestingly if I ssh into the frontend or attach a keyboard and 
>login to a different terminal and execute any of the shutdown commands 
>the frontend powers off correctly.
>
>To me, this suggestes that there's some interaction between lirc and 
>the shutdown process.
>
>Any suggestions - it's extremely frustrating at present having to 
>manually poweroff the fronted!
>
>Cheers,
>David
>_______________________________________________
>mythtv-users mailing list
>mythtv-users at mythtv.org
>http://lists.mythtv.org/mailman/listinfo/mythtv-users
>http://wiki.mythtv.org/Mailing_List_etiquette
>MythTV Forums: https://forum.mythtv.org

-- 
For more information, please reread.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 878 bytes
Desc: not available
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160905/a93f621a/attachment.sig>


More information about the mythtv-users mailing list