Public bug reported:

Binary package hint: pm-utils

Unless I am missing something, it appears that the handling of this quick is 
incomplete in Ubuntu 8.04, pm-utils 0.99.2-3ubuntu9.
In 20video, there is no attempt to perform the "vbetool vbestate save 
>somefile" operation.
Then, in 99video, it uses: "vbetool vbestate restore 
</var/lib/acpi-support/vbestate" which restores from the wrong place.  I assume 
we should be writing and reading these in /var/run, similar to the "vbemode" 
handling.

While trying to fix, I copied these files to /etc/pm/sleep.d and
modified to work correctly.  When running the Gutsy 2.6.22 kernel, my
fixes work correctly.  While trying with the 2.6.24-17-386 kernel, my
machine still does not restore and pm-suspend.log shows that BOTH
scripts had run.  According to the pm-utils doc, using the same file
name in /etc/pm/sleep.d as is in /usr/lib/pm-utils/sleep.d should cause
the /usr/lib version not to execute.  In 2.6.22, I only see my
customized scripts in /etc/pm run, but in 2.6.24, the log shows that
BOTH have run.

I don't know how to submit a patch, but here is the code that I fixed
for VBESTATE_RESTORE:

in 20video, added this handling:
        if [ "${DISPLAY_QUIRK_VBESTATE_RESTORE}" == "true" ]; then
                vbe vbestate save > /var/run/vbestate
        fi

in 99video, changed the VBESTATE_RESTORE to:
         vbe vbestate restore < /var/run/vbestate
                         (instead of /var/lib/acpi-support...)

Hardware: Sharp GP22, SiS chipset, SiS M650 video.

** Affects: pm-utils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
DISPLAY_QUIRK_VBESTATE_RESTORE does not save state
https://bugs.launchpad.net/bugs/228894
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to