Friday, September 10th 2010, 9:59am UTC+1
You are not logged in.
Beginner
Quoted
При его запуске управлять могу только мышкой и клавой, а какой тогда в нем смысл
Beginner
|
|
Source code |
1 2 3 4 5 6 |
<lircmap> <remote device="LIRC_REMOTE_NAME"> <button string>LIRC BUTTON NAME</button string> <...>...</...> </remote> </lircmap> |
This post has been edited 2 times, last edit by "Alextuzov" (Mar 30th 2009, 9:58am)
Это тоже обсуждалось. ФОКУС на xbmc.
Quoted
VDR остается запущенным и все команды пульта, которыми я пробую управлять XBMC влияют и на VDR
Beginner
Quoted
Если возникнет проблема с фокусом в XBMC, когда VDR-сервер всё ещё отвечает на ДУ,
то влияет задействование ДУ-управления "svdrpsend remo on" или, наоборот, отключение - svdrpsend remo off
Ей богу, не знаю. У меня vdr управляется картой горячих клавиш от проигрывателя xine. Я уже говорил, что это удобнее в том смысле, что xine имеет свои полезные фичи в OSD, которые дополняют VDR-OSD (деинтерлейсинг on/off, stream information, cycle aspect ratio и т.п.). Поскольку xine закрыт, то vdr и не управляется с пульта (когда я в xbmc).
Quoted
Где искать эту строку и менять on на off или наоборот?
Beginner
|
|
Source code |
1 |
root@alex-hd:/etc# irw |
|
|
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 |
0000000040bf807f 00 Source lircd.conf 0000000040bfa05f 00 1 lircd.conf 0000000040bf609f 00 2 lircd.conf 0000000040bfe01f 00 3 lircd.conf 0000000040bf906f 00 4 lircd.conf 0000000040bf50af 00 5 lircd.conf 0000000040bfd02f 00 6 lircd.conf 0000000040bfb04f 00 7 lircd.conf 0000000040bf708f 00 8 lircd.conf 0000000040bff00f 00 9 lircd.conf 0000000040bfa857 00 Menu lircd.conf 0000000040bf48b7 00 L lircd.conf 0000000040bf8877 00 Enter lircd.conf 0000000040bfc837 00 R lircd.conf 0000000040bfe817 00 Shot lircd.conf 0000000040bf08f7 00 16-CH lircd.conf 00000000c03fc03f 00 CH+ lircd.conf 00000000c03f40bf 00 CH- lircd.conf 0000000040bf7887 00 VOL- lircd.conf 0000000040bff807 00 VOL+ lircd.conf 0000000040bf28d7 00 Mute lircd.conf 0000000040bf10ef 00 AUDIO lircd.conf 0000000040bf9867 00 RECORD lircd.conf 0000000040bf18e7 00 Play lircd.conf 0000000040bfd827 00 Stop lircd.conf 0000000040bf58a7 00 Pause lircd.conf 0000000040bfb847 00 -FF lircd.conf 0000000040bf38c7 00 +FF lircd.conf 0000000040bfc03f 00 Teletext lircd.conf 00000000c03f807f 00 Prev lircd.conf 00000000c03f00ff 00 Next lircd.conf 0000000040bf20df 00 EPG lircd.conf |
|
|
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 |
<remote device="lircd.conf"> - здесь вставляем то что мы видим после названия каждой клавиши в irw, в моем случае lircd.conf <pause>Pause</pause> между тегами ставим свои названия кнопок пульта <stop>Stop</stop> <forward>-FF</forward> <reverse>+FF</reverse> <left>L</left> <right>R</right> <up>CH+</up> <down>CH-</down> <select>OK</select> <pageplus>PageUp</pageplus> <pageminus>PageDown</pageminus> <back>RECORD</back> <menu>PreviousMenu</menu> <title>Shot</title> <info>EPG</info> <skipplus>Teletext</skipplus> <skipminus>Replay</skipminus> <display>Teletext</display> <start>Home</start> <record>Clear</record> <volumeplus>VOL+</volumeplus> <volumeminus>VOL-</volumeminus> <mute>Mute</mute> <power>Source</power> <myvideo>Videos</myvideo> <mymusic>Music</mymusic> <mypictures>Pictures</mypictures> <mytv>TV</mytv> <one>One</one> <two>Two</two> <three>Three</three> <four>Four</four> <five>5</five> <six>6</six> <seven>7</seven> <eight>8</eight> <nine>9</nine> <zero>0</zero> <mytv>1</mytv> <mymusic>2</mymusic> <mypictures>3</mypictures> <myvideo>4</myvideo> |
This post has been edited 1 times, last edit by "Goga777" (Aug 15th 2009, 10:00am)
Beginner
|
|
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 |
<remote> <three>Three</three> <six>Six</six> <nine>Nine</nine> <play>Play</play> <pause>Pause</pause> <stop>Stop</stop> <forward>FastForward</forward> <reverse>Rewind</reverse> <left>Left</left> <right>Right</right> <up>Up</up> <down>Down</down> <select>Select</select> <pageplus>PageUp</pageplus> <pageminus>PageDown</pageminus> <back>ParentDir</back> <menu>PreviousMenu</menu> <title>ContextMenu</title> <info>Info</info> <skipplus>SkipNext</skipplus> <skipminus>SkipPrevious</skipminus> <display>FullScreen</display> <start>PreviousMenu</start> <record>Screenshot</record> <volumeplus>VolumeUp</volumeplus> <volumeminus>VolumeDown</volumeminus> <mute>Mute</mute> <power>XBMC.ShutDown()</power> <myvideo>XBMC.ActivateWindow(MyVideos)</myvideo> <mymusic>XBMC.ActivateWindow(MyMusic)</mymusic> <mypictures>XBMC.ActivateWindow(MyPictures)</mypictures> <mytv>XBMC.ActivateWindow(Home)</mytv> </remote> |
Quoted
<three>Three</three>
Quoted
EjectTray()
Users that thanked:
Bikalexander (20.04.2009), s2006 (24.01.2010)
Beginner
Quoted
А можно готовые файлы Keymap и Lircmap подвесить

Можно ли «заставить» XBMC работать так же, без привязки к lirc?
) |
|
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 |
#include <linux/input.h>
#include <linux/version.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
int main (int argc, char **argv)
{
int fd, rd, i;
struct input_event ev[64];
int version;
unsigned short id[4];
char name[256] = "Unknown";
if (argc < 2) {
printf ("Usage: evw /dev/inputX\n");
printf ("Where X = input device number\n");
exit (1);
}
while (1)
{
if ((fd = open(argv[argc - 1], O_RDONLY)) >= 0)
while (fd >= 0)
{
rd = read(fd, ev, sizeof(struct input_event) * 64);
if (rd == (int)sizeof(struct input_event))
for (i = 0; i < rd / sizeof(struct input_event); i++)
{
printf("Event: time %ld.%06ld, type %d, code %d, value %d\n",
ev[i].time.tv_sec, ev[i].time.tv_usec, ev[i].type,
ev[i].code, ev[i].value);
if (ev[i].code == 31)
{
printf("Killing XBMC...\n");
close(fd);
fd = -1;
system("killall -9 xbmc.bin");
}
}
}
sleep(2);
}
}
|
|
|
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 |
#! /bin/sh
#
# /etc/init.d/xbmckill
#
### BEGIN INIT INFO
# Provides: xbmckill
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 3 5
# Default-Stop:
# Description: Start the XBMC killer :)
### END INIT INFO
# Determine the base and follow a runlevel link name.
BIN=evw.bin
FULLPATH=/opt/evw/evw.bin
test -x $FULLPATH || exit 5
. /etc/rc.status
rc_reset
case "$1" in
start)
echo "Starting $BIN"
$FULLPATH /dev/input/ir &
rc_status -v
;;
stop)
echo "Shutting down $BIN"
killall -9 $BIN
rc_status -v
;;
restart)
$0 stop
$0 start
rc_status
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
rc_exit
|
This post has been edited 1 times, last edit by "seppius" (May 22nd 2010, 9:45pm)