ASRock ION 330HT nettop running Sabayon Linux [Solved]

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

Re: ASRock ION 330HT nettop running Sabayon Linux [Solved]

Postby cloc3 » Sun Mar 06, 2011 13:15

Fitzcarraldo wrote:c) I need to find a way to map the keys on the remote to the keys and mouse clicks that XBMC understands. How to do that is the $64,000 question. :?

this may it be done using x11-apps/xev.

using it I discovered that some other buttons, more than arrows, triggers a key event.
but some buttons does not.

for the moment, it seems easier to use lircd demon.
cloc3
Baby Hen
 
Posts: 10
Joined: Mon Feb 28, 2011 6:28

Re: ASRock ION 330HT nettop running Sabayon Linux [Solved]

Postby Fitzcarraldo » Sun Mar 06, 2011 14:29

cloc3 wrote:for the moment, it seems easier to use lircd demon.

How, though, if building lirc-0.9.0_pre1 removes /etc/init.d/lircd and /etc/conf.d/lircd in my case? Would you kindly post the contents of the following files:

/etc/init.d/lircd

/etc/conf.d/lircd

/etc/udev/rules.d/lirc.rules

and the output of the following commands:

rc-update show -v | grep lirc

lsmod | grep lirc

lsmod | grep nuv

eix -I lirc
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: ASRock ION 330HT nettop running Sabayon Linux [Solved]

Postby cloc3 » Sun Mar 06, 2011 23:47

Fitzcarraldo wrote:How, though, if building lirc-0.9.0_pre1 removes /etc/init.d/lircd and /etc/conf.d/lircd in my case?

Code: Select all
asrock ~ # qlist app-misc/lirc|grep etc
/etc/lirc/.keep_app-misc_lirc-0
/etc/modprobe.d/lirc.conf
/etc/conf.d/irexec
/etc/conf.d/lircd
/etc/init.d/irexec
/etc/init.d/lircmd
/etc/init.d/lircd
asrock ~ # ps axu|grep lircd
root      2374  0.0  0.0   3080   520 ?        Ss   23:32   0:00 /usr/sbin/lircd -P /var/run/lirc/lircd.pid -d /dev/lirc0
asrock ~ # lircd -v
lircd 0.9.0-pre1

I compiled lirc with LIRC_DEVICES="all", so, I have a lot of unuseful modules, which are carried on lsmod and I should find some time to clean my system.

anyway, i agree with your opinion about ir_core, which collects remote events to the kbd driver.
the problem is that all this events are not usable for me in xbmc, except for arrows buttons, and that's the reason why I prefear to use lircd daemon.

if you are working without lircd, may it be prefereable you post your lsmod configuration, and I try to reproduce it.
cloc3
Baby Hen
 
Posts: 10
Joined: Mon Feb 28, 2011 6:28

Re: ASRock ION 330HT nettop running Sabayon Linux [Solved]

Postby Fitzcarraldo » Mon Mar 07, 2011 5:46

I'm on a business trip for two weeks, so don't have access to my ASRock. But, as I mentioned in a previous post, I tried merging lirc-0.9.0_pre1 for "userspace", "mceusb" and "wpc8769l", none of which created /etc/init.d/lircd or /etc/conf.d/lircd, so I doubt merging with "all" would be any different in my case. If I merge lirc-0.8.7 then it does create /etc/init.d/lircd and /etc/conf.d/lircd.

Would you please post the contents of the following files on your PC?

/etc/init.d/lircd

/etc/conf.d/lircd

/etc/udev/rules.d/lirc.rules

and the output of the following commands:

rc-update show -v | grep lirc

lsmod | grep lirc

lsmod | grep nuv

eix -I lirc
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: ASRock ION 330HT nettop running Sabayon Linux [Solved]

Postby cloc3 » Mon Mar 07, 2011 9:15

Fitzcarraldo wrote: I tried merging lirc-0.9.0_pre1 for "userspace", "mceusb" and "wpc8769l", none of which created /etc/init.d/lircd or /etc/conf.d/lircd, so I doubt merging with "all" would be any different in my case.

Code: Select all
asrock ~ # grep newinitd /var/lib/layman/cloc3Ovl/app-misc/lirc/lirc-0.9.0_pre1.ebuild
   newinitd "${FILESDIR}"/lircd-0.8.6 lircd
   newinitd "${FILESDIR}"/lircmd lircmd
   newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec

if you have not the lircd init script you should have this warning in your ebuild log:
Code: Select all
!!! newinitd: /var/lib/layman/cloc3Ovl/app-misc/lirc/files/lircd-0.8.6 does not exist

