LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-02-2009, 10:03 PM   #1
Christastrophe
LQ Newbie
 
Registered: Feb 2009
Location: Canada
Posts: 27

Rep: Reputation: 15
*Sleep/Hibernate - freezes upon resume ---fix?


Hi I recently trashed windows and upgraded to linux....ubuntu. I use Gnome. I dont know alot about this OS. My issue is that when i put my laptop into sleep/hibernate mode, if left for extented periods like this, it will freeze the display. I use an ATI x1250, which i do know is not fully compatible with ubuntu (error messages prior to this issue), but the video card still seems to run properly for the most part. Any suggestions?
 
Old 03-03-2009, 05:55 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Christastrophe View Post
Hi I recently trashed windows and upgraded to linux....ubuntu. I use Gnome. I dont know alot about this OS. My issue is that when i put my laptop into sleep/hibernate mode, if left for extented periods like this, it will freeze the display. I use an ATI x1250, which i do know is not fully compatible with ubuntu (error messages prior to this issue), but the video card still seems to run properly for the most part. Any suggestions?
With "freeze the display" do you mean you get a blank screen? What Ubuntu version is this?
 
Old 03-04-2009, 11:20 AM   #3
Christastrophe
LQ Newbie
 
Registered: Feb 2009
Location: Canada
Posts: 27

Original Poster
Rep: Reputation: 15
I use ubuntu 8.10 intrepid. the computer seems to resume, but the display freezes to a blank black illuminated screen(screens still on). The only way to correct it is to hold the power till it shuts off, which i know isnt so good for computers. Any Ideas? ---- THX bty.
 
Old 03-04-2009, 11:37 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Christastrophe View Post
Any Ideas?
Actually, yes. I used to experience something like this, but on Ubuntu 7.10. You can read about it here and here. Those workarounds I mention in there did the trick for me back then. Thing is, the problem subsided in later Ubuntu versions, so I haven't had to do those tweaks any more. But maybe they can still benefit you.
 
Old 03-07-2009, 12:06 PM   #5
Christastrophe
LQ Newbie
 
Registered: Feb 2009
Location: Canada
Posts: 27

Original Poster
Rep: Reputation: 15
Thank you for the help, I read those posts, but didnt get alot of info from them. im really new and im not certain of how to write script and code. can i use system option settings without using the shell? u mentioned your problem was on battery power, but mine will do it on ac power as well. I noticed that upon resume the screen is blank but the processor icon on the front of my laptop seems to stop as well, maybe a whole system freeze? Any other help is greatly appreciated.
 
Old 03-07-2009, 02:51 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Christastrophe View Post
Thank you for the help, I read those posts, but didnt get alot of info from them. im really new and im not certain of how to write script and code. can i use system option settings without using the shell? u mentioned your problem was on battery power, but mine will do it on ac power as well. I noticed that upon resume the screen is blank but the processor icon on the front of my laptop seems to stop as well, maybe a whole system freeze? Any other help is greatly appreciated.
There was no scripting or coding involved in my workaround. I just opened a text file and made a couple edits using a text editor. In BASH, commenting means adding a "#" to the start of a line. Uncommenting means removing a "#" from the start of a line.
 
Old 03-13-2009, 02:57 PM   #7
Christastrophe
LQ Newbie
 
Registered: Feb 2009
Location: Canada
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks again for your help, i found what you were talking about, I tried to edit it, but i have a couple questions. How do I start a session as administrator or main user? I tried to edit the code but was given an error message saying i didnt have permission. The other question was, where do i place these added lines in the code? There are many lines with question and #comments, I'm just uncertain of where to place it. Iver tried a few places i thought it might effect but im still running into permission issues. Also I think my video card has a good deal to do with my problem, how can i find the exact model/type of ati x1250 i have through ubuntu....I think upgrading the card/driver will help.
 
Old 03-13-2009, 03:13 PM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Christastrophe View Post
Thanks again for your help, i found what you were talking about, I tried to edit it, but i have a couple questions. How do I start a session as administrator or main user? I tried to edit the code but was given an error message saying i didnt have permission.
You don't need to start a session with administrator privileges. That is never a good idea and should be avoided at all costs. Instead, just run your text editor with administrative privileges. For example, assuming you are using gedit, open terminal and issue this command:
Code:
gksudo gedit
That will cause you to be prompted for your password and then you can use gedit with administrative privileges. Be very careful and make sure you make backups before changing any file.

