Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
suspend2 ibm thinkpad T43 problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
The_P
Apprentice
Apprentice


Joined: 13 Mar 2004
Posts: 248

PostPosted: Sun Sep 24, 2006 10:22 am    Post subject: suspend2 ibm thinkpad T43 problems Reply with quote

I have problems suspending the ibm T43. It is telling that there are not enought extra pages it needs 1534 but there are only 500. What does this mean?
I am using 2.6.17-beyond4. I have an ati mobility x300. I am using the fglrx driver 8.28.8.
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Sun Sep 24, 2006 10:47 am    Post subject: Reply with quote

What is the output of:
Code:
cat /proc/suspend2/extra_pages_allowance


And if you are suspending to swap, how big is your swap and how much memory does your laptop have?
Back to top
View user's profile Send private message
The_P
Apprentice
Apprentice


Joined: 13 Mar 2004
Posts: 248

PostPosted: Sun Sep 24, 2006 11:22 am    Post subject: Reply with quote

I do not have a /proc/suspend2 directory.
I am using swap for suspending. My swap is 512 MB and I have 512 MB Memory. But I have to add to this that with the 2.6.15 kernels suspend2 worked. There I also used older versions of the hibernate script.
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Sun Sep 24, 2006 11:32 am    Post subject: Reply with quote

I also have problems with suspending since kernel 2.6.15 (sometimes it works, often it doesn't) As far as I know the pages allowance thing means that it doesn't have enough free space/allocates enough free space. For me that proc file controls how much pages it will allocate for suspending. Strange that you don't have /proc/suspend2.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Mon Sep 25, 2006 2:28 am    Post subject: Reply with quote

I have suspend to ram and suspend to disk working well here on a T43 (ati x300), with suspend2-sources-2.6.17. Perhaps my configuration files will help you:
Code:
~> grep -v "^#" ram.conf | grep -v "^$"
UseSysfsPowerState mem
Include common.conf

~> grep -v "^#" hibernate.conf | grep -v "^$"
TryMethod suspend2.conf

~> grep -v "^#" suspend2.conf | grep -v "^$"
UseSuspend2 yes
Reboot no
EnableEscape yes
DefaultConsoleLevel 1
Compressor lzf
Encryptor none
ProcSetting userui_program /sbin/suspend2ui_fbsplash
ProcSetting expected_compression 50
ProcSetting extra_pages_allowance 7500
FullSpeedCPU yes
Include common.conf

~> grep -v "^#" common.conf | grep -v "^$"
Verbosity 2
LogFile /var/log/hibernate.log
LogVerbosity 1
Distribution gentoo
SaveClock restore-only
IbmAcpi yes
OnSuspend 10  sudo /usr/local/sbin/windows_mount unmount
OnSuspend 20  sudo /usr/local/sbin/stopnet
OnResume  20  sudo /usr/local/sbin/startnet
OnResume 10  sudo /usr/local/sbin/windows_mount mount
GentooModulesAutoload yes
RestartServices alsasound
SwitchToTextMode yes
Back to top
View user's profile Send private message
The_P
Apprentice
Apprentice


Joined: 13 Mar 2004
Posts: 248

PostPosted: Mon Sep 25, 2006 7:41 am    Post subject: Reply with quote

I added the line
Code:

ProcSetting extra_pages_allowance 7500

to my config. It is working now. Thanks a lot
Back to top
View user's profile Send private message
number_nine
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2005
Posts: 136

PostPosted: Fri Feb 02, 2007 3:55 am    Post subject: Reply with quote

ppurka wrote:
I have suspend to ram and suspend to disk working well here on a T43 (ati x300), with suspend2-sources-2.6.17. Perhaps my configuration files will help you:
...


Any chance you could also post your kernel config? And your /etc/hibernate/blacklisted-modules and perhaps the output of "lsmod"?

Thanks!

Matt
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Fri Feb 02, 2007 6:39 am    Post subject: Reply with quote

number_nine wrote:
Any chance you could also post your kernel config? And your /etc/hibernate/blacklisted-modules and perhaps the output of "lsmod"?
Hmm... that is a pretty old post,- I am sure a lot has changed in between. Anyway:
1. Kernel config. Currently the laptop is running on 2.6.19-suspend2-r1. I would suggest you upgrade to 2.6.19 since it has newer SATA drivers which have good power management (no more random non-resumes from suspend to ram).
2. blacklisted-modules. This is just the default file, no modifications made by me.
3. lsmod. This contains only those modules which I did not put into the kernel either due to necessity (agpgart, intel_agp) or because I am not using the in-kernel drivers (alsa, ipw2200).
Back to top
View user's profile Send private message
number_nine
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2005
Posts: 136

PostPosted: Sat Feb 10, 2007 1:38 am    Post subject: Reply with quote

ppurka wrote:
number_nine wrote:
Any chance you could also post your kernel config? And your /etc/hibernate/blacklisted-modules and perhaps the output of "lsmod"?
Hmm... that is a pretty old post,- I am sure a lot has changed in between. Anyway:
1. Kernel config. Currently the laptop is running on 2.6.19-suspend2-r1. I would suggest you upgrade to 2.6.19 since it has newer SATA drivers which have good power management (no more random non-resumes from suspend to ram).
2. blacklisted-modules. This is just the default file, no modifications made by me.
3. lsmod. This contains only those modules which I did not put into the kernel either due to necessity (agpgart, intel_agp) or because I am not using the in-kernel drivers (alsa, ipw2200).


A million thank yous! Your config just worked for me. I diff'ed mine and yours, and there were so many differences that it's not obvious what "the" difference was. Doesn't matter---it works!

Thank you so much!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum