Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

power_profiles_daemon: Move to org.freedesktop.UPower.PowerProfiles #200

Merged
merged 3 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dbusmock/templates/power_profiles_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
__author__ = "Bastien Nocera"
__copyright__ = """
(c) 2021, Red Hat Inc.
(c) 2017 - 2022 Martin Pitt <martin@piware.de>
(c) 2017 - 2024 Martin Pitt <martin@piware.de>
"""

import dbus

BUS_NAME = "net.hadess.PowerProfiles"
MAIN_OBJ = "/net/hadess/PowerProfiles"
MAIN_IFACE = "net.hadess.PowerProfiles"
BUS_NAME = "org.freedesktop.UPower.PowerProfiles"
MAIN_OBJ = "/org/freedesktop/UPower/PowerProfiles"
MAIN_IFACE = "org.freedesktop.UPower.PowerProfiles"
SYSTEM_BUS = True


Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ ignore_missing_imports = true
line-length = 130
preview = true

[tool.ruff.lint]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
Expand Down
6 changes: 6 additions & 0 deletions tests/run-debian
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ eatmydata apt-get install --no-install-recommends -y git \
python3-dbus python3-pytest python3-gi gir1.2-glib-2.0 \
dbus libnotify-bin upower network-manager bluez ofono ofono-scripts

# power-profiles-daemon 0.20 did not yet land in Ubuntu 24.04
. /etc/os-release
if [ "$ID" = "debian" ]; then
eatmydata apt-get install -y power-profiles-daemon
fi

# systemd's tools otherwise fail on "not been booted with systemd"
mkdir -p /run/systemd/system

Expand Down