I want to do something in C just before the system goes into standby. Unfortunately I didn't get anything WORKING.
I tries DBus, acpi, pwm etc etc......
Finally I wrote a program which works on windows and I decided to execute in Ubuntu using Wine 1.4. It uses WM_POWERBROADCAST message to detect the standby.
But it is not working under wine.
Can you please tell me why??