Aloha,
schon länger war ich auf der Suche nach einem genialen LCD Display [1] für meinen VDR. Schließlich möchte man zum mp3 hören ja nicht immer gleich den Fernseher anschalten
Nach etwas herumsuchen wollte ich unbedingt das da haben:
http://www.alphacool.com/shop/ --> Display --> Alphacool LCD-Display 240x128 Pixel Blau neg. black
Das kostet bei Alphacool im Shop 99,95€, bei km-elektronik gibts das aber schon für 86,81€
Gründe für diese Auswahl:
- Alles fix und fertig zusammen
- USB Anschluß (Kein nerviges dickes Kabel)
- einfacher Einbau
- hohe Auflösung
- blau
Damit das gute Stück mit dem ct VDR 6.2 läuft, ist folgendes zu tun:
- apt-get install libserdisp1 (libserdisp0 ist eine zu alte Version) - Dies ist der "Treiber" zur Ansteuerung diverser serieller displays.
- apt-get install libgd-tools (keine Ahnung, ob das benötigt wird - war nur eine Empfehlung der libserdisp1. Kann das jemand mal ohne die libgd-tools testen?)
- apt-get install vdr-plugin-graphlcd (VDR Plugin für graphische Displays)
- apt-get install graphlcd-tools (Optional, zum Test des graphlcd-Krams)
- vim /etc/udev/rules.d/040_alphacool.rules [2]
- /etc/init.d/udev restart
- vim /etc/group --> plugdev:x:46:vdr <- hier muß der vdr hinzugefüg werden, damit der VDR auf das USB Display zugreifen darf
- Display anstöpseln
- mv /etc/graphlcd.conf /etc/graphlcd.conf.ORG (Datei sichern ...)
- vim /etc/graphlcd.conf [3] (... und neu erstellen)
- mv /etc/vdr/plugins/plugin.graphlcd.conf /etc/vdr/plugins/plugin.graphlcd.conf.ORG
- vim /etc/vdr/plugins/plugin.graphlcd.conf [4]
- testserdisp -n ALPHACOOL -p usb:060c/04eb (Sollte jetzt funktionieren, help liefert Hilfe)
- showpic -c /etc/graphlcd.conf -d serdisp /var/lib/vdr/plugins/graphlcd/logos/ARTE_m.glcd (Geht nur wenn die graphlcd-Tools instaliert wurden, sollte das Arte-Logo anzeigen)
- /etc/init.d/vdr restart
[/list=1]Updates
[list] - 25.02.2008 22:26 Tja, da hatte ich mich etwas zu früh gefreut. Bei meinem Rechner zeigt das LCD nach dem Herunterfahren des Rechners immer noch die vorherige Ausgabe an. Liegt wohl vermutlich an dem ausgeschalteten Autosuspend - wen man den anschaltet, funktioniert das Display ja leider nicht. Sollte dies der Fall sein, dann erzeugt man die Datei [5] und macht sie mit chmod a+x /etc/init.d/alphacool ausführbar. Danach erzeugt man noch mit update-rc.d alphacool defaults die nötigen start- und stoplinks.
[1] Ja, ich weiß .... LCD Display ist doppelt gemoppelt ...
[2] /etc/udev/rules.d/040_alphacool.rules (das Folgende ist alles EINE Zeile!). Diese Regel sorgt dafür, daß das Autosuspend ausgeschaltet wird (Sonst funktioniert das Display nicht!) und daß die Gruppe plugdev auf das Gerät lesen und schreiben darf:
SYSFS{idVendor}=="060c", SYSFS{idProduct}=="04eb", GROUP="plugdev", MODE="0660" SUBSYSTEM=="usb_device", SYSFS{idVendor}=="060c", SYSFS{idProduct}=="04eb", ACTION=="add", RUN+="/bin/sh -c 'test -e /sys/$env{DEVPATH}/device/power/level && echo on > /sys/$env{DEVPATH}/device/power/level'"
[3]/etc/graphlcd.conf - Sagt dem graphlcd welches Device mit der serdisp zu Benutzen ist und welche Eigenschaften es hat
[serdisp]
Driver=serdisp
Controller=ALPHACOOL
Device=usb:060c/04eb
Width=240 (oder 200, je nach Displaygröße - es gibt auch kleinere!)
Height=128 (oder 64 " )
UpsideDown=no
Invert=no
Backlight=yes
[4]/etc/vdr/plugins/plugin.graphlcd.conf - Sagt dem Plugin, welcher "Treiber" zu benutzen ist:
[5]/etc/init.d/alphacool
#! /bin/sh
### BEGIN INIT INFO
# Provides: Stopping Alphacool USB-Device
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Script to stop Alphacool USB Device
# Description: Provides capability to stop Alphacool USB Device
#
### END INIT INFO
# Author: Mathias Gloss <mathias A_T gloss.de>
#
# Please remove the "Author" lines above and replace them
# with your own name if you copy and modify this script.
# Do NOT "set -e"
# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Usb device"
NAME="Alphacool"
SCRIPTNAME=/etc/init.d/alphacool
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
#
# Function that starts the daemon/service
#
do_start()
{
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
return 0
}
#
# Function that stops the daemon/service
#
do_stop()
{
# Return
# 0 if daemon has been stopped
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
echo "quit" | testserdisp -n ALPHACOOL -p usb:060c/04eb
return 0
}
case "$1" in
start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
do_start
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
stop)
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
do_stop
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
*)
echo "Usage: $SCRIPTNAME {start|stop}" >&2
exit 3
;;
esac
Alles anzeigen
So das wars mal soweit.
Danke insbesondere an alle Beteiligten in:
http://www.init-6.org/index.php?id=15
[ANNOUNCE] Alphacool LCD Display serdisplib Support
http://www.vdrportal.de/board/thread.php?postid=691698
Alphacool LCD-Display 240x128
[gelöst] ALPHACOOL LCD ist bockig -> gezähmt ;-)
http://www.vdr-wiki.de/wiki/index.php/Graphlcd-plugin
http://serdisplib.sourceforge.net/
.... und an die ct und insbesondere e-tobi für die klasse Debian vdr packages!
Ich hoffe, daß diese Infos dem einen oder anderen helfen
Da ich dieses Forum nicht allzuoft besuche, bitte ich euch bei zusätzlichen Informationen oder Korrekturen zu diesem Post mir eine kurze Mail an mgloss ÄT gmail.com zu senden.
Have fun!