Gnome doesn't run pm-suspend directly, it goes through hal. Or at least it used to. Now it goes through consolekit apparently.You need to give your user permission to use pm-suspend since it is a default root permission with chmod or sudoers, also you need to write scripts to get the buttons to work since your user doesn't have permission to hibernate or suspend by default.
Code: Select all
cubber gwaei # emerge --info | grep hal
USE="X acl acpi alsa apache2 archive bash-completion berkdb bzip2 cairo cjk cleartype cli consolekit corefonts cracklib crypt cups cxx dbus dhcpcd directfb disk-partition dri ffmpeg fortran gd gdbm gif gimp glitz gnome gnome-keyring gnutls gphoto2 gpm gstreamer gtk [b]hal[/b] iconv ipv6 java jpeg kqemu laptop libnotify madwifi midi mmx modules mp3 mudflap ncurses networkmanager nls nptl nptlonly nss ntfs objc ogg openal opengl openmp pam pcre perl png policykit pppd python readline reflection restrict-javascript sdl session spell spl sse sse2 ssl svg sysfs tcpd tiff timidity truetype type1 unicode unique usb v4l2 x86 xcb xcomposite xml xorg xv zlib" 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 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 joystick synaptics void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ja en" RUBY_TARGETS="ruby18" 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"Code: Select all
XDG_MENU_PREFIX="/gnome-" XSESSION="Gnome" exec ck-launch-session gnome-sessionHuh ? Say no to drugspizzach wrote:... as dbus is depricated.