ibm-acpi on Slackware
I'm slowly getting Slackware configured on my thinkpad t42, but something I have yet to get working is the power management. I've compiled my own kernel with the ibm-acpi driver built-in, as I understand that this is what allows you to set up the buttons on a thinkpad to put the machine into standby or hibernation, but it still requires some configuring to get it to work right. Can anybody give me a clue as to how I can get this working?
Thank you |
It's been a while since I've configured acpi on my R40, but this page at Think-wiki may have some helpful info.
-geo |
i used apm instead on my thinkpad and it worked well. the only thing i don't have is temperature monitoring, but i couldn't get that to work under acpi anyway. i think it needed the "extras" driver or something, but the temps might not even have worked for R40 with that, according to this: http://ibm-acpi.sourceforge.net/
anyway, apm is very simple. you just make sure it's in the kernel, and put an append line in your bootloader (append="acpi=off apm=on"). start the daemon at boot (/usr/sbin/apmd), and that's basically it. all the FN keys, suspend, suspend to ram, suspend on lid close, screen blanking, kb light, etc. work on mine without any further configuration. gl |
Ok, I've managed to make a step forward. I had to fiddle a little bit with the example for configuring ibm-acpi to sleep on lid closure provided by thinkwiki, but it's working now. Though I left out the sleep 5 portion of the line that puts the machine to sleep, as well as the switching to console lines (worked fine without 'em, which is to say only worked when I removed those lines). I'm happy with the sleep function working, but I have yet to get the other buttons working right. A large part of the problem is that I am rather new to linux, and I'm still learning the ins and outs of script writing, much less the variety of commands to do certain things. Can anyone give me a good reference on how to write scripts to control the various events through acpid?
|
OK. I am starting to figure out how I got acpi to do what I want. It's been a while and my memory ain't no good.
Quote:
If so, you need to let the operating system know that you'd like to use them for acpi functions. You can do this by typing (as root) Code:
echo enable > /proc/acpi/ibm/hotkey Then in your /etc/acpi/events directory you can include a script for each button. For example, I have a file that is called "FNF4.conf" that looks like this: Code:
# With IBM Hotkeys enabled FN+F4 To get the appropriate HKEY number run Code:
echo enable > /proc/acpi/ibm/hotkey Code:
tail -f /var/log/acpid The same pinciples apply to the other buttons, like the power button. On my system /etc/acpi/events/powerbutton.conf looks like this: Code:
# Shutdown Hope that helps. -geomatt |
or, you could just use apm and not have to do any of that. but please, knock yourself out. ;)
|
Quote:
cheers, -geomatt |
Quote:
i haven't had a single problem with apm, though, and i have seen no perfomance difference or anything like that between the two. the only issue i had is that sometimes after waking my ethernet interface would be locked up, but a simple script to take eth0 down before sleep solved that. like you, i remember there was some reason why acpi didn't work for me, leading me to try apm, but now i have no idea what it was. :p i think the FN keys weren't working. all that was "automagical" with apm though, and i just never looked back. maybe on my next laptop. :D |
Ok, I'm still hacking away at getting acpi humming on my thinkpad, as I just like learning everything about getting it to work (especially getting good scripts going). I've got a script that I use for both lid events as well as the fn+F4 combo, but I've gotten a strange problem with suspending to RAM while I'm in the console. When I trigger the event, everything seems to go as planned, but then on wake, the screen is completely blank. It seems like the backlight doesn't turn back on. Everything works fine in an X terminal, so I'm wondering where the problem lies. I'm running the console in a Framebuffer, and using the proprietary drivers from ATI on my graphics card (rev 8.20, so the earlier suspend to RAM issues with it are supposedly solved). Can anyone give me an idea of what I can add to the script to get this working?
|
All times are GMT -5. The time now is 05:17 PM. |