ironhide icon indicating copy to clipboard operation
ironhide copied to clipboard

no such device after suspending

Open markbaas opened this issue 13 years ago • 2 comments

In the settings I've enabled "Always enable the nVidia card before disabling" option to "No" in order to not get the 'no such device error'. However after suspending the laptop, again I got this error.

I have fixed this issue by creating a pm-utils hook in sleep.d that enables the card before suspending and runs ironhide-disablecard-on-powerup to disable it. I will post the hook.

markbaas avatar Oct 30 '11 09:10 markbaas

I've put this in /etc/pm/sleep.d/99-ironhide


# This script was necessary to avoid getting no such device errors 
# running optirun after suspend

case $1 in
     suspend|suspend_hybrid|hibernate)
        # enable card to suspend
        /usr/local/bin/ironhide-enablecard
        ;;
     resume|thaw)
        # again, disable the card if no optirun is runninf
        /usr/bin/ironhide-disablecard-on-powerup
        ;;
esac```

markbaas avatar Oct 30 '11 09:10 markbaas

Same problem here. I will try this and report back. Thx!

komasoftware avatar Nov 02 '11 07:11 komasoftware