upower 0.4.0
upower: ^0.4.0 copied to clipboard

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

Pub Package

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.

4
likes
120
pub points
17%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploaders

robert.ancell@canonical.com
marcus.tomlinson@canonical.com
ken.vandine@canonical.com

License

MPL 2.0 (LICENSE)

Dependencies

dbus

More

Packages that depend on upower