LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-01-2008, 01:54 PM   #1
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Rep: Reputation: 33
acpi - partially working on a Lenovo 3000 N200 with Slack12.0


Anybody help with what I think is a small detail I am missing somewhere. I have various acpi-related features working on my laptop. Eg KDE correctly reports (and lets me set where appropriate) battery level, CPU throttling etc. I think I have also got it to go to sleep when I close the lid using but this is problematical because when I try and emulate the action of the sleep.sh script which I am using directly from the command line by typing:

Quote:
echo -n "mem" > /sys/power/state
I get the response:

Quote:
-su sys/power/state: No such file or directory
despite the fact that
Quote:
ls -l /sys/power
returns one file called state.

At some stage in my attempts to configure all this I am sure that issuing:

Quote:
cat /sys/power/state
returned the value "mem" but now seems to return nothing.

Am I missing something obvious?

I would also like to get the various buttons on the machine (volume up, volume down, vol mute, brightness up/down etc) working and can find no documentation on how to do this.

Below are the lines I have added to /etc/rc.modules to get things partially working.

Thanks


Bogus Zaba

Quote:
#this one should detect whether AC power is being supplied
/sbin/modprobe ac
#this one supplies data on battery state
/sbin/modprobe battery
#this one finds out about temperature
/sbin/modprobe thermal
#this one supports appropriate on/off/lid behaviour
/sbin/modprobe button
#this one deals with fan setting
/sbin/modprobe fan
 
Old 04-01-2008, 03:07 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
The suspend stuff relies on certain kernel options. Have you changed your kernel recently? What kernel are you using, regardless of whether you changed it? `cat /sys/power/state` returns "standby mem disk" for me (since I have enabled those options in the kernel). It should be noted that suspend/hibernate has improved exponentially in recent kernel versions, so you may wish to compile your own.

The standard kernels that ship with Slackware 12.0 have suspend disabled, so you MUST be using a custom kernel for it to work. Also, I don't think hibernate was a viable option in the 2.6.21.5 kernel (unless the name changed), and was at best experimental at the time -- so for that you'll definitely want to compile a custom kernel. For your information, the relevant kernel options are shown below:
Code:
CONFIG_SUSPEND=y
CONFIG_HIBERNATION=y
 
Old 04-01-2008, 04:11 PM   #3
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Original Poster
Rep: Reputation: 33
Thanks - yes I think I used a kernel that I compiled but I later ditched it as there was something else that was not working and went back to Slack12 kernel 2.6.21.5-smp. I will try re-compiling with just the change to the suspend and hibernate config options as you suggest.
 
  


Reply



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
Boot problems after installing Slack12 on Lenovo T61 laptop wcuff Slackware 8 09-12-2008 03:53 PM
Fedora, wifi card not working, Lenovo 3000 c200, Broadcom 802.11g using BCMWL5 driver apeace Linux - Newbie 17 03-14-2008 03:28 PM
Lenovo N200 (+ Slackware) guide pdw_hu Linux - Laptop and Netbook 0 03-10-2008 09:26 AM
lenovo n200 SD-card reader vega2k Linux - Hardware 2 01-11-2008 03:34 PM
lenovo 3000 C200 legin Linux - Laptop and Netbook 6 11-04-2007 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:21 PM.

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
Open Source Consulting | Domain Registration