Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
I've installed Slackware 13.0 on my laptop and I lost my suspend to RAM functionality. Or rather - I can still suspend the machine, but it won't resume properly. It takes quite a few seconds for X to come back, but nothing works - it's like my filesystem driver gets screwed up (I get nasty-looking errors in /var/log/messages that I can't find now).
I've even gone so far as to download, build, and install the newest kernel, but that didn't make any difference.
Before (Slackware 12.2) this used to happen on occasion (maybe 1 out of 10 resumes), but now it happens every time.
Does anyone have sleep/suspend working properly on a machine like this? Could you share what you kernel version is? Or does anyone else have other suggestions for how to fix this?
I attacked this recently with a HP 6715S. I looked at many things, and ended up using acpitools
sync && sudo acpitool -s for suspend to ram (X works but open ttys are messed up)
sync && sudo acpitool -S for hibernate. It's not the kernel version once you're past about 2.6.20. It's in the acpi config
Thanks for the suggestion business_kid. Unfortunately it looks like acpitool just runs the same command I've run manually before. So it also doesn't work.
You mentioned ACPI configuration - could you say more about that? How can I change/tweak it?
There are kernel options in ACPI for suspend, hibernate to disk, and you can even specify which partition (use swap). There are also many guides out there and many more knowledgeable have done this. Here's what I am running. Some of them are weird. Like you need cpu hotplug so the system can switch out a cpu core. Here's my acpi stuff, and the hibernate setting.
bash-3.1$ grep ACPI .config
CONFIG_X86_64_ACPI_NUMA=y
# Power management and ACPI options
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_PROCFS_POWER=y
CONFIG_ACPI_SYSFS_POWER=y
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=m
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=m
CONFIG_ACPI_NUMA=y
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
# CONFIG_ACPI_PCI_SLOT is not set
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_SBS=m
CONFIG_X86_ACPI_CPUFREQ=m
CONFIG_PNPACPI=y
CONFIG_BLK_DEV_IDEACPI=y
CONFIG_ATA_ACPI=y
# CONFIG_PATA_ACPI is not set
# CONFIG_THINKPAD_ACPI is not set
CONFIG_ACPI_WMI=m
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
I have ACPI enabled. It just won't resume properly, which tells me there's a bug in the kernel. I thought maybe there is some userspace configuration I can do - but I guess not.
Oh well, I guess I'll have to do without at least for a while. Thanks anyway.
Have you searched the Slackware section? There are a couple of (possibly)relevant threads there; I got suspend working on my new laptop(w/Slackware 13) based on information from them. You may find some things to try there.
Yeah, I looked and tried out all those suggestions. I've convinced myself that it's a kernel issue specific to this model, so I posted in the generic section. I almost feel like going back to 12.2, but it took a lot of work to upgrade, and 12.2 wasn't perfect either
It's not always a bad thing to stick with what works. I have an old thinkpad(A31) that will have 12.2+2.6.27.*+APM('cause it works on this laptop, and acpi never did) for as long as the hardware holds out.
I have ACPI enabled. It just won't resume properly, which tells me there's a bug in the kernel. I thought maybe there is some userspace configuration I can do - but I guess not.
Oh well, I guess I'll have to do without at least for a while. Thanks anyway.
Are you suspending or hibernating?
What do you see when you type
cat /sys/power/state
I have issues with suspend, (I lose tty consoles) and they offer the boot parameter no_console_suspend. Hibernate works fine. There's also the scheduler you are using for the cpu. But yopu have to have your hibernate disk in the kernel, along with the boot command
kernel /vmlinuz-blah root=/somewhere resume=/dev/<swap> no_console_suspend
Are you suspending or hibernating?
What do you see when you type
cat /sys/power/state
I'm suspending. The command returns "mem disk". One strange thing I just noticed is my desktop (which I never suspend) only has "disk" in there, which is strange because it's the same version of Slackware.
I could enable hiberbate to replace suspend, but I don't have a swap partition, which I'm assuming is required.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.