suspend doesn't work in ubuntu hardy heron

Asked by aalr1986

Hi!

I love Ubuntu, and I've been using it for a couple months now, and almost replacing windows, which is sooo amazing...

but one thing that bothers me is that when I close mi lid, I have a laptop DELL Vostro 1500, and when I close it, it suspends, but when I open it again,
1) takes FOREVER to come back from suspension.... like a minute or something
2) when it finally does, the computer starts acting weird, like I can't modify my monitor's brightness anymore, I clicked the turn of button in the up right corner, and the computer froze, etc....
oh and sometimes it doesn't even come back from it..... I get a black screen, and that's it.

is anyone familiar with this?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Harvey Muller
Solved:
Last query:
Last reply:
Revision history for this message
aalr1986 (abraham16-gmail) said :
#1

.. anyone?

Revision history for this message
Harvey Muller (hlmuller) said :
#2

aalr1986,

I may be able to provide advice depending on the graphic installed on your machine. Let me know if you have the Nvidia 8400M GS graphics.

If so, are you using the nvidia-glx-new driver?

Thanks!

Harvey

Revision history for this message
aalr1986 (abraham16-gmail) said :
#3

no.. I'm using the Nvidia 8600M GT.

does that help? :S

Revision history for this message
Harvey Muller (hlmuller) said :
#4

Ok,

You missed the second question, but I'll assume in this response that you are not. This might not work for you, but since our graphics are similar, it just may.

Let's check if you have an AGP or PCIE controller, run in a terminal then report back here the results:

    $ lspci | grep AGP

If AGP is present, you will get output, if not, you will get none.

Let me know what you have.

Thanks!

Harvey

Revision history for this message
aalr1986 (abraham16-gmail) said :
#5

yea... I don't get any output at all... I guess I have PCIE

Revision history for this message
Harvey Muller (hlmuller) said :
#6

Great, our machines are similar enough that the steps I went through may work for you.

Before we go further, please report back here the results of both of these commands to be run in a terminal:

    $ lsb_release -d
    $ uname -m

Thanks!

Harvey

Revision history for this message
aalr1986 (abraham16-gmail) said :
#7

    $ lsb_release -d
Description: Ubuntu 8.04.1

    $ uname -m
i686

dude, thanks for all your help!!! :) keep it going!

Revision history for this message
Harvey Muller (hlmuller) said :
#8

Ok, I'm going to install Ubuntu Hardy i386 into a spare partition today to get as close to your environment as possible, then test the solution in that environment.

If everything goes well, I'll publish the instructions here for you.

Thanks!

Harv

Revision history for this message
Harvey Muller (hlmuller) said :
#9

Ok, I've determined the bare minimum to get suspend working. I've made extra modifications to my own machine, and wanted to make sure I didn't give you any unecessary instructions.

There are only three things you need to do:

1. Install nvidia-glx-new:

    In a terminal, run the following:

    $ sudo aptitude install nvidia-glx-new

2. Modify /etc/default/acpi-support

    Make a copy, in case you want to revert later:
    $ sudo cp -a /etc/default/acpi-support ~/

    Open acpi-support and edit it:

    $ gksu gedit /etc/default/acpi-support

    Change SAVE_VBE_STATE to false
    Change POST_VIDEO to false
    Uncomment DISABLE_DMA to set to true

    Save changes and close the editor

    Remove backup created by gedit:

    $ sudo rm /etc/default/acpi-support~

3. Modify xorg.conf

    Make a copy first in case you want to revert later:

    $ sudo cp -a /etc/X11/xorg.conf ~/

    Open xorg.conf for editing:

    $ gksu gedit /etc/X11/xorg.conf

    Add the following to the Device section:

    Driver "nvidia"

    Save changes and close the editor.

    Remove the backup copy gedit created:

    $ sudo rm /etc/X11/xorg.conf~

That's it. Provided you ARE using Hardy 8.04.1, suspend and hibernate should work correctly now. Reboot and test.

If it doesn't work for you, you can revert by uninstalling nvidia-glx-new:

    $ sudo aptitude purge nvidia-glx-new

If reverting also replace modified files with the backups:

    $ sudo mv ~/xorg.conf /etc
    $ sudo mv ~/acpi-support

Revision history for this message
Harvey Muller (hlmuller) said :
#10

Ok, I've determined the bare minimum to get suspend working. I've made extra modifications to my own machine, and wanted to make sure I didn't give you any unecessary instructions.

There are only three things you need to do:

1. Install nvidia-glx-new:

    In a terminal, run the following:

    $ sudo aptitude install nvidia-glx-new

2. Modify /etc/default/acpi-support

    Make a copy, in case you want to revert later:
    $ sudo cp -a /etc/default/acpi-support ~/

    Open acpi-support and edit it:

    $ gksu gedit /etc/default/acpi-support

    Change SAVE_VBE_STATE to false
    Change POST_VIDEO to false
    Uncomment DISABLE_DMA to set to true

    Save changes and close the editor

    Remove backup created by gedit:

    $ sudo rm /etc/default/acpi-support~

3. Modify xorg.conf

    Make a copy first in case you want to revert later:

    $ sudo cp -a /etc/X11/xorg.conf ~/

    Open xorg.conf for editing:

    $ gksu gedit /etc/X11/xorg.conf

    Add the following to the Device section:

    Driver "nvidia"

    Save changes and close the editor.

    Remove the backup copy gedit created:

    $ sudo rm /etc/X11/xorg.conf~

That's it. Provided you ARE using Hardy 8.04.1, suspend and hibernate should work correctly now. Reboot and test.

If it doesn't work for you, you can revert by uninstalling nvidia-glx-new:

    $ sudo aptitude purge nvidia-glx-new

If reverting also replace modified files with the backups:

    $ sudo mv ~/xorg.conf /etc/X11
    $ sudo mv ~/acpi-support /etc/default

Please report back here and mark the question Solved if this resolves your issue. If there is a duplicate post before this one, the previous one should be disregarded.

Thanks!

Harvey

Revision history for this message
Harvey Muller (hlmuller) said :
#11

Hi,

Just following up to see if the information provided resolved your issue. If so, please return to Launchpad and mark the question Solved.

Thanks!

Harvey

Revision history for this message
aalr1986 (abraham16-gmail) said :
#12

Hey Harvey....

somehow, I got the problem fixed, I actually did nothing, but yeah it's now working.....

if it behaves weird again, i'll do all you've told me to do, and i'll tell u what's going on....

thanks a lot for your help, I really appreciate it!!!

Revision history for this message
Best Harvey Muller (hlmuller) said :
#13

Hi,

Thanks, please return to Launchpad and mark the question solved when you get a chance.

Harvey

Revision history for this message
aalr1986 (abraham16-gmail) said :
#14

Thanks Harvey Muller, that solved my question.