Anyone have a Emprex 3009URF MCE RC?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Gujs Offline
Senior Member
Posts: 116
Joined: Jul 2009
Reputation: 0
Post: #101
mrnorm Wrote:Hello!

Wow, lots of advice in here, thanks! Smile

I'm having issues getting my module to load on the "2.6.35-23-generic-pae" kernel.

I've followed the instructions posted by earlier and later edited my hid-core.c as the device ID was a number out. I've compiled everything and installed the modules, but the buggers just won't load!

Any advice or suggestions? Thanks!

Hi. Did you try to load them manual? If they load manual and just not automatic, then you should try this command:
Code:
sudo update-initramfs -u
find quote
mrnorm Offline
Junior Member
Posts: 10
Joined: Jul 2010
Reputation: 0
Post: #102
Well thats the thing, when I do a modprobe hid_btc, it appears in the lsmod list correctly:

Quote:root@mediaserver:~# lsmod | grep usb
usbhid 36348 0
hid 66517 2 hid_btc,usbhid
usb_storage 40204 1

But still nothing from the additional buttons on the remote.
find quote
pmatz Offline
Junior Member
Posts: 12
Joined: Sep 2011
Reputation: 0
Location: Stroud
Post: #103
Hi,

Found this thread last night and very grateful for the great work done here - I haven't bit the bullet and tried the drivers part, but got most features working by remapping the buttons, and learnt a little linux on the way Smile

Am i right in understanding that the HID drivers part (to give more buttons functionality) is not 'recompiling the kernel' as first was done by tonyt.?

I am going to give it a go I think as really want the big green button on my Emprex to work.

