public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Send events to ACPI via dbus as a simple user?
@ 2012-05-03 22:31 Ignas Anikevicius
  2012-05-03 22:52 ` Neil Bothwick
  0 siblings, 1 reply; 2+ messages in thread
From: Ignas Anikevicius @ 2012-05-03 22:31 UTC (permalink / raw
  To: gentoo-user

Hello list,

I was wondering if anybody could help me on this.

Is it possible to send events to the acpid daemon via dbus? What I want
to do is to write some scripts, which would be executed by a window
manager in X and then would trigger some event in acpid (e.g. suspend or
other root requiring things).

Thanks in advance,
Ignas



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] Send events to ACPI via dbus as a simple user?
  2012-05-03 22:31 [gentoo-user] Send events to ACPI via dbus as a simple user? Ignas Anikevicius
@ 2012-05-03 22:52 ` Neil Bothwick
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Bothwick @ 2012-05-03 22:52 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

On Thu, 03 May 2012 23:31:21 +0100, Ignas Anikevicius wrote:

> Is it possible to send events to the acpid daemon via dbus? What I want
> to do is to write some scripts, which would be executed by a window
> manager in X and then would trigger some event in acpid (e.g. suspend or
> other root requiring things).

There doesn't appear to be a connection for acpi, at least "qdbus | grep
-i acpi" returns nothing. Could you add a line to /etc/sudoers to allow
your script, or the command it needs, to be run as root without a
password?


-- 
Neil Bothwick

Do radioactive cats have 18 half-lives?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-03 22:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03 22:31 [gentoo-user] Send events to ACPI via dbus as a simple user? Ignas Anikevicius
2012-05-03 22:52 ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox