The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Suspend/Sleep/Hibernate and Ubuntu

    Discussion in 'Linux Compatibility and Software' started by dr_devious, Aug 25, 2008.

  1. dr_devious

    dr_devious Notebook Guru

    Reputations:
    0
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    15
    Do these features really not function within Ubuntu? It is pretty hard to believe that a modern operating system does not have a fully functioning sleep/suspend feature...
     
  2. The Fire Snake

    The Fire Snake Notebook Virtuoso

    Reputations:
    426
    Messages:
    2,889
    Likes Received:
    0
    Trophy Points:
    55
    They do but I think it depends on the machine. On the thinkpad T61 Ubuntu 8.04 is supposed to be able to hibernate and sleep, with a little tweaking though :)
     
  3. dr_devious

    dr_devious Notebook Guru

    Reputations:
    0
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    15
    I have to been able to get it to function on the dv5z. I would love to go Ubuntu full time on my machine but the lack of sleep/suspend is a deal breaker. Any ideas?
     
  4. Phil17

    Phil17 Notebook Consultant

    Reputations:
    13
    Messages:
    292
    Likes Received:
    0
    Trophy Points:
    30
    If it doesn't work with your laptop now, it might work with the next release. You can also just shut down and and all of your documents open back up to where you left them when you start your laptop up again.
     
  5. dr_devious

    dr_devious Notebook Guru

    Reputations:
    0
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    15
    Have there been confirmed improvements in the sleep/hibernate features in Ibex?
     
  6. PookiePrancer

    PookiePrancer Notebook Consultant

    Reputations:
    74
    Messages:
    284
    Likes Received:
    0
    Trophy Points:
    30
    Works on my XPS M1330
     
  7. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    It's hard to believe that a modern computer doesn't actually follow the ACPI 2.0 standards, even though they've been out since, oh, 2001 or so. But it still happens. That's the main issue. Windows is perfectly happy to work with broken ACPI tables, whereas Linux isn't.

    Basically, Linux has fully functioning sleep/suspend/hibernate, it's just that many machines (more often laptops) don't actually adhere to the specifications they claim to.

    See here for some enlightenment on ACPI issues under Linux
     
  8. dr_devious

    dr_devious Notebook Guru

    Reputations:
    0
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    15
    Oops! My newb was showing :D

    What is going to be the best way of getting my dv5z with it's retarded ACPI to work with Linux? or is waiting for the next release my only option?
     
  9. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Look at the page I linked to, and basically just try it. Usually updated BIOS versions fix a lot of issues with things like that. Each laptop is unique, and since I don't have (and am not planning on getting) a dv5z, it will basically just take some research.

    I'd wager to say that most of the suspend/hibernate issues encountered are because of the graphics cards and using the binary drivers (fglrx in your case). Graphics drivers are the only reason I have ever had an issue with suspending or hibernating.
     
  10. highlandsun

    highlandsun Notebook Evangelist

    Reputations:
    66
    Messages:
    615
    Likes Received:
    6
    Trophy Points:
    31
    I've already taken a look at the DSDT and fixed the easy problems on the dv5z. Suspend2RAM is still broken, even with the 2.6.27-rc4 kernel. I think something's missing in the sequence of steps it takes to put the system to sleep, so that when you try to wake it up there's nothing there to wake it. Just a guess at the moment.
     
  11. dr_devious

    dr_devious Notebook Guru

    Reputations:
    0
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    15
    What problems have you fixed on the dv5z? Are you working on the sleep problem currently?
     
  12. highlandsun

    highlandsun Notebook Evangelist

    Reputations:
    66
    Messages:
    615
    Likes Received:
    6
    Trophy Points:
    31
    The ACPI temperature monitoring doesn't work on Linux because the DSDT specifically checks for Windows. I've removed those checks on mine so that temperature monitoring now works on Linux for me. There are some Windows-specific checks for the video output switch too, that I removed, but I haven't actually figured out if they do anything useful yet.

    Yes, I'm trying to chase down the sleep problem. You can follow along here http://bugzilla.kernel.org/show_bug.cgi?id=11368

    The thermal monitoring issue is here http://bugzilla.kernel.org/show_bug.cgi?id=11421 and I uploaded my fixed DSDT here
    http://acpi.sourceforge.net/dsdt/view.php?manufacturer=HP&name=Pavilion+dv5+dv5z
     
  13. dr_devious

    dr_devious Notebook Guru

    Reputations:
    0
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    15
    Without the your correct DSDT settings is there a risk the laptop will overheat?
     
  14. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    I don't know for sure, but I'd doubt it. Most of the fan speed and other operations are hardware based, rather than software based, at least in my experience. He's just making the sensors visible to Linux.

    There's also a hardware-level overheat downclocking (or shutdown) that all modern processors support to protect you from damage.
     
  15. dr_devious

    dr_devious Notebook Guru

    Reputations:
    0
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    15
    Thank you for the reply....I read through some of the bug reports and it looked like it was just the monitoring/reporting of temps that was effected.
     
  16. highlandsun

    highlandsun Notebook Evangelist

    Reputations:
    66
    Messages:
    615
    Likes Received:
    6
    Trophy Points:
    31
    ACPI requires the OS to respond to most conditions. If the OS doesn't handle them, then you're kind of screwed. The thermal_zone allows the OS to start throttling the processor in response to higher temperatures. If you just rely on the hardware overheat protection, you could be running at the worst-case temperature for a long time, longer than if the OS was able to manage the temperatures correctly.

    With the thermal_zone working, the OS can do a clean shutdown after hitting a critical temperature. Without it, the CPU just turns itself off abruptly, and you suffer data loss.
     
  17. dr_devious

    dr_devious Notebook Guru

    Reputations:
    0
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    15
    Newb question, how do I install your customize DSDT...
     
  18. highlandsun

    highlandsun Notebook Evangelist

    Reputations:
    66
    Messages:
    615
    Likes Received:
    6
    Trophy Points:
    31
    The one on the web site is source code, you need to compile it with iasl before you can use it. Or I guess I can post a binary version of it somewhere. You can get iasl from here http://acpica.org/downloads/

    After you compile it, move it to /etc/initramfs-tools/DSDT.aml
    then run "update-initramfs -u" and reboot.

    On second thought - it's probably a bad idea to just install mine in your computer, there are other aspects of the DSDT that are specific to your machine. If you send me a copy of your current DSDT I can patch it and send it back to you.
    You should be able to copy /proc/acpi/dsdt to a regular file and send it. PM if you want to go this route.