Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to suspend the computer with normal user in Gnome
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Sun Nov 28, 2010 3:02 pm    Post subject: How to suspend the computer with normal user in Gnome Reply with quote

I can shutdown my computer with normal user in Gnome Desktop.but it doesn't work when i choose suspend for save my workspace to RAM.
what is the problem?thanks to tell me something about it!
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 888
Location: Germany

PostPosted: Sun Nov 28, 2010 3:09 pm    Post subject: Reply with quote

Hello,
can you suspend as root?

If you cannot suspend as root you might have missed to configure your kernel for suspending.

You can find it here:

Code:

General Setup --->
     [*] Initial RAM filesystem and RAM disk (initramfs/initrd) support
Power management and ACPI options  --->
     [*] Power Management support
     [*] Suspend to RAM and standby   
     [*] Hibernation (aka 'suspend to disk')
     ()    Default resume partition
     [*] ACPI (Advanced Configuration and Power Interface) Support  --->

_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Sun Nov 28, 2010 3:27 pm    Post subject: Reply with quote

I can suspend as root with executed
Code:
 # hibernate-ram

The kernel configuration is the same as what you shows me.
what is the matter? I am very confused
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Mon Nov 29, 2010 4:22 am    Post subject: Reply with quote

I click the button "suspend" with mouse in the graphical window , there is no response, how to see what command i executed and error detail in a terminal.
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Mon Nov 29, 2010 11:33 am    Post subject: Reply with quote

do I have to join any group or start any daemon?
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Thu Dec 16, 2010 4:49 am    Post subject: Reply with quote

help me!
can you suspend your computer using normal user?how to do?
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Thu Dec 16, 2010 5:59 am    Post subject: Reply with quote

I don't use GNOME, I used XFCE. Nonetheless, I have two suspicions based on XFCE on Arch:

1) You don't have PolicyKit enabled.

2) Even if you do, users may have to be in the "power" group in order to do suspend/hibernate/shutdown .
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Thu Dec 16, 2010 10:56 am    Post subject: Reply with quote

Hypnos wrote:
I don't use GNOME, I used XFCE. Nonetheless, I have two suspicions based on XFCE on Arch:

1) You don't have PolicyKit enabled.

2) Even if you do, users may have to be in the "power" group in order to do suspend/hibernate/shutdown .


I had installed the package policykit:
Code:
$ equery list policykit
[ Searching for package 'policykit' in all categories among: ]
 * installed packages
[I--] [  ] sys-auth/policykit-0.9-r1 (0)

How to enable PolicyKit ?
and there is no group named "power" in my system.any ideas?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Dec 16, 2010 12:33 pm    Post subject: Reply with quote

xiwang wrote:

[ Searching for package 'policykit' in all categories among: ]
* installed packages
[I--] [ ] sys-auth/policykit-0.9-r1 (0)[/code]
How to enable PolicyKit ?
and there is no group named "power" in my system.any ideas?

Meaningless. It's sys-auth/polkit.
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Thu Dec 16, 2010 2:10 pm    Post subject: Reply with quote

[quote="VoidMage"]
xiwang wrote:

Meaningless. It's sys-auth/polkit.

well,if that "sys-auth/policykit" is "sys-auth/polkit", then how to enable PolicyKit ?
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Thu Dec 16, 2010 3:00 pm    Post subject: Reply with quote

Looks like there is both "policykit" and "polkit" in the Portage tree. In any event, gnome-base/gnome should probably be emerged with the "policykit" USE flag enabled; if the USE flag isn't enabled already, then sys-auth/consolekit and sys-apps/hal should be re-emerged as well.

Beyond this I don't have any good ideas.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Dec 16, 2010 4:08 pm    Post subject: Reply with quote

Hypnos, if he's using a decently recent Gnome (that is at least 2.30), hal is meaningless,
as is sys-auth/policykit. The authorization goes through dbus/polkit/consolekit.

Xiwang, see, if ck-list-sessions lists your session as active.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Thu Dec 16, 2010 4:28 pm    Post subject: Reply with quote

VoidMage wrote:
Hypnos, if he's using a decently recent Gnome (that is at least 2.30), hal is meaningless,
as is sys-auth/policykit. The authorization goes through dbus/polkit/consolekit.

Thank you for the correction. I'm glad that GNOME has moved past HAL; waiting for XFCE to get there.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Fri Dec 17, 2010 4:44 am    Post subject: Reply with quote

VoidMage wrote:

Xiwang, see, if ck-list-sessions lists your session as active.

What did you mean?I'm sorry but i don't know what mean is "ck-list-sessions".how to do step by step.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Fri Dec 17, 2010 4:50 am    Post subject: Reply with quote

xiwang wrote:
What did you mean?I'm sorry but i don't know what mean is "ck-list-sessions".how to do step by step.

Run the command "ck-list-sessions" in a terminal, and post the output. For example, on my machine:

Code:
# ck-list-sessions
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = TRUE
   x11-display = ':0.0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2010-12-15T02:24:56.741796Z'
   login-session-id = ''

_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Fri Dec 17, 2010 5:41 am    Post subject: Reply with quote

Thank you very much
Code:
$ ck-list-sessions
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = TRUE
   x11-display = ':0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2010-12-17T05:39:01.817499Z'
   login-session-id = ''
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Fri Dec 17, 2010 7:42 am    Post subject: Reply with quote

At least that part works.
Now, what version of gnome-power-manager you've got installed ?
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Sun Dec 19, 2010 12:27 pm    Post subject: Reply with quote

I'm sorry I did not on the Internet over the weekend.
Code:
$ equery list gnome-power-manager
[ Searching for package 'gnome-power-manager' in all categories among: ]
 * installed packages
[I--] [M ] gnome-extra/gnome-power-manager-2.28.3 (0)
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun Dec 19, 2010 1:55 pm    Post subject: Reply with quote

How about a proper update first ?
That version is out of the tree for nearly 2 months.
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Sun Dec 19, 2010 2:45 pm    Post subject: Reply with quote

Upgrade error has occurred:
Code:
 * ERROR: gnome-extra/gnome-power-manager-2.30.1 failed:
 *   compile failure
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 3180:  Called gnome2_src_compile
 *   environment, line 2493:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *
 * If you need support, post the output of 'emerge --info =gnome-extra/gnome-power-manager-2.30.1',
 * the complete build log and the output of 'emerge -pqv =gnome-extra/gnome-power-manager-2.30.1'.
 * The complete build log is located at '/var/tmp/portage/gnome-extra/gnome-power-manager-2.30.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-extra/gnome-power-manager-2.30.1/temp/environment'.
 * S: '/var/tmp/portage/gnome-extra/gnome-power-manager-2.30.1/work/gnome-power-manager-2.30.1'
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Mon Dec 20, 2010 5:07 am    Post subject: Reply with quote

Do i need to upgrade the entire system, or set something about USE flags?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum