upower 0.7.0 icon indicating copy to clipboard operation
upower: ^0.7.0 copied to clipboard

PlatformLinux

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

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.

6
likes
140
pub points
80%
popularity

Publisher

verified publisher iconcanonical.com

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

Homepage

Documentation

API reference

License

Icon for licenses.MPL-2.0 (LICENSE)

Dependencies

dbus

More

Packages that depend on upower