LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Using Klaptop for suspend/resume (https://www.linuxquestions.org/questions/slackware-14/using-klaptop-for-suspend-resume-574809/)

samwise17 08-05-2007 03:45 AM

Using Klaptop for suspend/resume
 
I am trying to enable suspend and resume on my Dell Inspiron 6400 in Slackware 12. I tried several scripts and things I found searching this forum but none have worked very well.
I am now trying to setup Klaptop to suspend and resume. In the ACPI configure tab in the control panel for klaptop, none of the boxes are enabled so I went to start the helper application and got a message:

"The /usr/bin/klaptop_acpi_helper application does not seem to have the same size or checksum as when it was compiled we do NOT recommend you proceed with making it setuid-root without further investigation"

Anyone encountered something similar?

lordwolf 08-05-2007 04:09 AM

i have never had that message before. have you enabled software suspend option in the kernel?

samwise17 08-05-2007 04:22 AM

I am using the huge-smp-2.6.21.5 kernel, so I assume yes.
I load the battery and ac modules in rc.modules so I can use the battery monitor.
I just added processor and thermal as well.

janhe 08-05-2007 05:00 AM

Quote:

I went to start the helper application and got a message:

"The /usr/bin/klaptop_acpi_helper application does not seem to have the same size or checksum as when it was compiled we do NOT recommend you proceed with making it setuid-root without further investigation"
I get the same message, even on a fresh install.

cathectic 08-05-2007 05:03 AM

Quote:

Anyone encountered something similar?
Yes - I just ignored it and carried on changing the permissions without any problem.

pwc101 08-05-2007 05:33 AM

I also had this message, so I got my install DVD and found the package which contains klaptop_acpi_helper (kdeutils-3.5.7-i486-2.tgz) and I also downloaded it from a Slack mirror, extracted the binary to two directories, and compared each one (md5sum and diff) and they were both identical to one another.

I then checked them against the installed one, and there was no difference between it and the freshly downloaded ones, so I assume there's no problem with setting klaptop_acpi_helper to setuid-root.

samwise17 08-05-2007 08:41 PM

I went ahead and started the helper and now I can check all the standby/hibernate buttons, but they dont do anyting.
Am going to modprobe button, fan, dock and video and see if that does anyting.

lordwolf 08-06-2007 12:07 AM

you might want to type 'cat /sys/power/state' to see if you actually have the software suspend enabled. if you get both mem & disk - you should be ok.

janhe 08-06-2007 02:41 AM

If you get nothing from /sys/power/state, you might want to read this topic: http://www.linuxquestions.org/questi...d.php?t=566633

samwise17 08-07-2007 01:36 AM

No I dont get anything from /sys/power/state.
I can set the action when the lid is closed with Klaptop now but only Off, Logout, and CPU throttling are there.
I read the thread and I was hoping I could get away without recompiling the kernel. That can wait a few weeks until I get some time to read up and do it properly.

btw is it possible to set up slackware with two different kernels to boot off? (The current working one and an experimental custom compiled one)

janhe 08-07-2007 07:31 AM

Yes you can, you just have to make 2 entries in /etc/lilo.conf
one section for the current working one, and one for the experimental one.
The two entries are the same, except for the "image =" line
this the part of my lilo.conf file that boots slackware:
Code:

# Linux bootable partition config begins
image = /boot/vmlinuz        # kernel
  initrd = /boot/initrd.gz    # initrd, used with "generic" slackware kernels
  root = /dev/hda2            # partition that contains "/"
  label = Slackware          # name displayed by lilo at boot time
  append = "splash=silent"    # for bootsplash, you can leave it out
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends


samwise17 08-07-2007 09:00 PM

Thanks ill try that.

Lockywolf 08-08-2007 06:23 AM

Is it possible to use s2ram, instead of simple echo 1 > /sys/power/state ?

with klaptop ?

janhe 08-08-2007 06:55 AM

you can suspend to ram with klaptop.
just configure klaptop from de KDE control center, and use the battery icon,
or call "/usr/bin/klaptop_acpi_helper --suspend"

Lockywolf 08-08-2007 07:08 AM

when i suspend with klaptop, laptop wakes, but the screen stays off.

when i suspend using s2ram, laptop wakes normally


All times are GMT -5. The time now is 12:09 PM.