Since the stabilization of kde 4.3.3, including powerdevil-4.3.3, suspend and hibernate through powerdevil do not work anymore. -) Closing the lid does nothing/ -) clicking on "Suspend" or "Hibernate" in the Battery-Plasmoid does nothing. -) Running "pm-suspend" on the shell works fine. -) X is running with hal support. -) Powerdevil reports that suspend is supported in its config module. -) Everything worked fine with kde 4.3.1. Reproducible: Always Actual Results: No suspend through powerdevil emerge --info Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_L7500_@_1.60GHz-with-gentoo-2.0.1 Timestamp of tree: Fri, 11 Dec 2009 08:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.4 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.3 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.tiscali.nl/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US de ja es fr it" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/tom-overlay /home/tom/gentoo/sci" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa anthy apache2 avahi bash-completion berkdb bluetooth branding bzip2 cairo canna cddb cdparanoia cdr cjk cli consolekit cracklib crypt ctype cups curl cxx daap dbus djvu dri dts dvd dvdr eds emacs encode evo expat fam fbcon ffmpeg firefox flac fortran freewnn ftp gd gdbm gif gimp glut gmp gnutls gpm graphviz gstreamer gtk guile hal hdaps iconv ieee1394 imagemagick imap imlib ipod ipv6 java javascript jpeg kde latex ldap leim libnotify lm_sensors m17n-lib mad migemo mikmod mime mmx mng modules mp3 mp4 mpeg mplayer mudflap mule musicbrainz mysql mysqli ncurses nls nptl nptlonly nsplugin obex ocaml ogg oggvorbis openal opengl openmp pam pcmcia pcre pdf perl php plasma plotutils png policykit ppds pppd python qt3support qt4 quicktime readline reflection samba sasl sdl semantic-desktop session slang spell spl sqlite3 sse ssl startup-notification svg sysfs tcpd texlive theora threads thunar tiff tk truetype unicode usb v4l v4l2 visualization vorbis wifi win32codecs wxwindows x264 x86 xcb xcomposite xine xinerama xml xorg xulrunner xv xvid zeroconf zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US de ja es fr it" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
What pm-utils and hal versions?
(In reply to comment #1) > What pm-utils and hal versions? > I am using the x86 stable versions: pm-utils-1.2.5 with use flags: alsa video_cards_intel hal-0.5.13-r2 with use flags: X acpi consolekit crypt kernel_linux laptop policykit Another observation: Powerdevil shows under "Capabilities" a warning that consolekit was not found active or Powerdevil cannot connect to it... /etc/init.d/consolekit status shows "stopped" but it cannot be started because /etc/init.d/consolekit start * Starting ConsoleKit daemon... * start-stop-daemon: /usr/sbin/console-kit-daemon is already running
(In reply to comment #2) > (In reply to comment #1) > > What pm-utils and hal versions? > > I am using the x86 stable versions: > pm-utils-1.2.5 with use flags: alsa video_cards_intel > hal-0.5.13-r2 with use flags: X acpi consolekit crypt kernel_linux laptop > policykit > > Another observation: > Powerdevil shows under "Capabilities" a warning that consolekit was not found > active or Powerdevil cannot connect to it... hmm, did you enable the consolekit use flag in /etc/make.conf or for each package in /etc/portage/package.use{/*} ? Make sure you built kdm and hal with consolekit. Also check if you enabled policykit for consolekit and hal and that you have policykit-kde installed.
> hmm, did you enable the consolekit use flag in /etc/make.conf or for each > package in /etc/portage/package.use{/*} ? Make sure you built kdm and hal with > consolekit. Also check if you enabled policykit for consolekit and hal and that > you have policykit-kde installed. -) I rebooted with consolekit now in the default runlevel. This does not change anything. -) I have the consolekit use flag enabled in /etc/make.conf. -) I do not use kdm, but startx with /usr/bin/startkde script. -) hal and consolekit have the policykit useflag set, policykit-kde is installed. -) As it worked fine before, did consolekit/policykit change from kde-4.3.1 to 4.3.3 ? -) kde-4.3.3 went stable the same day like some new X packages (xorg-server-1.6.5-r1 and deps). Could any of these cause this?
Bug #281042 seems to discuss the consolekit issue. I am not sure whether it is the source of the suspend problem.
Ok, after some tideous investigation I solved this one. It is a policy issue. My user is not allowed to suspend the computer. This can be changed by root if he starts up the kde system settings and then under "Advanced->PolicyKit Authorization" identifies the correct entries under org.freedesktop and sets them to an appropriate value. For instance org.freedesktop.hal.power-management.suspend should have the implicit authorization "anyone -> Yes" to make powerdevil work again. I have no idea what triggered this change in my systems configuration. Now, it seems like a configuration issue, where the package maintainer of these rules should decide upon standard values, like whether users are allows to suspend the system. Is it still a bug? If yes, against which package?
(In reply to comment #5) > Bug #281042 seems to discuss the consolekit issue. I am not sure whether it is > the source of the suspend problem. And i forgot to mention. It seems unrelated to the above problem which still persists.
It is a consolkit problem. I had the same problem with consolekit-0.4.1. Changed back to consolekit-0.3.0-r2 and kde and powedevil works for suspend. Maybe the ebuild for powerdevil should be changed to request consolekit-0.3.0-r2.
BTW: Problem persists with powerdevil-4.3.4
I do have powerdevil-4.3.4 installed, and with consolekit-0.3.0-r2 suspend works for me.
Please note that by comment 6, I can also suspend after changing some policies.
Sorry. I should read the comments better. :-) Putting back consolekit-0.4.1 and (Make sure that the configuration file is updated.) and doing comment #6 (except that I gave explicit permition to my user, powerdevil-4.3.4 works fine for me.
Something happend. It might be hal related. It stopped working after updates with consolekit-0.4.1. I had to go back to consolekit-0.3.0-r2. It works now.
-) I can't reproduce any failure here -) Initial problem was a configuration problem during migration If you're having trouble with consolekit please open a new bug or comment on the existing ones. Closing. Thanks.