View previous topic :: View next topic |
Author |
Message |
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Sun Nov 28, 2010 3:02 pm Post subject: How to suspend the computer with normal user in Gnome |
|
|
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 |
|
|
Clad in Sky l33t
Joined: 04 May 2007 Posts: 888 Location: Germany
|
Posted: Sun Nov 28, 2010 3:09 pm Post subject: |
|
|
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 |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Sun Nov 28, 2010 3:27 pm Post subject: |
|
|
I can suspend as root with executed
The kernel configuration is the same as what you shows me.
what is the matter? I am very confused |
|
Back to top |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Mon Nov 29, 2010 4:22 am Post subject: |
|
|
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 |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Mon Nov 29, 2010 11:33 am Post subject: |
|
|
do I have to join any group or start any daemon? |
|
Back to top |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Thu Dec 16, 2010 4:49 am Post subject: |
|
|
help me!
can you suspend your computer using normal user?how to do? |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Thu Dec 16, 2010 5:59 am Post subject: |
|
|
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 |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Thu Dec 16, 2010 10:56 am Post subject: |
|
|
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 |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Thu Dec 16, 2010 12:33 pm Post subject: |
|
|
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 |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Thu Dec 16, 2010 2:10 pm Post subject: |
|
|
[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 |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Thu Dec 16, 2010 3:00 pm Post subject: |
|
|
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 |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Thu Dec 16, 2010 4:08 pm Post subject: |
|
|
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 |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Thu Dec 16, 2010 4:28 pm Post subject: |
|
|
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 |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Fri Dec 17, 2010 4:44 am Post subject: |
|
|
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 |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Fri Dec 17, 2010 4:50 am Post subject: |
|
|
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 |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Fri Dec 17, 2010 5:41 am Post subject: |
|
|
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 |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Fri Dec 17, 2010 7:42 am Post subject: |
|
|
At least that part works.
Now, what version of gnome-power-manager you've got installed ? |
|
Back to top |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Sun Dec 19, 2010 12:27 pm Post subject: |
|
|
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 |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sun Dec 19, 2010 1:55 pm Post subject: |
|
|
How about a proper update first ?
That version is out of the tree for nearly 2 months. |
|
Back to top |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Sun Dec 19, 2010 2:45 pm Post subject: |
|
|
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 |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Mon Dec 20, 2010 5:07 am Post subject: |
|
|
Do i need to upgrade the entire system, or set something about USE flags? |
|
Back to top |
|
|
|