[ltp] gnome-screensaver and locking using fn-f2

André Wyrwa linux-thinkpad@linux-thinkpad.org
Wed, 04 Apr 2007 21:05:00 +1000


--=-J1v5u5fBHMjoUjWgPZj1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hei,

I'm working on a tool that makes that possible, but it's only one
functionality, the tools purpose is theft protection. It's written in
python and solves the problem by connecting to acpid via it's socket.
So it can run in userspace and still get the ibm-acpi event.

I'll post a link when i have 0.2 ready.
Should be soon.

Andr=E9.


On Wed, 2007-04-04 at 13:18 +0200, Grant Williamson wrote:
> That does not seem to work either, xscreensaver would, even if I set=20
> XAUTH & DISPLAY.
>=20
> Fails with either
> gnome-screensaver-Message: Screensaver is not running! (launch it as root=
)
> or
> gnome-screensaver-Message: Failed to connect to the D-BUS daemon: Failed=20
> to execute dbus-launch to autolaunch D-Bus session (via su - user)
>=20
>=20
> Richard Neill wrote:
> >
> >
> > Grant Williamson wrote:
> >> Hi,
> >> has anyone got a way to lock gnome-screen saver using fn-fn2.
> >>
> >> I am using ibm-acpi
> >> i.e.
> >> events/FnF2-ibm-acpi.conf
> >> # ACPID Configuration to execute action when pressing Fn+F2
> >> event=3Dibm/hotkey HKEY 00000080 00001002
> >> action=3D/etc/acpi/actions/FnF2.sh
> >>
> >> actions/FnF2.sh
> >> #!/bin/bash
> >> # Does not work ... yet
> >> USER=3D`ps aux|grep -i gnome-screensaver|grep -v grep| awk '{print $1}=
'`
> >> su $USER -c "dbus-send --session --dest=3Dorg.gnome.ScreenSaver=20
> >> --type=3Dmethod_call --print-reply --reply-timeout=3D20000=20
> >> /org/gnome/ScreenSaver org.gnome.ScreenSaver.SetActive boolean:true"
> >>
> >
> > Try using
> >   gnome-screensaver-command --activate
> > You may need to set the correct value of $DISPLAY first.
> >
> > HTH,
> >
> > Richard
>=20

--=-J1v5u5fBHMjoUjWgPZj1
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBGE4ZcEOp8fsnyxsQRAuAOAJ0bUSrVPsalDQY+83bcU+ozyN+ksgCgtLYs
cYod2F1OKCnwOtnEfVRC52A=
=zzoA
-----END PGP SIGNATURE-----

--=-J1v5u5fBHMjoUjWgPZj1--