when I prepare a local overlay, I always copy the original $FILEDIR from portage. that's may it be the difference betwen us.

sorry if I not post again all informations you asked for me, but I want before to clean a bit my conf and had some checks. this needs for me some time, because I'm working also on other aspects of my system.
cloc3
Baby Hen
 
Posts: 10
Joined: Mon Feb 28, 2011 6:28

Re: ASRock ION 330HT nettop running Sabayon Linux [Solved]

Postby cloc3 » Thu Mar 10, 2011 0:06

I think that a clean lsmod may it be this one:

Code: Select all
asrock ~ # lsmod|grep nuvoton
nuvoton_cir            12186  0
ir_core                13365  6
ir_lirc_codec,dvb_usb_dib0700,dvb_usb,nuvoton_cir
asrock ~ # lsmod|grep lirc   
ir_lirc_codec           3459  3
lirc_dev                7796  1 ir_lirc_codec
ir_core                13365  6
ir_lirc_codec,dvb_usb_dib0700,dvb_usb,nuvoton_cir
asrock ~ #

(don't care about dvb_* drivers, which comes from my TerratecT3 dvb device)
the important modules are ir_core,lirc_dev,ir_lirc_codec and nuvoton_cir.

to have them, I choose this in make menuconfig:
Code: Select all
[*] Staging drivers  --->
   [*]     Linux Infrared Remote Control IR receiver/transmitter drivers  --->
      none selected here
<M> Multimedia support  --->
   <M>   Infrared remote controller adapters  --->
      <M>   Enable IR to LIRC bridge
      <M>   Nuvoton w836x7hg Consumer Infrared Transceiver

in /etc/conf.d/lircd I have :
Code: Select all
asrock ~ # grep -v ^# /etc/conf.d/lircd |grep -v ^$
LIRCD_OPTS="-d /dev/lirc0"


nothing should be needed in /etc/udev/rules.d , because the ir_lirc_codec module makes /dev/lirc0 node by itself. I'm not sure again about the right way to load it automatically (in may old dirty conf it was loaded automatically, in the new one it is not - that's to be better understood).

no hacking in ir_lirc_codec/etc/lirc/lircd.conf is needed.
this, infact, sends no noise to /dev/input devices and doubled arrow keys problem is solved.

now, may it be funny to investigate how to use the remote without lirc, taking all input from kbd drivers in a clean way. but this is not my immediate goal.
cloc3
Baby Hen
 
Posts: 10
Joined: Mon Feb 28, 2011 6:28

Re: ASRock ION 330HT nettop running Sabayon Linux [Solved]

Postby Fitzcarraldo » Fri Mar 18, 2011 11:30

cloc3 wrote:
Code: Select all
asrock ~ # grep newinitd /var/lib/layman/cloc3Ovl/app-misc/lirc/lirc-0.9.0_pre1.ebuild
   newinitd "${FILESDIR}"/lircd-0.8.6 lircd
   newinitd "${FILESDIR}"/lircmd lircmd
   newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec

It's the same as yours on my machine:

Code: Select all
$ grep newinitd /usr/local/portage/app-misc/lirc/lirc-0.9.0_pre1.ebuild
        newinitd "${FILESDIR}"/lircd-0.8.6 lircd
        newinitd "${FILESDIR}"/lircmd lircmd
        newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec

cloc3 wrote:if you have not the lircd init script you should have this warning in your ebuild log:
Code: Select all
!!! newinitd: /var/lib/layman/cloc3Ovl/app-misc/lirc/files/lircd-0.8.6 does not exist

Here's my ebuild log (I just merged lirc-0.9.0_pre1 again now):

Code: Select all
INFO: setup
Package:    app-misc/lirc-0.9.0_pre1
Repository: local_overlay
USE:        X elibc_glibc kernel_linux lirc_devices_userspace userland_GNU x86
FEATURES:   preserve-libs sandbox
WARN: setup
If your LIRC device requires modules, you'll need MODULE_UNLOAD
support in your kernel.

INFO: setup
Determining the location of the kernel source code
Found kernel source directory:
    /usr/src/linux
Found kernel object directory:
    /lib/modules/2.6.37-sabayon/build
Found sources for kernel version:
    2.6.37-sabayon

LOG: setup
Compiling support for device userspace

INFO: setup

lirc-configure-opts: --with-driver=userspace

LOG: setup
Setting default lirc-device to /dev/lirc0

INFO: unpack
Applying lirc-0.8.4-portaudio_check.patch ...

WARN: unpack
Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+

INFO: unpack
Running eautoreconf in '/var/tmp/portage/app-misc/lirc-0.9.0_pre1/work/lirc-0.9.0-pre1' ...
Running aclocal ...
Running libtoolize --copy --force --install --automake ...
Running aclocal ...
Running autoconf ...
Running autoheader ...
Running automake --add-missing --copy ...
Running elibtoolize in: lirc-0.9.0-pre1/
  Applying portage-2.2.patch ...
  Applying sed-1.5.6.patch ...
  Applying as-needed-2.2.6.patch ...

INFO: compile
Preparing lirc module

WARN: postinst

The lirc_gpio driver will not work with Kernels 2.6.22+
You need to switch over to /dev/input/event? if you need gpio
This device can than then be used via lirc's dev/input driver.

The new default location for lircd.conf is inside of
/etc/lirc/ directory

As you can see above, there is no error message saying "app-misc/lirc/files/lircd-0.8.6 does not exist". lirc-0.9.0_pre1 builds without apparent problems.

By the way, compiling LIRC with --with-driver=userspace is hard-coded in the lirc-0.9.0_pre1.ebuild if the kernel is 2.6.36 and later, so my having LIRC_DEVICES="userspace" in /etc/make.conf is redundant and does no harm.

cloc3 wrote:when I prepare a local overlay, I always copy the original $FILEDIR from portage. that's may it be the difference betwen us.

I've been merging packages in a local overlay using /usr/local/portage/<category>/<package>/ for several years, as recommended in the official Gentoo documentation (5. Diverting from the Official Tree) so I don't think this is the cause of my problem.

The stock SL 2.6.37 kernel has the following enabled:

Code: Select all
$ cat /usr/src/linux/.config | grep NUV
CONFIG_IR_NUVOTON=m
$ cat /usr/src/linux/.config | grep _IR_
CONFIG_IR_CORE=m
CONFIG_IR_NEC_DECODER=m
CONFIG_IR_RC5_DECODER=m
CONFIG_IR_RC6_DECODER=m
CONFIG_IR_JVC_DECODER=m
CONFIG_IR_SONY_DECODER=m
CONFIG_IR_RC5_SZ_DECODER=m
CONFIG_IR_LIRC_CODEC=m
CONFIG_IR_ENE=m
CONFIG_IR_IMON=m
CONFIG_IR_MCEUSB=m
CONFIG_IR_NUVOTON=m
CONFIG_IR_STREAMZAP=m
CONFIG_VIDEO_IR_I2C=m
$ cat /usr/src/linux/.config | grep LIRC
CONFIG_LIRC=m
CONFIG_IR_LIRC_CODEC=m
CONFIG_LIRC_STAGING=y
CONFIG_LIRC_BT829=m
CONFIG_LIRC_I2C=m
CONFIG_LIRC_IGORPLUGUSB=m
CONFIG_LIRC_IMON=m
CONFIG_LIRC_IT87=m
CONFIG_LIRC_ITE8709=m
CONFIG_LIRC_PARALLEL=m
CONFIG_LIRC_SASEM=m
CONFIG_LIRC_SERIAL=m
CONFIG_LIRC_SERIAL_TRANSMITTER=y
CONFIG_LIRC_SIR=m
CONFIG_LIRC_TTUSBIR=m
CONFIG_LIRC_ZILOG=m

From the above one can see it has IR to LIRC bridge configured as a module, and Nuvoton w836x7hg Consumer Infrared Transceiver configured as a module.

But, as I mentioned in my post on 6 March, merging lirc-0.9.0_pre1 does not create /etc/init.d/lircd and /etc/conf.d/lircd. In fact, it deletes them if they exist (e.g. if I merge lirc-0.8.7, which does create /etc/init.d/lircd and /etc/conf.d/lircd, before I merge lirc-0.9.0_pre1).

If I do not bother to unload the uneedeed ir-core modules for MCE, Sony, JVC and NEC IR devices then lsmod output looks like the following:

Code: Select all
$ lsmod | grep lirc
ir_lirc_codec           2716  0
lirc_dev                6598  1 ir_lirc_codec
ir_core                10387  9 ir_lirc_codec,rc_rc6_mce,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder,nuvoton_cir

If I unload the superflous modules (see lsmod output in my post of 5 March) the functionality does not change. The only thing I must not remove is the ir_rc6_decoder module, as then the remote ceases to work completely. I can even remove the nuvoton_cir module, which is not surprising because the lircd is not present and it is the IR keyboard driver rc6 that is detecting the remote.

