You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, July 17th 2007, 11:34pm

KLaptop lost some of its functionalities

Hello, I compiled Linux 2.6.22.1 today and everything seems fine, except KLaptop.

In the "Power Control" tab (in KLaptop) the time is set to 1min. and after that it is set to put the computer in Sleep (suspend2 using here)...it doesn't work. It doesn't work for both Not power and Powered profiles..

In ACPI Config the hibernate and suspend are checked, but in none of the tabs, nor in the Popup context menu of KLaptop, there is Hibernate option. The Hibernate checkbox is gone. With Linux 2.6.21.6 it is fine, and it seems to work good, but with 2.6.22.1 something is missing..

Any idea is appreciated on what might be the problem

oberix

Beginner

Posts: 3

Location: italy

Occupation: computer science student

  • Send private message

2

Tuesday, August 7th 2007, 12:42pm

RE: KLaptop lost some of its functionalities

Hallo, I have quite the same problem.

I think the cause is that KLaptop changes the state of the acpi by echoing to /proc/acpi/sleep, but I didn't select the "CONFIG_ACPI_SLEEP_PROC_SLEEP" module in the kernel configuration, so there /proc/acpi/sleep isn't present at all.

Bytheway hibernate works perfectly via the script /usr/sbin/hibernate

I found this discussion
http://bugs.kde.org/show_bug.cgi?id=93533
where they try a workaround to the problem... what remains strange is that with kernel 2.6.21.1 it worked fine to me and the configuration was the same for the acpi section.

Hope that gives some hint to somebody. I'll keep on searching...

3

Tuesday, August 7th 2007, 2:48pm

RE: KLaptop lost some of its functionalities

Quoted

Originally posted by oberix
Hallo, I have quite the same problem.

I think the cause is that KLaptop changes the state of the acpi by echoing to /proc/acpi/sleep, but I didn't select the "CONFIG_ACPI_SLEEP_PROC_SLEEP" module in the kernel configuration, so there /proc/acpi/sleep isn't present at all.

Bytheway hibernate works perfectly via the script /usr/sbin/hibernate



I have /proc/acpi/sleep and I dont have Hibernate in KLaptop :(

And I have set CONFIG_ACPI_SLEEP_PROC_SLEEP=y in .config of my kernel, so that is isolated as problem.

The hibernation is not a problem via scripts or via the power button, I just need the laptop to hibernate when the battery gets to ~3% charge.

If you figure out how to get Hibernate into KLaptop besides the CONFIG_ACPI_SLEEP_PROC_SLEEP issue, please reply.

Thanks

oberix

Beginner

Posts: 3

Location: italy

Occupation: computer science student

  • Send private message

4

Tuesday, August 7th 2007, 6:04pm

Hallo again.
You are right: the problem is for KLaptop only, and I gave up about it since I found there is Kpowersave, it has the same functionality but they works graet on it.
So if you haven't any particular reason for using klaptop I'd suggest you to switch to kpowersave.

Have a nice hibernation :P

P.S. It works better also in setting the cpu frequency on a dual core cpu: it changes correctly the freqency on both cores, while klaptop affect just CPU0.

oberix

Beginner

Posts: 3

Location: italy

Occupation: computer science student

  • Send private message

5

Wednesday, August 8th 2007, 11:24am

I made some more reserches and I found that with suspend2 the kernel should be patched, like the /etc/hibernate/suspend2.conf file suggest (debian testing):

Quoted

# Example suspend2.conf file.
#
# See hibernate.conf(5) for help on the configuration items.
#
# NOTE: Suspend2 is an improved version of suspend-to-disk which currently
# requires patching your kernel. For more information, see www.suspend2.net
#
# If you do not wish to patch your kernel but still be able to suspend to
# disk, see disk.conf instead.


Anyway I didn't find any patch for the 2.6.22.1 kernel in www.suspend2.net , so I couldn't try anything.

I have to say though, that I didn' have to apply any patch to have hibernate working from klaptop with kernel 2.6.21.1 and furthermore hibernate actually works if called by root with /usr/sbin/hibernate script.

6

Wednesday, August 8th 2007, 3:17pm

As I said, hibernate works fine, It just isn't listed as option in KLaptop.

I have patched my kernel..

thanks however