Quote:
The other question was, where do i place these added lines in the code? There are many lines with question and #comments, I'm just uncertain of where to place it. Iver tried a few places i thought it might effect but im still running into permission issues.
You don't need to add any lines. They are already there. Just fine them and add/remove the comments to them. For example, on my 8.10 box, the file looks like this (I put the relevant lines in bold):
Code:
#
# Configuration file for the acpi-support package
#
#
# The acpi-support package is intended as "glue" to make special functions of
# laptops work. Specifically, it translates special function keys for some
# laptop models into actions or generic function key presses.
#


#
# Suspend/hibernate method
# ------------------------
#
# When gnome-power-manager or klaptopdaemon are running, acpi-support will
# translate the suspend and hibernate keys of laptops into special "suspend"
# and "hibernate" keys that these daemons handle.
#
# Only in situations where there is no gnome-power-manager or klaptopdaemon
# running, acpi-support needs to perform suspend/hibernate in some other way.
# There are several options for this. The options are:
#
# dbus-pm:
#    Perform suspend and hibernate actions via a DBUS request to the power
#    management daemon. This works for power management daemons that we don't
#    know of. (For gnome-power-manager and klaptopdaemon this will do nothing,
#    since those will be detected when they are running, and triggered using
#    a virtual keypress.)
#
# dbus-hal:
#    Perform suspend and hibernate actions via a DBUS request directly to HAL,
#    bypassing any running power management daemons.
#
# pm-utils:
#    Use pm-suspend and pm-hibernate to suspend and hibernate. (The dbus method
#    normally results in this as well, but calls through dbus. Use this option
#    only if you don't have dbus installed.)
#
# hibernate:
#    Use the hibernate package to suspend and hibernate.
#
# acpi-support:
#    Use the legacy built-in suspend/hibernate support. (DEPRECATED)
# 
# none:
#    Do not attempt to suspend/hibernate. Set SUSPEND_METHODS="none" to
#    disable suspend/hibernate handling in acpi-support.
#
# If you specify dbus or pm-utils, the result will normally be the same as when
# you suspend from your desktop environment. If you specify "hibernate" or
# "acpi-support", be aware that this probably does not match what your desktop
# environment would do (unless you have managed to configure something so that
# the DBUS power management interfaces call the hibernate package).
#
#
# Please specify a space separated list of options. The recommended value is
# "dbus pm-utils"
#
SUSPEND_METHODS="dbus-pm dbus-hal pm-utils"



#
# LEGACY BUILT IN SUSPEND SUPPORT (DEPRECATED)
# --------------------------------------------
#
# These options only work for the "acpi-support" suspend method. This is NOT
# recommended, but is retained for backward compatibility reasons.
#

# Comment the next line to disable ACPI suspend to RAM
ACPI_SLEEP=true

# Comment the next line to disable suspend to disk
ACPI_HIBERNATE=true

# Change the following to "standby" to use ACPI S1 sleep, rather than S3.
# This will save less power, but may work on more machines
ACPI_SLEEP_MODE=mem

# Add modules to this list to have them removed before suspend and reloaded
# on resume. An example would be MODULES="em8300 yenta_socket"
#
# Note that network cards and USB controllers will automatically be unloaded 
# unless they're listed in MODULES_WHITELIST
MODULES=""

# Add modules to this list to leave them in the kernel over suspend/resume
MODULES_WHITELIST=""

# Should we save and restore state using the VESA BIOS Extensions?
SAVE_VBE_STATE=true

# The file that we use to save the vbestate
VBESTATE=/var/lib/acpi-support/vbestate

# Should we attempt to warm-boot the video hardware on resume?
POST_VIDEO=true

# Save and restore video state?
# SAVE_VIDEO_PCI_STATE=true

# Should we switch the screen off with DPMS on suspend?
USE_DPMS=true

# Use Radeontool to switch the screen off? Seems to be needed on some machines
# RADEON_LIGHT=true

# Uncomment the next line to switch away from X and back again after resume.
# This is needed for some hardware, but should be unnecessary on most.
# DOUBLE_CONSOLE_SWITCH=true

# Set the following to "platform" if you want to use ACPI to shut down
# your machine on hibernation
HIBERNATE_MODE=shutdown

# Comment this out to disable screen locking on resume
LOCK_SCREEN=true

# Uncomment this line to have DMA disabled before suspend and reenabled
# afterwards
# DISABLE_DMA=true

# Uncomment this line to attempt to reset the drive on resume. This seems
# to be needed for some Sonys
# RESET_DRIVE=true

# Add services to this list to stop them before suspend and restart them in 
# the resume process.
STOP_SERVICES=""

# Restart Infra Red services on resume - off by default as it crashes some
# machines
RESTART_IRDA=false