But I cannot see why merging lirc-0.9.0_pre1 won't create the daemon and its config file. Very strange.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: ASRock ION 330HT nettop running Sabayon Linux [Solved]

Postby Fitzcarraldo » Fri Mar 18, 2011 18:23

I've been studying the console output of the lirc-0.9.0_pre1 ebuild in more detail. The final messages during the merge are as follows:

Code: Select all
.
.
.
--- replaced obj /usr/bin/lircrcd
--- replaced obj /usr/bin/irxevent
--- replaced obj /usr/bin/irw
--- replaced obj /usr/bin/irsend
--- replaced obj /usr/bin/irrecord
--- replaced obj /usr/bin/irpty
--- replaced obj /usr/bin/irexec
--- replaced obj /usr/bin/ircat
--- replaced dir /usr/bin
--- replaced dir /usr
<<<          obj /etc/modprobe.d/lirc.conf
--- replaced dir /etc/modprobe.d
--- replaced obj /etc/lirc/.keep_app-misc_lirc-0
--- replaced dir /etc/lirc
<<<          obj /etc/init.d/lircmd
<<<          obj /etc/init.d/lircd
<<<          obj /etc/init.d/irexec
<<<          obj /etc/conf.d/lircd
<<<          obj /etc/conf.d/irexec
--- replaced dir /etc
--- !empty   dir /etc/init.d
--- !empty   dir /etc/conf.d
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
 *
 * The lirc_gpio driver will not work with Kernels 2.6.22+
 * You need to switch over to /dev/input/event? if you need gpio
 * This device can than then be used via lirc's dev/input driver.
 *
 * The new default location for lircd.conf is inside of
 * /etc/lirc/ directory
>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages...
portage: COUNTER for kde-base/kolf-4.6.1 was corrupted; resetting to value of 0
portage: COUNTER for kde-base/kolf-4.6.1 was corrupted; resetting to value of 0

>>> No outdated packages were found on your system.

 * Regenerating GNU info directory index...
 * Processed 195 info files.

It specifically states:

* The new default location for lircd.conf is inside of
* /etc/lirc/ directory

and, sure enough, a file /etc/lirc/lircd.conf was created today (18 March) when I again merged lirc-0.9.0_pre1:

Code: Select all
# ls -la /etc/lirc
total 44
drwxr-xr-x   2 root root  4096 Mar 18 15:37 .
drwxr-xr-x 157 root root 12288 Mar 18 15:38 ..
-rw-------   1 root root    50 Mar 23  2010 .directory
-rw-r--r--   1 root root     0 Mar 18 15:37 .keep_app-misc_lirc-0
-rwxr-xr-x   1 root root  9559 Mar 18 15:38 lircd.conf
-rw-r--r--   1 root root   121 Oct 17  2009 lircmd.conf
-rwxr-xr-x   1 root root  5115 Sep 15  2010 lircrc

As the new ebuild creates neither /etc/init.d/lircd nor /etc/conf.d/lircd.conf, I did the following (although I'm not sure it's actually necessary):

Code: Select all
# cp /etc/lirc/lircd.conf /etc/conf.d/lircd.conf

However, looking at the contents of /etc/lirc/lircd.conf it doesn't look to me like it would be correct for the ASRock remote, so then I decided to do the following:

Code: Select all
# cp /home/fitzcarraldo/LIRC/Ubuntu\ 10.10/lircd.conf.wb677 /etc/lirc/lircd.conf
# cp /home/fitzcarraldo/LIRC/Ubuntu\ 10.10/lircd.conf.wb677 /etc/conf.d/lircd.conf
# cp /home/fitzcarraldo/LIRC/Ubuntu\ 10.10/lircd.conf.wb677 /etc/lircd.conf

(As you can probably guess, /home/fitzcarraldo/LIRC/Ubuntu\ 10.10/lircd.conf.wb677 is the lircd.conf file for the ASRock ION 330HT in the package for Ubuntu 10.10 on the ASRock Web site.)

Then I launched the daemon:

Code: Select all
# /usr/bin/lircd

and it is running:

Code: Select all
# ps aux | grep lircd
root     19291  0.0  0.0   3044   520 ?        Ss   15:53   0:00 /usr/sbin/lircd
root     20063  0.0  0.0   4084   728 pts/0    S+   16:21   0:00 grep --colour=auto lircd

As soon as I launched lircd, three windows titled 'KRemoteControl Daemon' popped up from the Notifications widget on the Panel and told me:

First pop-up window:
An unconfigured remote control vista_mce is now available

with a button "Configure remote"

Second pop-up window:
An unconfigured remote control mceusb_hauppauge is now available

