Hi all,<br><br>When I try to find out how to judge the idle time of the system, I find XSyncAlarmNotify in the gnome-power-manager, and such codes are:<br> ...<br> XEvent *xevent = (XEvent *) gdkxevent;<br> EggIdletime *idletime = (EggIdletime *) data;<br> XSyncAlarmNotifyEvent *alarm_event;<br><br> if (xevent->type != idletime->priv->sync_event + XSyncAlarmNotify){<br> return GDK_FILTER_CONTINUE;<br> }<br> ...try to enter sleep mode<br><br>But now sometimes it will failed, so I want to know that what's meaning of XSyncAlarmNotify, and could any one tell me how to judge the idle of the system(should be the X system)?<br><br>Thanks in advance.<br><br><div>--<br>
<div> Best Regards,<br>
<br></div>
</div><br><br><span title="neteasefooter"><span id="netease_mail_footer"><hr/>
<a href="http://help.163.com/special/007525G0/163mail_guide.html?id=2716" target="_blank">网易163/126邮箱百分百兼容iphone ipad邮件收发</a>
</span></span>