Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280944 - gnome-extra/gnome-power-manager-2.26.4 suspend dilemma about --{en,dis}able-legacy-buttons
Summary: gnome-extra/gnome-power-manager-2.26.4 suspend dilemma about --{en,dis}able-l...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnome2.26
  Show dependency tree
 
Reported: 2009-08-10 02:51 UTC by Colin Macdonald
Modified: 2010-04-27 12:57 UTC (History)
1 user (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 Colin Macdonald 2009-08-10 02:51:09 UTC
With --disable-legacy-buttons, the suspend key (fn-f4 on my system) works perfectly.  But suspend on lid close doesn't work.

On the other hand, with --enable-legacy-buttons, suspend on lid close works perfectly.  But the suspend key causes the system to suspend twice (i.e., on resume, it immediately suspends again.

I've read about this "suspending twice" issue before (probably even on Gentoo bugzilla, although I don't see it right now).  For example:
https://bugzilla.redhat.com/show_bug.cgi?id=475585

I think what's going on here is that my system generates two events for fn-f4: one "legacy" and one new one.  It must only generate the legacy event for my lid switch.

My system is an Thinkpad X200, running Linux 2.6.30.4 and gnome-power-manager 2.26.4.


# emerge --info
Portage 2.2_rc36 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30.4 i686)
=================================================================
System uname: Linux-2.6.30.4-i686-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 10 Aug 2009 00:30:02 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distcc distlocks fixpackages preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa apache2 audiofile avahi berkdb blas bluetooth bzip2 cairo cdr cjk cli consolekit cracklib crypt cups curl dbus dga dri dts dv dvb dvd dvdr emboss encode esd evo exif expat f77 faad fam fbcon ffmpeg fftw firefox flac fortran gcj gd gdbm gif ginac glut gmp gnome gnome-keyring gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv idn imagemagick imlib isdnlog jack java jpeg jpeg2k lapack latex lcms leim libcaca libnotify libsamplerate lirc live mad matroska mikmod mmap mmx mng mono mozilla mp3 mp4 mpeg mudflap mysql nas ncurses networkmanager nls nptl nptlonly offensive ogg openal opengl openmp pam pcmcia pcre pdf perl plotutils png policykit ppds pppd pulseaudio python qhull qt3 qt3support qt4 quicktime radeon raw readline reflection rtc samba scanner sdk sdl session slang sndfile speex spell spl sqlite sse ssl startup-notification svg sysfs tcl tcltk tcpd theora threads tiff tk truetype unicode usb v4l v4l2 vcd vorbis win32codecs wmf wxwindows x264 x86 xcb xft xinerama xml xorg xosd xulrunner xv xvid zeroconf zlib" ALSA_CARDS="intel8x0 intel8x0m usb-audio" 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 authn_alias authn_anon 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="realmagic" USERLAND="GNU" VIDEO_CARDS="intel fbdev radeon v4l vesa mach64 r128 radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-10 06:27:30 UTC
we will stick to enable-legacy-buttons for this release because disabling it would break more setups than it would fix. To fix your double suspend issue, you need to inspect your hal/kernel setup. Hal might have some tricks that does not apply anymore since you have a recent kernel or some such.
Comment 2 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-08-11 05:23:16 UTC
(In reply to comment #1)
> we will stick to enable-legacy-buttons for this release because disabling it
> would break more setups than it would fix. 

In that case, 2.27 will see a lot of breakage...
Comment 3 Serge Gavrilov 2009-09-05 12:36:37 UTC
perhaps it is useful to introduce USE flag?
Comment 4 water 2009-10-03 16:33:57 UTC
(In reply to comment #1)
> we will stick to enable-legacy-buttons for this release because disabling it
> would break more setups than it would fix. To fix your double suspend issue,
> you need to inspect your hal/kernel setup. Hal might have some tricks that does
> not apply anymore since you have a recent kernel or some such.
> 

I have the same problem of twice resume. Do I need to update hal ? thanks
Comment 5 Pacho Ramos gentoo-dev 2010-01-23 17:29:51 UTC
Maybe the double-suspend issue could be related with upstream:
https://bugzilla.gnome.org/show_bug.cgi?id=597189
Comment 6 Pacho Ramos gentoo-dev 2010-04-17 09:34:53 UTC
How does g-p-m-2.28.3 behave?
Comment 7 Pacho Ramos gentoo-dev 2010-04-27 12:57:20 UTC
(In reply to comment #6)
> How does g-p-m-2.28.3 behave?
> 

Please get back to us