:: Re: [DNG] suspend / hibernate with …
Góra strony
Delete this message
Reply to this message
Autor: Arnt Karlsen
Data:  
Dla: dng
Temat: Re: [DNG] suspend / hibernate with KDE
On Mon, 25 Jul 2016 23:05:35 +0200, Adam wrote in message
<20160725210535.GC15602@???>:

> On Mon, Jul 25, 2016 at 07:39:58AM +0200, Klaus Fuerstberger wrote:
> > Arnt Karlsen schrieb am 25.07.2016 um 00:18:
> > > ..I'm on ascii with daemon-version: 0.99.4, and it's been stuck
> > > there for a few months, do I need to downgrade or some such?
> >
> > Devuan 1.0 ships with upower 0.9.23. AFAIK newer daemon versions
> > only support systemd-based installations.
>
> I believe checking power levels does still work in 0.99, although I
> can't check right now (my only laptop is a flaky piece of arm with
> quirky vendor kernels that has power management working only on
> Android).
>
> What they did drop was suspend and hibernate, moving them to
> systemd. An alternative is to patch things relying on dropped parts
> of upower to use pm-utils instead.


..thanks, a quick demo dump:
root@celsius:/var/cache/apt/archives# upower -d
Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              Mon 25 Jul 2016 11:23:55 PM CEST (12578 seconds
ago) 
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'


Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               SMP
  model:                DELL MP4928C
  serial:               201
  power supply:         yes
  updated:              Tue 26 Jul 2016 02:51:55 AM CEST (98 seconds
ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    warning-level:       none
    energy:              86.58 Wh
    energy-empty:        0 Wh
    energy-full:         86.58 Wh
    energy-full-design:  86.58 Wh
    energy-rate:         0.0111 W
    voltage:             12.623 V
    percentage:          100%
    capacity:            24.0513%
    technology:          lithium-ion
    icon-name:          'battery-full-charged-symbolic'


Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Mon 25 Jul 2016 11:25:55 PM CEST (12458 seconds
ago) 
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               fully-charged
    warning-level:       none
    energy:              86.58 Wh
    energy-full:         86.58 Wh
    energy-rate:         0.0111 W
    percentage:          100%
    icon-name:          'battery-full-charged-symbolic'


Daemon:
  daemon-version:  0.99.4
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: [Invalid UTF-8]
No protocol specified
xprop:  unable to open display ':0'
root@celsius:/var/cache/apt/archives# 
root@celsius:/var/cache/apt/archives# upower -h
Usage:
  upower [OPTION...] UPower tool


Help Options:
  -h, --help           Show help options


Application Options:
  -e, --enumerate      Enumerate objects paths for devices
  -d, --dump           Dump all parameters for all objects
  -w, --wakeups        Get the wakeup data
  -m, --monitor        Monitor activity from the power daemon
  --monitor-detail     Monitor with detail
  -i, --show-info      Show information about object path
  -v, --version        Print version of client and daemon


root@celsius:/var/cache/apt/archives#



--
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
Scenarios always come in sets of three:
best case, worst case, and just in case.