FLUTTER ECOSYSTEM

canonical/upower.dart

Provides a client to connect to [UPower](https://upower.freedesktop.org/) - the service that does power management on Linux.

upower.dart project cover
Stars
18
Forks
8
Last push (UTC)
Aug 25, 2025
Project status
Active
Canonical GitHub avatar
GITHUB Organization

Canonical ↗

LanguagesDart

Packages published by this repository

Dependencies used

Dependency list 4 items
  • dbus^0.7.0
  • lintsDevelopment^2.0.0
  • testDevelopment^1.16.8
  • test_covDevelopment^1.0.1

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project README

Pub Package codecov

Provides a client to connect to UPower - the service that does power management on Linux.

import 'package:upower/upower.dart';

var client = UPowerClient();
await client.connect();
print('Running UPower ${client.daemonVersion}');
print('System state: ${client.displayDevice.state}');
print('Devices:');
for (var device in client.devices) {
  print('  ${device.type} ${device.percentage}%');
}
await client.close();

Contributing to upower.dart

We welcome contributions! See the contribution guide for more details.