Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old June 9th, 2006   #1
lutzky
Spilled the Beans
 
Join Date: Jun 2006
Beans: 13
Ubuntu 6.06
Unhappy Suspending Thinkpad R50e with Dapper

Back in Breezy, I set up suspending like so: I have a script, /usr/local/bin/thinkpad-sleep, in which the most essential part is this:

Code:
...
cat /proc/bus/pci/00/02.0 > /var/cache/video.config
...
echo -n mem > /sys/power/state
...
cat /var/cache/video.config > /proc/bus/pci/00/02.0
...
It is those two 'cat' lines which finally solved suspending on my R50e (otherwise it would show a blank screen on resume).
Now, dapper comes with its own suspending mechanism, and I'd rather use that. So I changed /etc/default/acpi-support to enable SAVE_VIDEO_PCI_STATE (which, as far as I can tell, does exactly that). But no dice. Video comes up blank (screen completely OFF). Any ideas?
lutzky is offline  
Old June 9th, 2006   #2
splitsch
5 Cups of Ubuntu
 
Join Date: Apr 2006
Beans: 19
Re: Suspending Thinkpad R50e with Dapper

Hello!
You might want to check this post:
http://www.ubuntuforums.org/showthre...highlight=r50e
and here: http://www.thinkwiki.org/wiki/Instal...nd_Hibernation
now hibernate and sleep are working:
fisrt:
Quote:
Open a terminal and enter this command:

sudo gedit /etc/default/acpi-support

And uncomment "ACPI_SLEEP=true" (by removing the # character in front of it)
And in the same file, uncomment "restore_pci_somethingIforgot"
Then:
Quote:
sudo cp /etc/acpi/sleep.sh /etc/acpi/sleep.sh_backup
sudo gedit /etc/acpi/sleep.sh

Replace the line "echo -n $ACPI_SLEEP_MODE >/sys/power/state" with
(take from Problem with display remaining black after resume):

# change to console 1
FGCONSOLE=`fgconsole`
chvt 6

# safe video state
cat /proc/bus/pci/00/02.0 > /tmp/video_state

# sync filesystem
sync

# sync hardware clock with system time
hwclock --systohc

# go to sleep
echo -n 3 > /proc/acpi/sleep

# waking up
# restore system clock
hwclock --hctosys

# restore video state
cat /tmp/video_state > /proc/bus/pci/00/02.0

# change back to X
chvt $FGCONSOLE

# clean up behind us
rm /tmp/video_state
then, edit your Xorg.conf
Quote:
Section "Device"
Identifier "Intel Corporation 82852/855GM Integrated Graphics Device"
Driver "i810"
BusID "PCI:0:2:0"
Option "VBERestore" "true"
EndSection
It works fine with my r50e laptop.
I don't use kpowersave, though, but klaptop !
Suspend work from calling the /etc/acpi/sleep script in the console or calling it from right-click on klaptop>suspend.

Bye!
splitsch is offline  
Old June 11th, 2006   #3
lutzky
Spilled the Beans
 
Join Date: Jun 2006
Beans: 13
Ubuntu 6.06
Re: Suspending Thinkpad R50e with Dapper

Thanks, worked very well. However, it seems like too much work... shouldn't this be autodetected and made to 'just work'? I was so impressed with Dapper's usability for new users with laptops.
lutzky is offline  
Old June 11th, 2006   #4
splitsch
5 Cups of Ubuntu
 
Join Date: Apr 2006
Beans: 19
Re: Suspending Thinkpad R50e with Dapper

I know, it should be detected, but it seems that there is a bug!
Check in launchpad
r50e thinkpad aren't supported right away...

bye
splitsch is offline  
Old June 12th, 2006   #5
jrei
5 Cups of Ubuntu
 
Join Date: Feb 2005
Beans: 28
Re: Suspending Thinkpad R50e with Dapper

thanks,

Quote:
Open a terminal and enter this command:

sudo gedit /etc/default/acpi-support

And uncomment "ACPI_SLEEP=true" (by removing the # character in front of it)
And in the same file, uncomment "SAVE_VIDEO_PCI_STATE=true"
Did the job for my IBM Z60m.
The hibernate test and the suspend test worked.

Greetings, Jörn
jrei is offline  
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:16 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry