Re: Automatic screen lock when leaving desk

2009-07-16 Thread Mel Flynn
On Wednesday 15 July 2009 04:53:19 Jonathan McKeown wrote:
 On Wednesday 15 July 2009 12:45:02 Matthew Seaman wrote:
  I used to be a NeXTie, and the Screensaver.app there had a really nifty
  little feature.  I'm surprised it's not been copied into other
  screensaver applications since, as it's pretty simple.  They just had a
  facility where 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.

 KDE 3.5 provides this feature - it's under Advanced Options on the
 screensaver configuration.

And 4.x too. Visually timed at ~3 seconds.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-16 Thread Matthew Seaman

Chad Perrin wrote:

Does /usr/ports/x11/xscreensaver.app do this?  It almost certainly
requires the GNUStep framework as a dependency, but you may find a number
of old friends (applications you liked) are available for that
framework, in varying states of faithfulness to what you remember.  If
you like the old interface as a whole, you might try using WindowMaker
with the GNUStep framework.


I already do use WindowMaker -- it's actually a nice fairly light-weight
X11 window manager in it's own right, even if you don't use it with all
the GnuStep desktop apps.

I'll check out xscreensaver.app shortly -- thanks for the tip.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Automatic screen lock when leaving desk

2009-07-16 Thread Mel Flynn
On Wednesday 15 July 2009 01:20:19 Frederique Rijsdijk wrote:

 I guess I'll look into the bluetooth thing. That looks quite doable.

If you can spare the time, I'd appreciate write-up of how you got it working 
on FreeBSD as it's the first bluetooth application that seems worthwhile to 
me.
I also remembered a gadget on thinkgeek [1], but unfortunately the software 
part requires windows.

[1] http://www.thinkgeek.com/computing/accessories/76ed/
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-15 Thread Frederique Rijsdijk
Hi all,

Frederique Rijsdijk wrote:
 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?


Thanks all for the replies. To answer some questions:

- I prefer automatic. I already have a key on my kb mapped to 'xlockmore
-mode blank', but in some rare cases I still forget to do it, or I'm in
an application that overrides the mapping and the key will not work. I'm
using a DasKeyboard, that doesn't have any 'unused' keys like media stuff.

I guess I'll look into the bluetooth thing. That looks quite doable.

Thanks!


-- Frederique

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-15 Thread Matthew Seaman

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 Ctrl+Alt+L.  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.



I used to be a NeXTie, and the Screensaver.app there had a really nifty 
little feature.  I'm surprised it's not been copied into other screensaver

applications since, as it's pretty simple.  They just had a facility where
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 turn
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 that
facility.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Automatic screen lock when leaving desk

2009-07-15 Thread Polytropon
On Wed, 15 Jul 2009 11:45:02 +0100, Matthew Seaman 
m.sea...@infracaninophile.co.uk wrote:
 I used to be a NeXTie, and the Screensaver.app there had a really nifty 
 little feature.  I'm surprised it's not been copied into other screensaver
 applications since, as it's pretty simple.  They just had a facility where
 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 turn
 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 that
 facility.

This feature has been implemented in the (original) Norton
Commander (Version 4 or 5, I think), but just as a screensaver,
no real lock. Remember, it was DOS.




-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-15 Thread Jonathan McKeown
On Wednesday 15 July 2009 12:45:02 Matthew Seaman wrote:

 I used to be a NeXTie, and the Screensaver.app there had a really nifty
 little feature.  I'm surprised it's not been copied into other screensaver
 applications since, as it's pretty simple.  They just had a facility where
 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 turn
 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 that
 facility.

KDE 3.5 provides this feature - it's under Advanced Options on the screensaver 
configuration.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-15 Thread Chad Perrin
On Wed, Jul 15, 2009 at 11:45:02AM +0100, Matthew Seaman wrote:
 
 I used to be a NeXTie, and the Screensaver.app there had a really nifty 
 little feature.  I'm surprised it's not been copied into other screensaver
 applications since, as it's pretty simple.  They just had a facility where
 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 turn
 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 that
 facility.

Does /usr/ports/x11/xscreensaver.app do this?  It almost certainly
requires the GNUStep framework as a dependency, but you may find a number
of old friends (applications you liked) are available for that
framework, in varying states of faithfulness to what you remember.  If
you like the old interface as a whole, you might try using WindowMaker
with the GNUStep framework.

I actually used WindowMaker/GNUStep for a while, and liked it, but
eventually decided I liked Sawfish slightly more, then that I liked AHWM
a *lot* more.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
Quoth Alan Kay: I invented the term 'Object-Oriented', and I can tell
you I did not have C++ in mind.


pgpc0w4wExAkF.pgp
Description: PGP signature


Automatic screen lock when leaving desk

2009-07-14 Thread Frederique Rijsdijk
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?

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?


-- Frederique

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-14 Thread Bill Moran
In response to Frederique Rijsdijk frederi...@isafeelin.org:
 
 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.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-14 Thread Glen Barber
Hi,

On Tue, Jul 14, 2009 at 11:32 AM, Frederique
Rijsdijkfrederi...@isafeelin.org 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?

 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?



There was an application about a year or so, Gnome based, that I saw
in the Ubuntu repository. I just checked the ports tree, but
unfortunately I don't see it.  (I searched based on key, not name,
because I forget the exact name.)

It would connect to bluetooth on a cellular phone / smartphone, and if
the bluetooth signal was lost (ie, you walked away) xscreensaver would
kick in.

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-14 Thread Chad Perrin
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 Ctrl+Alt+L.  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.

-- 
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.)


pgps08FekitOV.pgp
Description: PGP signature


Re: Re: Automatic screen lock when leaving desk

2009-07-14 Thread utisoft

On 14 Jul 2009 21:43, Chad Perrin per...@apotheon.com 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-14 Thread Mel Flynn
On Tuesday 14 July 2009 07:52:43 Bill Moran wrote:
 In response to Frederique Rijsdijk frederi...@isafeelin.org:
  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:
http://johnny.chadda.se/2007/08/09/lock-and-unlock-your-gnome-screensaver-using-your-bluetooth-phone/

I don't use bluetooth at all, so can't help you with the FreeBSD specifics.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-14 Thread Polytropon
On Tue, 14 Jul 2009 14:03:04 -0800, Mel Flynn 
mel.flynn+fbsd.questi...@mailing.thruhere.net wrote:
 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.

Just as an example, I do use this with WindowMaker. My Sun Type 6 keyboard
has a nice double-width button Help in the upper left - excellent for
hitting it when leaving the workstation. It is connected with the xlock
command.



 I like the bluetooth idea too, with the caveat that the range might not be
 sufficient.

To make it more complicated, what about wearing some specific USB device
on your clothes, attached to a chain, and when you leave the computer,
it will pop out of the USB socket and therefore cause xlock to be
called? :-)





-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-14 Thread Daniel Underwood
 To make it more complicated, what about wearing some specific USB device
 on your clothes, attached to a chain, and when you leave the computer,
 it will pop out of the USB socket and therefore cause xlock to be
 called? :-)

Haha... Polytropon's witty responses are enough reason in themselves
to monitor this mailing list :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-14 Thread Chad Perrin
On Wed, Jul 15, 2009 at 12:35:24AM +0200, Polytropon wrote:
 
 To make it more complicated, what about wearing some specific USB device
 on your clothes, attached to a chain, and when you leave the computer,
 it will pop out of the USB socket and therefore cause xlock to be
 called? :-)

Does FreeBSD still have the kernel panic when mounted USB storage devices
are detached without unmounting problem?  If so, you could just mount a
USB storage device, and unplug it when you leave the keyboard.  Then
your computer would be safe from snooping, because it would kernel panic
every time you walk away!

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
Quoth Larry Wall: You can never entirely stop being what you once were.
That's why it's important to be the right person today, and not put it
off till tomorrow.


pgpTOQ9RgOEGA.pgp
Description: PGP signature


Re: Automatic screen lock when leaving desk

2009-07-14 Thread Polytropon
On Tue, 14 Jul 2009 18:33:50 -0600, Chad Perrin per...@apotheon.com wrote:
 On Wed, Jul 15, 2009 at 12:35:24AM +0200, Polytropon wrote:
  
  To make it more complicated, what about wearing some specific USB device
  on your clothes, attached to a chain, and when you leave the computer,
  it will pop out of the USB socket and therefore cause xlock to be
  called? :-)
 
 Does FreeBSD still have the kernel panic when mounted USB storage devices
 are detached without unmounting problem? 

Hmmm... How do other operating systems react if you suddenly remove a
direct storage media that is just read from or written to? Do other
operating systems go like, Oh wow, the hard disk just disappeared,
so then I will write the data on another hard disk... :-)

As far as I know, there are some tools like DBUS and HAL that make
using USB sticks more easy in terms of automount if plugged in,
autoumount when removed, but I have to be honest: I don't use any
automount feature (due to security reasons), so in my opinion it's
always safe to first umount, then remove.



 If so, you could just mount a
 USB storage device, and unplug it when you leave the keyboard.  Then
 your computer would be safe from snooping, because it would kernel panic
 every time you walk away!

I first thought about that, too, but in my opinion it's not needed to mount
whatever you plug in as USB device, maybe a defective MP3 player made from
crap, a memory stick or who knows what. The lock / unlock action could be
assigned to the simple presence of the device.

And: Yes, I know, that's a very stupid idea. :-)



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic screen lock when leaving desk

2009-07-14 Thread Mel Flynn
On Tuesday 14 July 2009 17:36:24 Polytropon wrote:

 so in my opinion it's
 always safe to first umount, then remove.

Kids (or aging muscles) force you to revise your view. Not to mention low 
quality USB camera cables. AFAIK the panic is resolved in 8.x though. Not sure 
about the 7.x series.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org