Patch to hal-spec : 3/6-button

David Zeuthen david at fubar.dk
Wed Jan 12 16:13:36 PST 2005


One important (compared to my nitpicks :-) thing; as you can
see here

 http://cvs.freedesktop.org/*checkout*/hal/hal/doc/spec/hal-
spec.html#device-properties-volume

we also have the concept called DeviceConditions which represent
things that cannot be captured in properties. So, we should use
that to convey that someone pressed the button; What about calling
the conditions SystemButtonPressed and SystemButtonReleased?

David

On Tue, 2005-01-11 at 18:39 +0000, Richard Hughes wrote:
>     <sect2 id="device-properties-system-button">
>       <title><literal>system.button</literal> namespace</title>
>       <para>
> 
> 	Device objects with the capability <literal>system.button</literal> 
>         represent all the devices capable of providing a state to the system
> 
>       </para>
>       <informaltable>
>         <tgroup cols="2">
>           <thead>
>             <row>
>               <entry>Key (type)</entry>
>               <entry>Values</entry>
>               <entry>Mandatory</entry>
>               <entry>Description</entry>
>             </row>
>           </thead>
>           <tbody>
>             <row>
>               <entry><literal>system.button.type</literal> (string)</entry>
>               <entry></entry>
>               <entry>Yes</entry>
>               <entry>The type of button</entry>
>             </row>
>             <row>
>               <entry></entry>
>               <entry>lid_switch</entry>
>               <entry></entry>
>               <entry>
>                 The switch on a laptop that senses whether the lid is 
>                 open or closed
>               </entry>
>             </row>
>             <row>
>               <entry></entry>
>               <entry>power</entry>
>               <entry></entry>
>               <entry>The main power button on the computer.</entry>
>             </row>
>             <row>
>               <entry></entry>
>               <entry>sleep</entry>
>               <entry></entry>
>               <entry>
>                 The sleep button on a computer capable of putting the computer 
>                 into a suspend state
>               </entry>
>             </row>
>             <row>
>               <entry><literal>system.button.has_state</literal> (bool)</entry>
>               <entry></entry>
>               <entry>Yes</entry>
>               <entry>
>                 True if the button maintains state, e.g. can toggled 
>                 on/off
>               </entry>
>             </row>
>             <row>
>               <entry><literal>system.button.state.value</literal> (bool)</entry>
>               <entry></entry>
>               <entry>
>                 Only when <literal>system.button.has_state</literal> is 
>                 TRUE
>               </entry>
>               <entry>State of the button, TRUE if it is pressed down</entry>
>             </row>
>           </tbody>
>         </tgroup>
>       </informaltable>
>     </sect2>
> 
> 
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal

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



More information about the Hal mailing list