execute a script when the notebook resumes from suspend to disk/ram
I have a notebook with a high screen resolution (1400x1050) and an Intel 915GM graphics card. The card needs a program called 915resolution to run properly. There is already an init script provided by mandriva, but it gets executed only on startup. So when the notebook resumes from suspend to disk, the resolution is 640x480..
A second problem is that when it resumes from suspend to ram. It is then on the first virtual terminal (Ctrl+Alt+1). I know that I have to execute chvt 7, but I don't know where to do it.
Can you help me?