You are not logged in.

#1 2009-01-26 12:35:08

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

KDE 4: laptop power management

Hi,

It's the first time I've ever tried to use it: just waited for KDE 4.2 smile .

Situation as follows:

(1) PowerDevil is running, according to Service Manager
(2) Power Management (by default) looks alive: everything enabled, configured, etc.
(3) Shutdown dialog (Ctrl-Alt-Del) contains just three options: Logout, Turn Off Computer and Restart Computer
(4) In addition, Leave menu contains Suspend to RAM and Suspend to Disk.

Suspend menu entries have no effect on anything; looks like something needs turning on... Any ideas?

Last edited by Llama (2009-02-02 11:29:17)

Offline

#2 2009-01-26 12:44:09

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: KDE 4: laptop power management

I haven't tried to implement suspend on my laptop yet, but I'd be interested in that too.
I suppose suspend needs to be set up separately. Check these wiki entries for a start :
http://wiki.archlinux.org/index.php/Suspend_to_Disk
http://wiki.archlinux.org/index.php/Suspend_to_RAM


what goes up must come down

Offline

#3 2009-01-26 13:36:26

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: KDE 4: laptop power management

Does pm-suspend work if started from the cli? Normally there is nothing that needs to be configured (except adding the resum=/dev/sdX param to your grub config if you want to use suspend to disk. But working suspend depends on you hardware; with some graphic adapters or mainboards this just does not work.

Offline

#4 2009-01-27 01:52:53

Cypher
Member
From: Coquimbo, Chile
Registered: 2007-04-14
Posts: 67

Re: KDE 4: laptop power management

i have the same issue here, but solved when add my user to "power" group.

Offline

#5 2009-01-27 09:15:32

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: KDE 4: laptop power management

Thanks, Cypher! After adding myself to power group it started to show signs of life. Still, I'm not happy. Both pm-suspend utility and Suspend to RAM button give me a black but lighted from underneath screen (after a good while). I've no idea what to do next; so far hard reset is the only option known to me smile . Suspend to Disk works pretty much the same (no turning off). I do have "resume" option in my /boot/grub/menu.lst:

kernel /boot/vmlinuz26 root=/dev/disk/by-label/Root vga=773 resume=/dev/disk/by-label/Swap ro

Probably I don't know how to use the available options. Any suggestions? I really want what used to be "hibernation", but it isn't in the options. I really need help smile ...

Offline

#6 2009-01-27 12:32:33

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: KDE 4: laptop power management

If you failed to add yourself to the power group in the first place you may want to go through this wiki page:

http://wiki.archlinux.org/index.php/Laptop

which points specifically to this:

http://wiki.archlinux.org/index.php/Pm-utils

That should see you right - it did me.


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#7 2009-01-27 13:38:33

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: KDE 4: laptop power management

Do you mean that the relevant KDE 4 GUIs are implemented over pm-utils?

Offline

#8 2009-01-27 13:45:20

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: KDE 4: laptop power management

Well, it worked a treat on my T41 with KDE 4.2 smile


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#9 2009-01-27 13:59:24

panosk
Member
From: Athens, Greece
Registered: 2008-10-29
Posts: 241

Re: KDE 4: laptop power management

Llama wrote:

Do you mean that the relevant KDE 4 GUIs are implemented over pm-utils?

I think they are. I started playing with suspend to ram (it worked) and suspend to disk (it didn't work - actually, my laptop suspended but didn't resume, it just booted normally) when I saw this thread. All I did then was to add my user to the power group (I don't think this was necessary anyways) and the resume entry to the boot menu and everything worked like a charm.

Offline

#10 2009-01-29 11:21:42

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: KDE 4: laptop power management

I've read the Wiki; it appears I did everything by the book.

User is added to the power group;

/boot/grub/menu.lst:

kernel /boot/vmlinuz26 root=/dev/disk/by-label/Root vga=773 resume=/dev/disk/by-label/Swap ro

/usr/libs/pm-utils/defaults:

##########################################################
# DO NOT EDIT THIS FILE!                                 #
#                                                        #
# Add files in /etc/pm/config.d/ instead!                #
##########################################################

# Default method to power down the system when hibernating.
# If commented out, the system will use the kernel default as a 
# default value.
#
# Check /sys/power/disk for valid values.  The default value
# will be surrounded by [square brackets].
# HIBERNATE_MODE="shutdown"

# Whether we need to post the video card when resuming from
# hibernate. You should not normally need to set this.  
# In the future pm-utils will get this setting from HAL.
#
# Valid values are "no" and "yes"
# HIBERNATE_RESUME_POST_VIDEO="no"

# The default sleep/wake system to use.  Valid values are:
#   kernel    The built-in kernel suspend/resume support.
#             Use this if nothing else is supported on your system.
#   uswsusp   If your system has support for the userspace
#             suspend programs (s2ram/s2disk/s2both), then use this.
#   tuxonice  If your system has support for tuxonice, use this.
#
# The system defaults to "kernel" if this is commented out.
# SLEEP_MODULE="kernel"

# These variables will be handled specially when we load files in 
# /etc/pm/config.d.
# Multiple declarations of these environment variables will result in 
# their contents being concatenated instead of being overwritten.

# If you need to unload any modules to suspend/resume, add them here.
# SUSPEND_MODULES=""

# If you want to keep hooks from running, add their names  here.
# HOOK_BLACKLIST=""

# If you want to unconditionally add parameters to the commandline,
# add them here.
# ADD_PARAMETERS=""

# If you want to ignore commandline parameters, add them here.
# DROP_PARAMETERS=""

# If you need to synchronize the system clock across a suspend/resume or
# hibernate/thaw cycle, set this variable.
# NEED_CLOCK_SYNC="true"

There's nothing in /etc/pm/config.d;

But working suspend depends on you hardware; with some graphic adapters or mainboards this just does not work.

I experimented with hibernation several months ago (KDEmod 3). It worked, albeit without much grace; that's why I decided to wait till it gets sorted out under KDE 4. Now it's even worse smile ...

PS Doing #  pm-hibernate I can tell that it is not writing the state to disk: no disk activity, just a curfew imposed on me after a while smile .

Any suggestions?

Last edited by Llama (2009-01-29 11:34:52)

Offline

#11 2009-02-02 11:09:30

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: KDE 4: laptop power management

Here; smile

Unfortunately, while after the correction

# hibernate

works, the KDE buttons (doesn't) work as before...

Last edited by Llama (2009-02-02 11:31:58)

Offline

#12 2009-02-09 03:12:23

adski1234
Member
Registered: 2008-11-16
Posts: 4

Re: KDE 4: laptop power management

Hey all,

I'm having a similar issue.  I've been using this arch install for several months with LXDE and suspend works fine.  However, today I decided to give KDE 4.2 a shot and ran into some trouble.  All power management utilities appear to be running and I can successfully run pm-suspend from a terminal, but when selecting "suspend to RAM" from the "leave" menu or from the battery monitor panel applet, nothing happens. 

So, the problem for me appears to be KDE 4.2 specific.  I'm probably missing some piece of additional setup required.  Anyone have any ideas?

Offline

Board footer

Powered by FluxBB