Skip to content

Commit a2bb287

Browse files
Yi Fan YuRaphael Kubo da Costa
authored andcommitted
chromium: Add UPower PACKAGECONFIG
Chromium uses D-Bus to communicate with UPower. It uses it to query battery status among many things. see: services/device/battery/battery_status_manager_linux.cc Fixes error/warning messages related to UPower: ``` Failed to call method: org.freedesktop.UPower.GetDisplayDevice The name org.freedesktop.UPower was not provided by any .service files ``` Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
1 parent 64c918e commit a2bb287

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

meta-chromium/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ PACKAGECONFIG knobs
117117
also be enabled. Please note that not all the possible hardware configs are
118118
tested and supported.
119119

120+
* upower: (on by default)
121+
Chromium expects the presence of `org.freedesktop.UPower` via D-Bus to
122+
query battery status. If disabled, there will be warning messages seen on
123+
stderr and Battery Status Web API will not work.
120124

121125
Google API keys
122126
---------------

meta-chromium/recipes-browser/chromium/chromium-gn.inc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ BUILD_CC:toolchain-clang = "clang"
106106
BUILD_CXX:toolchain-clang = "clang++"
107107
BUILD_LD:toolchain-clang = "clang"
108108

109-
PACKAGECONFIG ??= "use-egl"
109+
PACKAGECONFIG ??= "upower use-egl"
110110

111111
# this makes sure the dependencies for the EGL mode are present; otherwise, the configure scripts
112112
# automatically and silently fall back to GLX
@@ -123,6 +123,9 @@ PACKAGECONFIG[proprietary-codecs] = ' \
123123
ffmpeg_branding="Chrome" proprietary_codecs=true, \
124124
ffmpeg_branding="Chromium" proprietary_codecs=false \
125125
'
126+
# Enable UPower by default.
127+
# Chromium expects to be able to query battery status through D-Bus.
128+
PACKAGECONFIG[upower] = ",,,upower"
126129

127130
# Disable VA-API by default. It is compile time enabled since M88, but it's not
128131
# desired to make all the users of the Chromium meta-browser recipe depend on

0 commit comments

Comments
 (0)