Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automatic hibernate when batery level critical fail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jrevi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2005
Posts: 129

PostPosted: Thu Aug 11, 2016 2:56 pm    Post subject: Automatic hibernate when batery level critical fail Reply with quote

Hi all,

I have a problem that I cannot resolve since weeks now. I'm using gnome-shell for my day to day work and I can hibernate, suspend without any problem when I explicitly ask it from the menu. My problem appears when the batery level become critical and therefor, the system try to hibernate automatically: it simply fail. In the logs I have:

Code:
juil. 28 17:03:06 ordiwork upowerd[7495]: (upowerd:7495): GLib-CRITICAL **: g_variant_new_object_path: assertion 'g_variant_is_object_path (object_path)' failed
juil. 28 17:03:06 ordiwork kernel: upowerd[7495]: segfault at 20 ip 00007fab30883f60 sp 00007ffc1e204f58 error 4 in libglib-2.0.so.0.4600.2[7fab30800000+137000]
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-shell:2546): GLib-GObject-WARNING **: g_object_notify: object class 'UpClient' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork systemd[1]: upower.service: Main process exited, code=killed, status=11/SEGV
juil. 28 17:03:06 ordiwork systemd[1]: upower.service: Unit entered failed state.
juil. 28 17:03:06 ordiwork systemd[1]: upower.service: Failed with result 'signal'.
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-shell:2546): GLib-GObject-WARNING **: g_object_notify: object class 'UpClient' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpClient' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpClient' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:06 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork systemd[1]: upower.service: Service hold-off time over, scheduling restart.
juil. 28 17:03:07 ordiwork systemd[1]: Stopped Daemon for power management.
juil. 28 17:03:07 ordiwork systemd[1]: Starting Daemon for power management...
juil. 28 17:03:07 ordiwork systemd[1]: Started Daemon for power management.
juil. 28 17:03:07 ordiwork upowerd[7541]: (upowerd:7541): GLib-CRITICAL **: g_variant_new_object_path: assertion 'g_variant_is_object_path (object_path)' failed
juil. 28 17:03:07 ordiwork kernel: upowerd[7541]: segfault at 20 ip 00007f39591fff60 sp 00007fff8ab13798 error 4 in libglib-2.0.so.0.4600.2[7f395917c000+137000]
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-shell:2546): GLib-GObject-WARNING **: g_object_notify: object class 'UpClient' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork systemd[1]: upower.service: Main process exited, code=killed, status=11/SEGV
juil. 28 17:03:07 ordiwork systemd[1]: upower.service: Unit entered failed state.
juil. 28 17:03:07 ordiwork systemd[1]: upower.service: Failed with result 'signal'.
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-shell:2546): GLib-GObject-WARNING **: g_object_notify: object class 'UpClient' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpClient' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpClient' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork systemd[1]: upower.service: Service hold-off time over, scheduling restart.
juil. 28 17:03:07 ordiwork systemd[1]: Stopped Daemon for power management.
juil. 28 17:03:07 ordiwork systemd[1]: Starting Daemon for power management...
juil. 28 17:03:07 ordiwork systemd[1]: Started Daemon for power management.
juil. 28 17:03:07 ordiwork upowerd[7583]: (upowerd:7583): GLib-CRITICAL **: g_variant_new_object_path: assertion 'g_variant_is_object_path (object_path)' failed
juil. 28 17:03:07 ordiwork kernel: upowerd[7583]: segfault at 20 ip 00007efeb14b3f60 sp 00007fff7f4bb6f8 error 4 in libglib-2.0.so.0.4600.2[7efeb1430000+137000]
juil. 28 17:03:07 ordiwork systemd[1]: upower.service: Main process exited, code=killed, status=11/SEGV
juil. 28 17:03:07 ordiwork systemd[1]: upower.service: Unit entered failed state.
juil. 28 17:03:07 ordiwork systemd[1]: upower.service: Failed with result 'signal'.
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-shell:2546): GLib-GObject-WARNING **: g_object_notify: object class 'UpClient' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpClient' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpClient' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork gnome-session[2406]: (gnome-settings-daemon:2476): GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no property named 'g-name-owner'
juil. 28 17:03:07 ordiwork systemd[1]: upower.service: Service hold-off time over, scheduling restart.
juil. 28 17:03:07 ordiwork systemd[1]: Stopped Daemon for power management.
juil. 28 17:03:07 ordiwork systemd[1]: upower.service: Start request repeated too quickly.
juil. 28 17:03:07 ordiwork systemd[1]: Failed to start Daemon for power management.
juil. 28 17:03:07 ordiwork systemd[1]: upower.service: Unit entered failed state.
juil. 28 17:03:07 ordiwork systemd[1]: upower.service: Failed with result 'start-limit'.


