From owner-freebsd-questions@FreeBSD.ORG Tue Jul 14 20:59:43 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 F30D11065670 for ; Tue, 14 Jul 2009 20:59:42 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: from ey-out-1516.google.com (ey-out-1516.google.com [74.125.78.163]) by mx1.freebsd.org (Postfix) with ESMTP id 48DD48FC16 for ; Tue, 14 Jul 2009 20:59:42 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: by ey-out-1516.google.com with SMTP id 5so5565eyg.7 for ; Tue, 14 Jul 2009 13:59:41 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20090714204318.GC1832@kokopelli.hydra> Received: by 10.216.44.212 with SMTP id n62mr130798web.29.1247605181298; Tue, 14 Jul 2009 13:59:41 -0700 (PDT) Message-ID: <0016365ede6ea6be4a046eb0b7c3@google.com> Date: Tue, 14 Jul 2009 20:59:41 +0000 From: utisoft@googlemail.com To: Chad Perrin , "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: 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 20:59:43 -0000 On 14 Jul 2009 21:43, Chad Perrin wrote: > On Tue, Jul 14, 2009 at 05:32:01PM +0200, Frederique Rijsdijk wrote: > > Hi, > > > > 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? > Why does it have to be automatic? Something like xlockmore or slock can > be tied to a keyboard shortcut, such as ++. If for some > reason you require automatic locking, though, you could perhaps set up > some kind of Bluetooth connection detection if you have a Bluetooth > enabled cellphone in your pocket (or something else that would work as a > Bluetooth token) and if your computer has the right hardware. I imagine > writing a daemon in Perl or Ruby that checks for loss of a Bluetooth > connection would be easier than getting Bluetooth working in the first > place might be, depending on the state of Bluetooth support in FreeBSD. > I'm not really well-versed in the ephemera of what is used to determine > "inactivity" on a computer, but if it's reasonably easy (or if there's a > Perl module for it), that seems like the obvious way to handle it -- > though of course that may present problems, such as false positives on > detecting "inactivity" when watching a movie on the computer or something > like that. Although it would ravish your cellphone's battery.... Chris