XBMC on Arch with CEC problems

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

XBMC on Arch with CEC problems

Postby Clouseau » Mon Nov 04, 2013 9:42 am

Hi everyone, first post :)

Ok, I have tried Openelec, Xbian,Raspbian and Raspbmc but finished on Arch because I'm a long time arch user on desktop :)
But I have one weird problem with my CEC remote and XBMC on archarm on my Pi. There are often repeats registered when I press key once, I mean XBMC registers two keypress but I press only once key on my Cec remote. This occurs on all above mentioned distros expect Openelec. I can't use Openelec because my Pi is not only dedicated for xbmc task.

Does anyone know what Openelec have or has tuned with xbmc or somewhere else that xbmc in archarm doesn't have?

I have tried giving more priority on xbmc with nice, didn't help. I have also tried with remotedelay and remoterepeat options in advancedsettings.xml file but I think this is limited to Lirc remotes.
http://wiki.xbmc.org/?title=advancedset ... tedelay.3E

I have even tried with a bigger value in peripherals.xml file double_tap_timeout_ms setting to 8000 https://github.com/xbmc/xbmc/blob/maste ... herals.xml but it doesn't help.

Anybody else have this behaviour?
Clouseau
 
Posts: 10
Joined: Wed Oct 30, 2013 10:00 am

Re: XBMC on Arch with CEC problems

Postby moonman » Tue Nov 05, 2013 9:12 am

give xbmc-rbp-git a try. Openelec maybe using git version - can't tell you for sure
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: XBMC on Arch with CEC problems

Postby Clouseau » Tue Nov 05, 2013 10:23 am

Tnx, forgot to mention, behaviour is the same with alarm/xbmc-rbp 12.2-2
and
aur/xbmc-rbp-git

I would say the problem is in libcec-rpi which is older version https://github.com/archlinuxarm/PKGBUILDs/issues/605

I have googled and found this https://aur.archlinux.org/packages/libcec-rpi-git/

but on Pi when I search for it with pacman -Ss libcec there is no libcec-rpi-git. I tried downloading PKBUILD manually on Pi and tried to build the package but it brakes, the rpi patch is broken probably... Wait, that libcec-rpi-git is a package for Pi that is in AUR and I can find it with packer on my desktop x64 PC. If I build it it would be for x86_64 arhitecture not arm...

EDIT: just figured it out, archarm repo has AUR different from AUR on aur.archlinux.org... archarm has prebuild some packages from AUR but not all of them, I must use packer to see all AUR pkgbuilds which I can try and build it for arm...
I have tried bulding the above package with packer on my Pi but it brakes.

EDIT2: I have contacted the maintainers, the problem is there is no enough ram on my Pi. I will try to compile it on my virtual machine following this guide https://github.com/Pulse-Eight/libcec
Clouseau
 
Posts: 10
Joined: Wed Oct 30, 2013 10:00 am

Re: XBMC on Arch with CEC problems

Postby Clouseau » Tue Nov 05, 2013 5:33 pm

Ok, in the end I succesfully compiled it from AUR on Pi(had to use swap file). An the problem persists, repeats are still present. There must be a problem somewhere else in the system...
Clouseau
 
Posts: 10
Joined: Wed Oct 30, 2013 10:00 am

Re: XBMC on Arch with CEC problems

Postby moonman » Thu Nov 07, 2013 5:51 am

the aur version... the pkgbuild IS old, but it's still currrent. It pull the latest git sources and builds it. I really don't know what to suggest here as I don't use it myself. Are you fully up to date?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: XBMC on Arch with CEC problems

Postby Clouseau » Fri Nov 08, 2013 9:51 am

Totally up to date with system... Also open an issue on github on Pulse Eight libcec. Will register in Openelec to see what they have done, although, beside you, the response from other few sides is not existing... :)
Clouseau
 
Posts: 10
Joined: Wed Oct 30, 2013 10:00 am

Re: XBMC on Arch with CEC problems

Postby moonman » Sun Nov 24, 2013 9:59 am

Just tested cec with my toshiba tv connected to a pioneer receiver. Everything works as it should

Using linux-raspberrypi-latest 3.12.1 and xbmc-rbp-git 13 alpha 9
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: XBMC on Arch with CEC problems

Postby Clouseau » Tue Nov 26, 2013 7:07 pm

Great it works for you :)

I have tried with xbmc-rbp-git-13.20131124-1 and linux-raspberrypi 3.10.19-3 and double keypresses are registered. Also the videos want play, I see no picture and hear no sound although it starts playing...

I have upograded today to xbmc-rbp-git-13.20131126-1 but now xbmc won't start, says: Unable to create GUI... And in crashlog:

19:49:31 T:3015222336 ERROR: CecLogMessage - failed to release the previous LA
19:49:31 T:3015222336 ERROR: CecLogMessage - could not open a connection (try 1)
19:49:33 T:3036054384 ERROR: EGL error in CreateSurface: 3003
19:49:33 T:3036054384 NOTICE: CreateWindow: Could not create a surface. Trying with a fresh Native Window.
19:49:33 T:3036054384 ERROR: EGL error in CreateSurface: 300b
19:49:33 T:3036054384 ERROR: CreateWindow: Could not create surface
19:49:33 T:3036054384 ERROR: CreateNewWindow: Could not create new window
19:49:33 T:3036054384 FATAL: CApplication::Create: Unable to create window

Also linux-raspberrypi-latest 3.12.1-1 with xbmc-rbp-git-13.20131124-1 doesn't work, shows the sam Unable to create GUI error.

Don't know how you managed to get it work, but I'll stay on linux-raspberrypi 3.10.19-3 and xbmc-rbp-git 13.20131021-1 cause it works, besides double cec key presses sometimes registered.

Btw. what is your mem split? Mine is gpu_mem_512=256
Clouseau
 
Posts: 10
Joined: Wed Oct 30, 2013 10:00 am

Re: XBMC on Arch with CEC problems

Postby moonman » Tue Nov 26, 2013 9:29 pm

I have 128 mb for gpu. Try adding the udev rule mentioned after the package installation.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: XBMC on Arch with CEC problems

Postby jskier » Tue Nov 26, 2013 10:53 pm

Only xbmc-rbp-git 13.20131021-1 works for me, otherwise last two updates kill video / audio and can't actually play. GUI will start with 1126 build, but no playback.

256 for my GPU (dynamic settings), B model Pi.
jskier
 
Posts: 16
Joined: Sat Oct 26, 2013 2:04 pm

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 5 guests