LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having 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


Reply
  Search this Thread
Old 09-08-2009, 12:54 AM   #1
Mig21
Member
 
Registered: Jan 2005
Posts: 263

Rep: Reputation: 45
Suspend/resume problems with an HP g60


Hi

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?

Thanks in advance
 
Old 09-08-2009, 03:33 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
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
 
Old 09-08-2009, 10:02 PM   #3
Mig21
Member
 
Registered: Jan 2005
Posts: 263

Original Poster
Rep: Reputation: 45
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?
 
Old 09-09-2009, 02:58 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
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

bash-3.1$ grep sda9 .config
CONFIG_PM_STD_PARTITION="/dev/sda9"
 
Old 09-09-2009, 06:18 PM   #5
Mig21
Member
 
Registered: Jan 2005
Posts: 263

Original Poster
Rep: Reputation: 45
Sadly that looks very much like mine

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.
 
Old 09-09-2009, 07:51 PM   #6
mudangel
Member
 
Registered: May 2008
Location: Ohio
Distribution: Slackware
Posts: 267

Rep: Reputation: 56
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.
 
Old 09-11-2009, 03:33 PM   #7
Mig21
Member
 
Registered: Jan 2005
Posts: 263

Original Poster
Rep: Reputation: 45
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
 
Old 09-11-2009, 11:10 PM   #8
mudangel
Member
 
Registered: May 2008
Location: Ohio
Distribution: Slackware
Posts: 267

Rep: Reputation: 56
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.
 
Old 09-12-2009, 03:17 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Quote:
Originally Posted by Mig21 View Post
Sadly that looks very much like mine

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
 
Old 09-12-2009, 02:15 PM   #10
Mig21
Member
 
Registered: Jan 2005
Posts: 263

Original Poster
Rep: Reputation: 45
Quote:
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.
 
Old 09-13-2009, 03:02 PM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
If it only says disk, that's all you can do.

Build the swap partition in your kernel

CONFIG_PM_STD_PARTITION=<your swap device>

Then use
sync && acpitool -S
 
  


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
can't resume after suspend newbiesforever Linux - General 1 08-26-2009 06:52 AM
Suspend/resume in the console ingrix Linux - Laptop and Netbook 5 07-05-2007 03:57 AM
No resume from suspend mehlkelm Debian 3 11-22-2005 10:48 AM
Fedora Core 4 Suspend Resume Mouse Problems eat_laser_scumbag Linux - Laptop and Netbook 4 08-21-2005 04:36 AM
ssh ->suspend and resume... alaios Linux - Networking 4 01-10-2005 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 02:39 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