Not able to get remote to work in dharma after upgrade
#1
Hello,

I'm not a linux crack and really appreciate your help here...

I was able to get my remote to work on camelot live with lirc.
After the update to ubuntu 10.x and xbmc dharma I'm not able to get my remote back to work.

I checked everything I did last time to get it to work...

Using
Code:
irw /dev/lircd

I still see the basic things are working as I get output when pressing keys on my remote:
Code:
67 0 KEY_UP MCE-RemoteKBD
6c 0 KEY_DOWN MCE-RemoteKBD
...

In /usr/share/xbmc/system/Lircmap.xml the entry for my "MCE-RemoteKBD" was lost so I re-inserted it ...

Code:
<remote device="MCE-RemoteKBD">
                <pause>CTRL_KEY_P</pause>
                <stop>CTRL_SHIFT_KEY_S</stop>
                <forward>CTRL_SHIFT_KEY_F</forward>
                <reverse>CTRL_SHIFT_KEY_B</reverse>
                <left>KEY_LEFT</left>
                <right>KEY_RIGHT</right>
                <up>KEY_UP</up>
                ....

But still xbmc does not respond to the remote.
Does anyone have an idea ? I'm completely lost now...
Reply
#2
fixed in svn. problem is that '6c 0 KEY_DOWN MCE-RemoteKBD' used to read
'6c 00 KEY_DOWN MCE-RemoteKBD'.

and yes you'll lose your changes to system wide files, which is WHY we support a Lircmap.xml in your userdata folder.
Reply
#3
spiff Wrote:fixed in svn. problem is that '6c 0 KEY_DOWN MCE-RemoteKBD' used to read
'6c 00 KEY_DOWN MCE-RemoteKBD'.

and yes you'll lose your changes to system wide files, which is WHY we support a Lircmap.xml in your userdata folder.

First of all: Thanks a lot for taking your time to help !

I just tried to update using apt-get update, upgrade and install xbmc.
(And reboot)

But my problem is still there ...

My /etc/apt/sources.list.d/xbmc.list.list reads:
Code:
deb [url]http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu[/url] lucid main
deb-src [url]http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu[/url] lucid main
So I think it should point to the latest svn version ?

Could you please give me a little more to start with ? So I can do my homework.

Maybe THIS is part of the problem ?
Just calling irw does not work for me - I need to call irw /dev/lircd

Best regards
BigKid
Reply
#4
fixed in svn != built in the ppa. it's fixed in *svn*. svn-ppa only tracks the betas during releases. you can set your lirc device using -l or in advancedsettings.xml. however, /dev/lircd is the default.
Reply
#5
Ok.. So I read this as:
I will have to wait for a new beta relaease OR will have to do my homework and find out how to compile myself ...
Thanks...
Reply
#6
BigKid, FYI, you might have this all figured out by now, but if not, I wrote up a quick primer on the relationship between all the XBMC remote files on my blog awhile back (after going through the same problem during the Dharma upgrade). I had mistakenly updated the files in the wrong location and lost my customizations during the upgrade. Doh.

Link here if you are interested.
------------------------------------------
Dharma Quick Setup Guide:
XBMC tips on the TechNazgul Blog
------------------------------------------
Reply
#7
It's getting strange now ...

I did my homework and sucessfully compiled latest svn...
"Make install" worked too... (I also did "sudo /etc/init.d/xbmc-live stop" before install just to be sure)

I was not able to start it using the xbmc command
"Error: unable to open display
FEH.py: cannot connect to X server"

but a restart using the the
"sudo /etc/init.d/xbmc-live start" command worked.

Remote Worked !!

Now the strange part:
After a reboot it ceased working again also I did not change a thing ?!?
I also recompiled /reinstalled / rebooted but it won't take a command of my remote ?

Is there something I need to know/do when installing ? Do I have two xbmc versions (the xbmc svn and the xbmc-live ppa) now ?

