Patch to hal-spec : 3/6-button

David Zeuthen david at fubar.dk
Wed Jan 12 16:07:15 PST 2005


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

Skip 'all'.

> 
>       </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>

Heh, I remember my first PC, 486DX2 66MHz (was top of the line back
then, it
had 8MB of RAM!!), had TURBO and RESET buttons; I guess we can add those
later :-)

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