Bananian Linux

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000086Bananian Linux[All Projects] Generalpublic2015-01-04 16:242015-07-12 20:41
Reporterguest 
Assigned ToNico 
PrioritynormalSeverityfeatureReproducibilityalways
StatusresolvedResolutionwon't fix 
Product Version14.11.02 
Target VersionFixed in Version 
Summary0000086: shutdown using the power button?
DescriptionIs it possible to shutdown the system using the power button?

See https://groups.google.com/forum/#!topic/cubieboard/eNWzeyDSDYc [^]
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000141)
Nico (manager)
2015-01-11 14:55
edited on: 2015-01-11 14:56

Install acpid:

    aptitude install acpid

Create the following files:

1.) /etc/acpi/events/button_power:

    event=button/power
    action=/etc/acpi/shutdown.sh

2.) /etc/acpi/shutdown.sh:

    #!/bin/bash
    shutdown -h now

Make shutdown.sh executable:

    chmod +x /etc/acpi/shutdown.sh

Restart acpid (ignore error messages..):

    /etc/init.d/acpid restart

Press power button and the Banana Pi will shutdown (or whatever you define in shutdown.sh)!

(0000142)
FrankM (reporter)
2015-01-11 15:59
edited on: 2015-01-11 16:04

tested and works on BananaPro & BananaPI

(0000255)
Nico (manager)
2015-07-12 20:41

This can be used as a small howto but we won't integrate this feature.

Bananian is a very small minimal installation and we don't really need this.

- Issue History
Date Modified Username Field Change
2015-01-04 16:24 guest New Issue
2015-01-11 14:55 Nico Note Added: 0000141
2015-01-11 14:56 Nico Note Edited: 0000141 View Revisions
2015-01-11 14:58 Nico Target Version => 15.04
2015-01-11 14:58 Nico Assigned To => Nico
2015-01-11 14:58 Nico Status new => assigned
2015-01-11 15:59 FrankM Note Added: 0000142
2015-01-11 16:04 FrankM Note Edited: 0000142 View Revisions
2015-03-07 07:37 Nico Target Version 15.04 => 16.04
2015-04-28 20:45 Nico Target Version 16.04 => later
2015-07-12 20:40 Nico Target Version later =>
2015-07-12 20:41 Nico Note Added: 0000255
2015-07-12 20:41 Nico Status assigned => resolved
2015-07-12 20:41 Nico Resolution open => won't fix


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker