Manuel Reimer | 21 Dec 2010 22:10
Picon
Favicon

How to *disable* suspend/hibernate?

Hello,

I want HAL to report suspend/hibernate to be *not* supported to get KDE remove 
the buttons for those "standby modes" from the K-Menu.

Just uninstalling pm-utils doesn't do the trick, as you don't check the return 
value or the error code of g_spawn_command_line_sync in your code:
http://cgit.freedesktop.org/hal/plain/tools/hal-system-power-pm-is-supported.c

So I uninstalled pm-utils and symlinked between /bin/false and 
/usr/bin/pm-is-supported which finally does the trick.

Is there a better/more friendly way to do this?

Thanks in advance

Yours

Manuel

Robby Workman | 23 Dec 2010 06:04

Re: How to *disable* suspend/hibernate?

On Tue, 21 Dec 2010 22:10:58 +0100
Manuel Reimer <Manuel.Spam <at> nurfuerspam.de> wrote:

> I want HAL to report suspend/hibernate to be *not* supported to get
> KDE remove the buttons for those "standby modes" from the K-Menu.
> 
> Just uninstalling pm-utils doesn't do the trick, as you don't check
> the return value or the error code of g_spawn_command_line_sync in
> your code:
> http://cgit.freedesktop.org/hal/plain/tools/hal-system-power-pm-is-supported.c
> 
> So I uninstalled pm-utils and symlinked between /bin/false and 
> /usr/bin/pm-is-supported which finally does the trick.
> 
> Is there a better/more friendly way to do this?

Well, HAL is unmaintained for the most part now, so I doubt you'll
get much of a response (but who knows?).

Since I happen to know that you're on Slackware (or similar), have
a look at /etc/dbus-1/system.d/hal.conf and find this section:

  <!-- Allow members of 'power' group to do power management stuff -->
  <policy group="power">
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
(Continue reading)

tom z | 30 Dec 2010 03:18
Picon

help hal VS udisks

I want to know what's the diffrence between hal and udisks?

<div><p>I want to know what's the diffrence between hal and udisks?<br><br></p></div>
Maciej Grela | 30 Dec 2010 17:15
Picon

Re: help hal VS udisks

2010/12/30 tom z <maillist.tom <at> gmail.com>:
> I want to know what's the diffrence between hal and udisks?
>

A lot of HALs functionality (detecting & assigning properties to
devices) was moved to udev. Some procedures that could be called for
devices ("callouts" iirc) are now available via dbus from udisks and
upower.

Br,
Maciej Grela
tom z | 31 Dec 2010 02:23
Picon

Re: hal Digest, Vol 63, Issue 3

thanks a lot

On Fri, Dec 31, 2010 at 4:00 AM, <hal-request <at> lists.freedesktop.org> wrote:
Send hal mailing list submissions to
       hal <at> lists.freedesktop.org

To subscribe or unsubscribe via the World Wide Web, visit
       http://lists.freedesktop.org/mailman/listinfo/hal
or, via email, send a message with subject or body 'help' to
       hal-request <at> lists.freedesktop.org

You can reach the person managing the list at
       hal-owner <at> lists.freedesktop.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of hal digest..."


Today's Topics:

  1. help hal VS udisks (tom z)
  2. Re: help hal VS udisks (Maciej Grela)


----------------------------------------------------------------------

Message: 1
Date: Thu, 30 Dec 2010 10:18:15 +0800
From: tom z <maillist.tom <at> gmail.com>
Subject: help hal VS udisks
To: hal <at> lists.freedesktop.org
Message-ID:
       <AANLkTi=Kga9SEM+LCxXaDvACUfJZKy7z=Ej+urJRZPtb <at> mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I want to know what's the diffrence between hal and udisks?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/hal/attachments/20101230/a0654ce5/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 30 Dec 2010 17:15:31 +0100
From: Maciej Grela <maciej.grela <at> gmail.com>
Subject: Re: help hal VS udisks
To: tom z <maillist.tom <at> gmail.com>
Cc: hal <at> lists.freedesktop.org
Message-ID:
       <AANLkTikWaKzPULxKVxa-pNQNbWLEpLwZqMW7kXL_EgJ_ <at> mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

2010/12/30 tom z <maillist.tom <at> gmail.com>:
> I want to know what's the diffrence between hal and udisks?
>

A lot of HALs functionality (detecting & assigning properties to
devices) was moved to udev. Some procedures that could be called for
devices ("callouts" iirc) are now available via dbus from udisks and
upower.

Br,
Maciej Grela


------------------------------

_______________________________________________
hal mailing list
hal <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal


End of hal Digest, Vol 63, Issue 3
**********************************

<div>thanks a lot<br><br><div class="gmail_quote">On Fri, Dec 31, 2010 at 4:00 AM,  <span dir="ltr">&lt;<a href="mailto:hal-request <at> lists.freedesktop.org">hal-request <at> lists.freedesktop.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">Send hal mailing list submissions to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:hal <at> lists.freedesktop.org">hal <at> lists.freedesktop.org</a><br><br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://lists.freedesktop.org/mailman/listinfo/hal" target="_blank">http://lists.freedesktop.org/mailman/listinfo/hal</a><br>
or, via email, send a message with subject or body 'help' to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:hal-request <at> lists.freedesktop.org">hal-request <at> lists.freedesktop.org</a><br><br>
You can reach the person managing the list at<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:hal-owner <at> lists.freedesktop.org">hal-owner <at> lists.freedesktop.org</a><br><br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of hal digest..."<br><br><br>
Today's Topics:<br><br>
 &nbsp; 1. help hal VS udisks (tom z)<br>
 &nbsp; 2. Re: help hal VS udisks (Maciej Grela)<br><br><br>
----------------------------------------------------------------------<br><br>
Message: 1<br>
Date: Thu, 30 Dec 2010 10:18:15 +0800<br>
From: tom z &lt;<a href="mailto:maillist.tom <at> gmail.com">maillist.tom <at> gmail.com</a>&gt;<br>
Subject: help hal VS udisks<br>
To: <a href="mailto:hal <at> lists.freedesktop.org">hal <at> lists.freedesktop.org</a><br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;AANLkTi=Kga9SEM+LCxXaDvACUfJZKy7z=<a href="mailto:Ej%2BurJRZPtb <at> mail.gmail.com">Ej+urJRZPtb <at> mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset="iso-8859-1"<br><br>
I want to know what's the diffrence between hal and udisks?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.freedesktop.org/archives/hal/attachments/20101230/a0654ce5/attachment-0001.html" target="_blank">http://lists.freedesktop.org/archives/hal/attachments/20101230/a0654ce5/attachment-0001.html</a>&gt;<br><br>
------------------------------<br><br>
Message: 2<br>
Date: Thu, 30 Dec 2010 17:15:31 +0100<br>
From: Maciej Grela &lt;<a href="mailto:maciej.grela <at> gmail.com">maciej.grela <at> gmail.com</a>&gt;<br>
Subject: Re: help hal VS udisks<br>
To: tom z &lt;<a href="mailto:maillist.tom <at> gmail.com">maillist.tom <at> gmail.com</a>&gt;<br>
Cc: <a href="mailto:hal <at> lists.freedesktop.org">hal <at> lists.freedesktop.org</a><br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:AANLkTikWaKzPULxKVxa-pNQNbWLEpLwZqMW7kXL_EgJ_ <at> mail.gmail.com">AANLkTikWaKzPULxKVxa-pNQNbWLEpLwZqMW7kXL_EgJ_ <at> mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=UTF-8<br><br>
2010/12/30 tom z &lt;<a href="mailto:maillist.tom <at> gmail.com">maillist.tom <at> gmail.com</a>&gt;:<br>
&gt; I want to know what's the diffrence between hal and udisks?<br>
&gt;<br><br>
A lot of HALs functionality (detecting &amp; assigning properties to<br>
devices) was moved to udev. Some procedures that could be called for<br>
devices ("callouts" iirc) are now available via dbus from udisks and<br>
upower.<br><br>
Br,<br>
Maciej Grela<br><br><br>
------------------------------<br><br>
_______________________________________________<br>
hal mailing list<br><a href="mailto:hal <at> lists.freedesktop.org">hal <at> lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/hal" target="_blank">http://lists.freedesktop.org/mailman/listinfo/hal</a><br><br><br>
End of hal Digest, Vol 63, Issue 3<br>
**********************************<br>
</blockquote>
</div>
<br>
</div>

Gmane