summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/LinHES-config/PKGBUILD6
-rwxr-xr-xabs/core/LinHES-config/mv_ir.py26
-rwxr-xr-xabs/core/LinHES-config/soundconfig.sh3
-rw-r--r--abs/core/LinHES-system/PKGBUILD21
-rwxr-xr-xabs/core/LinHES-system/diskspace2
-rwxr-xr-xabs/core/LinHES-system/diskspace.sh81
-rwxr-xr-xabs/core/LinHES-system/firstboot.sh21
-rw-r--r--abs/core/LinHES-system/myth_status.py14
-rw-r--r--abs/core/linhes-scripts/PKGBUILD6
-rw-r--r--abs/core/linhes-scripts/install_hulu.sh70
-rw-r--r--abs/core/linhes-scripts/stop_xss.sh2
-rwxr-xr-xabs/core/runit-scripts/PKGBUILD2
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/lircd/run1
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/remotes/finish21
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/remotes/run125
-rwxr-xr-xabs/core/system-templates/PKGBUILD2
-rw-r--r--abs/core/system-templates/templates/remotes/Dvico-Dual-Digital4-rev2/remote.run3
-rw-r--r--abs/core/system-templates/templates/remotes/dvico/remote.run3
-rwxr-xr-xabs/core/system-templates/templates/remotes/imon-mce/lircd.conf.imon835
-rwxr-xr-xabs/core/system-templates/templates/remotes/imon-mce/lircrc922
-rw-r--r--abs/core/system-templates/templates/remotes/imon-mce/preview.jpg (renamed from abs/core/system-templates/templates/remotes/imon-pad/preview.jpg)bin35870 -> 35870 bytes
-rwxr-xr-xabs/core/system-templates/templates/remotes/imon-mce/remote.run4
-rw-r--r--abs/core/system-templates/templates/remotes/imon-pad/lircd.conf88
-rw-r--r--abs/core/system-templates/templates/remotes/imon-pad/lircrc240
-rwxr-xr-xabs/core/system-templates/templates/remotes/imon/remote.run4
-rw-r--r--abs/core/v4l-dvb/PKGBUILD6
-rw-r--r--abs/core/v4l-dvb/v4l-dvb.install8
-rw-r--r--abs/core/xorg-xdpyinfo/PKGBUILD24
28 files changed, 2114 insertions, 426 deletions
diff --git a/abs/core/LinHES-config/PKGBUILD b/abs/core/LinHES-config/PKGBUILD
index 1c26f9b..de71e5b 100644
--- a/abs/core/LinHES-config/PKGBUILD
+++ b/abs/core/LinHES-config/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=LinHES-config
pkgver=2.3
-pkgrel=61
+pkgrel=64
conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev LinHes-config )
pkgdesc="Install and configure your system"
depends=('bc' 'libstatgrab' 'mysql-python' 'expect' 'curl' 'dnsutils' 'parted'
@@ -112,7 +112,7 @@ md5sums=('64fad755c12f8eb12940e216e403354e'
'9ae8d79f620c6d19973c55c32a921874'
'960017a34d9cc78af6298f45aad6eb8e'
'ecf9e5df20683a769c4a8a8f2d65de85'
- 'eaf845dda830c531649d5840e0584f8e'
+ '6d32a88e76b0a97b0ce67d37ef6394aa'
'5a1cbcf58855bbd93a5a18e6673aa2e6'
'6aff504ed5e860adc1b7317cd0780900'
'55fccb1da0417a896b724f7cfc32dd5a'
@@ -125,7 +125,7 @@ md5sums=('64fad755c12f8eb12940e216e403354e'
'5f3259afe031fda189edae41dd1458f0'
'dc150c1e2c915a55a616d1af5bb1f6de'
'b845de3e05c1734cce4b9ac5e8f1baaf'
- '8f58093cc2bbf92c95e54090cf243117'
+ '03d866e4dc287d13734e35f4ebe15edb'
'5e69839659d65ddda35b8a9982dc29e9'
'62b4ce94277c32f525db5c1480670acd'
'ec6a9961e4d1b53ec1240c5979efff11'
diff --git a/abs/core/LinHES-config/mv_ir.py b/abs/core/LinHES-config/mv_ir.py
index 0e54f92..df6feb5 100755
--- a/abs/core/LinHES-config/mv_ir.py
+++ b/abs/core/LinHES-config/mv_ir.py
@@ -44,7 +44,7 @@ def setup_lirc_links(mythhome):
else:
logging.debug(" %s/.lircrc already present",mythhome)
else:
- logging.debug(" /etc/lircrc does not exisit, can not link it")
+ logging.debug(" /etc/lircrc does not exist, can not link it")
def scrub_modules(filename,module):
logging.debug(" scrubbing %s from %s",module,filename)
@@ -92,6 +92,8 @@ def setup_ir_remote(Remotetype,templates,mythhome,HostBlasterType):
mv_common.runcmd(cmd)
cmd = "mv /etc/lircrc /etc/lircrc-%s" %currenttime
mv_common.runcmd(cmd)
+ cmd = "mv /etc/remote.run /etc/remote.run-%s" %currenttime
+ mv_common.runcmd(cmd)
if os.path.isdir(mythhome+"/remotes/"+Remotetype):
@@ -113,6 +115,15 @@ def setup_ir_remote(Remotetype,templates,mythhome,HostBlasterType):
logging.debug(" %s is a dir, skipping",filename)
continue
include_file("/etc/lircrc",filename)
+ files = mythhome + "/remotes/" + Remotetype + "/remote.run*"
+ logging.debug(" Using %s",files)
+ for filename in glob.glob(files):
+ # Ignore subfolders
+ if os.path.isdir (filename):
+ logging.debug(" %s is a dir, skipping",filename)
+ continue
+ cmd = "cp %s /etc/remote.run" %filename
+ mv_common.runcmd(cmd)
else:
#template dir
files = templates + "/remotes/" + Remotetype + "/lircd*"
@@ -131,9 +142,18 @@ def setup_ir_remote(Remotetype,templates,mythhome,HostBlasterType):
logging.debug(" %s is a dir, skipping",filename)
continue
include_file("/etc/lircrc",filename)
+ files = templates + "/remotes/" + Remotetype + "/remote.run*"
+ logging.debug(" Using %s",files)
+ for filename in glob.glob(files):
+ # Ignore subfolders
+ if os.path.isdir (filename):
+ logging.debug(" %s is a dir, skipping",filename)
+ continue
+ cmd = "cp %s /etc/remote.run" %filename
+ mv_common.runcmd(cmd)
- cmd = "chmod 755 /etc/lircrc"
+ cmd = "chmod 755 /etc/lircrc /etc/remote.run"
mv_common.runcmd(cmd)
mv_common.add_service("lircd")
@@ -365,4 +385,4 @@ def setup_ir(systemconfig, data_config):
else:
logging.debug(" LCD not defined")
logging.info("__End IR\n")
- return rc \ No newline at end of file
+ return rc
diff --git a/abs/core/LinHES-config/soundconfig.sh b/abs/core/LinHES-config/soundconfig.sh
index 5778cee..c268136 100755
--- a/abs/core/LinHES-config/soundconfig.sh
+++ b/abs/core/LinHES-config/soundconfig.sh
@@ -28,6 +28,9 @@ function load_alsa() {
# echo " installing alsa-lib"
#pacman -Sf --noconfirm alsa-lib
+ echo " uninstalling oss"
+ pacman -R --noconfirm oss
+
echo "triggering udev module load"
depmod -a
cd - > /dev/null
diff --git a/abs/core/LinHES-system/PKGBUILD b/abs/core/LinHES-system/PKGBUILD
index 1734865..f8baeaf 100644
--- a/abs/core/LinHES-system/PKGBUILD
+++ b/abs/core/LinHES-system/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=LinHES-system
pkgver=2
-pkgrel=37
+pkgrel=41
arch=('i686')
MVDIR=$startdir/pkg/usr/LH
BINDIR=$startdir/pkg/usr/bin
@@ -11,7 +11,7 @@ backup=(etc/modprobe.d/alsa-base)
binfiles="LinHES-start optimize_mythdb.py
myth_mtc.py myth_mtc.sh LinHES-run
firstboot.sh load-modules-mythvantage.sh
- unclutter-toggle.sh tvterm.sh smolt.cron
+ unclutter-toggle.sh tvterm.sh
mythfrontend-start set_windowmanager.sh
myth_status.py myth_status.sh
xmsg.py install_supplemental_service.sh
@@ -19,9 +19,11 @@ binfiles="LinHES-start optimize_mythdb.py
lh_system_restore_job
lh_system_host_update
lh_system_all_host_update
- add_storage.py"
+ add_storage.py
+ diskspace.sh"
-source=(LinHES-session LinHES-profile.sh $binfiles alsa-base myth_mtc.lr)
+source=(LinHES-session LinHES-profile.sh $binfiles alsa-base myth_mtc.lr
+ diskspace smolt.cron)
build() {
cd $startdir/src
@@ -45,6 +47,7 @@ build() {
install -m644 -D $startdir/src/alsa-base $startdir/pkg/etc/modprobe.d/alsa-base.conf
install -m755 -D $startdir/src/smolt.cron $startdir/pkg/etc/cron.weekly/smolt.cron
+ install -m755 -D $startdir/src/diskspace $startdir/pkg/etc/cron.tenminutes/diskspace
mkdir $startdir/pkg/etc/logrotate.d
cp $startdir/myth_mtc.lr $startdir/pkg/etc/logrotate.d
}
@@ -55,14 +58,13 @@ md5sums=('d6a564f3286590875874573107940908'
'd1f27cb422010077c841376526fe46ea'
'2ef9f945e034119f77d9b6beb17e4fa5'
'5c96527397a35519d72c78d6e3c8dbea'
- '18a884a73344ff6eb74f63b49745e0f5'
+ '5e67a8b7ff57ec32d668bce7aab0aa6d'
'dc3eef2a624754e16805d72bbe488b67'
'dc0be354ce77ba2b89868fc29b942c43'
'542e670e78d117657f93141e9689f54d'
- 'abe887472a170bd1a8e6da6a7b7e93e4'
'752488eb8bfb672ce0e4c924f7faf3d1'
'ba351b92e69bcaf26a9bf80417b09c3c'
- '60219aab8a177c783d7a658d56683db4'
+ 'b41b08ea923d94b90d22f92e291ad9ee'
'962a3e9eaba2d1466251b7ab0956705d'
'd03aedeeeda0f5e9c1eb437411c88477'
'94ce8f1d5085c0db7b267db8c2e9a3ff'
@@ -71,5 +73,8 @@ md5sums=('d6a564f3286590875874573107940908'
'859a80ddb4c234506379c605114c1343'
'47e093e8cfe4b5b96602358e1f540832'
'6faeba0aeb38e772121f751cabda8683'
+ '68e3e87571f3b0fa4a48a10df50dc220'
'eb879fee9603a05d5420d4ce8ed9e450'
- 'f1870a9522c79e6b248fcbf81dec3280')
+ 'f1870a9522c79e6b248fcbf81dec3280'
+ '84492954db16740f949d795b74383189'
+ 'abe887472a170bd1a8e6da6a7b7e93e4')
diff --git a/abs/core/LinHES-system/diskspace b/abs/core/LinHES-system/diskspace
new file mode 100755
index 0000000..ab3c91b
--- /dev/null
+++ b/abs/core/LinHES-system/diskspace
@@ -0,0 +1,2 @@
+#!/bin/bash
+/usr/bin/nice -n19 /usr/LH/bin/diskspace.sh -osd
diff --git a/abs/core/LinHES-system/diskspace.sh b/abs/core/LinHES-system/diskspace.sh
new file mode 100755
index 0000000..2173c6e
--- /dev/null
+++ b/abs/core/LinHES-system/diskspace.sh
@@ -0,0 +1,81 @@
+#!/bin/sh
+### Monitor free disk space
+# Display alert if the free percentage of space is >= $ALERT
+
+#
+# Static Config Variables
+#
+ALERT=90 # free space percentage to trigger an alert
+
+#
+# Static Binary Paths
+#
+DF='/bin/df'
+GREP='/bin/grep'
+AWK='/bin/awk'
+CUT='/bin/cut'
+HOSTNAME='/bin/hostname'
+DATE='/bin/date'
+OSD_CAT='/usr/bin/osd_cat'
+export DISPLAY=:0.0
+#
+# Static System Variables
+#
+THIS_HOST=`${HOSTNAME}`
+
+#
+# Check CLI Options
+#
+VERBOSE=false
+OSD=false
+for ARG in "$@" ; do
+ case $ARG in
+ "-v")
+ VERBOSE=true
+ ;;
+ "-osd")
+ OSD=true
+ ;;
+ esac
+done
+
+#----------------------------------------------------------------------------
+. /etc/osd_cat.cfg || {
+ color=yellow
+ outline=2
+ outlinecolour=black
+ shadow=0
+ shadowcolour=black
+ font="-adobe-helvetica-bold-*-*-*-34-*-*-*-*-*-*-*"
+}
+#----------------------------------------------------------------------------
+
+[ $VERBOSE = true ] && echo "Checking free disk space on ${THIS_HOST}"
+[ $VERBOSE = true ] && echo "Threshold for warning is ${ALERT}%"
+[ $VERBOSE = true ] && echo "------------------------------------------------------------------"
+
+# Dynamic Variables
+#DATE_STR=`${DATE} "+%d-%B-%y @ %H%Mhrs"`
+
+# Call df to find the used percentages. Grep for only local disks (not remote mounts like nfs or smb)
+# Pipe the output to awk to get the needed columns, then start a while loop to process each line.
+$DF -HPl | $GREP -E "^/dev/" | $AWK '{ print $5 " " $6 " " $1 }' | while read OUTPUT ; do
+ USED_PCENT=$(echo ${OUTPUT} | $AWK '{ print $1}' | $CUT -d'%' -f1 ) # Used space as a percentage
+ PARTITION=$(echo ${OUTPUT} | $AWK '{ print $2 }' ) # Mount Point (eg, /home)
+ DEVICE=$(echo ${OUTPUT} | $AWK '{ print $3 }' ) # Device (eg, /dev/sda1 or LABEL or UUID)
+ if [ $VERBOSE = true ] ; then
+ echo -e "Checking device ${DEVICE} which is mounted to ${PARTITION} \t${USED_PCENT}% used"
+ fi
+ if [ ${USED_PCENT} -ge $ALERT ]; then
+ if [ $VERBOSE = true ] ; then
+ echo "WARNING: ${PARTITION} (${DEVICE}) is ${USED_PCENT}% full on ${THIS_HOST}."
+ else
+ echo "WARNING: ${PARTITION} (${DEVICE}) is ${USED_PCENT}% full on ${THIS_HOST}." #|
+ if [ $OSD = true ] && [ ${PARTITION} = / ]; then
+ echo "WARNING: The root (${PARTITION}) partition is ${USED_PCENT}% full on ${THIS_HOST}." | $OSD_CAT --pos=top --offset=40 --align=center --delay=10 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font &
+ fi
+ fi
+ fi
+done
+
+exit 0
diff --git a/abs/core/LinHES-system/firstboot.sh b/abs/core/LinHES-system/firstboot.sh
index 7e2f603..8e3dc57 100755
--- a/abs/core/LinHES-system/firstboot.sh
+++ b/abs/core/LinHES-system/firstboot.sh
@@ -23,6 +23,26 @@ function try_smolt {
}
+function fix_lirc_socket {
+ . /etc/systemconfig
+
+ # Fix LircSocket in mythtv database
+ SOCKET=`mysql -u mythtv -pmythtv -B --skip-column-names -h "${dbhost}" -D mythconverg -e \
+ "SELECT data FROM settings WHERE value = 'LircSocket' AND hostname = '${hostname}';"`
+ if [ "${SOCKET}" != "/var/run/lirc/lircd" ]; then
+ mysql -u mythtv -pmythtv -B --skip-column-names -h "${dbhost}" -D mythconverg -e \
+ "UPDATE settings SET data = '/var/run/lirc/lircd' WHERE value = 'LircSocket' AND hostname = '${hostname}';"
+ else
+ echo ">>>"
+ echo ">>> ATTENTION! ATTENTION! ATTENTION!"
+ echo ">>> Unable to connect the the MySQL database to make needed"
+ echo ">>> changes to the LIRC socket."
+ echo ">>> LIRC now uses /var/run/lirc/lircd and /dev/lirc is now"
+ echo ">>> obsolete. Update your MythTV settings to reflect this."
+ echo ">>>"
+ fi
+}
+
if [ ! -e /tmp/debug ]
then
@@ -35,6 +55,7 @@ then
fb_status=4
while [ $fb_status != 0 ]
do
+ fix_lirc_socket
try_smolt
if [ $fb_status != 0 ]
then
diff --git a/abs/core/LinHES-system/myth_status.py b/abs/core/LinHES-system/myth_status.py
index 4e44fd5..53d64d9 100644
--- a/abs/core/LinHES-system/myth_status.py
+++ b/abs/core/LinHES-system/myth_status.py
@@ -1,6 +1,6 @@
#!/usr/bin/python2
from MythTV import MythBE,MythDB,MythLog
-import datetime,time,sys
+import datetime,time,sys,subprocess
try:
be=MythBE()
db = MythDB()
@@ -12,6 +12,7 @@ cursor = db.cursor()
now = datetime.datetime.now()
farout=99999999
next_start_diff=datetime.timedelta(farout)
+num_upcoming=12
def formatTD(td):
#print td
@@ -68,10 +69,15 @@ for i in a:
print ""
-print "Upcoming Recordings:"
+print "Upcoming Recordings (Next %s scheduled):" %(num_upcoming)
print "--------------------"
a=be.getUpcomingRecordings()
+r=0
for i in a:
+ r += 1
+ if r > num_upcoming:
+ break
+
title_chan="%s (%s)" %(i.title, i.channame)
print " %s - %s - %-50s " %(i.starttime,i.hostname, title_chan)
#start_time=time.strptime(str(i.starttime), "%Y-%m-%d %H:%M:%S")
@@ -101,5 +107,5 @@ else:
ur=formatTD(next_start_diff)
print "The next recording starts in:\n %s" %(ur)
print ""
-
-
+subprocess.call("/usr/LH/bin/diskspace.sh",shell=True)
+print ""
diff --git a/abs/core/linhes-scripts/PKGBUILD b/abs/core/linhes-scripts/PKGBUILD
index 8b7bb1f..68a02ef 100644
--- a/abs/core/linhes-scripts/PKGBUILD
+++ b/abs/core/linhes-scripts/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=linhes-scripts
pkgver=7
-pkgrel=29
+pkgrel=33
pkgdesc="Various scripts that help to make LinHES, LinHES."
arch=('i686' 'x86_64')
license=('GPL2')
@@ -34,7 +34,6 @@ run-limit-mythcommflag
linhes_update.sh
linhes_update2.sh
linhes_update3.sh
-install_hulu.sh
update_schema_021_to_022.sh
upgrade_linhes.sh
remove_php_mythvideo.sh
@@ -88,7 +87,6 @@ md5sums=('f56985b2d602e11dc1e10d3e7848b2a5'
'9d077c24d102fa02e4f417d639d8b00a'
'98979920c30bb48c02d00f6943e9e50e'
'460861e6d0cf999629b734912eea0acf'
- 'ccca6bdbbd86b203a3eecdbbe363e701'
'65629302a4d2c3adf88cdf0ebc10d493'
'ab469714d77f3a29c7dda715e5ab98e0'
'87b0dc855181f98516acb18a7d551601'
@@ -103,4 +101,4 @@ md5sums=('f56985b2d602e11dc1e10d3e7848b2a5'
'4b8671376fad6d76874508434d42fbfd'
'd8838461af9d446a1fd7e7883fdc75d1'
'cc9cdabcdfc969c2829b58c0e513488c'
- 'cb16a30491c4352eb0eee11c2bca91f9')
+ 'acb72dfeda6f957bfdf4113a04fb91c0')
diff --git a/abs/core/linhes-scripts/install_hulu.sh b/abs/core/linhes-scripts/install_hulu.sh
deleted file mode 100644
index 9b06b2e..0000000
--- a/abs/core/linhes-scripts/install_hulu.sh
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/bash
-#install_hulu.sh
-if [ -e /tmp/huludesktop_i386.deb ]
-then
-cd /tmp
-deb2targz huludesktop_i386.deb
-tar -xzvf huludesktop_i386.tar.gz -C /
-else
-echo "Cannot find huludesktop_i386.deb."
-echo "Please download it from http://www.hulu.com/labs/hulu-desktop-linux"
-echo "Then copy (or move) it to /tmp"
-exit
-fi
-if grep -q Hulu /usr/share/mythtv/themes/defaultmenu/is.xml
-then
-echo "Hulu Desktop exist in Online Streams!"
-else
- mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp
- grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp
- echo "<!--#Hulu-->" >> /tmp/is.xml.tmp
- echo " <button>" >> /tmp/is.xml.tmp
- echo " <type>STREAM</type>" >> /tmp/is.xml.tmp
- echo " <text>Hulu Desktop</text>" >> /tmp/is.xml.tmp
- echo " <action>EXEC huludesktop</action>" >> /tmp/is.xml.tmp
- echo " </button>" >> /tmp/is.xml.tmp
- echo "<!--#Hulu-->" >> /tmp/is.xml.tmp
- echo "" >> /tmp/is.xml.tmp
- echo "</mythmenu>" >> /tmp/is.xml.tmp
- mv /tmp/is.xml.tmp /usr/share/mythtv/themes/defaultmenu/is.xml
-echo "Hulu Desktop has been added to Online Streams!"
-fi
-if [ -e /home/mythtv/.huludesktop ]
-then
-echo "Found existing Hulu configuration file."
-else
-cat >> /home/mythtv/.huludesktop << EOF
-[display]
-fullscreen = TRUE
-width = 1024
-height = 576
-pos_x = 201
-pos_y = 179
-
-[remote]
-lirc_device = /dev/lircd
-lirc_remote_identifier = mceusb
-lirc_release_suffix = _UP
-lirc_repeat_threshold = 10
-button_name_up = Up
-button_name_down = Down
-button_name_left = Left
-button_name_right = Right
-button_name_select = OK
-button_name_menu = Home
-
-[flash]
-flash_location = /usr/lib/mozilla/plugins/libflashplayer.so
-
-[screensaver]
-suspend_script = /usr/bin/xscreensaver-command -deactivate
-resume_script = /usr/bin/xscreensaver-command -activate
-
-[version]
-latest = (null)
-eula_version = 0
-EOF
-chown mythtv.mythtv /home/mythtv/.huludesktop
-fi
-echo "Integration of Hulu Desktop is now complete!"
-echo "Thanks for using LinHES!"
diff --git a/abs/core/linhes-scripts/stop_xss.sh b/abs/core/linhes-scripts/stop_xss.sh
index c600795..9d3772e 100644
--- a/abs/core/linhes-scripts/stop_xss.sh
+++ b/abs/core/linhes-scripts/stop_xss.sh
@@ -3,7 +3,7 @@
while [ 1=1 ];
do
- if [ "$(pidof chromium)" -o "$(pidof huludesktop)" ]
+ if [ "$(pidof chromium)" -o "$(pidof huludesktop)" -o "$(pidof xbmc.bin)"]
then
xscreensaver-command -deactivate
fi
diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD
index 448af39..7e0a71c 100755
--- a/abs/core/runit-scripts/PKGBUILD
+++ b/abs/core/runit-scripts/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=runit-scripts
pkgver=2.1.1
-pkgrel=54
+pkgrel=56
pkgdesc="collection of startup scripts for runit"
url="http://smarden.org/runit/"
license="BSD"
diff --git a/abs/core/runit-scripts/runitscripts/services/lircd/run b/abs/core/runit-scripts/runitscripts/services/lircd/run
index c4053c1..93d9585 100755
--- a/abs/core/runit-scripts/runitscripts/services/lircd/run
+++ b/abs/core/runit-scripts/runitscripts/services/lircd/run
@@ -151,6 +151,7 @@ else
fi
elif [[ x$Remotetype = ximon* ]]
then
+ /usr/bin/ir-keytable -c -p lirc -w /etc/rc_keymaps/imon_pad
LCMD="/usr/sbin/lircd -r -n --driver devinput -d /dev/remotes/SoundGraph --output /var/run/lirc/lircd"
exec $LCMD >>$LOG 2>>$LOG
else
diff --git a/abs/core/runit-scripts/runitscripts/services/remotes/finish b/abs/core/runit-scripts/runitscripts/services/remotes/finish
new file mode 100755
index 0000000..ac04a33
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/remotes/finish
@@ -0,0 +1,21 @@
+#!/bin/bash
+export TERM=linux
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /usr/MythVantage/bin/install_functions.sh
+
+killall -9 lircd 2>/dev/null
+rm -f /var/run/lirc*.pid
+[ -e /etc/sv/remotes/.runtime ] || mkdir -p /etc/sv/remotes/.runtime
+touch /etc/sv/remotes/.runtime/`date +%s`
+numfiles=`/usr/bin/file_time_offset.py -s4 -d/etc/sv/remotes/.runtime `
+if [ $numfiles -gt 3 ]
+then
+ rm -f /etc/sv/remotes/.runtime/* 2>/dev/null
+ sv stop remotes
+ printhl " remotes is not able to start, disabling it"
+fi
+
+
+
+in_kernel_support "enable"
diff --git a/abs/core/runit-scripts/runitscripts/services/remotes/run b/abs/core/runit-scripts/runitscripts/services/remotes/run
new file mode 100755
index 0000000..d32b09e
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/remotes/run
@@ -0,0 +1,125 @@
+#!/bin/bash
+
+exec 2>&1
+export TERM=linux
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /usr/MythVantage/bin/install_functions.sh
+
+LOG=/tmp/remotes.log
+
+if [ -f $LOG ]
+then
+ rm -f $LOG
+fi
+
+
+
+
+
+#What is done in this file may not be enough to start your specific remote
+#If that is true of your remote place your remote startup commands in:
+# /etc/remotes.sh
+#Anything in that file will be used and the rest of this file is ignored
+
+if [ -f /etc/remotes.sh ]
+then
+ #program must not terminate.
+
+ stat_runit "Starting remotes from /etc/remotes.sh"
+
+ /etc/remotes.sh
+else
+ . /etc/systemconfig
+ stat_runit "Starting remotes"
+
+ [ -e /etc/sv/remotes/.runtime ] || mkdir -p /etc/sv/remotes/.runtime
+ [ -e /var/run/lirc ] || mkdir -p /var/run/lirc
+
+ num_lirc=`ls -la /dev/lirc[0-9] 2>/dev/null |wc -l `
+ num_lirc=$((num_lirc-1))
+
+ serial_port=""
+
+ if [ x$ReceiverType = xSerial ]
+ then
+ serial_port=$ReceiverSerialport
+ elif [ x$HostBlasterType = xSerial ]
+ then
+ serial_port=$HostSerialPort_blasterlirc
+ fi
+
+ if [ -n "$serial_port" ]
+ then
+ #/dev/ttyS0 (COM1), port 0x3f8, irq 4
+ #/dev/ttyS1 (COM2), port 0x2f8, irq 3
+ #/dev/ttyS2 (COM3), port 0x3e8, irq 4
+ #/dev/ttyS3 (COM4), port 0x2e8, irq 3
+
+ case $serial_port in
+ ttyS0)
+ FLAGS="io=0x3f8 irq=4"
+ ;;
+ ttyS1)
+ FLAGS="io=0x2f8 irq=3"
+ ;;
+ ttyS2)
+ FLAGS="io=0x3e8 irq=4"
+ ;;
+ ttyS3)
+ FLAGS="io=0x2e8 irq=3"
+ ;;
+ esac
+ /usr/bin/setserial /dev/$serial_port uart none
+ sleep 0.5
+ /sbin/modprobe lirc_serial $FLAGS
+ sleep 0.5
+ fi
+
+ if [ x$HostBlasterType = xCommandIR -o x$ReceiverType = xCommandIR ]
+ then
+ CMD="/usr/sbin/lircd -r -n --driver=commandir"
+ printhl " Using commandir"
+ $CMD >>$LOG 2>>$LOG
+ #echo $CMD
+ elif [ x$HostBlasterType = xiguanaIR-usb -o x$ReceiverType = xiguanaIR-usb ]
+ then
+ sv start igdaemon
+ CMD="/usr/sbin/lircd -r -n --driver=iguanaIR"
+ printhl " Using iguanaIR usb"
+ #echo $CMD
+ $CMD >>$LOG 2>>$LOG
+ elif [ x$ReceiverType = "xSiliconDust_HDHR" ]
+ then
+ # if using the SiliconDust_HDHR as an I/R Receiver
+ printhl " Using SiliconDust on port 5000"
+ CMD="/usr/sbin/lircd -H udp -d 5000 -n"
+ exec $CMD >>$LOG 2>>$LOG
+ else
+ LASTCMD=""
+
+ for i in `seq 1 $num_lirc`
+ do
+ CMD="/usr/sbin/lircd -r -d /dev/lirc$i --output=/var/run/lirc/lircd$i --pidfile=/var/run/lircd$i.pid --listen=876$i"
+ printhl " Device $i"
+ #echo $CMD
+ $CMD >>$LOG 2>>$LOG
+ LASTCMD="--connect=localhost:876$i $LASTCMD "
+ done
+
+ if [ -f /etc/remote.run ]
+ then
+ #program must not terminate.
+
+ stat_runit "Starting remotes from /etc/remote.run"
+
+ /etc/remote.run
+ else
+ in_kernel_support "disable"
+ LCMD="/usr/sbin/lircd -r -n -d /dev/lirc0 --output /var/run/lirc/lircd $LASTCMD"
+ #echo $LCMD
+ exec $LCMD >>$LOG 2>>$LOG
+ fi
+ fi
+fi
diff --git a/abs/core/system-templates/PKGBUILD b/abs/core/system-templates/PKGBUILD
index 4f2a035..8a1df44 100755
--- a/abs/core/system-templates/PKGBUILD
+++ b/abs/core/system-templates/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=system-templates
pkgver=2.0
-pkgrel=10
+pkgrel=11
conflicts=( )
pkgdesc="Templates used for system configuration"
depends=()
diff --git a/abs/core/system-templates/templates/remotes/Dvico-Dual-Digital4-rev2/remote.run b/abs/core/system-templates/templates/remotes/Dvico-Dual-Digital4-rev2/remote.run
new file mode 100644
index 0000000..1168696
--- /dev/null
+++ b/abs/core/system-templates/templates/remotes/Dvico-Dual-Digital4-rev2/remote.run
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+/usr/sbin/lircd -r -n -d /dev/remotes/dvicoDualDigital4 --driver=devinput --output /var/run/lirc/lircd
diff --git a/abs/core/system-templates/templates/remotes/dvico/remote.run b/abs/core/system-templates/templates/remotes/dvico/remote.run
new file mode 100644
index 0000000..7721acd
--- /dev/null
+++ b/abs/core/system-templates/templates/remotes/dvico/remote.run
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+/usr/sbin/lircd -r -n -d /dev/remotes/dvicoIR --driver=dvico --output /var/run/lirc/lircd
diff --git a/abs/core/system-templates/templates/remotes/imon-mce/lircd.conf.imon b/abs/core/system-templates/templates/remotes/imon-mce/lircd.conf.imon
new file mode 100755
index 0000000..9b97ab1
--- /dev/null
+++ b/abs/core/system-templates/templates/remotes/imon-mce/lircd.conf.imon
@@ -0,0 +1,835 @@
+# generated by devinput.sh
+
+begin remote
+
+ name devinput
+ bits 16
+ eps 30
+ aeps 100
+
+ one 0 0
+ zero 0 0
+ pre_data_bits 16
+ pre_data 0x1
+ post_data_bits 32
+ post_data 0x1
+ gap 132799
+ toggle_bit_mask 0x0
+
+ begin codes
+ KEY_0 0x0200
+ KEY_102ND 0x0056
+ KEY_1 0x0201
+ KEY_2 0x0202
+ KEY_3 0x0203
+ KEY_4 0x0204
+ KEY_5 0x0205
+ KEY_6 0x0206
+ KEY_7 0x0207
+ KEY_8 0x0208
+ KEY_9 0x0209
+ KEY_A 0x001E
+ KEY_AB 0x0196
+ KEY_AGAIN 0x0081
+ KEY_ALTERASE 0x00DE
+ KEY_ANGLE 0x0173
+ KEY_APOSTROPHE 0x0028
+ KEY_ARCHIVE 0x0169
+ KEY_AUDIO 0x0188
+ KEY_AUX 0x0186
+ KEY_B 0x0030
+ KEY_BACK 0x009E
+ KEY_BACKSLASH 0x002B
+ KEY_BACKSPACE 0x000E
+ KEY_BASSBOOST 0x00D1
+ KEY_BATTERY 0x00EC
+ KEY_BLUE 0x0191
+ KEY_BOOKMARKS 0x009C
+ KEY_BREAK 0x019B
+ KEY_BRIGHTNESSDOWN 0x00E0
+ KEY_BRIGHTNESSUP 0x00E1
+ KEY_BRL_DOT1 0x01F1
+ KEY_BRL_DOT2 0x01F2
+ KEY_BRL_DOT3 0x01F3
+ KEY_BRL_DOT4 0x01F4
+ KEY_BRL_DOT5 0x01F5
+ KEY_BRL_DOT6 0x01F6
+ KEY_BRL_DOT7 0x01F7
+ KEY_BRL_DOT8 0x01F8
+ KEY_C 0x002E
+ KEY_CALC 0x008C
+ KEY_CALENDAR 0x018D
+ KEY_CAMERA 0x00D4
+ KEY_CANCEL 0x00DF
+ KEY_CAPSLOCK 0x003A
+ KEY_CD 0x017F
+ KEY_CHANNEL 0x016B
+ KEY_CHANNELDOWN 0x0193
+ KEY_CHANNELUP 0x0192
+ KEY_CHAT 0x00D8
+ KEY_CLEAR 0x0163
+ KEY_CLOSE 0x00CE
+ KEY_CLOSECD 0x00A0
+ KEY_COFFEE 0x0098
+ KEY_COMMA 0x0033
+ KEY_COMPOSE 0x007F
+ KEY_COMPUTER 0x009D
+ KEY_CONFIG 0x00AB
+ KEY_CONNECT 0x00DA
+ KEY_COPY 0x0085
+ KEY_CUT 0x0089
+ KEY_CYCLEWINDOWS 0x009A
+ KEY_D 0x0020
+ KEY_DEL_EOL 0x01C0
+ KEY_DEL_EOS 0x01C1
+ KEY_DELETE 0x006F
+ KEY_DELETEFILE 0x0092
+ KEY_DEL_LINE 0x01C3
+ KEY_DIGITS 0x019D
+ KEY_DIRECTION 0x0099
+ KEY_DIRECTORY 0x018A
+ KEY_DOCUMENTS 0x00EB
+ KEY_DOT 0x0034
+ KEY_DOWN 0x006C
+ KEY_DVD 0x0185
+ KEY_E 0x0012
+ KEY_EDIT 0x00B0
+ KEY_EJECTCD 0x00A1
+ KEY_EJECTCLOSECD 0x00A2
+ KEY_EMAIL 0x00D7
+ KEY_END 0x006B
+ KEY_ENTER 0x001C
+ KEY_EPG 0x016D
+ KEY_EQUAL 0x000D
+ KEY_ESC 0x0001
+ KEY_EXIT 0x00AE
+ KEY_F10 0x0044
+ KEY_F11 0x0057
+ KEY_F12 0x0058
+ KEY_F13 0x00B7
+ KEY_F14 0x00B8
+ KEY_F15 0x00B9
+ KEY_F1 0x003B
+ KEY_F16 0x00BA
+ KEY_F17 0x00BB
+ KEY_F18 0x00BC
+ KEY_F19 0x00BD
+ KEY_F20 0x00BE
+ KEY_F21 0x00BF
+ KEY_F22 0x00C0
+ KEY_F23 0x00C1
+ KEY_F24 0x00C2
+ KEY_F2 0x003C
+ KEY_F 0x0021
+ KEY_F3 0x003D
+ KEY_F4 0x003E
+ KEY_F5 0x003F
+ KEY_F6 0x0040
+ KEY_F7 0x0041
+ KEY_F8 0x0042
+ KEY_F9 0x0043
+ KEY_FASTFORWARD 0x00D0
+ KEY_FAVORITES 0x016C
+ KEY_FILE 0x0090
+ KEY_FINANCE 0x00DB
+ KEY_FIND 0x0088
+ KEY_FIRST 0x0194
+ KEY_FN 0x01D0
+ KEY_FN_1 0x01DE
+ KEY_FN_2 0x01DF
+ KEY_FN_B 0x01E4
+ KEY_FN_D 0x01E0
+ KEY_FN_E 0x01E1
+ KEY_FN_ESC 0x01D1
+ KEY_FN_F 0x01E2
+ KEY_FN_F10 0x01DB
+ KEY_FN_F1 0x01D2
+ KEY_FN_F11 0x01DC
+ KEY_FN_F12 0x01DD
+ KEY_FN_F2 0x01D3
+ KEY_FN_F3 0x01D4
+ KEY_FN_F4 0x01D5
+ KEY_FN_F5 0x01D6
+ KEY_FN_F6 0x01D7
+ KEY_FN_F7 0x01D8
+ KEY_FN_F8 0x01D9
+ KEY_FN_F9 0x01DA
+ KEY_FN_S 0x01E3
+ KEY_FORWARD 0x009F
+ KEY_FORWARDMAIL 0x00E9
+ KEY_FRONT 0x0084
+ KEY_G 0x0022
+ KEY_GOTO 0x0162
+ KEY_GRAVE 0x0029
+ KEY_GREEN 0x018F
+ KEY_H 0x0023
+ KEY_HANGEUL 0x007A
+ KEY_HANJA 0x007B
+ KEY_HELP 0x008A
+ KEY_HENKAN 0x005C
+ KEY_HIRAGANA 0x005B
+ KEY_HOME 0x0066
+ KEY_HOMEPAGE 0x00AC
+ KEY_HP 0x00D3
+ KEY_I 0x0017
+ KEY_INFO 0x0166
+ KEY_INSERT 0x006E
+ KEY_INS_LINE 0x01C2
+ KEY_ISO 0x00AA
+ KEY_J 0x0024
+ KEY_K 0x0025
+ KEY_KATAKANA 0x005A
+ KEY_KATAKANAHIRAGANA 0x005D
+ KEY_KBDILLUMDOWN 0x00E5
+ KEY_KBDILLUMTOGGLE 0x00E4
+ KEY_KBDILLUMUP 0x00E6
+ KEY_KEYBOARD 0x0176
+ KEY_KP0 0x0052
+ KEY_KP1 0x004F
+ KEY_KP2 0x0050
+ KEY_KP3 0x0051
+ KEY_KP4 0x004B
+ KEY_KP5 0x004C
+ KEY_KP6 0x004D
+ KEY_KP7 0x0047
+ KEY_KP8 0x0048
+ KEY_KP9 0x0049
+ KEY_KPASTERISK 0x0037
+ KEY_KPCOMMA 0x0079
+ KEY_KPDOT 0x0053
+ KEY_KPENTER 0x0060
+ KEY_KPEQUAL 0x0075
+ KEY_KPJPCOMMA 0x005F
+ KEY_KPLEFTPAREN 0x00B3
+ KEY_KPMINUS 0x004A
+ KEY_KPPLUS 0x004E
+ KEY_KPPLUSMINUS 0x0076
+ KEY_KPRIGHTPAREN 0x00B4
+ KEY_KPSLASH 0x0062
+ KEY_L 0x0026
+ KEY_LANGUAGE 0x0170
+ KEY_LAST 0x0195
+ KEY_LEFT 0x0069
+ KEY_LEFTALT 0x0038
+ KEY_LEFTBRACE 0x001A
+ KEY_LEFTCTRL 0x001D
+ KEY_LEFTMETA 0x007D
+ KEY_LEFTSHIFT 0x002A
+ KEY_LINEFEED 0x0065
+ KEY_LIST 0x018B
+ KEY_M 0x0032
+ KEY_MACRO 0x0070
+ KEY_MAIL 0x009B
+ KEY_MAX 0x01FF
+ KEY_MEDIA 0x00E2
+ KEY_MEMO 0x018C
+ KEY_MENU 0x008B
+ KEY_MHP 0x016F
+ KEY_MINUS 0x000C
+ KEY_MODE 0x0175
+ KEY_MOVE 0x00AF
+ KEY_MP3 0x0187
+ KEY_MSDOS 0x0097
+ KEY_MUHENKAN 0x005E
+ KEY_MUTE 0x0071
+ KEY_N 0x0031
+ KEY_NEW 0x00B5
+ KEY_NEXT 0x0197
+ KEY_NEXTSONG 0x00A3
+ KEY_NUMLOCK 0x0045
+ KEY_O 0x0018
+ KEY_OK 0x0160
+ KEY_OPEN 0x0086
+ KEY_OPTION 0x0165
+ KEY_P 0x0019
+ KEY_PAGEDOWN 0x006D
+ KEY_PAGEUP 0x0068
+ KEY_PASTE 0x0087
+ KEY_PAUSE 0x0077
+ KEY_PAUSECD 0x00C9
+ KEY_PC 0x0178
+ KEY_PHONE 0x00A9
+ KEY_PLAY 0x00CF
+ KEY_PLAYCD 0x00C8
+ KEY_PLAYER 0x0183
+ KEY_PLAYPAUSE 0x00A4
+ KEY_NUMERIC_POUND 0x020B
+ KEY_POWER 0x0074
+ KEY_POWER2 0x0164
+ KEY_PREVIOUS 0x019C
+ KEY_PREVIOUSSONG 0x00A5
+ KEY_PRINT 0x00D2
+ KEY_PROG1 0x0094
+ KEY_PROG2 0x0095
+ KEY_PROG3 0x00CA
+ KEY_PROG4 0x00CB
+ KEY_PROGRAM 0x016A
+ KEY_PROPS 0x0082
+ KEY_PVR 0x016E
+ KEY_Q 0x0010
+ KEY_QUESTION 0x00D6
+ KEY_R 0x0013
+ KEY_RADIO 0x0181
+ KEY_RECORD 0x00A7
+ KEY_RED 0x018E
+ KEY_REDO 0x00B6
+ KEY_REFRESH 0x00AD
+ KEY_REPLY 0x00E8
+ KEY_RESERVED 0x0000
+ KEY_RESTART 0x0198
+ KEY_REWIND 0x00A8
+ KEY_RIGHT 0x006A
+ KEY_RIGHTALT 0x0064
+ KEY_RIGHTBRACE 0x001B
+ KEY_RIGHTCTRL 0x0061
+ KEY_RIGHTMETA 0x007E
+ KEY_RIGHTSHIFT 0x0036
+ KEY_RO 0x0059
+ KEY_S 0x001F
+ KEY_SAT 0x017D
+ KEY_SAT2 0x017E
+ KEY_SAVE 0x00EA
+ KEY_SCREEN 0x0177
+ KEY_SCROLLDOWN 0x00B2
+ KEY_SCROLLLOCK 0x0046
+ KEY_SCROLLUP 0x00B1
+ KEY_SEARCH 0x00D9
+ KEY_SELECT 0x0161
+ KEY_SEMICOLON 0x0027
+ KEY_SEND 0x00E7
+ KEY_SENDFILE 0x0091
+ KEY_SETUP 0x008D
+ KEY_SHOP 0x00DD
+ KEY_SHUFFLE 0x019A
+ KEY_SLASH 0x0035
+ KEY_SLEEP 0x008E
+ KEY_SLOW 0x0199
+ KEY_SOUND 0x00D5
+ KEY_SPACE 0x0039
+ KEY_SPORT 0x00DC
+ KEY_STOP 0x0080
+ KEY_STOPCD 0x00A6
+ KEY_SUBTITLE 0x0172
+ KEY_SUSPEND 0x00CD
+ KEY_SWITCHVIDEOMODE 0x00E3
+ KEY_SYSRQ 0x0063
+ KEY_T 0x0014
+ KEY_TAB 0x000F
+ KEY_TAPE 0x0180
+ KEY_TEEN 0x019E
+ KEY_TEXT 0x0184
+ KEY_TIME 0x0167
+ KEY_TITLE 0x0171
+ KEY_TUNER 0x0182
+ KEY_TV 0x0179
+ KEY_TV2 0x017A
+ KEY_TWEN 0x019F
+ KEY_U 0x0016
+ KEY_UNDO 0x0083
+ KEY_UNKNOWN 0x00F0
+ KEY_UP 0x0067
+ KEY_V 0x002F
+ KEY_VCR 0x017B
+ KEY_VCR2 0x017C
+ KEY_VENDOR 0x0168
+ KEY_VIDEO 0x0189
+ KEY_VOLUMEDOWN 0x0072
+ KEY_VOLUMEUP 0x0073
+ KEY_W 0x0011
+ KEY_WAKEUP 0x008F
+ KEY_WWW 0x0096
+ KEY_X 0x002D
+ KEY_XFER 0x0093
+ KEY_Y 0x0015
+ KEY_YELLOW 0x0190
+ KEY_YEN 0x007C
+ KEY_Z 0x002C
+ KEY_ZENKAKUHANKAKU 0x0055
+ KEY_ZOOM 0x0174
+ BTN_0 0x0100
+ BTN_1 0x0101
+ BTN_2 0x0102
+ BTN_3 0x0103
+ BTN_4 0x0104
+ BTN_5 0x0105
+ BTN_6 0x0106
+ BTN_7 0x0107
+ BTN_8 0x0108
+ BTN_9 0x0109
+ BTN_A 0x0130
+ BTN_B 0x0131
+ BTN_BACK 0x0116
+ BTN_BASE 0x0126
+ BTN_BASE2 0x0127
+ BTN_BASE3 0x0128
+ BTN_BASE4 0x0129
+ BTN_BASE5 0x012A
+ BTN_BASE6 0x012B
+ BTN_C 0x0132
+ BTN_DEAD 0x012F
+ BTN_DIGI 0x0140
+ BTN_EXTRA 0x0114
+ BTN_FORWARD 0x0115
+ BTN_GAMEPAD 0x0130
+ BTN_GEAR_DOWN 0x0150
+ BTN_GEAR_UP 0x0151
+ BTN_JOYSTICK 0x0120
+ BTN_LEFT 0x0110
+ BTN_MIDDLE 0x0112
+ BTN_MISC 0x0100
+ BTN_MODE 0x013C
+ BTN_MOUSE 0x0110
+ BTN_PINKIE 0x0125
+ BTN_RIGHT 0x0111
+ BTN_SELECT 0x013A
+ BTN_SIDE 0x0113
+ BTN_START 0x013B
+ BTN_STYLUS 0x014B
+ BTN_STYLUS2 0x014C
+ BTN_TASK 0x0117
+ BTN_THUMB 0x0121
+ BTN_THUMB2 0x0122
+ BTN_THUMBL 0x013D
+ BTN_THUMBR 0x013E
+ BTN_TL 0x0136
+ BTN_TL2 0x0138
+ BTN_TOOL_AIRBRUSH 0x0144
+ BTN_TOOL_BRUSH 0x0142
+ BTN_TOOL_DOUBLETAP 0x014D
+ BTN_TOOL_FINGER 0x0145
+ BTN_TOOL_LENS 0x0147
+ BTN_TOOL_MOUSE 0x0146
+ BTN_TOOL_PEN 0x0140
+ BTN_TOOL_PENCIL 0x0143
+ BTN_TOOL_RUBBER 0x0141
+ BTN_TOOL_TRIPLETAP 0x014E
+ BTN_TOP 0x0123
+ BTN_TOP2 0x0124
+ BTN_TOUCH 0x014A
+ BTN_TR 0x0137
+ BTN_TR2 0x0139
+ BTN_TRIGGER 0x0120
+ BTN_WHEEL 0x0150
+ BTN_X 0x0133
+ BTN_Y 0x0134
+ BTN_Z 0x0135
+ end codes
+
+end remote
+
+# generated by devinput.sh (obsolete 32 bit version)
+begin remote
+
+ name devinput
+ bits 16
+ eps 30
+ aeps 100
+
+ one 0 0
+ zero 0 0
+ pre_data_bits 16
+ pre_data 0x8001
+ gap 132799
+ toggle_bit_mask 0x0
+
+ begin codes
+ KEY_0 0x0200
+ KEY_102ND 0x0056
+ KEY_1 0x0201
+ KEY_2 0x0202
+ KEY_3 0x0203
+ KEY_4 0x0204
+ KEY_5 0x0205
+ KEY_6 0x0206
+ KEY_7 0x0207
+ KEY_8 0x0208
+ KEY_9 0x0209
+ KEY_A 0x001E
+ KEY_AB 0x0196
+ KEY_AGAIN 0x0081
+ KEY_ALTERASE 0x00DE
+ KEY_ANGLE 0x0173
+ KEY_APOSTROPHE 0x0028
+ KEY_ARCHIVE 0x0169
+ KEY_AUDIO 0x0188
+ KEY_AUX 0x0186
+ KEY_B 0x0030
+ KEY_BACK 0x009E
+ KEY_BACKSLASH 0x002B
+ KEY_BACKSPACE 0x000E
+ KEY_BASSBOOST 0x00D1
+ KEY_BATTERY 0x00EC
+ KEY_BLUE 0x0191
+ KEY_BOOKMARKS 0x009C
+ KEY_BREAK 0x019B
+ KEY_BRIGHTNESSDOWN 0x00E0
+ KEY_BRIGHTNESSUP 0x00E1
+ KEY_BRL_DOT1 0x01F1
+ KEY_BRL_DOT2 0x01F2
+ KEY_BRL_DOT3 0x01F3
+ KEY_BRL_DOT4 0x01F4
+ KEY_BRL_DOT5 0x01F5
+ KEY_BRL_DOT6 0x01F6
+ KEY_BRL_DOT7 0x01F7
+ KEY_BRL_DOT8 0x01F8
+ KEY_C 0x002E
+ KEY_CALC 0x008C
+ KEY_CALENDAR 0x018D
+ KEY_CAMERA 0x00D4
+ KEY_CANCEL 0x00DF
+ KEY_CAPSLOCK 0x003A
+ KEY_CD 0x017F
+ KEY_CHANNEL 0x016B
+ KEY_CHANNELDOWN 0x0193
+ KEY_CHANNELUP 0x0192
+ KEY_CHAT 0x00D8
+ KEY_CLEAR 0x0163
+ KEY_CLOSE 0x00CE
+ KEY_CLOSECD 0x00A0
+ KEY_COFFEE 0x0098
+ KEY_COMMA 0x0033
+ KEY_COMPOSE 0x007F
+ KEY_COMPUTER 0x009D
+ KEY_CONFIG 0x00AB
+ KEY_CONNECT 0x00DA
+ KEY_COPY 0x0085
+ KEY_CUT 0x0089
+ KEY_CYCLEWINDOWS 0x009A
+ KEY_D 0x0020
+ KEY_DEL_EOL 0x01C0
+ KEY_DEL_EOS 0x01C1
+ KEY_DELETE 0x006F
+ KEY_DELETEFILE 0x0092
+ KEY_DEL_LINE 0x01C3
+ KEY_DIGITS 0x019D
+ KEY_DIRECTION 0x0099
+ KEY_DIRECTORY 0x018A
+ KEY_DOCUMENTS 0x00EB
+ KEY_DOT 0x0034
+ KEY_DOWN 0x006C
+ KEY_DVD 0x0185
+ KEY_E 0x0012
+ KEY_EDIT 0x00B0
+ KEY_EJECTCD 0x00A1
+ KEY_EJECTCLOSECD 0x00A2
+ KEY_EMAIL 0x00D7
+ KEY_END 0x006B
+ KEY_ENTER 0x001C
+ KEY_EPG 0x016D
+ KEY_EQUAL 0x000D
+ KEY_ESC 0x0001
+ KEY_EXIT 0x00AE
+ KEY_F10 0x0044
+ KEY_F11 0x0057
+ KEY_F12 0x0058
+ KEY_F13 0x00B7
+ KEY_F14 0x00B8
+ KEY_F15 0x00B9
+ KEY_F1 0x003B
+ KEY_F16 0x00BA
+ KEY_F17 0x00BB
+ KEY_F18 0x00BC
+ KEY_F19 0x00BD
+ KEY_F20 0x00BE
+ KEY_F21 0x00BF
+ KEY_F22 0x00C0
+ KEY_F23 0x00C1
+ KEY_F24 0x00C2
+ KEY_F2 0x003C
+ KEY_F 0x0021
+ KEY_F3 0x003D
+ KEY_F4 0x003E
+ KEY_F5 0x003F
+ KEY_F6 0x0040
+ KEY_F7 0x0041
+ KEY_F8 0x0042
+ KEY_F9 0x0043
+ KEY_FASTFORWARD 0x00D0
+ KEY_FAVORITES 0x016C
+ KEY_FILE 0x0090
+ KEY_FINANCE 0x00DB
+ KEY_FIND 0x0088
+ KEY_FIRST 0x0194
+ KEY_FN 0x01D0
+ KEY_FN_1 0x01DE
+ KEY_FN_2 0x01DF
+ KEY_FN_B 0x01E4
+ KEY_FN_D 0x01E0
+ KEY_FN_E 0x01E1
+ KEY_FN_ESC 0x01D1
+ KEY_FN_F 0x01E2
+ KEY_FN_F10 0x01DB
+ KEY_FN_F1 0x01D2
+ KEY_FN_F11 0x01DC
+ KEY_FN_F12 0x01DD
+ KEY_FN_F2 0x01D3
+ KEY_FN_F3 0x01D4
+ KEY_FN_F4 0x01D5
+ KEY_FN_F5 0x01D6
+ KEY_FN_F6 0x01D7
+ KEY_FN_F7 0x01D8
+ KEY_FN_F8 0x01D9
+ KEY_FN_F9 0x01DA
+ KEY_FN_S 0x01E3
+ KEY_FORWARD 0x009F
+ KEY_FORWARDMAIL 0x00E9
+ KEY_FRONT 0x0084
+ KEY_G 0x0022
+ KEY_GOTO 0x0162
+ KEY_GRAVE 0x0029
+ KEY_GREEN 0x018F
+ KEY_H 0x0023
+ KEY_HANGEUL 0x007A
+ KEY_HANJA 0x007B
+ KEY_HELP 0x008A
+ KEY_HENKAN 0x005C
+ KEY_HIRAGANA 0x005B
+ KEY_HOME 0x0066
+ KEY_HOMEPAGE 0x00AC
+ KEY_HP 0x00D3
+ KEY_I 0x0017
+ KEY_INFO 0x0166
+ KEY_INSERT 0x006E
+ KEY_INS_LINE 0x01C2
+ KEY_ISO 0x00AA
+ KEY_J 0x0024
+ KEY_K 0x0025
+ KEY_KATAKANA 0x005A
+ KEY_KATAKANAHIRAGANA 0x005D
+ KEY_KBDILLUMDOWN 0x00E5
+ KEY_KBDILLUMTOGGLE 0x00E4
+ KEY_KBDILLUMUP 0x00E6
+ KEY_KEYBOARD 0x0176
+ KEY_KP0 0x0052
+ KEY_KP1 0x004F
+ KEY_KP2 0x0050
+ KEY_KP3 0x0051
+ KEY_KP4 0x004B
+ KEY_KP5 0x004C
+ KEY_KP6 0x004D
+ KEY_KP7 0x0047
+ KEY_KP8 0x0048
+ KEY_KP9 0x0049
+ KEY_KPASTERISK 0x0037
+ KEY_KPCOMMA 0x0079
+ KEY_KPDOT 0x0053
+ KEY_KPENTER 0x0060
+ KEY_KPEQUAL 0x0075
+ KEY_KPJPCOMMA 0x005F
+ KEY_KPLEFTPAREN 0x00B3
+ KEY_KPMINUS 0x004A
+ KEY_KPPLUS 0x004E
+ KEY_KPPLUSMINUS 0x0076
+ KEY_KPRIGHTPAREN 0x00B4
+ KEY_KPSLASH 0x0062
+ KEY_L 0x0026
+ KEY_LANGUAGE 0x0170
+ KEY_LAST 0x0195
+ KEY_LEFT 0x0069
+ KEY_LEFTALT 0x0038
+ KEY_LEFTBRACE 0x001A
+ KEY_LEFTCTRL 0x001D
+ KEY_LEFTMETA 0x007D
+ KEY_LEFTSHIFT 0x002A
+ KEY_LINEFEED 0x0065
+ KEY_LIST 0x018B
+ KEY_M 0x0032
+ KEY_MACRO 0x0070
+ KEY_MAIL 0x009B
+ KEY_MAX 0x01FF
+ KEY_MEDIA 0x00E2
+ KEY_MEMO 0x018C
+ KEY_MENU 0x008B
+ KEY_MHP 0x016F
+ KEY_MINUS 0x000C
+ KEY_MODE 0x0175
+ KEY_MOVE 0x00AF
+ KEY_MP3 0x0187
+ KEY_MSDOS 0x0097
+ KEY_MUHENKAN 0x005E
+ KEY_MUTE 0x0071
+ KEY_N 0x0031
+ KEY_NEW 0x00B5
+ KEY_NEXT 0x0197
+ KEY_NEXTSONG 0x00A3
+ KEY_NUMLOCK 0x0045
+ KEY_NUMERIC_POUND 0x020B
+ KEY_O 0x0018
+ KEY_OK 0x0160
+ KEY_OPEN 0x0086
+ KEY_OPTION 0x0165
+ KEY_P 0x0019
+ KEY_PAGEDOWN 0x006D
+ KEY_PAGEUP 0x0068
+ KEY_PASTE 0x0087
+ KEY_PAUSE 0x0077
+ KEY_PAUSECD 0x00C9
+ KEY_PC 0x0178
+ KEY_PHONE 0x00A9
+ KEY_PLAY 0x00CF
+ KEY_PLAYCD 0x00C8
+ KEY_PLAYER 0x0183
+ KEY_PLAYPAUSE 0x00A4
+ KEY_POWER 0x0074
+ KEY_POWER2 0x0164
+ KEY_PREVIOUS 0x019C
+ KEY_PREVIOUSSONG 0x00A5
+ KEY_PRINT 0x00D2
+ KEY_PROG1 0x0094
+ KEY_PROG2 0x0095
+ KEY_PROG3 0x00CA
+ KEY_PROG4 0x00CB
+ KEY_PROGRAM 0x016A
+ KEY_PROPS 0x0082
+ KEY_PVR 0x016E
+ KEY_Q 0x0010
+ KEY_QUESTION 0x00D6
+ KEY_R 0x0013
+ KEY_RADIO 0x0181
+ KEY_RECORD 0x00A7
+ KEY_RED 0x018E
+ KEY_REDO 0x00B6
+ KEY_REFRESH 0x00AD
+ KEY_REPLY 0x00E8
+ KEY_RESERVED 0x0000
+ KEY_RESTART 0x0198
+ KEY_REWIND 0x00A8
+ KEY_RIGHT 0x006A
+ KEY_RIGHTALT 0x0064
+ KEY_RIGHTBRACE 0x001B
+ KEY_RIGHTCTRL 0x0061
+ KEY_RIGHTMETA 0x007E
+ KEY_RIGHTSHIFT 0x0036
+ KEY_RO 0x0059
+ KEY_S 0x001F
+ KEY_SAT 0x017D
+ KEY_SAT2 0x017E
+ KEY_SAVE 0x00EA
+ KEY_SCREEN 0x0177
+ KEY_SCROLLDOWN 0x00B2
+ KEY_SCROLLLOCK 0x0046
+ KEY_SCROLLUP 0x00B1
+ KEY_SEARCH 0x00D9
+ KEY_SELECT 0x0161
+ KEY_SEMICOLON 0x0027
+ KEY_SEND 0x00E7
+ KEY_SENDFILE 0x0091
+ KEY_SETUP 0x008D
+ KEY_SHOP 0x00DD
+ KEY_SHUFFLE 0x019A
+ KEY_SLASH 0x0035
+ KEY_SLEEP 0x008E
+ KEY_SLOW 0x0199
+ KEY_SOUND 0x00D5
+ KEY_SPACE 0x0039
+ KEY_SPORT 0x00DC
+ KEY_STOP 0x0080
+ KEY_STOPCD 0x00A6
+ KEY_SUBTITLE 0x0172
+ KEY_SUSPEND 0x00CD
+ KEY_SWITCHVIDEOMODE 0x00E3
+ KEY_SYSRQ 0x0063
+ KEY_T 0x0014
+ KEY_TAB 0x000F
+ KEY_TAPE 0x0180
+ KEY_TEEN 0x019E
+ KEY_TEXT 0x0184
+ KEY_TIME 0x0167
+ KEY_TITLE 0x0171
+ KEY_TUNER 0x0182
+ KEY_TV 0x0179
+ KEY_TV2 0x017A
+ KEY_TWEN 0x019F
+ KEY_U 0x0016
+ KEY_UNDO 0x0083
+ KEY_UNKNOWN 0x00F0
+ KEY_UP 0x0067
+ KEY_V 0x002F
+ KEY_VCR 0x017B
+ KEY_VCR2 0x017C
+ KEY_VENDOR 0x0168
+ KEY_VIDEO 0x0189
+ KEY_VOLUMEDOWN 0x0072
+ KEY_VOLUMEUP 0x0073
+ KEY_W 0x0011
+ KEY_WAKEUP 0x008F
+ KEY_WWW 0x0096
+ KEY_X 0x002D
+ KEY_XFER 0x0093
+ KEY_Y 0x0015
+ KEY_YELLOW 0x0190
+ KEY_YEN 0x007C
+ KEY_Z 0x002C
+ KEY_ZENKAKUHANKAKU 0x0055
+ KEY_ZOOM 0x0174
+ BTN_0 0x0100
+ BTN_1 0x0101
+ BTN_2 0x0102
+ BTN_3 0x0103
+ BTN_4 0x0104
+ BTN_5 0x0105
+ BTN_6 0x0106
+ BTN_7 0x0107
+ BTN_8 0x0108
+ BTN_9 0x0109
+ BTN_A 0x0130
+ BTN_B 0x0131
+ BTN_BACK 0x0116
+ BTN_BASE 0x0126
+ BTN_BASE2 0x0127
+ BTN_BASE3 0x0128
+ BTN_BASE4 0x0129
+ BTN_BASE5 0x012A
+ BTN_BASE6 0x012B
+ BTN_C 0x0132
+ BTN_DEAD 0x012F
+ BTN_DIGI 0x0140
+ BTN_EXTRA 0x0114
+ BTN_FORWARD 0x0115
+ BTN_GAMEPAD 0x0130
+ BTN_GEAR_DOWN 0x0150
+ BTN_GEAR_UP 0x0151
+ BTN_JOYSTICK 0x0120
+ BTN_LEFT 0x0110
+ BTN_MIDDLE 0x0112
+ BTN_MISC 0x0100
+ BTN_MODE 0x013C
+ BTN_MOUSE 0x0110
+ BTN_PINKIE 0x0125
+ BTN_RIGHT 0x0111
+ BTN_SELECT 0x013A
+ BTN_SIDE 0x0113
+ BTN_START 0x013B
+ BTN_STYLUS 0x014B
+ BTN_STYLUS2 0x014C
+ BTN_TASK 0x0117
+ BTN_THUMB 0x0121
+ BTN_THUMB2 0x0122
+ BTN_THUMBL 0x013D
+ BTN_THUMBR 0x013E
+ BTN_TL 0x0136
+ BTN_TL2 0x0138
+ BTN_TOOL_AIRBRUSH 0x0144
+ BTN_TOOL_BRUSH 0x0142
+ BTN_TOOL_DOUBLETAP 0x014D
+ BTN_TOOL_FINGER 0x0145
+ BTN_TOOL_LENS 0x0147
+ BTN_TOOL_MOUSE 0x0146
+ BTN_TOOL_PEN 0x0140
+ BTN_TOOL_PENCIL 0x0143
+ BTN_TOOL_RUBBER 0x0141
+ BTN_TOOL_TRIPLETAP 0x014E
+ BTN_TOP 0x0123
+ BTN_TOP2 0x0124
+ BTN_TOUCH 0x014A
+ BTN_TR 0x0137
+ BTN_TR2 0x0139
+ BTN_TRIGGER 0x0120
+ BTN_WHEEL 0x0150
+ BTN_X 0x0133
+ BTN_Y 0x0134
+ BTN_Z 0x0135
+ end codes
+
+end remote
+
diff --git a/abs/core/system-templates/templates/remotes/imon-mce/lircrc b/abs/core/system-templates/templates/remotes/imon-mce/lircrc
new file mode 100755
index 0000000..f16bfc3
--- /dev/null
+++ b/abs/core/system-templates/templates/remotes/imon-mce/lircrc
@@ -0,0 +1,922 @@
+# /home/mythtv/.mythtv/lircrc
+#
+# Media Center Edition Remote Control and Remote Control Keys on Media Center Keyboard
+########################################################################################
+# For use with the USB MCE ir receiver
+# MythTV LIRC config file for the mceusb2 or lirc_mod_mce module
+
+# Info about lircrc statment
+#begin
+# prog = ... Program controlled, irxevent, irexec, mythtv, mplayer, xine, or others
+# remote = ... mceusb, or what ever you happen to have or want to call it
+# button = ... remote keys names from your lircd.conf file
+# repeat = ... repeat = 2 is fast, repeat = 4 is slower
+# delay = ... delay before repeat, 1 is short, 4 is longer
+# config = ... output key presses to key bindings editor
+# mode = ...
+# flags = ...
+#end
+
+
+# Updated January 30th 2008 BAK
+# for the Knoppmyth project
+
+######################################################## irexec ####################
+# the lirc irexec program must be running for this section
+
+# Will perform a complete shutdown
+#begin
+# prog = irexec
+# button = Power
+# config = /usr/bin/sudo halt
+#end
+
+# Teletext = used as power down button
+begin
+ prog = irexec
+ button = KEY_SUBTITLE
+ config = /usr/bin/sudo halt
+# config = sudo /sbin/shutdown -h -t 0 now
+end
+
+
+#
+################################################ Mythtv Section ####################
+# MythTV Key Binding Editor location
+# Mythtv Menu >>Utilities / Setup >>Edit Keys
+# Key Bindings can also be found in Myth Web
+
+# Record
+begin
+ prog = mythtv
+ button = KEY_RECORD
+ config = R
+end
+
+# Stop
+begin
+ prog = mythtv
+ button = KEY_STOP
+ config = Esc
+end
+
+# Pause
+begin
+ prog = mythtv
+ button = KEY_PAUSE
+ config = P
+end
+
+# Rewind (while viewing)
+begin
+ prog = mythtv
+ button = KEY_REWIND
+ repeat = 0
+ delay = 1
+ config = <
+end
+
+# Fast forward (while viewing)
+begin
+ prog = mythtv
+ button = KEY_FASTFORWARD
+ repeat = 0
+ delay = 1
+ config = >
+end
+
+# Play
+begin
+ prog = mythtv
+ button = KEY_PLAY
+ config = L
+end
+
+# Skip backward (1 min default)
+begin
+ prog = mythtv
+ button = KEY_PREVIOUS
+ repeat = 4
+ delay = 4
+ config = PgUp
+end
+
+# Skip forward (1 min default)
+begin
+ prog = mythtv
+ button = KEY_NEXT
+ repeat = 4
+ delay = 4
+ config = PgDown
+end
+
+#<><><><><><><><><><><> Mythtv Control <><><><>
+
+# Escape/Exit/Back
+begin
+ prog = mythtv
+ button = KEY_EXIT
+ config = Esc
+end
+
+# Bring up OSD info
+begin
+ prog = mythtv
+ button = KEY_INFO
+ config = I
+end
+
+begin
+ prog = mythtv
+ button = KEY_LEFT
+ repeat = 3
+ delay = 4
+ config = Left
+end
+
+begin
+ prog = mythtv
+ button = KEY_RIGHT
+ repeat = 3
+ delay = 4
+ config = Right
+end
+
+begin
+ prog = mythtv
+ button = KEY_UP
+ repeat = 3
+ delay = 4
+ config = Up
+end
+
+begin
+ prog = mythtv
+ button = KEY_DOWN
+ repeat = 3
+ delay = 4
+ config = Down
+end
+
+# OK/Select
+begin
+ prog = mythtv
+ button = KEY_OK
+ config = Return
+end
+
+# The Start Button is really just a Menu key
+begin
+ prog = mythtv
+ button = KEY_MEDIA
+ config = M
+end
+
+#<><><><><><><><><><><><><><><>
+
+# Volume-Up
+begin
+ prog = mythtv
+ button = KEY_VOLUMEUP
+ repeat = 2
+ config = ]
+end
+
+# Volume-Down
+begin
+ prog = mythtv
+ button = VOLUMEDOWN
+ repeat = 2
+ config = [
+end
+
+# Mute
+begin
+ prog = mythtv
+ button = KEY_MUTE
+ config = |
+end
+
+# Channel Up
+begin
+ prog = mythtv
+ button = KEY_CHANNELUP
+ repeat = 3
+# delay = 1
+ config = Up
+end
+
+# Channel Down
+begin
+ prog = mythtv
+ button = CHANNELDOWN
+ config = Down
+ repeat = 3
+# delay = 1
+end
+
+# Numbers 0-9 <><><><><><><><><><><>
+
+begin
+ prog = mythtv
+ button = KEY_1
+# repeat = 2
+ config = 1
+end
+
+begin
+ prog = mythtv
+ button = KEY_2
+# repeat = 2
+ config = 2
+end
+
+begin
+ prog = mythtv
+ button = KEY_3
+# repeat = 2
+ config = 3
+end
+
+begin
+ prog = mythtv
+ button = KEY_4
+# repeat = 2
+ config = 4
+end
+
+begin
+ prog = mythtv
+ button = KEY_5
+# repeat = 2
+ config = 5
+end
+
+begin
+ prog = mythtv
+ button = KEY_6
+# repeat = 2
+ config = 6
+end
+
+begin
+ prog = mythtv
+ button = KEY_7
+# repeat = 2
+ config = 7
+end
+
+begin
+ prog = mythtv
+ button = KEY_8
+# repeat = 2
+ config = 8
+End
+
+begin
+ prog = mythtv
+ button = KEY_9
+# repeat = 2
+ config = 9
+end
+
+begin
+ prog = mythtv
+ button = KEY_0
+# repeat = 2
+ config = 0
+end
+
+# Use Zoom for Aspect Ratio
+begin
+ prog = mythtv
+ button = KEY_ZOOM
+ config = W
+end
+
+#<><><><><><><><><><><><><><><><><><><><>
+# Seek to previous commercial cut point
+# or remove all cut points from the Editing Cutlist
+begin
+ prog = mythtv
+ button = KEY_BLUE
+ config = Q
+end
+
+# Seek to next commercial cut point
+# or add commericial cut points to the Editing Cutlist
+begin
+ prog = mythtv
+ button = KEY_NUMERIC_POUND
+ config = Z
+end
+
+# Brings up the delete box
+begin
+ prog = mythtv
+ button = KEY_DELETE
+ repeat = 0
+ config = D
+end
+
+# Toggle Editing Cutlist on or off
+begin
+ prog = mythtv
+ button = KEY_ENTER
+ repeat = 0
+ config = E
+end
+
+#<><><><><><><><> Additional Remote Commands <><><><><><><><>
+# All buttons in this section must be configured using
+# MythTV's KeyBindings JumpPoints editor.
+# >>> Utilities/ Setup >>> Edit Keys >>> JumpPoints >>>
+
+# Listen to Myth Music
+begin
+ prog = mythtv
+ button = KEY_AUDIO
+ config = Ctrl+T
+end
+
+# at this time connects to MythStreem
+begin
+ prog = mythtv
+ button = KEY_RADIO
+ config = Ctrl+Alt+S
+end
+
+# View Pictures
+begin
+ prog = mythtv
+ button = KEY_CAMERA
+ config = Ctrl+G
+end
+
+# Watch Videos
+begin
+ prog = mythtv
+ button = KEY_VIDEO
+ config = Ctrl+V
+end
+
+# Watch Live TV with Live TV Guide open
+begin
+ prog = mythtv
+ button = KEY_TV
+ config = Ctrl+S
+end
+
+# Watch Live TV
+begin
+ prog = mythtv
+ button = KEY_GREEN
+ config = Ctrl+Alt+L
+end
+
+# Recorded TV Programs
+begin
+ prog = mythtv
+ button = KEY_PVR
+ config = Ctrl+R
+end
+
+# Program Guide
+begin
+ prog = mythtv
+ button = KEY_EPG
+ config = Ctrl+Alt+G
+end
+
+# Play DVD
+# There must be a disk in the DVD drive or it dos nothing
+begin
+ prog = mythtv
+ button = KEY_DVD
+ config = Ctrl+Alt+D
+end
+
+# unused key
+#begin
+# prog = mythtv
+# button = Messenger
+# config = Ctrl+Alt+A
+#end
+
+# <><><><><><><><><><><><><> Teletext Buttons <><><><><><><><><><><>
+
+# Teletext = Show interactive MHEG screens
+#begin
+# prog = mythtv
+# button = Teltext
+# config = F7
+#end
+
+# Red = Red button for interactive screens.
+begin
+ prog = mythtv
+ button = KEY_RED
+ config = F2
+end
+
+# Green = Green button for interactive screens.
+begin
+ prog = mythtv
+ button = KEY_GREEN
+ config = F3
+end
+
+# Yellow = Yellow button for interactive screens.
+begin
+ prog = mythtv
+ button = KEY_YELLOW
+ config = F4
+end
+
+# Blue = Blue button for interactive screens.
+begin
+ prog = mythtv
+ button = KEY_BLUE
+ config = F5
+end
+#
+#
+######################################################################### MPlayer Section #####
+# "mplayer -input keylist" Prints all keys that can be bound to commands.
+# "mplayer -input cmdlist" Prints all commands that can be bound to keys
+# "man mplayer" Prints documentation for MPlayer
+
+# Show OSD
+begin
+ prog = mplayer
+ button = KEY_OK
+ config = osd
+end
+
+# Pause playback
+begin
+ prog = mplayer
+ button = KEY_PAUSE
+ config = pause
+end
+
+# If paused, resume playing
+begin
+ prog = mplayer
+ button = KEY_PLAY
+ config = pause
+end
+
+# Stop playback and exit
+begin
+ prog = mplayer
+ button = KEY_STOP
+ config = q
+end
+
+# Exit playback
+begin
+ prog = mplayer
+ button = KEY_EXIT
+ config = q
+end
+
+# Subtitle
+begin
+ prog = mplayer
+ button = KEY_TITLE
+ config = sub_visibility
+end
+
+# Subtitle language
+begin
+ prog = mplayer
+# button = Language
+ button = KEY_BLUE
+ config = vobsub_lang
+end
+
+# Audio language
+begin
+ prog = mplayer
+ button = KEY_LANGUAGE
+ config = switch_audio
+end
+
+# Volume-Up
+begin
+ prog = mplayer
+ button = KEY_VOLUMEUP
+ repeat = 2
+ config = volume +1
+end
+
+# Volume-Down
+begin
+ prog = mplayer
+ button = KEY_VOLUMEDOWN
+ repeat = 2
+ config = volume -1
+end
+
+# Mute
+begin
+ prog = mplayer
+ button = KEY_MUTE
+ config = mute
+end
+
+# Seek back 60 seconds
+begin
+ prog = mplayer
+ button = KEY_LEFT
+ repeat = 2
+ config = seek -60
+end
+
+# Seek forward 60 seconds
+begin
+ prog = mplayer
+ button = KEY_RIGHT
+ repeat = 2
+ config = seek +60
+end
+
+# Seek back 10 seconds
+begin
+ prog = mplayer
+ button = KEY_REWIND
+ repeat = 2
+ config = seek -10
+end
+
+# Seek forward 30 seconds
+begin
+ prog = mplayer
+ button = KEY_FASTFORWARD
+ repeat = 2
+ config = seek +30
+end
+
+# Quit
+begin
+ prog = mplayer
+ button = KEY_EXIT
+ config = quit
+end
+
+# Seek forward 10 minutes
+begin
+ prog = mplayer
+ button = KEY_NEXT
+ repeat = 2
+ config = seek +600
+end
+
+# Seek backward 10 minutes
+begin
+ prog = mplayer
+ button = KEY_PREVIOUS
+ repeat = 2
+ config = seek -600
+end
+
+# increase brightness
+begin
+ button = KEY_CHANNELUP
+ prog = mplayer
+ repeat = 2
+ config = brightness +1
+end
+
+# decrease brightness
+begin
+ button = KEY_CHANNELDOWN
+ prog = mplayer
+ repeat = 2
+ config = brightness -1
+end
+
+# Toggle full-screen
+#begin
+# prog = mplayer
+# button = #???????????????????????????
+# repeat = 2
+# config = vo_fullscreen
+#end
+
+
+######################################################################## XINE Section ##########
+
+# For a compleate list of Xine's Lirc Keybindings use comand
+# xine --keymap=lirc>.lircrc.xine.keybindings
+# This creates a file in current directory called ".lircrc.xine.keybindings"
+# Note: Xine has diferent sets of keybindings for lirc and keyboard
+
+## 01/14/2008
+# xine key bindings.
+# Automatically generated by xine-ui version 0.99.6cvs.
+
+#<><><><><><><><><><> Xine Video Movement <><><><>
+
+# start playback
+begin
+ prog = xine
+ button = KEY_PLAY
+ config = Play
+end
+
+# playback pause toggle
+begin
+ prog = xine
+ button = KEY_PAUSE
+ config = Pause
+end
+
+# stop playback
+begin
+ prog = xine
+ button = KEY_STOP
+ config = Stop
+end
+
+# take a snapshot
+#begin
+# prog = xine
+# button = Record
+# repeat = 2
+# config = Snapshot
+#end
+
+begin
+ prog = xine
+ button = KEY_FASTFORWARD
+ repeat = 2
+# delay = 1
+ config = SeekRelative+7
+end
+
+begin
+ prog = xine
+ button = KEY_REWIND
+ repeat = 2
+# delay = 1
+ config = SeekRelative-7
+end
+
+# set position to -60 seconds in current stream
+begin
+ prog = xine
+ button = KEY_PREVIOUS
+ repeat = 2
+ delay = 1
+ config = SeekRelative-60
+end
+
+# set position to +60 seconds in current stream
+begin
+ prog = xine
+ button = KEY_NEXT
+ repeat = 2
+ delay = 1
+ config = SeekRelative+60
+end
+#<><><><><><><><><><><><>Xine Control<><><><><><><><><>
+
+# quit the program
+begin
+ prog = xine
+ button = KEY_EXIT
+ config = Quit
+end
+
+#display stream information using OSD
+begin
+ prog = xine
+ button = KEY_INFO
+ config = OSDStreamInfos
+end
+
+# menu navigate up
+begin
+ prog = xine
+ button = KEY_UP
+ repeat = 2
+ delay = 2
+ config = EventUp
+end
+
+# menu navigate down
+begin
+ prog = xine
+ button = KEY_DOWN
+ repeat = 2
+ delay = 2
+ config = EventDown
+end
+
+# menu navigate left
+begin
+ prog = xine
+ button = KEY_LEFT
+ repeat = 2
+ delay = 2
+ config = EventLeft
+end
+
+# menu navigate right
+begin
+ prog = xine
+ button = KEY_RIGHT
+ repeat = 2
+ delay = 2
+ config = EventRight
+end
+
+# menu select
+begin
+ prog = xine
+ button = KEY_OK
+ config = EventSelect
+end
+
+# jump to Root Menu
+begin
+ prog = xine
+ button = KEY_MEDIA
+ config = Menu
+end
+
+#<><><><><><><><><><><><><><><><><><><> Xine Volume / Channel <><><><><><><><>
+
+# increment audio volume
+begin
+ prog = xine
+ button = KEY_VOLUMEUP
+ repeat = 1
+ config = Volume+
+end
+
+# decrement audio volume
+begin
+ prog = xine
+ button = KEY_VOLUMEDOWN
+ repeat = 1
+ config = Volume-
+end
+
+# audio muting toggle
+begin
+ prog = xine
+ button = KEY_MUTE
+ config = Mute
+end
+
+# increase brightness by 10
+begin
+ prog = xine
+ button = KEY_CHANNELUP
+ config = BrightnessControl+
+end
+
+# decrease brightness by 10
+begin
+ prog = xine
+ button = KEY_CHANNELDOWN
+ config = BrightnessControl-
+end
+
+#<><><><><><><><><><><><><><><><><> Xine Menu <><><><>
+
+# unused key
+#begin
+# prog = xine
+# button = RecordedTV
+# config = ????????
+#end
+
+# visibility toggle of stream info window
+begin
+ prog = xine
+ button = KEY_EPG
+ config = SetupShow
+end
+
+# unused key
+#begin
+# prog = xine
+# button = LiveTV
+# config = ????????
+#end
+
+# jump to Title Menu
+begin
+ prog = xine
+ button = KEY_DVD
+ config = RootMenu
+end
+
+#<><><><><><><><><><><><><><><><><> Xine Stream Position <><><><>
+
+# set position in current stream
+
+begin
+ prog = xine
+ button = KEY_0
+ config = SetPosition0%
+end
+
+begin
+ prog = xine
+ button = KEY_1
+ config = SetPosition10%
+end
+
+begin
+ prog = xine
+ button = KEY_2
+ config = SetPosition20%
+end
+
+begin
+ prog = xine
+ button = KEY_3
+ config = SetPosition30%
+end
+
+begin
+ prog = xine
+ button = KEY_4
+ config = SetPosition40%
+end
+
+begin
+ prog = xine
+ button = KEY_5
+ config = SetPosition50%
+end
+
+begin
+ prog = xine
+ button = KEY_6
+ config = SetPosition60%
+end
+
+begin
+ prog = xine
+ button = KEY_7
+ config = SetPosition70%
+end
+
+begin
+ prog = xine
+ button = KEY_8
+ config = SetPosition80%
+end
+
+begin
+ prog = xine
+ button = KEY_9
+ config = SetPosition90%
+end
+
+#<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+
+# decrement playback speed (slow motion slowdown)
+begin
+ prog = xine
+ button = KEY_BLUE
+ config = SpeedSlower
+end
+
+# increment playback speed (slow motion speedup)
+begin
+ prog = xine
+ button = KEY_NUMERIC_POUND
+ config = SpeedFaster
+end
+
+# reset playback speed
+begin
+ prog = xine
+ button = KEY_DELETE
+ config = SpeedReset
+end
+
+# unused key
+#begin
+# prog = xine
+# button = clear
+# config = ?????????
+#end
+
+# set position to -30 seconds in current stream config = SeekRelative-30
+# set position to +30 seconds in current stream config = SeekRelative+30
+# eject the current medium config = Eject
+# zoom in config = ZoomIn
+# zoom out config = ZoomOut
+# fullscreen toggle config = ToggleFullscreen
+
+##
+# End of xine .
+##
diff --git a/abs/core/system-templates/templates/remotes/imon-pad/preview.jpg b/abs/core/system-templates/templates/remotes/imon-mce/preview.jpg
index a2e46a3..a2e46a3 100644
--- a/abs/core/system-templates/templates/remotes/imon-pad/preview.jpg
+++ b/abs/core/system-templates/templates/remotes/imon-mce/preview.jpg
Binary files differ
diff --git a/abs/core/system-templates/templates/remotes/imon-mce/remote.run b/abs/core/system-templates/templates/remotes/imon-mce/remote.run
new file mode 100755
index 0000000..b6052db
--- /dev/null
+++ b/abs/core/system-templates/templates/remotes/imon-mce/remote.run
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+/usr/bin/ir-keytable -c -p RC6 -w /etc/rc_keymaps/imon_mce
+/usr/sbin/lircd -r -n --driver devinput -d /dev/remotes/SoundGraph --output /var/run/lirc/lircd
diff --git a/abs/core/system-templates/templates/remotes/imon-pad/lircd.conf b/abs/core/system-templates/templates/remotes/imon-pad/lircd.conf
deleted file mode 100644
index 97bbf4c..0000000
--- a/abs/core/system-templates/templates/remotes/imon-pad/lircd.conf
+++ /dev/null
@@ -1,88 +0,0 @@
-# Please make this file available to others
-# by sending it to <lirc@bartelmus.de>
-#
-# this config file was automatically generated
-# using lirc-0.8.0(imon_pad) on Mon Jan 23 20:22:11 2006
-#
-# contributed by M.Brakemeier
-#
-# brand: SoundGraph
-# model no. of remote control: iMON-PAD
-# devices being controlled by this remote:
-#
-
-begin remote
-
- name iMON-PAD
- bits 32
- eps 30
- aeps 100
-
- one 0 0
- zero 0 0
- gap 235965
- min_repeat 1
- toggle_bit 0
-
- begin codes
- AppExit 0x288195B7
- Power 0x289115B7
- Record 0x298115B7
- Play 0x2A8115B7
- Open 0x29B1d5B7
- Rewind 0x2A8195B7
- Pause 0x2A9115B7
- FastForward 0x2B8115B7
- PrevChapter 0x2B9115B7
- Stop 0x2B9715B7
- NextChapter 0x298195B7
- Esc 0x2BB715B7
- Eject 0x299395B7
- AppLauncher 0x29B715B7
- MultiMon 0x2AB195B7
- TaskSwitcher 0x2A9395B7
- Mute 0x2B9595B7
- Vol+ 0x28A395B7
- Vol- 0x28A595B7
- Ch+ 0x289395B7
- Ch- 0x288795B7
- Timer 0x2B8395B7
- 1 0x28B595B7
- 2 0x2BB195B7
- 3 0x28B195B7
- 4 0x2A8595B7
- 5 0x299595B7
- 6 0x2AA595B7
- 7 0x2B9395B7
- 8 0x2A8515B7
- 9 0x2AA115B7
- 0 0x2BA595B7
- ShiftTab 0x28B515B7
- Tab 0x29A115B7
- Red 0x2B8515B7 # MyMovie
- Green 0x299195B7 # MyMusic
- Blue 0x2BA115B7 # MyPhoto
- Yellow 0x28A515B7 # MyTV
- Bookmark 0x288515B7
- Thumbnail 0x2AB715B7
- AspectRatio 0x29A595B7
- FullScreen 0x2AA395B7
- Purple 0x29A295B7 # MyDVD
- Menu 0x2BA385B7
- Caption 0x298595B7
- Language 0x2B8595B7
- MouseKeyboard 0x299115B7
- SelectSpace 0x2A9315B7
- MouseMenu 0x28B715B7
- MouseRightClick 0x688481B7
- Enter 0x28A195B7
- MouseLeftClick 0x688301B7
- WindowsKey 0x2B8195B7
- Backspace 0x28A115B7
- Mouse_N 0x690281B7
- Mouse_S 0x688291B7
- Mouse_W 0x6A8281B7
- Mouse_E 0x688A81B7
- end codes
-
-end remote
diff --git a/abs/core/system-templates/templates/remotes/imon-pad/lircrc b/abs/core/system-templates/templates/remotes/imon-pad/lircrc
deleted file mode 100644
index 3ad34d8..0000000
--- a/abs/core/system-templates/templates/remotes/imon-pad/lircrc
+++ /dev/null
@@ -1,240 +0,0 @@
-###################################
-# lircrc config as used by Stev391 June 2007
-# Not all of the buttons are configured yet, only the commonly used buttons
-###################################
-
-# Escape
-begin
- prog = mythtv
- button = AppExit
- config = Esc
- repeat = 3
-end
-
-# Escape Key 2
-begin
- prog = mythtv
- button = Esc
- config = Esc
-end
-
-# Channel Up
-begin
- prog = mythtv
- button = Ch+
- config = Up
- repeat = 3
-end
-
-# Channel Down
-begin
- prog = mythtv
- button = Ch-
- config = Down
- repeat = 3
-end
-
-# Volume Up
-begin
- prog = mythtv
- button = Vol+
- repeat = 3
- config = Right
-end
-
-# Volume Down
-begin
- prog = mythtv
- button = Vol-
- repeat = 3
- config = Left
-end
-
-# Enter/Return
-begin
- prog = mythtv
- button = Enter
- config = Return
-end
-
-# Menu Button
-begin
- prog = mythtv
- button = Menu
- config = M
-end
-
-# Mute
-begin
- prog = mythtv
- button = Mute
- config = F9
-end
-
-# Rewind
-begin
- prog = mythtv
- button = Rewind
- config = PgUp
-end
-
-# Fast Forward
-begin
- prog = mythtv
- button = FastForward
- config = PgDown
-end
-
-# Play
-begin
- prog = mythtv
- button = Play
- config = P
-end
-
-# Pause
-begin
- prog = mythtv
- button = Pause
- config = P
-end
-
-# Record
-begin
- prog = mythtv
- button = Record
- config = R
-end
-
-# Stop
-begin
- prog = mythtv
- button = Stop
- config = O
-end
-
-# Previous Track/Chapter
-begin
- prog = mythtv
- button = PrevChapter
- config = Home
-end
-
-# Next Track/Chapter
-begin
- prog = mythtv
- button = NextChapter
- config = End
-end
-
-# Jump Point to MythVideo
-begin
- prog = mythtv
- button = MyMovie
- config = F12
-end
-
-# Jump Point to MythMusic
-begin
- prog = mythtv
- button = MyMusic
- config = F11
-end
-
-# Jump Point to LiveTV
-begin
- prog = mythtv
- button = MyTV
- config = F10
-end
-
-# Jump Point to Main Menu
-begin
- prog = mythtv
- button = Multimon
- config = F2
-end
-
-# Jump Point to Myth Gallery
-begin
- prog = mythtv
- button = MyPhoto
- config = F3
-end
-
-# Jump Point to Play DVD
-begin
- prog = mythtv
- button = MyDVD
- config = F4
-end
-
-# Display Information
-begin
- prog = mythtv
- button = Caption
- config = I
-end
-
-##############################
-# Numbers
-##############################
-begin
- prog = mythtv
- button = 0
- config = 0
-end
-
-begin
- prog = mythtv
- button = 1
- config = 1
-end
-
-begin
- prog = mythtv
- button = 2
- config = 2
-end
-
-begin
- prog = mythtv
- button = 3
- config = 3
-end
-
-begin
- prog = mythtv
- button = 4
- config = 4
-end
-
-begin
- prog = mythtv
- button = 5
- config = 5
-end
-
-begin
- prog = mythtv
- button = 6
- config = 6
-end
-
-begin
- prog = mythtv
- button = 7
- config = 7
-end
-
-begin
- prog = mythtv
- button = 8
- config = 8
-end
-
-begin
- prog = mythtv
- button = 9
- config = 9
-end
diff --git a/abs/core/system-templates/templates/remotes/imon/remote.run b/abs/core/system-templates/templates/remotes/imon/remote.run
new file mode 100755
index 0000000..9d0ab2e
--- /dev/null
+++ b/abs/core/system-templates/templates/remotes/imon/remote.run
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+/usr/bin/ir-keytable -c -p lirc -w /etc/rc_keymaps/imon_pad
+/usr/sbin/lircd -r -n --driver devinput -d /dev/remotes/SoundGraph --output /var/run/lirc/lircd
diff --git a/abs/core/v4l-dvb/PKGBUILD b/abs/core/v4l-dvb/PKGBUILD
index 4463335..36e4609 100644
--- a/abs/core/v4l-dvb/PKGBUILD
+++ b/abs/core/v4l-dvb/PKGBUILD
@@ -2,9 +2,9 @@
pkgname=v4l-dvb
_kernver=`uname -r`
-pkgver=20120113
-pkgrel=2
-pkgdesc="V4L-DVB device drivers (newer than those included in kernel)"
+pkgver=20120407
+pkgrel=1
+pkgdesc="V4L-DVB device drivers (newer than those included in kernel26)"
arch=('i686' 'x86_64')
url="http://linuxtv.org/"
license=('GPL2')
diff --git a/abs/core/v4l-dvb/v4l-dvb.install b/abs/core/v4l-dvb/v4l-dvb.install
index 8fb315c..ec6382d 100644
--- a/abs/core/v4l-dvb/v4l-dvb.install
+++ b/abs/core/v4l-dvb/v4l-dvb.install
@@ -1,10 +1,18 @@
post_install() {
+ echo ">>> Removing duplicate compressed kernel modules..."
+ for file in `find /lib/modules -name "*.ko"`; do if [[ -e $file.gz ]]; then rm "$file.gz"; fi; done
echo ">>> Running depmod..."
depmod
}
post_upgrade() {
+ echo ">>> Removing duplicate compressed kernel modules..."
+ for file in `find /lib/modules -name "*.ko"`; do if [[ -e $file.gz ]]; then rm "$file.gz"; fi; done
echo ">>> Running depmod..."
depmod
}
+post_remove() {
+ echo ">>> v4l-dvb has been removed"
+ echo ">>> kernel26 & dvb-firmware & linux-firmware should be reinstalled"
+}
diff --git a/abs/core/xorg-xdpyinfo/PKGBUILD b/abs/core/xorg-xdpyinfo/PKGBUILD
new file mode 100644
index 0000000..9ee844a
--- /dev/null
+++ b/abs/core/xorg-xdpyinfo/PKGBUILD
@@ -0,0 +1,24 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=xorg-xdpyinfo
+pkgver=1.3.0
+pkgrel=1
+pkgdesc="Display information utility for X"
+arch=(i686 x86_64)
+url="http://xorg.freedesktop.org/"
+license=('custom')
+depends=('libx11' 'libxext' 'libxtst' 'libxxf86vm' 'libxxf86dga' 'libxrender' 'libxcomposite' 'libxinerama' 'libdmx')
+makedepends=('xorg-util-macros')
+groups=('xorg-apps' 'xorg')
+source=(http://xorg.freedesktop.org/archive/individual/app/xdpyinfo-${pkgver}.tar.bz2)
+sha256sums=('23ee4944a32b5701b4379cb420729eb7a4dde54de2b5b006d4747855efd6d73f')
+
+build() {
+ cd "${srcdir}/xdpyinfo-${pkgver}"
+ ./configure --prefix=/usr
+ make
+ make DESTDIR="${pkgdir}" install
+ install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+}