LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   acpi - partially working on a Lenovo 3000 N200 with Slack12.0 (https://www.linuxquestions.org/questions/slackware-14/acpi-partially-working-on-a-lenovo-3000-n200-with-slack12-0-a-632250/)

bogzab 04-01-2008 01:54 PM

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

T3slider 04-01-2008 03:07 PM

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


bogzab 04-01-2008 04:11 PM

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.


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