[Discussion] how to implement external power down for ARM

Shannon Zhao zhaoshenglong at huawei.com
Thu May 7 02:18:45 PDT 2015


On 2015/5/7 16:55, Arnd Bergmann wrote:
> On Thursday 07 May 2015 10:39:35 Shannon Zhao wrote:
>> On 2015/5/6 15:29, Arnd Bergmann wrote:
>>> On Wednesday 06 May 2015 14:56:58 Shannon Zhao wrote:
>>>> On 2015/5/5 19:13, Shannon Zhao wrote:
>>>>
>>>> Jan 01 00:01:02 localhost systemd[1]: Starting Login Service...
>>>> Jan 01 00:01:07 localhost systemd[1]: Started Login Service.
>>>> Jan 01 00:01:07 localhost systemd-logind[927]: Watching system buttons
>>>> on /dev/input/event0 (gpio-keys)
>>>> Jan 01 00:01:07 localhost systemd-logind[927]: New seat seat0.
>>>> Jan 01 00:01:25 localhost systemd-logind[927]: New session c1 of user root.
>>>>
>>>> Visit https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1347776 for
>>>> details.
>>>
>>> How about Ubuntu or Debian releases that do not use systemd?
>>>
>>> I guess we should check with a Debian Wheezy or Ubuntu Trusty release.
>>> My guess is that it will work fine, but some minor adjustment might
>>> be needed.
>>>
>>
>> Hi Arnd,
>>
>> If the Debian Wheezy or Ubuntu Trusty release doesn't use systemd, what
>> user space process do they use to handle the input device event?
> 
> I don't really know, there are probably multiple tools available, but
> they might not be installed by default
>  
>> I tried Ubuntu Trusty from Christoffer, when typing "system_powerdown"
>> on QEMU monitor, "cat /dev/input/event0 | hexdump" shows the event is
>> triggered but the guest doesn't poweroff.
> 
> Can you try installing acpid by running 'sudo apt-get install acpid' in
> the image? I suspect it should just work by scanning the event devices
> even in the absence of ACPI on the platform.
> 

Cool, I start acpid and the poweroff works.

-- 
Shannon




More information about the linux-arm-kernel mailing list