hal-info: disable battery polling
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 8 May 2016 22:31:12 +0000 (01:31 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 8 May 2016 22:31:12 +0000 (01:31 +0300)
It doesn't look like anything cares about dbus events it generates,
it's just a waste of resources

recipes/hal/hal-info/no_bq27500.patch [new file with mode: 0644]
recipes/hal/hal-info_20090414.bb

diff --git a/recipes/hal/hal-info/no_bq27500.patch b/recipes/hal/hal-info/no_bq27500.patch
new file mode 100644 (file)
index 0000000..e96f506
--- /dev/null
@@ -0,0 +1,16 @@
+diff --git a/fdi/information/10freedesktop/10-battery.fdi b/fdi/information/10freedesktop/10-battery.fdi
+index cbb605b..ebb03ce 100644
+--- a/fdi/information/10freedesktop/10-battery.fdi
++++ b/fdi/information/10freedesktop/10-battery.fdi
+@@ -9,6 +9,11 @@
+         <merge key="battery.quirk.do_not_poll" type="bool">true</merge>
+       </match>
++      <!-- this polling (and events from it) are not useful on pandora -->
++      <match key="info.udi" contains="bq27500">
++        <merge key="battery.quirk.do_not_poll" type="bool">true</merge>
++      </match>
++
+     </match>
+   </device>
+ </deviceinfo>
index e6d50e3..ca106eb 100644 (file)
@@ -1 +1,5 @@
 require hal-info.inc
+
+SRC_URI += "file://no_bq27500.patch;patch=1"
+
+PR = "r1"