Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[solved] Suspend/Hibernate not working with Gnome 2.28

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
pizzach
Apprentice
Apprentice
User avatar
Posts: 195
Joined: Mon Aug 28, 2006 8:55 pm

[solved] Suspend/Hibernate not working with Gnome 2.28

  • Quote

Post by pizzach » Wed May 12, 2010 4:21 am

It should supposedly work, but it doesn't. Any one have any ideas where to start? I do get the buttons when shutting down, but they do nothing. The computer also doesn't suspend when I close the lid to my laptop. My only option is to use pm-suspend and pm-hibernate directly at the moment.
Last edited by pizzach on Wed Jul 14, 2010 3:27 am, edited 1 time in total.
Top
Gankfest
l33t
l33t
User avatar
Posts: 946
Joined: Wed Aug 01, 2007 4:50 am
Location: Miami Beach, FL
Contact:
Contact Gankfest
Website

  • Quote

Post by Gankfest » Wed May 12, 2010 4:37 am

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.

This might be of some help as well, but I don't use a labtop so have never tried it here
Gankfest™ (>")> ~*

Everyone has to start somewhere, it depends on where you end up that counts! (>")>
Top
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

  • Quote

Post by dE_logics » Wed May 12, 2010 6:22 am

How about adding yourself to a few groups?
My blog
Top
pizzach
Apprentice
Apprentice
User avatar
Posts: 195
Joined: Mon Aug 28, 2006 8:55 pm

  • Quote

Post by pizzach » Wed May 12, 2010 10:32 am

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.
Gnome doesn't run pm-suspend directly, it goes through hal. Or at least it used to. Now it goes through consolekit apparently.

My current groups are lp wheel audio cdrom video games usb users plugdev qemu.
Top
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

  • Quote

Post by dE_logics » Wed May 12, 2010 1:27 pm

Speaking of which did you compile x/gnome/everything with HAL support?
My blog
Top
pizzach
Apprentice
Apprentice
User avatar
Posts: 195
Joined: Mon Aug 28, 2006 8:55 pm

  • Quote

Post by pizzach » Wed May 12, 2010 1:53 pm

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"
Top
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

  • Quote

Post by dE_logics » Thu May 13, 2010 2:34 am

Try doing it as root.
My blog
Top
pizzach
Apprentice
Apprentice
User avatar
Posts: 195
Joined: Mon Aug 28, 2006 8:55 pm

  • Quote

Post by pizzach » Thu May 13, 2010 2:42 am

dE_logics, I can, but I generally don't logging into the whole gnome environment as root. I wonder if I should try GDM to see if it fixes anything. I currently use startx with .xinitrc having:

LANG="ja_JP.UTF-8" LC_CTYPE="en_US.UTF-8" XDG_MENU_PREFIX="/gnome-" XSESSION="Gnome" exec dbus-launch gnome-session

There was someone else with my issue in the bug reports, but the Gentoo Devs ignored him. This may be bug filing worthy.
http://bugs.gentoo.org/287025
Top
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

  • Quote

Post by dE_logics » Fri May 14, 2010 9:08 am

OOOKKKK!!!

Consolkit problem. This has to be one of Gnome-Ubuntu strategies (the 2 being the same thing).

http://ubuntuforums.org/showthread.php?t=1481790

You see dude, with Ubuntu, Gnome is becoming trash...it's time you move to KDE or xfce. KDE takes a bit of time to adjust the the features just make it worth it. BTW metacity is so slow!

For sake of 'integration' and 'release cycles' the make their own good for nothing monopolistic applications which you HAVE to use.

Future look of gnome -


http://www.guidebookgallery.org/pics/gu ... nxppro.png


Anyway, if you're still planning to use Gnome, ensure that you actually have the consolekit flag working.
My blog
Top
pizzach
Apprentice
Apprentice
User avatar
Posts: 195
Joined: Mon Aug 28, 2006 8:55 pm

  • Quote

Post by pizzach » Fri May 14, 2010 9:13 am

Meh. Gnome has been slowly turning into a buggy mess leading up to Gnome 3.0. I am hoping things start reversing after that, but have been considering switching to XFCE or at least Gnome light.
Top
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

  • Quote

Post by dE_logics » Sat May 15, 2010 5:00 am

Any application which sticks with Ubuntu -- we should stay away from it, since it's made for Windows fools and soon will be polluted with bugs and good for thing fancy ideas.

That's the downside of Linux getting popularity.
My blog
Top
pizzach
Apprentice
Apprentice
User avatar
Posts: 195
Joined: Mon Aug 28, 2006 8:55 pm

  • Quote

Post by pizzach » Mon May 17, 2010 6:26 pm

I generally agree. Though the current Ubuntu interface definitely is doing it's best to look like Mac OS X this time. Most of their stuff is as far away from vanilla you can get anyway. Still hoping for some things to stabilize when Gnome 3.0 hits.
Top
pizzach
Apprentice
Apprentice
User avatar
Posts: 195
Joined: Mon Aug 28, 2006 8:55 pm

solved

  • Quote

Post by pizzach » Wed Jul 14, 2010 3:26 am

Finally figured this out. While the answer was not written in the gnome faq, it was written in the XFCE faq. In my xinitrc I had to switch dbus-launch-session for ck-launch-session as dbus is depricated. Everything works great now.

The exact line I use is:

Code: Select all

XDG_MENU_PREFIX="/gnome-" XSESSION="Gnome" exec ck-launch-session gnome-session
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

Re: solved

  • Quote

Post by VoidMage » Wed Jul 14, 2010 12:46 pm

pizzach wrote:... as dbus is depricated.
Huh ? Say no to drugs :wink:
Last time I checked dbus was being integrated more strongly than before.
I.e. new glib will have new api, that, while general, was created to make it
easy to send it via dbus (GVariant). There's still talk about creating a GDbus module
(though that one doesn't look like it's coming any time soon).
Besides, consolekit runs on dbus.
Top
pizzach
Apprentice
Apprentice
User avatar
Posts: 195
Joined: Mon Aug 28, 2006 8:55 pm

  • Quote

Post by pizzach » Wed Jul 14, 2010 5:33 pm

I don't remember where I read it. Maybe it was just directly running dbus was deprecated. I only remember what I read because I said "huh" to myself in surprise.
Top
Post Reply

15 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic