From owner-freebsd-questions@FreeBSD.ORG Tue Jul 14 22:03:07 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 251F01065670 for ; Tue, 14 Jul 2009 22:03:07 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id DFC908FC0A for ; Tue, 14 Jul 2009 22:03:06 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from smoochies.rachie.is-a-geek.net (mailhub.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 9FECA7E818; Tue, 14 Jul 2009 14:03:05 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Tue, 14 Jul 2009 14:03:04 -0800 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA1; KDE/4.2.4; i386; ; ) References: <4A5CA4F1.6090605@isafeelin.org> <20090714115243.e454e09b.wmoran@potentialtech.com> In-Reply-To: <20090714115243.e454e09b.wmoran@potentialtech.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907141403.04748.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Frederique Rijsdijk , Bill Moran Subject: Re: Automatic screen lock when leaving desk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 22:03:07 -0000 On Tuesday 14 July 2009 07:52:43 Bill Moran wrote: > In response to Frederique Rijsdijk : > > I'm looking for a way to automaticaly lock my X session when I leave my > > desk. Probably just using 'xlockmore -mode blank' or such. But how to > > detect? > > > > It could be infrared based (heat signature), video based (webcam w/ > > motion detection) or even mechanical (switch in seat? meh..). > > > > And how would FreeBSD interface with such device? Most likely via USB, > > since my lt doesn't have any serial ports. > > > > Any ideas? Experience? > > Unless your requirements are really as strict as you state, you're probably > better off just installing xscreensaver and configuring it to lock the > screen after a reasonable amount of inactivity. And use xev to figure out the keycode of an unused key on your keyboard you can easily access (like multimedia keys). Then you can activate it when leaving your spot or when that creepy guy from accounting tries to look over your shoulder. You would probably need some window/session manager that supports "global key shortcuts". I like the bluetooth idea too, with the caveat that the range might not be sufficient. There's an article about it here: I don't use bluetooth at all, so can't help you with the FreeBSD specifics. -- Mel