Ubuntu Pastebin

Paste from alf at Wed, 31 Aug 2016 15:27:44 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
Enable the mock battery:

$ gdbus call --session --dest "com.canonical.indicator.power" \
             --object-path /com/canonical/indicator/power/Testing \
             --method org.freedesktop.DBus.Properties.Set \
             com.canonical.indicator.power.Testing \
             MockBatteryEnabled \
             "<true>"

Set the mock battery's charge to 10%

$ gdbus call --session --dest "com.canonical.indicator.power" \
             --object-path /com/canonical/indicator/power/Testing \
             --method org.freedesktop.DBus.Properties.Set \
             com.canonical.indicator.power.Testing \
             MockBatteryLevel \
             "<uint32 10>"
Download as text