# Switch to laptop-mode on battery power - off by default as it causes odd
# hangs on some machines.  (Note: This is reported to cause breakage in
# Debian - see deb bug #425800.  Leaving enabled for Ubuntu for now
# since presumably it's still valid here.)
ENABLE_LAPTOP_MODE=false

# Add to this list network interfaces that you don't want to be stopped
# during suspend (in fact any network interface whose name starts with
# a prefix given in this list is skipped)
SKIP_INTERFACES="dummy qemu"

# Note: to enable "laptop mode" (to spin down your hard drive for longer
# periods of time), install the laptop-mode-tools package and configure
# it in /etc/laptop-mode/laptop-mode.conf.
To make the changes which I made when I was on 7.10, I would make the file look like this:
Code:
#
# Configuration file for the acpi-support package
#
#
# The acpi-support package is intended as "glue" to make special functions of
# laptops work. Specifically, it translates special function keys for some
# laptop models into actions or generic function key presses.
#


#
# Suspend/hibernate method
# ------------------------
#
# When gnome-power-manager or klaptopdaemon are running, acpi-support will
# translate the suspend and hibernate keys of laptops into special "suspend"
# and "hibernate" keys that these daemons handle.
#
# Only in situations where there is no gnome-power-manager or klaptopdaemon
# running, acpi-support needs to perform suspend/hibernate in some other way.
# There are several options for this. The options are:
#
# dbus-pm:
#    Perform suspend and hibernate actions via a DBUS request to the power
#    management daemon. This works for power management daemons that we don't
#    know of. (For gnome-power-manager and klaptopdaemon this will do nothing,
#    since those will be detected when they are running, and triggered using
#    a virtual keypress.)
#
# dbus-hal:
#    Perform suspend and hibernate actions via a DBUS request directly to HAL,
#    bypassing any running power management daemons.
#
# pm-utils:
#    Use pm-suspend and pm-hibernate to suspend and hibernate. (The dbus method
#    normally results in this as well, but calls through dbus. Use this option
#    only if you don't have dbus installed.)
#
# hibernate:
#    Use the hibernate package to suspend and hibernate.
#
# acpi-support:
#    Use the legacy built-in suspend/hibernate support. (DEPRECATED)
# 
# none:
#    Do not attempt to suspend/hibernate. Set SUSPEND_METHODS="none" to
#    disable suspend/hibernate handling in acpi-support.
#
# If you specify dbus or pm-utils, the result will normally be the same as when
# you suspend from your desktop environment. If you specify "hibernate" or
# "acpi-support", be aware that this probably does not match what your desktop
# environment would do (unless you have managed to configure something so that
# the DBUS power management interfaces call the hibernate package).
#
#
# Please specify a space separated list of options. The recommended value is
# "dbus pm-utils"
#
SUSPEND_METHODS="dbus-pm dbus-hal pm-utils"



#
# LEGACY BUILT IN SUSPEND SUPPORT (DEPRECATED)
# --------------------------------------------
#
# These options only work for the "acpi-support" suspend method. This is NOT
# recommended, but is retained for backward compatibility reasons.
#

# Comment the next line to disable ACPI suspend to RAM
ACPI_SLEEP=true

# Comment the next line to disable suspend to disk
ACPI_HIBERNATE=true

# Change the following to "standby" to use ACPI S1 sleep, rather than S3.
# This will save less power, but may work on more machines
ACPI_SLEEP_MODE=mem

# Add modules to this list to have them removed before suspend and reloaded
# on resume. An example would be MODULES="em8300 yenta_socket"
#
# Note that network cards and USB controllers will automatically be unloaded 
# unless they're listed in MODULES_WHITELIST
MODULES=""

# Add modules to this list to leave them in the kernel over suspend/resume
MODULES_WHITELIST=""

# Should we save and restore state using the VESA BIOS Extensions?
#SAVE_VBE_STATE=true

# The file that we use to save the vbestate
#VBESTATE=/var/lib/acpi-support/vbestate

# Should we attempt to warm-boot the video hardware on resume?
#POST_VIDEO=true

# Save and restore video state?
SAVE_VIDEO_PCI_STATE=true

# Should we switch the screen off with DPMS on suspend?
USE_DPMS=true

# Use Radeontool to switch the screen off? Seems to be needed on some machines
# RADEON_LIGHT=true

# Uncomment the next line to switch away from X and back again after resume.
# This is needed for some hardware, but should be unnecessary on most.
# DOUBLE_CONSOLE_SWITCH=true

# Set the following to "platform" if you want to use ACPI to shut down
# your machine on hibernation
HIBERNATE_MODE=shutdown

# Comment this out to disable screen locking on resume
LOCK_SCREEN=true