I am running the current Live version of XBCM on a small Dell box. I have samba installed so i can share out all my media from it (on an external drive USB'd into the box) and everything else is going well. Playing with the config files (sources.xml, keymaps etc) via Putty.

Would there be any update on the current process tonyt outlines or shoudl i go for that?

Thanks

paul
find quote
pmatz Offline
Junior Member
Posts: 12
Joined: Sep 2011
Reputation: 0
Location: Stroud
Wink  changeto keycode for 'i' after pre-eden update Post: #104
Crispy2 Wrote:so edit your ~/.xsessionrc file with your favourite editor (I'm a vi person myself) and add/replace the following (Comments should make them obvious):
Code:
# Pause Button
xmodmap -display :0 -e "keycode 127 = F11"
# Back Button
xmodmap -display :0 -e "keycode 166 = BackSpace"
# Record - Escape
xmodmap -display :0 -e "keycode 175 = Escape"
# Power - Power!
xmodmap -display :0 -e "keycode 150 = s"
# Green Button - gui toggle
xmodmap -display :0 -e "keycode 234 = Tab"
# I Button, map to context menu
xmodmap -display :0 -e "keycode 138 = c"
# DVD Menu, map to info
xmodmap -display :0 -e "keycode 147 = i"
# Pictures, map to codec info
xmodmap -display :0 -e "keycode 220 = o"

I have been using these codes for ages, but after updating my XBMC with a pre-eden release (to get my weather channel back!) i noticed the 'i' button no longer worked.
I turned on debugging and checked the keycode and it appeared to have changed!

xmodmap -display :0 -e "keycode 175 = c"

now works Smile
find quote
danz0l Offline
Fan
Posts: 628
Joined: Jul 2010
Reputation: 0
Post: #105
Anyone using this on xbmcuntu to get all the buttons mapped ? I am still a little confused on including the module with the kernel. Anyone got a better step by step for xbmcuntu ?

-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
find quote
danz0l Offline
Fan
Posts: 628
Joined: Jul 2010
Reputation: 0
Post: #106
Nobody ?

-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
find quote
thaughbaer Offline
Junior Member
Posts: 18
Joined: Sep 2010
Reputation: 0
Post: #107
(2012-11-09 21:59)danz0l Wrote:  Nobody ?

I don't think the kernel is a problem now.. I'm using 12.04 latest kernel and evtest produces a hit for every button. I think the issue now is correct configuration of Lirc.
find quote
danz0l Offline
Fan
Posts: 628
Joined: Jul 2010
Reputation: 0
Post: #108
Yes agreed. These things confuse some though LOL

-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
find quote
thaughbaer Offline
Junior Member
Posts: 18
Joined: Sep 2010
Reputation: 0
Post: #109
All done now.. all keys working ( OK and Enter seem to send the same code but I can live with that ).. better write it all down before I forget it...

Setup

Acer R3700

Lubuntu... Linux meegosh 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux


Install packages
Code:
apt-get install lirc inputlirc

/etc/lirc/hardware.conf
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="None"
REMOTE_MODULES=""
REMOTE_DRIVER=""
REMOTE_DEVICE=""
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="false"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

/etc/lirc/lircd.conf
Code:
#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.

#Configuration for the Linux input layer (/dev/input/eventX) remote:
include "/usr/share/lirc/remotes/devinput/lircd.conf.devinput"

/etc/default/inputlirc
Code:
# Options to be passed to inputlirc.
EVENTS="/dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-event-kbd /dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-if01-event-mouse"
OPTIONS="-g -m 0 -c"

Fire it up
Code:
service inputlirc start

Running irw now should produce some output when buttons are pressed
Code:
irw
2 0 KEY_1 /dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-event-kbd
a6 0 KEY_STOPCD /dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-if01-event-mouse

Stop X from grabbing keyboard event

Add in /etc/X11/xorg.conf

Code:
Section "InputClass"
    Identifier "Ignore BTC USB Multimedia Cordless Keyboard"
    MatchProduct "BTC USB Multimedia Cordless Keyboard"
    MatchIsKeyboard "true"
    Option "Ignore" "true"
EndSection

xbmc config

~/.xbmc/userdata/Lircmap.xml
Code:
<lircmap>
    <remote device="/dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-event-kbd">
        <up>KEY_UP</up>
        <left>KEY_LEFT</left>
        <right>KEY_RIGHT</right>
        <down>KEY_DOWN</down>
        <select>KEY_ENTER</select>
        <zero>KEY_0</zero>
        <one>KEY_1</one>
        <two>KEY_2</two>
        <three>KEY_3</three>
        <four>KEY_4</four>
        <five>KEY_5</five>
        <six>KEY_6</six>
        <seven>KEY_7</seven>
        <eight>KEY_8</eight>
        <nine>KEY_9</nine>
        <star>SHIFT_KEY_8</star>
        <hash>SHIFT_KEY_3</hash>
        <subtitle>KEY_TEXT</subtitle>
        <clear>KEY_ESC</clear>
    </remote>
    <remote device="/dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-if01-event-mouse">
        <power>KEY_SLEEP</power>
        <record>KEY_RECORD</record>
        <pause>KEY_PAUSE</pause>
        <stop>KEY_STOPCD</stop>
        <reverse>KEY_REWIND</reverse>
        <play>KEY_PLAY</play>
        <forward>KEY_FASTFORWARD</forward>
        <skipminus>KEY_PREVIOUSSONG</skipminus>
        <skipplus>KEY_NEXTSONG</skipplus>
        <back>KEY_BACK</back>
        <info>KEY_PROPS</info>
        <display>KEY_MEDIA</display>
        <volumeplus>KEY_VOLUMEUP</volumeplus>
        <volumeminus>KEY_VOLUMEDOWN</volumeminus>
        <mute>KEY_MUTE</mute>
        <recordedtv>KEY_TV2</recordedtv>
        <guide>KEY_PROGRAM</guide>
        <livetv>KEY_TV</livetv>
        <menu>KEY_MENU</menu>
        <mymusic>KEY_MP3</mymusic>
        <mypictures>KEY_CAMERA</mypictures>
        <myvideo>KEY_VIDEO</myvideo>
        <title>KEY_RADIO</title>
        <up>KEY_CHANNELUP</up>
        <down>KEY_CHANNELDOWN</down>
        <subtitle>KEY_TEXT</subtitle>
        <red>KEY_RED</red>
        <green>KEY_GREEN</green>
        <yellow>KEY_YELLOW</yellow>
        <blue>KEY_BLUE</blue>
    </remote>
</lircmap>

~/.xbmc/userdata/keymaps/remote.xml
Code:
<keymap>
  <global>
    <remote>
      <power>XBMC.Suspend()</power>
    </remote>
  </global>
</keymap>

Enable debugging and you should be getting in ~/.xbmc/temp/debug.log
Code:
23:29:01 T:140598791657344   DEBUG: LIRC: Update - NEW at 939153:2 0 KEY_1 /dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-event-kbd (KEY_1)
23:29:01 T:140598791657344   DEBUG: OnKey: 206 (ce) pressed, action is Number1
23:29:04 T:140598791657344   DEBUG: LIRC: Update - NEW at 942386:a6 0 KEY_STOPCD /dev/input/by-id/usb-BTC_USB_Multimedia_Cordless_Keyboard-if01-event-mouse (KEY_STOPCD)
23:29:04 T:140598791657344   DEBUG: OnKey: 224 (e0) pressed, action is Stop

enable wake from USB

Add in /etc/rc.local

Code:
echo enabled > /sys/bus/usb/devices/usb4/power/wakeup
echo enabled > /sys/bus/usb/devices/4-2/power/wakeup

Get numbers from lsusb
Code:
lsusb | grep Behavior
Bus 004 Device 002: ID 046e:5577 Behavior Tech. Computer Corp.

Think that's everything.

Edit: Updated to bind RADIO key to context menu.
(This post was last modified: 2013-04-30 15:12 by thaughbaer.)
find quote
danz0l Offline
Fan
Posts: 628
Joined: Jul 2010
Reputation: 0
Post: #110
wow excellent work. Will try this. Hope it works in XBMCuntu Smile

-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
find quote
Post Reply