with a button "Configure remote"

Third pop-up window:
An unconfigured remote control mceusb is now available

with a button "Configure remote"

I also copied the remote.xml file for XBMC that Thanatos is using successfully with his ASRock ION 330HT (see http://thanatosblog.wordpress.com/2011/ ... omment-104) to /usr/share/xbmc/system/keymap/remote.xml, as he did. However, the behaviour of the remote in my case is the same as before: some keys work and some don't (incorrect keymapping for the ASRock remote).

I still have not got to the bottom of it, but I think I'm getting closer.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: ASRock ION 330HT nettop running Sabayon Linux [Solved]

Postby Fitzcarraldo » Fri Mar 18, 2011 18:48

Checked the device:

Code: Select all
# ls -la /dev/lirc*
crw-rw---- 1 root root 245, 0 Mar 18 14:30 /dev/lirc0

/dev/lirc:
total 0
drwxr-xr-x  2 root root    60 Mar 18 14:30 .
drwxr-xr-x 18 root root 14700 Mar 18 16:34 ..
lrwxrwxrwx  1 root root     8 Mar 18 14:30 0 -> ../lirc0

Hmm... different to what I had a year ago, so edited the lirc.rules file to reflect the difference:

Code: Select all
# cat /etc/udev/rules.d/lirc.rules
KERNEL=="lirc[0-9]*",   SYMLINK+="lirc/%n"
# nano /etc/udev/rules.d/lirc.rules
# cat /etc/udev/rules.d/lirc.rules
KERNEL=="lirc[0-9]*",   SYMLINK+="lirc%n"

Then killed the LIRC daemon and restarted it:

Code: Select all
# killall -9 lircd
# /usr/sbin/lircd
# ls -la /var/run/lirc/*
srw-rw-rw- 1 root root 0 Mar 18 17:30 /var/run/lirc/lircd
-rw-r--r-- 1 root root 6 Mar 18 17:30 /var/run/lirc/lircd.pid
prw-r--r-- 1 root root 0 Mar 28  2010 /var/run/lirc/lircm
# ls -la /dev/lirc*
crw-rw---- 1 root root 245, 0 Mar 18 14:30 /dev/lirc0

/dev/lirc:
total 0
drwxr-xr-x  2 root root    60 Mar 18 14:30 .
drwxr-xr-x 18 root root 14700 Mar 18 16:34 ..
lrwxrwxrwx  1 root root     8 Mar 18 14:30 0 -> ../lirc0

Tried to see if the device could detect some key presses on the remote:

Code: Select all
# cat /dev/lirc0
cat: /dev/lirc0: Device or resource busy

Oh, well. Tried to see what irw would do if I pressed some keys on the remote, as irw wouldn't work for me a couple of weeks ago:

Code: Select all
# irw
000000037ff07bfe 00 One mceusb
000000037ff07bfd 00 Two mceusb
000000037ff07bfc 00 Three mceusb
000000037ff07bfb 00 Four mceusb
000000037ff07bfb 01 Four mceusb
000000037ff07bfa 00 Five mceusb
000000037ff07bfa 01 Five mceusb
000000037ff07bf9 00 Six mceusb
000000037ff07bf9 01 Six mceusb
000000037ff07bf8 00 Seven mceusb
000000037ff07bf8 01 Seven mceusb

Looks promising.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: ASRock ION 330HT nettop running Sabayon Linux [Solved]

Postby Fitzcarraldo » Sat Mar 19, 2011 18:55

I discovered that irw only displays something when the LIRC daemon is running, and it reads lircd.conf. The reason irw displays "mceusb" is because the lircd.conf file had "mceusb" in it.

By using the values displayed by pressing the remote's keys when irw was running, I created another lircd.conf file:

Code: Select all
# RC-6 config file
#
# used by: ASRock
#
#########
#
# ASRock ION 330HT remote control model no. TSGV-IR01
# For use with the Nuvoton w836x7hg IR receiver
#
# Some buttons may not operate if a function is not defined for them.
# This can be done in XBMC by .xml file. See the XBMC Wiki for information.
#

begin remote

name nuvoton-cir
bits 16
flags RC6|CONST_LENGTH
eps 30
aeps 100

header 2667 889
one 444 444
zero 444 444
pre_data_bits 21
pre_data 0x37FF0
gap 105000
toggle_bit 22
rc6_mask 0x100000000

begin codes

Blue 0x00007ba1
Yellow 0x00007ba2
Green 0x00007ba3
Red 0x00007ba4
Teletext 0x00007ba5
Radio 0x00007baf
Videos 0x00007bb5
Pictures 0x00007bb6
RecTV 0x00007bb7
Music 0x00007bb8
Aspect 0x00007bd8
Guide 0x00007bd9
LiveTV 0x00007bda
DVD 0x00007bdb
Back 0x00007bdc
OK 0x00007bdd
Right 0x00007bde
Left 0x00007bdf
Down 0x00007be0
Up 0x00007be1
Star 0x00007be2
Hash 0x00007be3
Replay 0x00007be4
Skip 0x00007be5
Stop 0x00007be6
Pause 0x00007be7
Record 0x00007be8
Play 0x00007be9
Rewind 0x00007bea
Forward 0x00007beb
ChanDown 0x00007bec
ChanUp 0x00007bed
VolDown 0x00007bee
VolUp 0x00007bef
More 0x00007bf0
Mute 0x00007bf1
Home 0x00007bf2
Power 0x00007bf3
Enter 0x00007bf4
Clear 0x00007bf5
Nine 0x00007bf6
Eight 0x00007bf7
Seven 0x00007bf8
Six 0x00007bf9
Five 0x00007bfa
Four 0x00007bfb
Three 0x00007bfc
Two 0x00007bfd
One 0x00007bfe
Zero 0x00007bff

end codes

end remote

and put it where I thought it would be, or might be, read by the daemon:

Code: Select all
# cp /home/fitzcarraldo/Desktop/lircd.conf /etc/lircd.conf
# cp /home/fitzcarraldo/Desktop/lircd.conf /etc/lirc/lircd.conf
# cp /home/fitzcarraldo/Desktop/lircd.conf /etc/conf.d/lircd.conf

I also used the remote.xml file for XBMC and the ASRock ION 330HT that Thanatos created (http://thanatosblog.wordpress.com/2011/ ... omment-103):

Code: Select all
<keymap>
<global>
<remote>
<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>
<enter>FullScreen</enter>
<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>
<myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
<mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
<mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
<mytv>XBMC.ActivateWindow(VideoLibrary,TvShows)</mytv>
<red>XBMC.ActivateWindow(Home)</red>
<green>RunScript(script.xbmc.subtitles)</green>
<yellow>XBMC.ActivateWindow(MyMusic)</yellow>
<blue>XBMC.ActivateWindow(MyPictures)</blue>
<zero>Number0</zero>
<one>Number1</one>
<two>JumpSMS2</two>
<three>JumpSMS3</three>
<four>JumpSMS4</four>
<five>JumpSMS5</five>
<six>JumpSMS6</six>
<seven>JumpSMS7</seven>
<eight>JumpSMS8</eight>
<nine>JumpSMS9</nine>
<hash>XBMC.ShutDown()</hash>
</remote>
</global>
<Home>
<remote>
<info>XBMC.ActivateWindow(SystemInfo)</info>
<clear>XBMC.ActivateWindow(Weather)</clear>
</remote>
</Home>
<MyFiles>
<remote>
<clear>Delete</clear>
<zero>Highlight</zero>
<star>Move</star>
</remote>
</MyFiles>
<MyMusicPlaylist>
<remote>
<back>Playlist</back> <!-- Close playlist -->
<clear>Delete</clear>
<zero>Delete</zero>
</remote>
</MyMusicPlaylist>
<MyMusicPlaylistEditor>
<remote>
<zero>Queue</zero>
</remote>
</MyMusicPlaylistEditor>
<MyMusicFiles>
<remote>
<zero>Queue</zero>
<star>Queue</star>
</remote>
</MyMusicFiles>
<MyMusicLibrary>
<remote>
<zero>Queue</zero>
<star>Queue</star>
</remote>
</MyMusicLibrary>
<FullscreenVideo>
<remote>
<zero>Number0</zero>
<one>Number1</one>
<two>Number2</two>
<three>Number3</three>
<four>Number4</four>
<five>Number5</five>
<six>Number6</six>
<seven>Number7</seven>
<eight>Number8</eight>
<nine>Number9</nine>
<left>StepBack</left>
<right>StepForward</right>
<up>BigStepForward</up>
<down>BigStepBack</down>
<back>SmallStepBack</back>
<menu>OSD</menu>
<start>OSD</start>
<select>AspectRatio</select>
<title>CodecInfo</title>
<info>Info</info>
<teletext>XBMC.ActivateWindow(Teletext)</teletext>
<subtitle>ShowSubtitles</subtitle>
<star>ShowSubtitles</star>
<language>AudioNextLanguage</language>
</remote>
</FullscreenVideo>
<VideoTimeSeek>
<remote>
<select>Select</select>
<enter>Select</enter>
</remote>
</VideoTimeSeek>
<FullscreenInfo>
<remote>
<title>CodecInfo</title>
<info>Close</info>
<menu>OSD</menu>
</remote>
</FullscreenInfo>
<PlayerControls>
<remote>
<menu>Close</menu>
</remote>
</PlayerControls>
<Visualisation>
<remote>
<left>PreviousPreset</left>
<right>NextPreset</right>
<up>IncreaseRating</up>
<down>DecreaseRating</down>
<back>LockPreset</back>
<title>CodecInfo</title>
<select>XBMC.ActivateWindow(VisualisationPresetList)</select>
<menu>XBMC.ActivateWindow(MusicOSD)</menu>
<start>XBMC.ActivateWindow(MusicOSD)</start>
<info>Info</info>
</remote>
</Visualisation>
<MusicOSD>
<remote>
<menu>Close</menu>
<title>Info</title>
<info>CodecInfo</info>
</remote>
</MusicOSD>
<VisualisationSettings>
<remote>
<menu>Close</menu>
<back>Close</back>
</remote>
</VisualisationSettings>
<VisualisationPresetList>
<remote>
<menu>Close</menu>
<back>Close</back>
</remote>
</VisualisationPresetList>
<SlideShow>
<remote>
<zero>ZoomNormal</zero>
<one>ZoomLevel1</one>
<two>ZoomLevel2</two>
<three>ZoomLevel3</three>
<four>ZoomLevel4</four>
<five>ZoomLevel5</five>
<six>ZoomLevel6</six>
<seven>ZoomLevel7</seven>
<eight>ZoomLevel8</eight>
<nine>ZoomLevel9</nine>
<info>CodecInfo</info>
<skipplus>NextPicture</skipplus>
<skipminus>PreviousPicture</skipminus>
<title>Info</title>
<select>Rotate</select>
<back>PreviousMenu</back>
</remote>
</SlideShow>
<ScreenCalibration>
<remote>
<select>NextCalibration</select>
<zero>ResetCalibration</zero>
<display>NextResolution</display>
<xbox>NextResolution</xbox>
</remote>
</ScreenCalibration>
<GUICalibration>
<remote>
<select>NextCalibration</select>
<zero>ResetCalibration</zero>
</remote>
</GUICalibration>
<SelectDialog>
<remote>
<back>Close</back>
</remote>
</SelectDialog>
<VideoOSD>
<remote>
<back>PreviousMenu</back>
<menu>Close</menu>
<start>Close</start>
</remote>
</VideoOSD>
<VideoMenu>
<remote>
<menu>OSD</menu>
<back>PreviousMenu</back>
<info>Info</info>
<title>CodecInfo</title>
<zero>Number0</zero>
<one>Number1</one>
<two>Number2</two>
<three>Number3</three>
<four>Number4</four>
<five>Number5</five>
<six>Number6</six>
<seven>Number7</seven>
<eight>Number8</eight>
<nine>Number9</nine>
<play>Select</play>
</remote>
</VideoMenu>
<OSDVideoSettings>
<remote>
<back>Close</back>
<menu>Close</menu>
<start>Close</start>
</remote>
</OSDVideoSettings>
<OSDAudioSettings>
<remote>
<back>Close</back>
<menu>Close</menu>
<start>Close</start>
</remote>
</OSDAudioSettings>
<VideoBookmarks>
<remote>
<back>Close</back>
<menu>Close</menu>
<start>Close</start>
<zero>Delete</zero>
</remote>
</VideoBookmarks>
<MyVideoLibrary>
<remote>
<zero>Queue</zero>
<clear>Delete</clear>
</remote>
</MyVideoLibrary>
<MyVideoFiles>
<remote>
<zero>Queue</zero>
<star>Queue</star>
</remote>
</MyVideoFiles>
<MyVideoPlaylist>
<remote>
<back>Playlist</back> <!-- Close playlist -->
<clear>Delete</clear>
<zero>Delete</zero>
</remote>
</MyVideoPlaylist>
<VirtualKeyboard>
<remote>
<back>BackSpace</back>
<star>Shift</star>
<hash>Symbols</hash>
<zero>Number0</zero>
<one>Number1</one>
<two>Number2</two>
<three>Number3</three>
<four>Number4</four>
<five>Number5</five>
<six>Number6</six>
<seven>Number7</seven>
<eight>Number8</eight>
<nine>Number9</nine>
<enter>Enter</enter>
<pageminus>CursorLeft</pageminus>
<pageplus>CursorRight</pageplus>
</remote>
</VirtualKeyboard>
<ContextMenu>
<remote>
<title>Close</title>
<back>Close</back>
</remote>
</ContextMenu>
<FileStackingDialog>
<remote>
<back>Close</back>
</remote>
</FileStackingDialog>
<Scripts>
<remote>
<info>info</info>
</remote>
</Scripts>
<NumericInput>
<remote>
<zero>Number0</zero>
<one>Number1</one>
<two>Number2</two>
<three>Number3</three>
<four>Number4</four>
<five>Number5</five>
<six>Number6</six>
<seven>Number7</seven>
<eight>Number8</eight>
<nine>Number9</nine>
<enter>Enter</enter>
<back>BackSpace</back>
</remote>
</NumericInput>
<Weather>
<remote>
<back>PreviousMenu</back>
</remote>
</Weather>
<Settings>
<remote>
<back>PreviousMenu</back>
</remote>
</Settings>
<AddonBrowser>
<remote>
</remote>
</AddonBrowser>
<AddonInformation>
<remote>
<back>Close</back>
</remote>
</AddonInformation>
<AddonSettings>
<remote>
<back>Close</back>
</remote>
</AddonSettings>
<TextViewer>
<remote>
<back>Close</back>
</remote>
</TextViewer>
<MyPicturesSettings>
<remote>
<back>PreviousMenu</back>
</remote>
</MyPicturesSettings>
<MyProgramsSettings>
<remote>
<back>PreviousMenu</back>
</remote>
</MyProgramsSettings>
<MyWeatherSettings>
<remote>
<back>PreviousMenu</back>
</remote>
</MyWeatherSettings>
<MyMusicSettings>
<remote>
<back>PreviousMenu</back>
</remote>
</MyMusicSettings>
<SystemSettings>
<remote>
<back>PreviousMenu</back>
</remote>
</SystemSettings>
<MyVideosSettings>
<remote>
<back>PreviousMenu</back>
</remote>
</MyVideosSettings>
<NetworkSettings>
<remote>
<back>PreviousMenu</back>
</remote>
</NetworkSettings>
<AppearanceSettings>
<remote>
<back>PreviousMenu</back>
</remote>
</AppearanceSettings>
<Profiles>
<remote>
<back>PreviousMenu</back>
</remote>
</Profiles>
<systeminfo>
<remote>
<back>PreviousMenu</back>
</remote>
</systeminfo>
<shutdownmenu>
<remote>
<back>PreviousMenu</back>
</remote>
</shutdownmenu>
<submenu>
<remote>
<back>PreviousMenu</back>
</remote>
</submenu>
<MusicInformation>
<remote>
<back>Close</back>
</remote>
</MusicInformation>
<MovieInformation>
<remote>
<info>Close</info>
<back>Close</back>
</remote>
</MovieInformation>
<LockSettings>
<remote>
<menu>Close</menu>
<back>PreviousMenu</back>
</remote>
</LockSettings>
<ProfileSettings>
<remote>
<menu>Close</menu>
<back>PreviousMenu</back>
</remote>
</ProfileSettings>
<PictureInfo>
<remote>
<skipplus>NextPicture</skipplus>
<skipminus>PreviousPicture</skipminus>
<info>Close</info>
<back>Close</back>
</remote>
</PictureInfo>
<Teletext>
<remote>
<zero>number0</zero>
<one>number1</one>
<two>number2</two>
<three>number3</three>
<four>number4</four>
<five>number5</five>
<six>number6</six>
<seven>number7</seven>
<eight>number8</eight>
<nine>number9</nine>
<red>Red</red>
<green>Green</green>
<yellow>Yellow</yellow>
<blue>Blue</blue>
<info>Info</info>
<back>Close</back>
<menu>Close</menu>
<start>Close</start>
<teletext>Close</teletext>
</remote>
</Teletext>
<Favourites>
<remote>
<back>Close</back>
</remote>
</Favourites>
</keymap>

Code: Select all
# cp /usr/share/xbmc/system/keymaps/remote.xml /usr/share/xbmc/system/keymaps/remote.xml.bak
# cp /home/fitzcarraldo/Desktop/remote.xml /usr/share/xbmc/system/keymaps/remote.xml
# cp /home/fitzcarraldo/Desktop/remote.xml /home/fitzcarraldo/.xbmc/userdata/keymaps/remote.xml

But still many of the keys on the remote have no effect. If I press the Home key, for example, nothing happens.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

PreviousNext

Return to Hardware

Who is online

Users browsing this forum: No registered users and 1 guest