Utilisation de keytouch sur Debian Etch et inspiron 1525N

Francois Boisson user at maison.homelinux.net
Mon Apr 21 09:05:50 CDT 2008


hotkeys finit en segfault sur debian Etch AMD64. Pour utiliser les touches, le
mieux est keytouch. Le clavier de l'inspiron 1525N se décrit par
"/usr/share/keytouch/keyboards/Inspiron 1525N.Dell":
*****************************************
<keyboard>
  <file-info>
    <syntax-version>1.1</syntax-version>
    <last-change format="%d-%m-%Y">21-04-2008</last-change>
    <author>François Boisson</author>
  </file-info>
  <keyboard-info>
    <keyboard-name>
      <manufacturer>Dell</manufacturer>
      <model>Inspiron 1525N</model>
    </keyboard-name>
  </keyboard-info>
  <key-list>
    <key>
      <name>Maison</name>
      <scancode>146</scancode>
      <keycode>SUSPEND</keycode>
      <default-action>/usr/local/bin/hibernation</default-action>
    </key>
    <key>
      <name>SpeakerHight</name>
      <scancode>176</scancode>
      <keycode>VOLUMEUP</keycode>
      <default-action action-type="plugin">
        <plugin-name>Amixer</plugin-name>
        <plugin-function>Volume increase</plugin-function>
      </default-action>
    </key>
    <key>
      <name>SpeakerDown</name>
      <scancode>174</scancode>
      <keycode>VOLUMEDOWN</keycode>
      <default-action action-type="plugin">
        <plugin-name>Amixer</plugin-name>
        <plugin-function>Volume decrease</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Mute</name>
      <scancode>160</scancode>
      <keycode>MUTE</keycode>
      <default-action action-type="plugin">
        <plugin-name>Amixer</plugin-name>
        <plugin-function>Mute</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Play</name>
      <scancode>162</scancode>
      <keycode>PLAYPAUSE</keycode>
      <default-action action-type="plugin">
        <plugin-name>XMMS</plugin-name>
        <plugin-function>Play/Pause</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Stop</name>
      <scancode>164</scancode>
      <keycode>STOP</keycode>
      <default-action>/usr/bin/xmms --stop</default-action>
    </key>
    <key>
      <name>Forward</name>
      <scancode>153</scancode>
      <keycode>NEXTSONG</keycode>
      <default-action action-type="plugin">
        <plugin-name>XMMS</plugin-name>
        <plugin-function>Play/Pause</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Prev</name>
      <scancode>144</scancode>
      <keycode>PREVIOUSSONG</keycode>
      <default-action action-type="plugin">
        <plugin-name>Play/Pause</plugin-name>
        <plugin-function>Play/Pause</plugin-function>
      </default-action>
    </key>
  </key-list>
</keyboard>
***************************************

et pour affecter par exemple les clefs au lectreur video xine, le fichier
"~/.keytouch2/Inspiron 1525N.Dell" suivant convient:

********************************
<keyboard>
  <keyboard-name>
    <model>Inspiron 1525N</model>
    <manufacturer>Dell</manufacturer>
  </keyboard-name>
  <key-list>
    <key>
      <name>Maison</name>
      <action isdefault="true"
action-type="program">/usr/local/bin/hibernation</action> </key>
    <key>
      <name>SpeakerHight</name>
      <action action-type="plugin">
        <plugin-name>Amixer</plugin-name>
        <plugin-function>Volume increase</plugin-function>
      </action>
    </key>
    <key>
      <name>SpeakerDown</name>
      <action action-type="plugin">
        <plugin-name>Amixer</plugin-name>
        <plugin-function>Volume decrease</plugin-function>
      </action>
    </key>
    <key>
      <name>Mute</name>
      <action action-type="plugin">
        <plugin-name>Amixer</plugin-name>
        <plugin-function>Mute</plugin-function>
      </action>
    </key>
    <key>
      <name>Play</name>
      <action isdefault="true" action-type="program">/usr/bin/xine -p -s DVD</action> </key>
    <key>
      <name>Stop</name>
      <action isdefault="true" action-type="program">/usr/bin/xine -S stop</action> </key>
    <key>
      <name>Forward</name>
      <action isdefault="true" action-type="program">/usr/bin/xine -S pl=next</action> </key>
    <key>
      <name>Prev</name>
      <action isdefault="true" action-type="program">/usr/bin/xine -S pl=prev</action> </key>
  </key-list>
</keyboard>
*****************

/usr/local/bin/hibernation est un script ou un programme lançant la mise en veille.

François Boisson



More information about the Linux-Desktops mailing list