Investigating the logs:
Code:
10:40:29 T:3079227264 M:1468289024  NOTICE: -----------------------------------------------------------------------
10:40:29 T:3079227264 M:1468227584  NOTICE: Starting XBMC, Platform: Linux (Ubuntu 10.04.1 LTS, 2.6.32-24-generic i686). Built on Sep 14 2010 (SVN:33778)
10:40:29 T:3079227264 M:1468227584  NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
10:40:29 T:3079227264 M:1468227584  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/xbmc
10:40:29 T:3079227264 M:1468227584  NOTICE: special://masterprofile/ is mapped to: /home/dirk/.xbmc/userdata
10:40:29 T:3079227264 M:1468227584  NOTICE: special://home/ is mapped to: /home/dirk/.xbmc
10:40:29 T:3079227264 M:1468227584  NOTICE: special://temp/ is mapped to: /home/dirk/.xbmc/temp
10:40:29 T:3079227264 M:1468227584  NOTICE: The executable running is: /usr/lib/xbmc/xbmc.bin
10:40:29 T:3079227264 M:1468227584  NOTICE: Log File is located: /home/dirk/.xbmc/temp/xbmc.log
10:40:29 T:3079227264 M:1468227584  NOTICE: -----------------------------------------------------------------------
...
10:40:30 T:3079227264 M:1465831424    INFO: LIRC Initialize: using: /dev/lircd
10:40:30 T:3079227264 M:1465831424    INFO: LIRC Initialize: sucessfully started
...
:40:30 T:3079227264 M:1459191808    INFO: load keymapping
10:40:30 T:3079227264 M:1459191808    INFO: Loading special://xbmc/system/keymaps/gamepad.xml
10:40:30 T:3079227264 M:1459191808    INFO: Loading special://xbmc/system/keymaps/joystick.Alienware.Dual.Compatible.Controller.xml
10:40:30 T:3079227264 M:1459191808    INFO: Loading special://xbmc/system/keymaps/joystick.AppleRemote.xml
10:40:30 T:3079227264 M:1459191808    INFO: Loading special://xbmc/system/keymaps/joystick.Harmony.xml
10:40:30 T:3079227264 M:1459191808    INFO: Loading special://xbmc/system/keymaps/joystick.Interact.AxisPad.xml
10:40:30 T:3079227264 M:1459191808    INFO: Loading special://xbmc/system/keymaps/joystick.Logitech.RumblePad.2.xml
10:40:30 T:3079227264 M:1459191808    INFO: Loading special://xbmc/system/keymaps/joystick.Microsoft.Xbox.360.Controller.xml
10:40:30 T:3079227264 M:1459032064    INFO: Loading special://xbmc/system/keymaps/joystick.Microsoft.Xbox.Controller.S.xml
10:40:30 T:3079227264 M:1459032064    INFO: Loading special://xbmc/system/keymaps/joystick.PS3.Remote.Keyboard.xml
10:40:30 T:3079227264 M:1459032064    INFO: Loading special://xbmc/system/keymaps/joystick.Sony.PLAYSTATION(R)3.Controller.xml
10:40:30 T:3079227264 M:1459032064    INFO: Loading special://xbmc/system/keymaps/joystick.WiiRemote.xml
10:40:30 T:3079227264 M:1459032064    INFO: Loading special://xbmc/system/keymaps/keyboard.xml
10:40:30 T:3079227264 M:1459032064    INFO: Loading special://xbmc/system/keymaps/remote.xml
10:40:30 T:3079227264 M:1465151488    INFO: Loading special://xbmc/system/Lircmap.xml
10:40:30 T:3079227264 M:1465151488    INFO: * Adding remote mapping for device 'MCE-RemoteKBD'
...
10:40:30 T:3079227264 M:1465151488   DEBUG: CButtonTranslator::Load - no userdata Lircmap.xml found, skipping
So I do not see a lirc or lircmap related problem here Sad

But what bothers me is:
Built on Sep 14 2010 (SVN:33778) - this looks like ppa ?
But why did it work once then ?

Any ideas are welcome ...
Reply
#8
yes you do. make install installs to /usr/local, while the ppas install to /usr.

i'd suggest removing the ppa packages for now.
Reply
#9
Ok... I did:
"apt-get remove xbmc"

I'm now able to start xbmc by using
"xinit /usr/local/bin/xbmc"

I'm still not able to start it using just
"xbmc"

I also created a Lircmap.xml in my users .xbmc/userdata directory...

