Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
This post has been edited 1 times, last edit by "Jarvelin" (Aug 16th 2010, 9:58pm)
This post has been edited 1 times, last edit by "netvista-fan" (Aug 10th 2010, 6:40pm)
This post has been edited 1 times, last edit by "Jarvelin" (Aug 10th 2010, 7:03pm)
This post has been edited 1 times, last edit by "Jarvelin" (Aug 10th 2010, 8:02pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
/etc/vdr/plugins/glaphlcd.conf simlcd ändern in:
-c /etc/graphlcd.conf -d serdisp
/etc/graphlcd.conf anpassen
[serdisp]
Driver=serdisp
Controller=ALPHACOOL
Device=usb:060c/04eb
Width=240 [oder 200]
Height=128 [oder 64]
UpsideDown=no
Invert=no
Backlight=yes
Rechte fürs Display vergeben:
/etc/udev/rules.d/040_alphacool.rules anlegen und folgende Zeile einfügen:
SYSFS{idVendor}=="060c", SYSFS{idProduct}=="04eb", GROUP="plugdev", MODE="0660"
/etc/init.d/udev restart - bzw: sudo service udev restart
in /etc/group den vdr zur group plugdev hinzufügen ( plugdev:x:46:vdr ) ggf. durch komma getrennt weitere user
Schriftgrösse der Anzeige anpassen/vergössern
in /etc/vdr/plugins/graphlcd/fonts.conf
Large Font = fnt:verdanab-013.fnt
Normal Font = fnt:verdanab-013.fnt
Small Font = fnt:f8n.fnt
Symbol Font = fnt:sym11.fnt
und folgendes in die /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
#### end of /etc/init.d/alphacool
|
This post has been edited 1 times, last edit by "netvista-fan" (Aug 10th 2010, 8:58pm)