Error message

  • Deprecated function: Return type of DateObject::__wakeup() should either be compatible with DateTime::__wakeup(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include_once() (line 158 of /home/sites/site100029201/web/rolandtapken.de/htdocs/sites/all/modules/date/date_api/date_api.module).
  • Deprecated function: Return type of DateObject::format($format, $force = false) should either be compatible with DateTime::format(string $format): string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include_once() (line 158 of /home/sites/site100029201/web/rolandtapken.de/htdocs/sites/all/modules/date/date_api/date_api.module).
  • Deprecated function: Return type of DateObject::setTimezone($tz, $force = false) should either be compatible with DateTime::setTimezone(DateTimeZone $timezone): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include_once() (line 158 of /home/sites/site100029201/web/rolandtapken.de/htdocs/sites/all/modules/date/date_api/date_api.module).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).
  • Deprecated function: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in decode_entities() (line 463 of /home/sites/site100029201/web/rolandtapken.de/htdocs/includes/unicode.inc).

XBMC: Lautstärketasten wiederholen nicht

Wenn ich die Lautstärke in XBMC verändern will, muss ich bei meiner Hama MCE Remote für jede Stufe eneut drücken - sehr nervig. Das Problem ist offenbar, dass Linux hier intelligenter sein will als es sollte und die Wiederholungskommandos ausfiltert.

In einer Antwort in einem "WON'T FIX"-Bugreport (#14116 Kommentar 19) habe ich die Lösung gefunden. Es reicht, die Keycodes umzumappen.

Falls man sowieso ein eigenes Script einsetzt, um XBMC zu starten, dann kann man das auch direkt dort hinein bauen:

#!/bin/bash

# Remap volume keys
xmodmap -e 'keycode 122 = F13'
xmodmap -e 'keycode 123 = F14'

# Ensure remapped volume keys will be used
test -s ~/.xbmc/userdata/keymaps/keyboard.xml || cat > ~/.xbmc/userdata/keymaps/keyboard.xml <<EOL
<keymap>
  <global>
    <keyboard>
      <f13>VolumeDown</f13>
      <f14>VolumeUp</f14>
    </keyboard>
  </global>
</keymap>
EOL

result=0
while test "$result" -eq 0; do
    /usr/bin/xbmc $*
    result=$?
done