Interesting! Do the scripts get run in /usr/lib/pm-utils/power.d/ ? (Make a
script that does something easily verified, e.g. creates a file on desktop or
whatever and then switch power)
If those are run, you could make a dirty little hack by changing the lid
behaviour manually using the gsettings command. The relevant keys are e.g.
org.gnome.settings-daemon.plugins.power lid-close-ac-action 'nothing'
org.gnome.settings-daemon.plugins.power lid-close-battery-action 'nothing'
(I've set them to nothing because my buggy hardware cannot suspend since
5.5... gotta love hw bugs)