Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462476 - >=sys-power/upower-0.9.20-r1[-deprecated,systemd] causes gnome-base/gnome-shell to lose hibernate/suspend
Summary: >=sys-power/upower-0.9.20-r1[-deprecated,systemd] causes gnome-base/gnome-she...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-20 13:00 UTC by Albert W. Hopkins
Modified: 2013-08-23 09:38 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert W. Hopkins 2013-03-20 13:00:00 UTC
I notices this after yesterday when my laptop shutdown w/o warning.

Apparently it did not warn that my battery was low on power.  I then noticed I can't get the "suspend" option in gnome shell (it only shows shutdown). It then notices in the power settings in gnome the "Hibernate" option is greyed out.  It seems to be an issue with upower-0.9.20.  After downgrading to upower-0.9.19 all the lost functionality has returned.

I'm using systemd btw:

[ebuild     U  ] sys-power/upower-0.9.20 [0.9.19] USE="introspection systemd -doc -ios (-debug%)" 0 kB
Comment 2 Albert W. Hopkins 2013-03-20 13:54:17 UTC
(In reply to comment #1)
> upower-0.9.20 drops the usage of pm-utils for systemd users, it uses
> systemd's own hibernate and suspend:
> 
> http://cgit.freedesktop.org/upower/commit/
> ?id=372c2f8d2922add987683a24b5d69902e05e2f97
> 
> http://cgit.freedesktop.org/upower/commit/
> ?id=8bbf566dc8a80d129e202de619fe9da6f2e8b80b
> 
> http://cgit.freedesktop.org/upower/commit/
> ?id=9843589d2d80e6dc2b3f51338e64bd1da1c53860

Thank you.  I tried 0.9.20 again with "--enable-deprecated" and it appears to be working.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2013-03-20 14:15:13 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > upower-0.9.20 drops the usage of pm-utils for systemd users, it uses
> > systemd's own hibernate and suspend:
> > 
> > http://cgit.freedesktop.org/upower/commit/
> > ?id=372c2f8d2922add987683a24b5d69902e05e2f97
> > 
> > http://cgit.freedesktop.org/upower/commit/
> > ?id=8bbf566dc8a80d129e202de619fe9da6f2e8b80b
> > 
> > http://cgit.freedesktop.org/upower/commit/
> > ?id=9843589d2d80e6dc2b3f51338e64bd1da1c53860
> 
> Thank you.  I tried 0.9.20 again with "--enable-deprecated" and it appears
> to be working.

But you are supposed to use --disable-deprecated with systemd as pm-utils should not be required with systemd. UPower just tells systemd to hibernate or suspend.
Comment 4 Martin Wegner 2013-03-20 14:39:10 UTC
I also lost all suspend functionality in Gnome 3 after upgrading to upower-0.9.20. I am also using systemd.

$ systemctl suspend 
works from the console, however, so systemd is able to suspend the system.

But gnome-shell lacks (at least) all suspend features when upower-0.9.20 is installed: There is no suspend menu entry and it does not suspend my laptop and lock the screen when closing the lid although it is configured to.

Downgrading to 0.9.19 "fixes" it.

$ emerge -pv systemd upower
[ebuild   R    ] sys-apps/systemd-198-r1  USE="kmod pam tcpd -acl -audit -cryptsetup -efi -gcrypt -http -lzma -python -qrcode (-selinux) -vanilla -xattr" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 2,091 kB[ebuild   R    ] sys-power/upower-0.9.20  USE="introspection systemd -doc -ios" 0 kB

$ emerge --info
Portage 2.1.11.57 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.2, glibc-2.16.0, 3.8.3-gentoo-r1-odin x86_64)
=================================================================
System uname: Linux-3.8.3-gentoo-r1-odin-x86_64-Intel-R-_Core-TM-_i5_CPU_M_560_@_2.67GHz-with-gentoo-2.2
KiB Mem:     8021188 total,   7299452 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 20 Mar 2013 12:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo systemd gentoo-haskell x-ibrdtn gnome odin
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2 --load-average=8"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org rsync://mirror.opteamax.de/gentoo/ http://mirror.netcologne.de/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/systemd /var/lib/layman/haskell /var/lib/layman/ibrdtn /var/lib/layman/gnome /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 amr avahi berkdb bluetooth branding bzip2 cairo cdda cli colord cracklib crypt cups cxx dbus dirac divx dri dts dvb dvd emboss encode exif faac faad fam ffmpeg firefox flac fuse gdbm gif gnome gnome-keyring gnome-online-accounts gstreamer gtk gtk3 iconv idn inotify ipv6 jpeg lame lastfm lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline realmedia samba schroedinger sdl sendto session socialweb spell sse sse2 ssl startup-notification svg syslog systemd tcpd telepathy theora tiff truetype udev udisks unicode upower usb v4l v4l2 vim-syntax vorbis wmp wxwidgets x264 xcb xinerama xml xv xvid zlib zsh-completion" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2013-03-20 15:46:42 UTC
+*upower-0.9.20-r1 (20 Mar 2013)
+
+  20 Mar 2013; Samuli Suominen <ssuominen@gentoo.org> +upower-0.9.20-r1.ebuild:
+  Use package specific libexecdir and set QA_MULTILIB_PATHS for it. Introduce
+  USE="+deprecated" so systemd users can also enable the use of pm-utils (for
+  now, while waiting for gnome-shell to adapt) wrt #462476 by Albert W. Hopkins
+  and Martin Wegner

