From owner-freebsd-questions@FreeBSD.ORG Wed Jul 15 10:45:17 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 3D4261065679 for ; Wed, 15 Jul 2009 10:45:17 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id B5ECA8FC15 for ; Wed, 15 Jul 2009 10:45:16 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n6FAj9p8047521 for ; Wed, 15 Jul 2009 11:45:10 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n6FAj9p8047521 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1247654710; bh=7CKvIJMrXWrV00Fq0ygPTNCMQnIepLKUTAacLgkBBfA=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4A5DB32E.7010406@infracaninophile.co.uk>|Date:=20W ed,=2015=20Jul=202009=2011:45:02=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.22=20(X11/20090625)|MIME-Vers ion:=201.0|To:=20FreeBSD-Questions=20|Subject:=20Re:=20Automatic=20screen=20lock=20when=20leaving=20d esk|References:=20<4A5CA4F1.6090605@isafeelin.org>=20<200907142043 18.GC1832@kokopelli.hydra>|In-Reply-To:=20<20090714204318.GC1832@k okopelli.hydra>|X-Enigmail-Version:=200.95.6|Content-Type:=20multi part/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"applic ation/pgp-signature"=3B=0D=0A=20boundary=3D"------------enig020524 BCEB6236553FC881A6"; b=nrwYq6Df9l8LMpa7P1fqMtCsN+AFJ9GlwhPeuU4NDHueoX5GxOSYcaFZHSQTnBSsR 5u6s0gkMQq1vaX/T5THCyrUFmAxhpqrrTfX2TYqwBTxw1TSfEvu76hSmVxhj2EP/RB w4VjycZKoLyPpGHDAoIX4Q+DhMvctE9QTP3NRLEc= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4A5DB32E.7010406@infracaninophile.co.uk> Date: Wed, 15 Jul 2009 11:45:02 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: FreeBSD-Questions References: <4A5CA4F1.6090605@isafeelin.org> <20090714204318.GC1832@kokopelli.hydra> In-Reply-To: <20090714204318.GC1832@kokopelli.hydra> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig020524BCEB6236553FC881A6" X-Virus-Scanned: clamav-milter 0.95.2 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk 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: Wed, 15 Jul 2009 10:45:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig020524BCEB6236553FC881A6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable 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 m= y >> desk. Probably just using 'xlockmore -mode blank' or such. But how to >> detect? >=20 > Why does it have to be automatic? Something like xlockmore or slock ca= n > 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 imagin= e > 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.= >=20 > 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 somethi= ng > like that. >=20 I used to be a NeXTie, and the Screensaver.app there had a really nifty=20 little feature. I'm surprised it's not been copied into other screensave= r applications since, as it's pretty simple. They just had a facility wher= e moving the mouse cursor to one corner of the screen and leaving it still for a few seconds would cause the screen saver / screen lock to come on straight away. Conversely you could designate another corner of the screen as "don't tur= n on screensaver even after an extended period of idleness". Being a NeXT = app this was all configurable by dragging little '+' or '-' icons around a scaled down image of the screen, or off it entirely if you didn't want th= at facility. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig020524BCEB6236553FC881A6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkpdszUACgkQ8Mjk52CukIz4YwCdHsxEb6cehvffdpX37DJaOYu1 5/UAn2F1OC1G38hhcUGbCLZAiokKwT5b =zt9w -----END PGP SIGNATURE----- --------------enig020524BCEB6236553FC881A6--