linux - Qt - How to detect Resume from Standby & Mem states -
we developing embedded device based on am335x sdk ti (based on arago project)
the main application on device being developed using qt4.8
we want detect when device entering standby / mem states can save data , suspend our main application
we want detect when device resuming these states main application can resumed correctly
does have experience / information / links how may achieved?
i've found solution issue above.
on our system standby / mem state can invoked via script /usr/bin/pm_suspend.sh in turn calls echo mem > /sys/power/state suspend device memory.
i've added kill -usr2 {app.pid} before call suspend , kill -usr1 {app.pid} after.
my application understands usr2 signal save our data , delete our main form , usr1 signal spawn new instance of our main form.
Comments
Post a Comment