So I guess this bug belongs now to the gnome-base/gnome-shell maintainers so that they make it work with sys-power/upower[-deprecated,systemd]
Comment 6 C. Wijtmans 2013-03-20 23:45:39 UTC
Thank you for breaking my system.
Comment 7 C. Wijtmans 2013-03-20 23:55:48 UTC
Add '>=sys-power/upower-0.9.20-r1[deprecated]' dependency to 'gnome-base/gnome-shell' or something instead of bothering other desktop shell users please.
Comment 8 C. Wijtmans 2013-03-21 00:01:35 UTC
!!! The ebuild selected to satisfy "sys-power/upower" has unmet requirements.
- sys-power/upower-0.9.20-r1::gentoo USE="introspection -deprecated -doc -ios (-systemd)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    kernel_linux? ( !deprecated? ( systemd ) )
Comment 9 Michael Hampicke 2013-04-03 20:14:24 UTC
I am not sure that my problem is related to this bug, because I am running the masked version 3.8 of gnome, but I also lost all suspend functionality (no more suspend or hibernate in the gnome menu).
I have USE="deprecated" set for upower, and I have tried with both versions (0.9.19 and 0.9.20-r2), but it does not make a difference for gnome. Suspending my machine with pm-suspend works fine.

I _do not_ run systemd.
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2013-04-03 20:48:07 UTC
(In reply to comment #6)
> Thank you for breaking my system.

The ebuild has USE="deprecated" by default enabled, which is required for non-systemd users, so you have set USE="-deprecated" yourself and then you spam on bugs like this? That's very polite. Use forums for help about using USE flags if you need; http://forums.gentoo.org/

(In reply to comment #9)
> I am not sure that my problem is related to this bug, because I am running
> the masked version 3.8 of gnome, but I also lost all suspend functionality
> (no more suspend or hibernate in the gnome menu).
> I have USE="deprecated" set for upower, and I have tried with both versions
> (0.9.19 and 0.9.20-r2), but it does not make a difference for gnome.
> Suspending my machine with pm-suspend works fine.
> 
> I _do not_ run systemd.

If you have USE="deprecated" enabled, it's not related to this bug at all, this is about USE="-deprecated". This is about the difference of using pm-utils from upower, or not using them.
Also, http://forums.gentoo.org/ or a new bug.
I don't want to start discussion here, but I'd verify GNOME 3.8.x even works with ConsoleKit anymore (thus, that would make systemd a "hard" dependency of it).

But let's use this bug for what's it's meant for: getting systemd + upower with USE="-deprecated" working with latest GNOME.

Thanks.
Comment 11 Pacho Ramos gentoo-dev 2013-08-23 09:38:16 UTC
3.8 doesn't seem to require "deprecated"