LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-05-2007, 04:45 AM   #1
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Rep: Reputation: 15
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?
 
Old 08-05-2007, 05:09 AM   #2
lordwolf
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
i have never had that message before. have you enabled software suspend option in the kernel?
 
Old 08-05-2007, 05:22 AM   #3
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Original Poster
Rep: Reputation: 15
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.
 
Old 08-05-2007, 06:00 AM   #4
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 45
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.
 
Old 08-05-2007, 06:03 AM   #5
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
Quote:
Anyone encountered something similar?
Yes - I just ignored it and carried on changing the permissions without any problem.
 
Old 08-05-2007, 06:33 AM   #6
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
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.
 
Old 08-05-2007, 09:41 PM   #7
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Original Poster
Rep: Reputation: 15
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.
 
Old 08-06-2007, 01:07 AM   #8
lordwolf
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
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.
 
Old 08-06-2007, 03:41 AM   #9
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 45
If you get nothing from /sys/power/state, you might want to read this topic: http://www.linuxquestions.org/questi...d.php?t=566633
 
Old 08-07-2007, 02:36 AM   #10
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Original Poster
Rep: Reputation: 15
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)
 
Old 08-07-2007, 08:31 AM   #11
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 45
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
 
Old 08-07-2007, 10:00 PM   #12
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Original Poster
Rep: Reputation: 15
Thanks ill try that.
 
Old 08-08-2007, 07:23 AM   #13
Lockywolf
Member
 
Registered: Jul 2007
Posts: 70

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

with klaptop ?
 
Old 08-08-2007, 07:55 AM   #14
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 45
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"
 
Old 08-08-2007, 08:08 AM   #15
Lockywolf
Member
 
Registered: Jul 2007
Posts: 70

Rep: Reputation: 15
when i suspend with klaptop, laptop wakes, but the screen stays off.

when i suspend using s2ram, laptop wakes normally
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suspend/resume in the console ingrix Linux - Laptop and Netbook 5 07-05-2007 04:57 AM
Need Suspend to Ram functions with Klaptop bassmadrigal Linux - Software 0 08-30-2006 05:54 PM
Suspend Fails to Resume dengel Linux - Laptop and Netbook 0 11-27-2005 09:58 AM
No resume from suspend mehlkelm Debian 3 11-22-2005 11:48 AM
laptop suspend/resume zchoyt Fedora 0 10-24-2005 11:21 PM


All times are GMT -5. The time now is 11:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration