From owner-freebsd-questions Mon Sep 25 12:34: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dnai.com (dnai.com [207.181.194.98]) by hub.freebsd.org (Postfix) with ESMTP id 1B12937B42C for <freebsd-questions@FreeBSD.ORG>; Mon, 25 Sep 2000 12:34:02 -0700 (PDT) Received: from azoth.dnai.com (azoth.dnai.com [207.181.194.94]) by dnai.com (8.9.3/8.9.3) with ESMTP id MAA99400 for <freebsd-questions@FreeBSD.ORG>; Mon, 25 Sep 2000 12:34:01 -0700 (PDT) Received: from bigshed.com (dnai-216-15-97-193.cust.dnai.com [216.15.97.193]) by azoth.dnai.com (8.9.3/8.9.3) with ESMTP id MAA84287 for <freebsd-questions@FreeBSD.ORG>; Mon, 25 Sep 2000 12:34:01 -0700 (PDT) Message-ID: <39CFAB27.25D938D9@bigshed.com> Date: Mon, 25 Sep 2000 12:44:39 -0700 From: Ken Marx <kmarx@bigshed.com> X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 2.2.8-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG> Subject: XScreenSaverQueryInfo events Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Is there a way to programatically generate events that will keep a screen saver (e.g., xautolock) from going into saver mode? The example here is that I have a voice recognition app. When actively working I'd like valid voice input to have the same effect as the equivalent keystrokes. Instead, the screen saver timeout locks the screen up. So, I'd like to, at least, emulate a keyboard hit, or mouse event at the level that the X sees them as being hardware events. I've tried doing XSendEvent(), and doing TIOSTI ioctls to no avail. I've looked at the code for xautolock, which (on our hosts) goes down the path of using XScreenSaverQuery(), which in turn gets an 'idle' value from a xScreenSaverQueryInfoReply rec passed to GetReq() which is some horrible macro, blah, blah. I'd like to be able to make this rec's idle value reset based on events of my choosing (or definition?). I looked at XScreenSaverSetAttributes(), but am not sure I could dependably set all the values since there's not corresponding 'Get' call. Any ideas? I'm hoping there's something simpler that I'm not aware of. Thanks! k. -- Ken Marx, kmarx@bigshed.com We've been running fast, now we have to run smart. It's time to implement and revise the expectations surrounding the key niche areas. - http://cgi.bigshed.com/~kmarx/cgi-bin/speak.cgi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message