# Uncomment this line to have DMA disabled before suspend and reenabled
# afterwards
# DISABLE_DMA=true

# Uncomment this line to attempt to reset the drive on resume. This seems
# to be needed for some Sonys
# RESET_DRIVE=true

# Add services to this list to stop them before suspend and restart them in 
# the resume process.
STOP_SERVICES=""

# Restart Infra Red services on resume - off by default as it crashes some
# machines
RESTART_IRDA=false

# Switch to laptop-mode on battery power - off by default as it causes odd
# hangs on some machines.  (Note: This is reported to cause breakage in
# Debian - see deb bug #425800.  Leaving enabled for Ubuntu for now
# since presumably it's still valid here.)
ENABLE_LAPTOP_MODE=false

# Add to this list network interfaces that you don't want to be stopped
# during suspend (in fact any network interface whose name starts with
# a prefix given in this list is skipped)
SKIP_INTERFACES="dummy qemu"

# Note: to enable "laptop mode" (to spin down your hard drive for longer
# periods of time), install the laptop-mode-tools package and configure
# it in /etc/laptop-mode/laptop-mode.conf.
Then I would reboot (not sure if it's necessary in this case, but it doesn't hurt anyway) and test to see if it made any difference. If not, then I would change the file back to the way it was before, either by manually editing it or by restoring a backup copy.

Quote:
Also I think my video card has a good deal to do with my problem, how can i find the exact model/type of ati x1250 i have through ubuntu....I think upgrading the card/driver will help.
Usually you can get this information with a command like:
Code:
lspci | grep VGA
Ubuntu has a page for helping you get proprietary ATI drivers going here.
 
Old 03-14-2009, 02:17 AM   #9
Christastrophe
LQ Newbie
 
Registered: Feb 2009
Location: Canada
Posts: 27

Original Poster
Rep: Reputation: 15
I tried adding/removing #comments and restarted, but i still run into the same problem. I went to the site you suggested and downloaded the recommended version for my x1200 series xpress radeon x1250 under the linux x86, linux x86_64(said both version used same driver file). I read the instructions https://a248.e.akamai.net/f/674/9206...cat92-inst.pdf and am having troubles installing. the list of packages i need im uncertain of how to obtain, i tried sudo apt-get install -name of package, but cannot find files(im not sure if thats even how to install through terminal). Any suggestions on how to install these packages and the driver itself. thanks for all the help, im linux noob. ---- ps- im also looking for other types of operating systems to experiment with, any suggestions? I looked into Mandriva & PCLinuxOS somewhat...thx
 
Old 03-14-2009, 07:21 AM   #10
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
I recommend you use the "Install from Ubuntu repositories" method instead of using the ATI website.
 
Old 03-15-2009, 12:20 PM   #11
Christastrophe
LQ Newbie
 
Registered: Feb 2009
Location: Canada
Posts: 27

Original Poster
Rep: Reputation: 15
I tried that but it didnt have any info or instructions for 8.10, only 8.04 hardy.
 
Old 03-15-2009, 12:56 PM   #12
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Christastrophe View Post
I tried that but it didnt have any info or instructions for 8.10, only 8.04 hardy.
I see. Well, I'm gonna ask this forum's moderators if they can move this thread to the Ubuntu forum, where it will get more distro-specific exposure. I've never used an ATI card with Ubuntu so I'm not one to give adequate advice on that.
 
Old 03-15-2009, 02:06 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <Ubunut> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 03-15-2009, 02:37 PM   #14
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Just the same as for 8.04. Remove the driver you installed manually and then install the fglrx driver from the repositories.
 
Old 03-16-2009, 10:56 PM   #15
Christastrophe
LQ Newbie
 
Registered: Feb 2009
Location: Canada
Posts: 27

Original Poster
Rep: Reputation: 15
I tried installing using the instructions from the ubuntu repositories and when im instructed to sudo insmod /lib/modules/`uname -r`/volatile/fglrx.ko it says no such file or directory....any suggestions, other sites or fglrx file? im really new and everything is over my head.
 
  


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
Eth0 dead after resume from hibernate greengrocer Linux - Newbie 1 06-02-2007 08:11 AM
DISCUSSION: Mini HOW-TO: Hibernate and resume cwwilson721 LinuxAnswers Discussion 6 04-23-2006 02:49 AM
Mini HOW-TO: Hibernate and resume cwwilson721 Slackware 12 03-13-2006 03:54 PM
Fedora Core 5 T2 resume from hibernate IBall Fedora 0 02-05-2006 09:58 PM
Getting my laptop to Hibernate or Sleep Scott7 Debian 2 10-15-2005 05:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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