[SOLVED] compiled my first kernel last night, yay. didn't fix suspend to ram
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
compiled my first kernel last night, yay. didn't fix suspend to ram
Hi guys, running a fairly new laptop, i've found i usually have to upgrade the kernel to 2.6.39 or later to get everything to work right. Suspend to ram normally works right after this adjustment. In Slackware 13.37, suspend to ram does not work, so last night i compiled the 2.6.39.4 kernel using AlienBobs guide, (Thanks Eric) and it ran successfully. Suspend to ram still does not work though. Obviously there is a setting i have neglected to change in the make config; Does anyone have an idea of what setting i'd need to change.
Couple of questions come to mind:
* why is a newer kernel always needed for you?
* you seem to run more distros; do these other distros have similar issues?
* exactly how do you initiate the suspend to RAM?
I have several laptops which have been running several versions of Slackware, and I have never had any issues with suspending to RAM or to disk.
Hello Eric, and thanks again for the guide. My laptop is quite modern. I am still quite new to gnu/linux, and learning. I may be wrong about having to upgrade the kernel, but I found it solved the issue in debian by backporting, and was just basing my question on that past experience. I'd be even happier if I can configure slackwares default kernel to work the way I want. I usually suspend to ram by closing the lid but I am un able to initiate it either by going to the k menu and telling it to suspend. As a side note I was just thinking, that it may be a xorg configuration issue because I also backported xorg on debian, and maybe my issue is to do with xorg
Debian pollution? Obviously you really enjoy slackware, but do you dislike debian? Where would I start to 'test' slackwares default kernel? What would u sujest I configure?
No, I do not dislike Debian at all. I am sorry if you read my comment that way.
The phrase "pollution" is a reference to the changes you made to Slackware's original (or rather, absense of a) xorg.conf script. Take away those additions, if you wish, and see if a clean Slackware configuration makes a difference.
Ok, I think you have misunderstood me. I didn't take debians xorg.conf and place it in slackware. The only change besides a few packages, I've made is upgrading the kernel. What I meant was that I had similar issues in debian to what I am having with slackware, and that upgrading the kernel and xorg fixed my issues in debian. I thought that this info might help those that are more knowledgeable in configuring Linux, to help me with my problem.
I am curious if you have tried suspending under another DE such as XFCE. If you did a Full installation you should be able to run XFCE and try it. You can run xwmconfig after login and select XFCE assuming you use startx after login and not go straight to X upon booting up.
There is certainly a setting (someplace) in KDE which sets the action for closing the laptop lid. In XFCE Settings Manager it defaults to Lock Screen. Please try Suspend from the GUI logout icon in XFCE and see what happens (on stock Slack kernel).
Also, if Suspend doesn't work for you under KDE, what exactly does happen when you just close the lid?
I got suspend to ram sort of working here. When it is plugged in to AC, shutting the lid suspends as desired, and opening the lid resumes... however, I still have issues when trying resume/suspend on battery...
Hi guys, thanks for your concern. I'm not in my Slack partition at the moment so i can't test that command out; i was shortly ago though and i tested this command as root
Quote:
echo mem > /sys/power/state
and this command did execute suspend. I closed the lid and opened the laptop back up and it resumed perfectly. So suspend to ram works, but closing the lid and telling the computer from the kmenu does not work.
STDOUBT, no i haven't tried in one of the other desktop environments. Later i'll try that, and the demesg command
Have you tried adding the lines in red to /etc/acpi/acpi_handler.sh? It will make the laptop suspend regardless of the DE/WM chosen whenever the lid is closed.
Code:
#!/bin/sh
# Default acpi script that takes an entry for all actions
IFS=${IFS}/
set $@
case "$1" in
button)
case "$2" in
power) /sbin/init 0
;;
lid) /usr/sbin/pm-suspend
;;
*) logger "ACPI action $2 is not defined"
;;
esac
;;
*)
logger "ACPI group $1 / action $2 is not defined"
;;
esac
If you use KDE and find your laptop does not standby when the lid is closed, one reason is KDE's default power profiles. Please find "System settings -> Power management -> Power profiles", select your profile. Check "Button events handling" and change "When laptop lid closed" from "Do nothing" to "Sleep". Hope it does work for you.
Thankyou bonixavier, that solved the issue. The option in the kmenu still doesn't work but that doesn't matter because i never use that anyways. Thanks guys
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.