I'm running easypeasy 1.0 with kernel 2.6.27.18. Some hal-scripts for
suspend/hibernate do not detect correctly the i915, because module entry
is missing in /sys. The patches make the scripts more robust. They
additionally use /proc for detection.

--- a/usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux	2009-03-08 13:19:25.088879950 +0100
+++ b/usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux	2009-03-08 13:18:14.000000000 +0100
@@ -9,7 +9,7 @@ unsupported() {
 # on some video drivers we must ignore video quirks, since they break
 # on them; this particularly affects Intel >= 915G and the proprietary
 # nvidia and fglrx drivers.
-if [ -d /sys/module/i915 ]; then
+if [ -d /sys/module/i915 ] || [ "x`cat /proc/dri/0/name | grep i915`" != "x" ]; then
     # the i915 kmod also drives the i830/i845/i855/i865 chips nowadays, but
     # they still need quirks on at least Linux 2.6.24.
     PRODID=`hal-get-property --udi $HAL_PROP_INFO_UDI --key system.hardware.primary_video.product`
--- a/usr/lib/hal/scripts/linux/hal-system-power-suspend-hybrid-linux	2009-03-08 13:19:35.683849842 +0100
+++ b/usr/lib/hal/scripts/linux/hal-system-power-suspend-hybrid-linux	2009-03-08 13:17:51.000000000 +0100
@@ -17,7 +17,7 @@ read seconds_to_sleep
 # on some video drivers we must ignore video quirks, since they break
 # on them; this particularly affects Intel >= 915G and the proprietary
 # nvidia and fglrx drivers.
-if [ -d /sys/module/i915 ]; then
+if [ -d /sys/module/i915 ] || [ "x`cat /proc/dri/0/name | grep i915`" != "x" ]; then
     # the i915 kmod also drives the i830 and i855 chips nowadays, but they
     # still need quirks on at least Linux 2.6.24.
     PRODID=`hal-get-property --udi $HAL_PROP_INFO_UDI --key system.hardware.primary_video.product`
--- a/usr/lib/hal/scripts/linux/hal-system-power-suspend-linux	2009-03-06 09:23:53.000000000 +0100
+++ b/usr/lib/hal/scripts/linux/hal-system-power-suspend-linux	2009-03-06 09:22:59.000000000 +0100
@@ -17,7 +17,7 @@ read seconds_to_sleep
 # on some video drivers we must ignore video quirks, since they break
 # on them; this particularly affects Intel >= 915G and the proprietary
 # nvidia and fglrx drivers.
-if [ -d /sys/module/i915 ]; then
+if [ -d /sys/module/i915 ] || [ "x`cat /proc/dri/0/name | grep i915`" != "x" ]; then
     # the i915 kmod also drives the i830 and i855 chips nowadays, but they
     # still need quirks on at least Linux 2.6.24.
     PRODID=`hal-get-property --udi $HAL_PROP_INFO_UDI --key system.hardware.primary_video.product`
-- 
Ubuntu-devel-discuss mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss

Reply via email to