So it seems that upower segfault in this case but I cannot reporduce it manually and don't know exactly where to start.

Some information from upower:
Code:
[jerome:~] $ upower -d
Device: /org/freedesktop/UPower/devices/line_power_AC0
  native-path:          AC0
  power supply:         yes
  updated:              jeu. 11 août 2016 16:45:24 CEST (53 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:               LGC-LGC
  model:                X883815
  serial:               1177427204
  power supply:         yes
  updated:              jeu. 11 août 2016 16:45:24 CEST (53 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              2,6676 Wh
    energy-empty:        0 Wh
    energy-full:         40,0292 Wh
    energy-full-design:  42,1572 Wh
    energy-rate:         8,1396 W
    voltage:             7,503 V
    time to full:        4,6 hours
    percentage:          6%
    capacity:            94,9522%
    technology:          lithium-ion
    icon-name:          'battery-caution-charging-symbolic'
  History (charge):
    1470926724   0,000   unknown
  History (rate):
    1470926724   0,000   unknown

Device: /org/freedesktop/UPower/devices/mouse_hid_00o1fo20of6o63ob8_battery
  native-path:          hid-00:1f:20:f6:63:b8-battery
  model:                Bluetooth Mouse M557
  power supply:         no
  updated:              jeu. 11 août 2016 16:45:24 CEST (53 seconds ago)
  has history:          yes
  has statistics:       yes
  mouse
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    percentage:          88%
    icon-name:          'battery-full-symbolic'
  History (charge):
    1470926724   0,000   unknown
  History (rate):
    1470926724   0,000   unknown

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              jeu. 11 août 2016 16:45:24 CEST (53 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               charging
    warning-level:       none
    energy:              2,6676 Wh
    energy-full:         40,0292 Wh
    energy-rate:         8,1396 W
    time to full:        4,6 hours
    percentage:          6%
    icon-name:          'battery-caution-charging-symbolic'

Daemon:
  daemon-version:  0.99.4
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: (null)


Here is also my emerge info:
Code:
Portage 2.2.28 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.3, glibc-2.22-r4, 4.6.5-gentoo-surfacepro3 x86_64)
=================================================================
System uname: Linux-4.6.5-gentoo-surfacepro3-x86_64-Intel-R-_Core-TM-_i7-4650U_CPU_@_1.70GHz-with-gentoo-2.2
KiB Mem:     8077588 total,    677944 free
KiB Swap:    9011196 total,   9011056 free
Timestamp of repository gentoo: Thu, 11 Aug 2016 10:00:02 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

docker
    location: /var/lib/layman/docker
    masters: gentoo
    priority: 0

anders-larsson
    location: /var/lib/layman/anders-larsson
    masters: gentoo
    priority: 1

zugaina
    location: /var/lib/layman/zugaina
    masters: gentoo
    priority: 2

bonespirit
    location: /var/lib/layman/bonespirit
    masters: gentoo
    priority: 3

fkmclane
    location: /var/lib/layman/fkmclane
    masters: gentoo
    priority: 4

wichtounet
    location: /var/lib/layman/wichtounet
    masters: gentoo
    priority: 5

wjn-overlay
    location: /var/lib/layman/wjn-overlay
    masters: gentoo
    priority: 6

MyOverlay
    location: /home/jerome/Documents/PortageOverlay
    masters: gentoo
    priority: 7

Pandora
    location: /home/jerome/Documents/MAAT/SourceCode/Sources/maatG/fr.maatg_infrastructure_gentoo_ovelays_pandora
    masters: gentoo
    priority: 8

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk iconv icu introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support readline samba sdl seccomp session spell sse sse2 ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vim-syntax vorbis wifi wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Any help will be appreciated.

Best,
Jerome
Back to top
View user's profile Send private message
jrevi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2005
Posts: 129

PostPosted: Wed Aug 17, 2016 10:01 am    Post subject: Reply with quote

nobody ? ... :(
Back to top
View user's profile Send private message
sebB
l33t
l33t


Joined: 02 Mar 2011
Posts: 730
Location: S.O. France

PostPosted: Thu Aug 18, 2016 5:42 pm    Post subject: Reply with quote

Code:
Daemon:
.
.

 critical-action: (null)

I think your problem is here. You should have the value set in UPower.conf.
On my system, I've try changing this value to hibernate but nothing change in upower -d.

What systemctl status upower.service say?
Back to top
View user's profile Send private message
jrevi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2005
Posts: 129

PostPosted: Fri Aug 19, 2016 7:31 am    Post subject: Reply with quote

Thanks a lot sebB for the answer.

Here is the requested info

Code:
[jerome:~] $ systemctl status upower.service
● upower.service - Daemon for power management
   Loaded: loaded (/usr/lib64/systemd/system/upower.service; disabled; vendor preset: disabled)
   Active: active (running) since ven. 2016-08-19 09:20:43 CEST; 4min 18s ago
     Docs: man:upowerd(8)
 Main PID: 2586 (upowerd)
   Memory: 2.7M
      CPU: 249ms
   CGroup: /system.slice/upower.service
           └─2586 /usr/lib/upower/upowerd

août 19 09:20:43 ordiwork systemd[1]: Starting Daemon for power management...
août 19 09:20:43 ordiwork systemd[1]: Started Daemon for power management.



Code:
[jerome:~] $ cat /etc/UPower/UPower.conf
# Only the system vendor should modify this file, ordinary users
# should not have to change anything.

[UPower]

# Enable the Watts Up Pro device.
#
# The Watts Up Pro contains a generic FTDI USB device without a specific
# vendor and product ID. When we probe for WUP devices, we can cause
# the user to get a perplexing "Device or resource busy" error when
# attempting to use their non-WUP device.
#
# The generic FTDI device is known to also be used on:
#
# - Sparkfun FT232 breakout board
# - Parallax Propeller
#
# default=false
EnableWattsUpPro=false

# Don't poll the kernel for battery level changes.
#
# Some hardware will send us battery level changes through
# events, rather than us having to poll for it. This option
# allows disabling polling for hardware that sends out events.
#
# default=false
NoPollBatteries=false

# Do we ignore the lid state
#
# Some laptops are broken. The lid state is either inverted, or stuck
# on or off. We can't do much to fix these problems, but this is a way
# for users to make the laptop panel vanish, a state that might be used
# by a couple of user-space daemons. On Linux systems, see also
# logind.conf(5).
#
# default=false
IgnoreLid=false

# Policy for warnings and action based on battery levels
#
# Whether battery percentage based policy should be used. The default
# is to use the time left, change to true to use the percentage, which
# should work around broken firmwares. It is also more reliable than
# the time left (frantically saving all your files is going to use more
# battery than letting it rest for example).
# default=true
UsePercentageForPolicy=true

# When UsePercentageForPolicy is true, the levels at which UPower will
# consider the battery low, critical, or take action for the critical
# battery level.
#
# This will also be used for batteries which don't have time information
# such as that of peripherals.
#
# If any value is invalid, or not in descending order, the defaults
# will be used.
#
# Defaults:
# PercentageLow=10
# PercentageCritical=3
# PercentageAction=2
PercentageLow=10
PercentageCritical=3
PercentageAction=2

# When UsePercentageForPolicy is false, the time remaining at which UPower
# will consider the battery low, critical, or take action for the critical
# battery level.
#
# If any value is invalid, or not in descending order, the defaults
# will be used.
#
# Defaults:
# TimeLow=1200
# TimeCritical=300
# TimeAction=120
TimeLow=1200
TimeCritical=300
TimeAction=120

# The action to take when "TimeAction" or "PercentageAction" above has been
# reached for the batteries (UPS or laptop batteries) supplying the computer
#
# Possible values are:
# PowerOff
# Hibernate
# HybridSleep
#
# If HybridSleep isn't available, Hibernate will be used
# If Hibernate isn't available, PowerOff will be used
CriticalPowerAction=HybridSleep



I also found this file which could be of interrest:

Code:
jerome:~] $ cat /etc/dbus-1/system.d/org.freedesktop.UPower.conf
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
  <!-- Only root can own the service -->
  <policy user="root">
    <allow own="org.freedesktop.UPower"/>
  </policy>
  <policy context="default">

    <allow send_destination="org.freedesktop.UPower"
           send_interface="org.freedesktop.DBus.Introspectable"/>

    <allow send_destination="org.freedesktop.UPower"
           send_interface="org.freedesktop.DBus.Peer"/>
    <allow send_destination="org.freedesktop.UPower"
           send_interface="org.freedesktop.DBus.Properties"/>
    <allow send_destination="org.freedesktop.UPower.Device"
           send_interface="org.freedesktop.DBus.Properties"/>
    <allow send_destination="org.freedesktop.UPower.KbdBacklight"
           send_interface="org.freedesktop.DBus.Properties"/>
    <allow send_destination="org.freedesktop.UPower.Wakeups"
           send_interface="org.freedesktop.DBus.Properties"/>

    <allow send_destination="org.freedesktop.UPower"
           send_interface="org.freedesktop.UPower"/>
    <allow send_destination="org.freedesktop.UPower"
           send_interface="org.freedesktop.UPower.Device"/>
    <allow send_destination="org.freedesktop.UPower"
           send_interface="org.freedesktop.UPower.KbdBacklight"/>
    <allow send_destination="org.freedesktop.UPower"
      send_interface="org.freedesktop.UPower.Wakeups"/>
  </policy>
</busconfig>


Best,
Jerome
Back to top
View user's profile Send private message
jrevi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2005
Posts: 129

PostPosted: Mon Aug 22, 2016 9:20 pm    Post subject: Reply with quote

Somebody have an idea ?
Back to top
View user's profile Send private message
jrevi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2005
Posts: 129

PostPosted: Mon Aug 22, 2016 9:21 pm    Post subject: Reply with quote

by the way, I was more thinking that my problem could comes from this segfault:

Quote:
juil. 28 17:03:07 ordiwork kernel: upowerd[7583]: segfault at 20 ip 00007efeb14b3f60 sp 00007fff7f4bb6f8 error 4 in libglib-2.0.so.0.4600.2[7efeb1430000+137000]
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Tue Aug 23, 2016 10:12 am    Post subject: Reply with quote

jrevi wrote:
by the way, I was more thinking that my problem could comes from this segfault:

Quote:
juil. 28 17:03:07 ordiwork kernel: upowerd[7583]: segfault at 20 ip 00007efeb14b3f60 sp 00007fff7f4bb6f8 error 4 in libglib-2.0.so.0.4600.2[7efeb1430000+137000]


you may recompile that package

I also get such issues with newest gcc ~amd64 and sometimes recompiling these packages or packages which may relate to those sometimes fix those random issues
Back to top
View user's profile Send private message
FroL_Onn
n00b
n00b


Joined: 20 Oct 2013
Posts: 55

PostPosted: Sat Sep 10, 2016 5:19 pm    Post subject: Reply with quote

jrevi wrote:
by the way, I was more thinking that my problem could comes from this segfault:

Quote:
juil. 28 17:03:07 ordiwork kernel: upowerd[7583]: segfault at 20 ip 00007efeb14b3f60 sp 00007fff7f4bb6f8 error 4 in libglib-2.0.so.0.4600.2[7efeb1430000+137000]


Hello! Have the same problem. Trying to downgrade from upower-0.99.4 back to upower-0.99.2-r1 seems to fix this for me.
According to this bug the issue will be soon resoled in newer versions.

Does this downgrade help you?

Sincerely,
FroL_Onn

EDIT:
Ah, and "of course" - because this is GNOME - one should use
Code:
UsePercentageForPolicy=false

at /etc/UPower/UPower.conf

Don't know why, but time for shutting down works, percentage - does not...

EDIT2:
well... it turned out, hibernation still does not work!
The segfault is gone, but the laptop only shuts down instead!!!
I've managed to turn hibernation on by laptop-mode-tools but
NOT with upower though
Code:
CriticalPowerAction=HybridSleep

and I have hibernation capable laptop
It still automatically DOES NOT hibernate! Powers off instead!

Only configuring laptop-mode-tools saved this for me...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum