Hello, On Fri, 03 Nov 2006, Raphael Hertzog wrote: > On Fri, 03 Nov 2006, Kapil Hari Paranjape wrote: > > Once that is done, the suspend/resume works fine. > > So it looks like you managed to get it working. Can you provide the > corresponding change in the form of a patch?
I am enclosing a patch to the installed files not the source. Sorry. I'm sitting at a remote machine at this moment. Just in case the patch is not clear. A. I moved suspend.d/80-video-pci-state.sh to suspend.d/81-video-pci-state.sh B. I took out the latter half of resume.d/17-video-restore.sh and made it resume.d/11-video-pci-restore.sh This is the recommended order at: http://www.thinkwiki.org/wiki/Problem_with_display_remaining_black_after_resume#Solution_for_ThinkPads_with_Intel_Extreme_Graphics_2 Regards, Kapil. --
--- /etc/acpi/resume.d/11-video-pci-restore.sh.orig 2006-11-04 06:12:01.000000000 +0530 +++ /etc/acpi/resume.d/11-video-pci-restore.sh 2006-11-03 18:37:22.000000000 +0530 @@ -0,0 +1,11 @@ +#!/bin/sh + +# Restore video PCI state +if [ x$SAVE_VIDEO_PCI_STATE = xtrue ]; then + for x in /sys/bus/pci/devices/*; do + if [ -f /var/run/vga-pci-`basename $x` ]; then + cat /var/run/vga-pci-`basename $x` >$x/config; + fi + done +fi + --- /etc/acpi/resume.d/17-video-restore.sh.orig 2006-10-22 22:46:21.000000000 +0530 +++ /etc/acpi/resume.d/17-video-restore.sh 2006-11-03 18:37:36.000000000 +0530 @@ -10,12 +10,3 @@ fi fi -# Restore video PCI state -if [ x$SAVE_VIDEO_PCI_STATE = xtrue ]; then - for x in /sys/bus/pci/devices/*; do - if [ -f /var/run/vga-pci-`basename $x` ]; then - cat /var/run/vga-pci-`basename $x` >$x/config; - fi - done -fi - --- /etc/acpi/suspend.d/80-video-pci-state.sh.orig 2006-10-22 22:46:21.000000000 +0530 +++ /etc/acpi/suspend.d/80-video-pci-state.sh 2006-11-04 06:12:01.000000000 +0530 @@ -1,11 +0,0 @@ -#!/bin/sh - -# Save video PCI state? -if [ x$SAVE_VIDEO_PCI_STATE = xtrue ]; then - for x in /sys/bus/pci/devices/*; do - if [ `cat $x/class` = "0x030000" ]; then - cat $x/config >/var/run/vga-pci-`basename $x`; - fi - done -fi - --- /etc/acpi/suspend.d/81-video-pci-state.sh.orig 2006-11-04 06:12:01.000000000 +0530 +++ /etc/acpi/suspend.d/81-video-pci-state.sh 2006-10-22 22:46:21.000000000 +0530 @@ -0,0 +1,11 @@ +#!/bin/sh + +# Save video PCI state? +if [ x$SAVE_VIDEO_PCI_STATE = xtrue ]; then + for x in /sys/bus/pci/devices/*; do + if [ `cat $x/class` = "0x030000" ]; then + cat $x/config >/var/run/vga-pci-`basename $x`; + fi + done +fi +
signature.asc
Description: Digital signature