Biatsch:
I signed up to the XDA forums but don't have permission to post on development forums. So, you're stuck with me here for now!
Although the files below pertain to the XDA version as well, you might consider adding them to your build to add functionality.
First is a modified 'remote.conf' file. It assigns the 'Mouse' button to 'Media_Stop' which will stop anything that is playing. With the Power button and Mute button on either side of it, this seemed like a good place to put it, away from the other buttons. Next, it assigns the 'double window' button to the right of the 'home' button to toggle 'Play/Pause'. That button is otherwise unassigned and it's handy to have a single key pause for when the phone rings. Lastly, it assigns the power button to show the shutdown menu, which it handy because there is also a reboot function on the menu. Also, there's no chance of making a fatal error when trying to hit the 'Media_Stop' button beside it.
The file is well commented and easily modifiable. As well, since your Gotham build is just for the ATV520 and ATV1200, we all have the same remote. This one, right?:
Anyway, here's the remote.conf file:
Quote:#*********************************************************************************************************
# This file is configuration for each factory remote device
# work_mode 0 oftware mode 1 :hardware mode
# repeat_enable 0 :disable repeat 1 :enable repeat
#
# factory_code each device has it's unique factory code.
# pattern:custom_code(16bit)+index_code(16bit)
# examble: 0xff000001 = 0xff00(custom cod) 0001 (index)
#
# release_delay unit:ms.release will report from kernel to user layer after this period of time
# from press or repeat triggered.
#
# debug_enable 0 :debug disable 1 :debug disable
#
# SW MODE:
# bit_count how many bits in each frame
# tw_leader_act time window for leader active
# tw_bit0 time window for bit0 time.
# tw_bit1 time window for bit1 time
# tw_repeat_leader time window for repeat leader
# REG
# reg_base_gen set value for PREG_IR_DEC_BASE_GEN
# reg_control set value for PREG_IR_DEC_CONTROL
# reg_leader_act set value for PREG_IR_DEC_LEADER_ACTIVE
# reg_leader_idle set value for PREG_IR_DEC_LEADER_IDLE
# reg_repeat_leader set value for PREG_IR_DEC_REPEAT_IDLE
# reg_bit0_time set value for PREG_IR_DEC_BIT0_TIME
#*************************************************************************************************************
# MYGICA NEC remote
factory_code = 0xBD020001
work_mode = 1
repeat_enable = 1
release_delay = 150
debug_enable = 1
reg_control = 0xfbe40
fn_key_scancode = 0x50
left_key_scancode = 0x99
right_key_scancode = 0xc1
up_key_scancode = 0xca
down_key_scancode = 0xd2
ok_key_scancode = 0xce
pageup_key_scancode = 0x04
pagedown_key_scancode = 0x1b
key_begin
0x80 66 ;MUTE
0xdd 78 ;VOL+
0x8c 74 ;VOL-
0x9a 177 ;PAGE_UP
0xcd 178 ;PAGE_DOWN
0x95 1 ;HOME
0xc5 23 ;NOTIFICATION (the 'i' button, or 'info' in XBMC)
0x99 105 ;LEFT
0xca 103 ;UP
0xc1 106 ;RIGHT
0xd2 108 ;DOWN
0xce 28 ;OK
0xd6 46 ;MENU
0xd0 14 ;EXIT (the 'Back' button)
0x45 116 ;POWER ('31' is instant power off, '116' calls up the power off menu)
0x9c 0xa3 ;ZOOMIN (next track)
0x89 0xa5 ;ZOOMOUT (previous track)
# 0x50 404 ;SWITCH_MOUSE
0x50 166 ;MEDIA_STOP (0x50 is the 'Mouse' button beside 'Power')
0x51 164 ;MEDIA_PLAY_PAUSE (0x51 is the double window button beside 'Home')
# 0x51 0x12 ;EPG (or any other keycode. 0x12 is hexidecimal for 18, either will work)
key_end
mouse_begin
0x00 0xc6 ; mouse move up
0x01 0xd1 ; mouse move down
0x02 0xd5 ; mouse move left
0x03 0x90 ; mouse move right
mouse_end
The other file is a modification of the XDA version of 'smb.conf'. It already allows for the reading and writing of files to and from the USB drives and SD cards plugged into the box. It also allows read/write to the 'userdata' folder of XBMC. I've added access to the root file system '/'... both reading and writing. This lets me do editing and modding files on a remote computer with my favorite applications. Dangerous, yes, but we're already taking chances modding our boxes anyway.
Here's my 'smb.conf' file:
Quote:#============================ Global Settings =============================
[global]
workgroup = WORKGROUP
netbios name = MX
server string = MX-Linux
max log size = 50
security = share
encrypt passwords = yes
guest account = nobody
browseable = yes
guest ok = yes
guest only = no
log level = 1
log file = /var/log/samba/log.smbd
#============================ Share Definitions =============================
[Root]
path = /
read only = no
public = yes
writable = yes
browseable = yes
force user = root
force group = root
[Userdata]
path = /root/.xbmc
read only = no
public = yes
writable = yes
browseable = yes
force user = root
force group = root
[USB-Media]
path = /media
read only = no
public = yes
writable = yes
browseable = yes
force user = root
force group = root
So, feel free to use these in your disto if you like. They've worked for me pretty good for a while now.
Folks:
As far as I know, the 'remote.conf' file will work with any version of Linux/XBMC that has a remote that looks like the one above. It goes in '/etc/xbmc'. The 'smb.conf' may or may not work with Linux/XBMC versions other than Biatsch's or XDA. It goes in '/etc/samba'. Having read/write access to the whole file system (minus the .sqsh file) makes the life of a tinker so much easier.
tinker