From owner-freebsd-questions@FreeBSD.ORG Tue Jul 14 20:49:45 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 C2352106566B for ; Tue, 14 Jul 2009 20:49:45 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from outbound-mail-143.bluehost.com (outbound-mail-143.bluehost.com [67.222.38.33]) by mx1.freebsd.org (Postfix) with SMTP id 8F0948FC0C for ; Tue, 14 Jul 2009 20:49:45 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: (qmail 30917 invoked by uid 0); 14 Jul 2009 20:49:45 -0000 Received: from unknown (HELO box543.bluehost.com) (74.220.219.143) by outboundproxy5.bluehost.com with SMTP; 14 Jul 2009 20:49:45 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=apotheon.com; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:References:Mime-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent:X-Identified-User; b=VilaxyN1O1wgDJR5L2PgwCP+5r17p3twc3cEgDRaA+mvCfB2jF2vHxR3aA2MLTVslGaHF29Y4/Q5K5k6yjtw+jOjp0wQtUZKGD5QpcSl58EvlsG7q5cQRCwpnvG5BPrM; Received: from c-24-8-180-234.hsd1.co.comcast.net ([24.8.180.234] helo=kokopelli.hydra) by box543.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MQowa-0007Dn-Ep for freebsd-questions@freebsd.org; Tue, 14 Jul 2009 14:49:44 -0600 Received: by kokopelli.hydra (sSMTP sendmail emulation); Tue, 14 Jul 2009 14:43:18 -0600 Date: Tue, 14 Jul 2009 14:43:18 -0600 From: Chad Perrin To: FreeBSD-Questions Message-ID: <20090714204318.GC1832@kokopelli.hydra> Mail-Followup-To: FreeBSD-Questions References: <4A5CA4F1.6090605@isafeelin.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YD3LsXFS42OYHhNZ" Content-Disposition: inline In-Reply-To: <4A5CA4F1.6090605@isafeelin.org> User-Agent: Mutt/1.4.2.3i X-Identified-User: {2737:box543.bluehost.com:apotheon:apotheon.org} {sentby:smtp auth 24.8.180.234 authed with ren@apotheon.org} 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 20:49:46 -0000 --YD3LsXFS42OYHhNZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 14, 2009 at 05:32:01PM +0200, Frederique Rijsdijk wrote: > Hi, >=20 > 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. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Quoth Paul Graham: "SUVs are gross because they're the solution to a gross problem. (How to make minivans look more masculine.)" --YD3LsXFS42OYHhNZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAkpc7eYACgkQ9mn/Pj01uKWHGgCgpK/C9hvXKqC4UxuLkOKeW9hf FVEAoNUm9rxsHsWECbGgmujGv7Oad2EU =D3CP -----END PGP SIGNATURE----- --YD3LsXFS42OYHhNZ--