But if I look into the logfile now I do not see a hint of lirc or lircmap anymore:
Code:
13:45:51 T:3079305088 M:1420144640  NOTICE: -----------------------------------------------------------------------
13:45:51 T:3079305088 M:1420406784  NOTICE: Starting XBMC, Platform: Linux (Ubuntu 10.04.1 LTS, 2.6.32-24-generic i686). Built on Oct  7 2010 (SVN:34528)
13:45:51 T:3079305088 M:1420406784  NOTICE: special://xbmc/ is mapped to:
13:45:51 T:3079305088 M:1420406784  NOTICE: special://xbmcbin/ is mapped to: /usr/local/lib/xbmc
13:45:51 T:3079305088 M:1420406784  NOTICE: special://masterprofile/ is mapped to: /home/dirk/.xbmc/userdata
13:45:51 T:3079305088 M:1420406784  NOTICE: special://home/ is mapped to: /home/dirk/.xbmc
13:45:51 T:3079305088 M:1420406784  NOTICE: special://temp/ is mapped to: /home/dirk/.xbmc/temp
13:45:51 T:3079305088 M:1420406784  NOTICE: The executable running is: /usr/local/lib/xbmc/xbmc.bin
13:45:51 T:3079305088 M:1420406784  NOTICE: Log File is located: /home/dirk/.xbmc/temp/xbmc.log
13:45:51 T:3079305088 M:1420406784  NOTICE: -----------------------------------------------------------------------
13:45:51 T:3079305088 M:1420533760  NOTICE: Setup SDL
13:45:51 T:3079305088 M:1419763712  NOTICE: load settings...
13:45:51 T:3079305088 M:1419763712  NOTICE: special://profile/ is mapped to: special://masterprofile/
13:45:51 T:3079305088 M:1419763712  NOTICE: loading special://masterprofile/guisettings.xml
13:45:51 T:3079305088 M:1419653120  NOTICE: Getting hardware information now...
13:45:51 T:3079305088 M:1419653120  NOTICE: Checking resolution 12
13:45:51 T:3079305088 M:1419653120  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
13:45:51 T:3079305088 M:1419653120  NOTICE: Loaded playercorefactory configuration
13:45:51 T:3079305088 M:1419653120  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
13:45:51 T:3079305088 M:1419653120  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
13:45:51 T:3079305088 M:1419653120  NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
13:45:51 T:3079305088 M:1419653120  NOTICE: Default DVD Player: dvdplayer
13:45:51 T:3079305088 M:1419653120  NOTICE: Default Video Player: dvdplayer
13:45:51 T:3079305088 M:1419653120  NOTICE: Default Audio Player: paplayer
13:45:51 T:3079305088 M:1419653120  NOTICE: Loading media sources from special://masterprofile/sources.xml
13:45:52 T:3079305088 M:1414828032  NOTICE: Using visual 0x42
13:45:52 T:3079305088 M:1413427200  NOTICE: GL_VENDOR = NVIDIA Corporation
13:45:52 T:3079305088 M:1413427200  NOTICE: GL_RENDERER = ION/PCI/SSE2
13:45:52 T:3079305088 M:1413427200  NOTICE: GL_VERSION = 3.2.0 NVIDIA 195.36.15
13:45:52 T:3079305088 M:1413427200  NOTICE: GL_SHADING_LANGUAGE_VERSION = 1.50 NVIDIA via Cg compiler
13:45:52 T:3079305088 M:1413427200  NOTICE: GL_EXTENSIONS = GL_ARB_color_buffer_float GL_ARB_compatibility GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_element$
13:45:52 T:3079305088 M:1413427200   ERROR: GLX: Same window as before, refreshing context
13:45:52 T:3079305088 M:1411903488   ERROR: HAL: Failed to initialize hal context: (null)
13:45:52 T:3079305088 M:1411903488   ERROR: HAL: no Hal context
13:45:52 T:3079305088 M:1411903488  NOTICE: start dvd mediatype detection
13:45:52 T:3079305088 M:1411903488  NOTICE: initializing playlistplayer
13:45:52 T:3079305088 M:1411903488  NOTICE: DONE initializing playlistplayer
13:45:52 T:3079305088 M:1406160896  NOTICE: UpdateLibraries - Starting video library startup scan
13:45:52 T:3079305088 M:1405644800  NOTICE: initialize done
13:45:52 T:3079305088 M:1405644800  NOTICE: Running the application...
Reply
#10
possibly logged only at debug level. also you need to add /usr/local/bin to your path in order to start it without specifying the full path.
Reply
#11
BigKid, what remote do you own?

Those lirc keys look like mine from an hama remote.

Is that the remote?

hudo
Reply
#12
@hudo: Sorry do not know - it's the remote that came together with my ms-tech case...

@all:
When I got aware that xbmc is still automatically starting after reboot I thought that there are still remains of the ppa version somewhere ...
So I also uninstalled xbmc-live and xbmc-standalone ...

And NOW it's really working... I finally got my remote back...

I just start to wonder if/how I will be able to go back to the ppa version as soon as the remote fix is in there...

Thanks all for your help...

I now will have to find out how to start xbmc automatically again...
Reply
#13
yes, should be simple; do a make uninstall from the xbmc dir, then re-add the ppa package(s)
Reply
#14
spiff Wrote:yes, should be simple; do a make uninstall from the xbmc dir, then re-add the ppa package(s)

Thanks again...

I still wasn't able to autostart xbmc ... If you could provide a hint here, too ...
I'm linux newb so I do not know where to add it ... Is there something like "autoexec.bat" ? Wink

Best regards
Dirk
Reply
#15
see http://trac.xbmc.org/browser/trunk/tools...ve/runXBMC needs to be stuck as an init script, will generate the xsession you need.
Reply

Logout Mark Read Team Forum Stats Members Help
Not able to get remote to work in dharma after upgrade0