Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] Inspiron 630m won't wake from sleep on battery

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
maw
Apprentice
Apprentice
Posts: 175
Joined: Sun Aug 25, 2002 6:54 pm
Location: Nottingham, UK
Contact:
Contact maw
Website

[SOLVED] Inspiron 630m won't wake from sleep on battery

  • Quote

Post by maw » Wed Mar 08, 2006 9:08 am

I have a nice shiny new Dell Inspiron 630m. With the help of the guide at disgruntledgoat.com I've got Gentoo mostly working on it. The real problem is with sleep (hibernate to ram). It works fine if I'm plugged into the mains. It works fine if I sleep on battery and wake while plugged in.

It does not work at all if I try to resume while running on battery power.

Now, I'm fairly convinced that this is due to the CPU Frequency Scaling, because after much poking of that I managed to get it to resume correctly on battery, and I believe what I'd done (although I'd played a lot) was to manually force the CPU to stay at 2GHz (its maximum speed) without any dynamic governer being enabled.

So I think what I need to do is get the hibernate script to sort that out for me when it goes to sleep, and then after waking up, to restore my normal CPU scaling settings. I haven't been able to manage this though.

Does anybody have any ideas?
Last edited by maw on Mon Apr 24, 2006 7:30 pm, edited 1 time in total.
Your Gentoo woll sle me sodenly!
I may the beaute of it not sustene
(to misquote Chaucer)
Top
Praxxus
Apprentice
Apprentice
User avatar
Posts: 193
Joined: Tue Nov 26, 2002 1:17 am
Location: Indiana, US

  • Quote

Post by Praxxus » Mon Apr 24, 2006 6:36 pm

You got suspend to RAM working at all? Please tell me how! I'm having a bear of a time getting it to work.

You should be able to set the CPU speed prior to hibernation by using /usr/bin/cpufreq-set. I'm no expert, but I think you would first have to set the governor (-g flag) to "userspace," and then run it again to set the desired CPU frequency. Once you come out of hibernation, you could do a simple/quick "if on battery power" test to either set the performance or powersave governors back in place.
My glaucoma just got worse!
Top
maw
Apprentice
Apprentice
Posts: 175
Joined: Sun Aug 25, 2002 6:54 pm
Location: Nottingham, UK
Contact:
Contact maw
Website

  • Quote

Post by maw » Mon Apr 24, 2006 7:30 pm

Well I really should have come back and updated this because I fixed it... I figured out how to disable frequency scaling at the appropriate time, and now the only thing that mucks it up is if you unplug the mains while it's suspending, in which case it won't resume on battery. Odd, but there you go.

As for how I got it working, I just followed the guides. I'm using Software Suspend 2, although I must admit I've not even tried hibernate to disk yet. HOWTO on the wiki: http://gentoo-wiki.com/HOWTO_Software_Suspend_v2

I can post my ram.conf file if you like.
Your Gentoo woll sle me sodenly!
I may the beaute of it not sustene
(to misquote Chaucer)
Top
Praxxus
Apprentice
Apprentice
User avatar
Posts: 193
Joined: Tue Nov 26, 2002 1:17 am
Location: Indiana, US

  • Quote

Post by Praxxus » Mon Apr 24, 2006 7:52 pm

I'm really not a dummy (no, honest), but I'm frustrated enough with powermanagement on this laptop that I will happily accept any .conf/.config files.

Also, what kernel version are you running? :-)
My glaucoma just got worse!
Top
maw
Apprentice
Apprentice
Posts: 175
Joined: Sun Aug 25, 2002 6:54 pm
Location: Nottingham, UK
Contact:
Contact maw
Website

  • Quote

Post by maw » Mon Apr 24, 2006 8:02 pm

Okay: 2.6.15-suspend2-r6 is my kernel version, and here's my ram.conf:

Code: Select all

### sysfs_power_state
UseSysfsPowerState mem

Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
Distribution gentoo

### clock
SaveClock restore-only

### fbsplash (enable SwitchToTextMode if you use this)
FBSplash on
FBSplashTheme suspend2

### misclaunch
OnSuspend 20 cpufreqd-set manual
OnSuspend 21 cpufreqd-set 4
OnResume 20 cpufreqd-set dynamic

### modules
UnloadBlacklistedModules yes
LoadModules auto

### network
DownInterfaces auto
UpInterfaces auto

### services
StopServices cpufreqd
StartServices cpufreqd

### vbetool
EnableVbetool yes
VbetoolPost yes

SwitchToTextMode yes
That's with a bunch of comments removed, as it's based on the example one which has a lot of example options in it.
Your Gentoo woll sle me sodenly!
I may the beaute of it not sustene
(to misquote Chaucer)
Top
Post Reply

5 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic