Paul S said the following on 01/15/2008 07:18 PM: > Matt Price said the following on 01/15/2008 05:35 PM: >> take a look >> at /usr/share/hal/scripts/linux/hal-syspem-power-suspend-linux & related >> scripts -- the $QUIRK variable is built up in these scripts >> progressively; all you would need to do is to alter the order in which >> that's done. you might also want to submit a patch or at least >> bugreport to upstream, as i imagine no one's especially wedded to the >> order of those quirks. > > I see this section: > > # Make a suitable command line argument so that the tools can do the > correct > # quirks for video resume. > # Passing the quirks to the tool allows the tool to not depend on HAL > for data. > QUIRKS="" > [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_S3_BIOS" = "true" ] && > QUIRKS="$QUIRKS --quirk-s3-bios" > [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_S3_MODE" = "true" ] && > QUIRKS="$QUIRKS --quirk-s3-mode" > [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_DPMS_SUSPEND" = "true" ] && > QUIRKS="$QUIRKS --quirk-dpms-suspend" > [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_DPMS_ON" != "false" ] && > QUIRKS="$QUIRKS --quirk-dpms-on" > [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBESTATE_RESTORE" != "false" ] && > QUIRKS="$QUIRKS --quirk-vbestate-restore" > [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBEMODE_RESTORE" != "false" ] && > QUIRKS="$QUIRKS --quirk-vbemode-restore" > [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VGA_MODE_3" != "false" ] && > QUIRKS="$QUIRKS --quirk-vga-mode3" > [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBE_POST" != "false" ] && > QUIRKS="$QUIRKS --quirk-vbe-post" > [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_RADEON_OFF" = "true" ] && > QUIRKS="$QUIRKS --quirk-radeon-off" > [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_RESET_BRIGHTNESS" != "false" ] && > QUIRKS="$QUIRKS --quirk-reset-brightness" > [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_NONE" = "true" ] && QUIRKS="$QUIRKS > --quirk-none"
ok, now I get it .. since these are based on not being false, they are set. and "sudo lshal | grep quirk" shows that they are not set to false. So, I just have to rearrange the order of these lines like so, and it works: [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_S3_BIOS" = "true" ] && QUIRKS="$QUIRKS --quirk-s3-bios" [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_S3_MODE" = "true" ] && QUIRKS="$QUIRKS --quirk-s3-mode" [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_DPMS_SUSPEND" = "true" ] && QUIRKS="$QUIRKS --quirk-dpms-suspend" [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_DPMS_ON" != "false" ] && QUIRKS="$QUIRKS --quirk-dpms-on" [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_RESET_BRIGHTNESS" != "false" ] && QUIRKS="$QUIRKS --quirk-reset-brightness" [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VGA_MODE_3" != "false" ] && QUIRKS="$QUIRKS --quirk-vga-mode3" [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBE_POST" != "false" ] && QUIRKS="$QUIRKS --quirk-vbe-post" [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBEMODE_RESTORE" != "false" ] && QUIRKS="$QUIRKS --quirk-vbemode-restore" [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBESTATE_RESTORE" != "false" ] && QUIRKS="$QUIRKS --quirk-vbestate-restore" [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_RADEON_OFF" = "true" ] && QUIRKS="$QUIRKS --quirk-radeon-off" [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_NONE" = "true" ] && QUIRKS="$QUIRKS --quirk-none" Now this is fine for my dell with nvidia driver, but I hope it works for others too. regards, -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss