Mailinglist Archive: opensuse-bugs (9680 mails)

< Previous Next >
[Bug 190481] save_video_pci_state support for s2ram
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 4 Jan 2007 18:18:27 -0700 (MST)
  • Message-id: <20070105011827.9DE65F8D@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=190481


andreas.hanke@xxxxxxxxxxxxxx changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |ASSIGNED
Info Provider|andreas.hanke@xxxxxxxxxxxxxx|




------- Comment #19 from andreas.hanke@xxxxxxxxxxxxxx 2007-01-04 18:18 MST -------
This is really frustrating because it still doesn't work.

Again, init=/bin/bash, mount /proc, mount /sys. Then I tried all combinations
of s2ram options that make sense according to http://en.opensuse.org/S2ram,
each with -v added.

The results are different, but none is working. With the following
combinations, the caps lock key shows reaction:

-f -v -a2
-f -v -p -m
-f -v -p -s
-f -v -p
-f -v -m
-f -v -s

But none of them brings the backlight back.

With the following, there's not even a reaction on the caps lock key:

-f -v -a1
-f -v -a3
-f -v -a1 -m
-f -v -a1 -s

Another difference is, that with some combinations, blindly entering "beep"
actually beeps, and with others it doesn't beep. But I didn't write the
combinations down. Would they be useful information?

What really scares me is that resuming works "almost properly" _without_ any
s2ram options except for -f when using this pm-utils hook:

############################################################################
#!/bin/bash

save_video_pci_state()
{
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
}

restore_video_pci_state()
{
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
}

case "$1" in
suspend)
save_video_pci_state
;;
resume)
restore_video_pci_state
;;
*)
;;
esac

exit $?
############################################################################

This way, it works even from within X except that the windows are afterwards
broken like in attachment 110312.


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >