From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 28/30] package/matchbox-panel: add option to use ACPI for the battery applet
Date: Fri, 01 May 2015 23:39:54 +0200 [thread overview]
Message-ID: <5543F2AA.6070706@mind.be> (raw)
In-Reply-To: <cbb90f6326af77c2c466fa72ee970fee6a9040f1.1429725549.git.yann.morin.1998@free.fr>
On 22/04/15 20:09, Yann E. MORIN wrote:
> It is possible to use ACPI to monitor the battery with the battery
> min-applet. If ACPI is not explicitly enabled, then APM is used if
> available; if ACPI is not explcitly enabled and APM is not available,
> then the battery applet id not built.
>
> What is a pity is that there is no way to explicitly enable or disable
> the applet; it only relies on auto-detection... :-(
>
> So, add an option to enable use of ACPI, visible only on architectures
> that have at least some hope of having ACPI support.
Since APM exists only on x86, there is basically no way to disable the applet
on x86. The only thing that the configure option does is to force the applet to
use the deprecated and most likely unavailable APM interface.
Therefore, I'd remove the Config.in option and just pass --enable-acpi-linux
unconditionally on x86 and aarch64. The worst that can happen is that you build
a tiny applet that turns out not to work.
That said, the applet doesn't build for me (with Sourcery x86_64 toolchain)
because the 'line_parse' inner function is declared static...
Regards,
Arnout
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
> package/matchbox/matchbox-panel/Config.in | 15 +++++++++++++++
> package/matchbox/matchbox-panel/matchbox-panel.mk | 6 ++++++
> 2 files changed, 21 insertions(+)
>
> diff --git a/package/matchbox/matchbox-panel/Config.in b/package/matchbox/matchbox-panel/Config.in
> index 47bd10a..93241f0 100644
> --- a/package/matchbox/matchbox-panel/Config.in
> +++ b/package/matchbox/matchbox-panel/Config.in
> @@ -4,3 +4,18 @@ config BR2_PACKAGE_MATCHBOX_PANEL
> help
> A flexible always present 'window bar' for holding
> application launchers.
> +
> +if BR2_PACKAGE_MATCHBOX_PANEL
> +
> +config BR2_PACKAGE_MATCHBOX_PANEL_ACPI
> + bool "use ACPI for battery mini-applet"
> + depends on BR2_i386 || BR2_x86_64 || BR2_aarch64
> + help
> + Use ACPI to monitor the battery.
> +
> + Say 'y' here to use ACPI to monitor the battery.
> + If you say 'n', then APM will be used if available;
> + otherwise the battery monitor mini-applet is not
> + built.
> +
> +endif # BR2_PACKAGE_MATCHBOX_PANEL
> diff --git a/package/matchbox/matchbox-panel/matchbox-panel.mk b/package/matchbox/matchbox-panel/matchbox-panel.mk
> index f7d699b..aa9018c 100644
> --- a/package/matchbox/matchbox-panel/matchbox-panel.mk
> +++ b/package/matchbox/matchbox-panel/matchbox-panel.mk
> @@ -20,6 +20,12 @@ else
> MATCHBOX_PANEL_CONF_OPTS += --disable-startup-notification
> endif
>
> +ifeq ($(BR2_PACKAGE_MATCHBOX_PANEL_ACPI),y)
> +MATCHBOX_PANEL_CONF_OPTS += --enable-acpi-linux
> +else
> +MATCHBOX_PANEL_CONF_OPTS += --disable-acpi-linux
> +endif
> +
> ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS),y)
> MATCHBOX_PANEL_DEPENDENCIES += wireless_tools
> endif
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2015-05-01 21:39 UTC|newest]
Thread overview: 82+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-22 18:09 [Buildroot] [PATCH 0/30] matchbox: huge cleanups (branch yem/matchbox) Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 01/30] package/matchbox: make matchbox-lib a real package Yann E. MORIN
2015-04-23 21:29 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 02/30] package/matchbox: make matchbox-wm " Yann E. MORIN
2015-04-23 21:35 ` Arnout Vandecappelle
2015-04-23 21:44 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 03/30] package/matchbox-wm: drop useless commented options Yann E. MORIN
2015-04-23 21:33 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 04/30] package/matchbox: make matchbox-panel a real package Yann E. MORIN
2015-04-23 21:36 ` Arnout Vandecappelle
2015-04-23 21:46 ` Arnout Vandecappelle
2015-04-23 21:47 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 05/30] package/matchbox: make matchbox-desktop " Yann E. MORIN
2015-04-23 21:49 ` Arnout Vandecappelle
2015-04-24 17:37 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 06/30] package/matchbox: make matchbox-common " Yann E. MORIN
2015-04-23 21:52 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 07/30] package/matchbox: make matchbox-fakekey " Yann E. MORIN
2015-04-23 21:54 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 08/30] package/matchbox: make matchbox-keyboard " Yann E. MORIN
2015-04-23 21:55 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 09/30] package/matchbox: make match-startup-monitor " Yann E. MORIN
2015-04-23 22:00 ` Arnout Vandecappelle
2015-04-24 17:40 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 10/30] package/matchbox: remove superfluous conditional includes Yann E. MORIN
2015-04-23 22:01 ` Arnout Vandecappelle
2015-04-24 17:43 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 11/30] package/matchbox: point to new home Yann E. MORIN
2015-04-23 8:58 ` Alexandre Belloni
2015-04-23 16:38 ` Yann E. MORIN
2015-04-23 22:01 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 12/30] package/matchbox: get rid of intermediate non-package matchbox Yann E. MORIN
2015-04-23 22:27 ` Arnout Vandecappelle
2015-04-24 16:51 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 13/30] package/matchbox: fix option prompts Yann E. MORIN
2015-04-23 22:26 ` Arnout Vandecappelle
2015-04-24 16:50 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 14/30] package/matchbox-common: fix dependencies Yann E. MORIN
2015-05-01 20:01 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 15/30] package/matchbox-common: break dependency chain for display Yann E. MORIN
2015-05-01 20:02 ` Arnout Vandecappelle
2015-05-02 12:00 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 16/30] package/matchbox-fakekey: add missing dependency Yann E. MORIN
2015-05-01 20:07 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 17/30] package/matchbox-startup-monitor: add misisng dependency Yann E. MORIN
2015-05-01 20:19 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 18/30] package/matchbox: finally add prompts to all sub-packages Yann E. MORIN
2015-05-01 20:23 ` Arnout Vandecappelle
2015-05-02 12:28 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 19/30] package/matchbox: enable support for the Xsession manager Yann E. MORIN
2015-05-01 20:28 ` Arnout Vandecappelle
2015-05-02 13:10 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 20/30] package/matchbox: cleanup handling of support for compositing Yann E. MORIN
2015-05-01 20:29 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 21/30] package/matchbox: make it a menu Yann E. MORIN
2015-05-01 20:32 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 22/30] package/matchbox: forcibly disable support for compositing Yann E. MORIN
2015-05-01 20:31 ` Arnout Vandecappelle
2015-05-02 13:04 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 23/30] package/matchbox: drop useless dependencies Yann E. MORIN
2015-05-01 20:41 ` Arnout Vandecappelle
2015-05-01 20:58 ` Arnout Vandecappelle
2015-05-02 13:40 ` Yann E. MORIN
2015-05-02 14:12 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 24/30] package/matchbox-keyboard: enforce disabling support for cairo Yann E. MORIN
2015-05-01 20:45 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 25/30] package/matchbox-common: explicitly disable PDA folders when not selected Yann E. MORIN
2015-05-01 20:44 ` Arnout Vandecappelle
2015-04-22 18:09 ` [Buildroot] [PATCH 26/30] package/matchbox: wrap long lines Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 27/30] package/matchbox: xlib-libXcursor is an optional dependency Yann E. MORIN
2015-05-01 21:02 ` Arnout Vandecappelle
2015-05-02 14:33 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 28/30] package/matchbox-panel: add option to use ACPI for the battery applet Yann E. MORIN
2015-05-01 21:39 ` Arnout Vandecappelle [this message]
2015-05-02 15:22 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 29/30] package/matchbox-panel: add support for dnotify Yann E. MORIN
2015-05-01 21:44 ` Arnout Vandecappelle
2015-05-02 15:23 ` Yann E. MORIN
2015-04-22 18:09 ` [Buildroot] [PATCH 30/30] package/matchbox-panel: fix WiFi monitoring Yann E. MORIN
2015-05-01 21:45 ` Arnout Vandecappelle
2015-04-23 21:24 ` [Buildroot] [PATCH 0/30] matchbox: huge cleanups (branch yem/matchbox) Arnout Vandecappelle
2015-04-23 21:27 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5543F2AA.6070706@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox