New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use the XBMC's Power off and Exit when using libcec libs #54

Closed
steven1758 opened this Issue Mar 31, 2014 · 13 comments

Comments

Projects
None yet
5 participants
@steven1758

steven1758 commented Mar 31, 2014

Hi all

Talked this with wolfgar,thanks his tips to rename all the libcec libs to anther name,
Then it become ok,but can not use the HDMI CEC,
If this problem can be fixed ,it will be more convenience. ; )

Thanks

Kind Regards

steven

@wolfgar

This comment has been minimized.

Show comment
Hide comment
@wolfgar

wolfgar Mar 31, 2014

Member

do you us the latest libcec version published here ?

Member

wolfgar commented Mar 31, 2014

do you us the latest libcec version published here ?

@steven1758

This comment has been minimized.

Show comment
Hide comment
@steven1758

steven1758 Apr 1, 2014

Hi wolfgar

Yea,Just have tried this latest version, still the same problem ,after deleted all the libcec.* libs ,
then it become ok.

Thanks

steven1758 commented Apr 1, 2014

Hi wolfgar

Yea,Just have tried this latest version, still the same problem ,after deleted all the libcec.* libs ,
then it become ok.

Thanks

@steven1758

This comment has been minimized.

Show comment
Hide comment
@steven1758

steven1758 Apr 1, 2014

and with your old XBMC this version https://github.com/wolfgar/xbmc
works very well. : )

steven1758 commented Apr 1, 2014

and with your old XBMC this version https://github.com/wolfgar/xbmc
works very well. : )

@wolfgar

This comment has been minimized.

Show comment
Hide comment
@wolfgar

wolfgar Apr 1, 2014

Member

hmm I will try to reproduce : The worst is I know this issue because I saw it in the past but I don't have it currently with (apparently) the same sources from libcec and xbmc in this repo ;)
Anyway I almost always have a few deltas in my dev images so I will try with a clean build and check if I can reproduce and investigate...

Member

wolfgar commented Apr 1, 2014

hmm I will try to reproduce : The worst is I know this issue because I saw it in the past but I don't have it currently with (apparently) the same sources from libcec and xbmc in this repo ;)
Anyway I almost always have a few deltas in my dev images so I will try with a clean build and check if I can reproduce and investigate...

@emveepee

This comment has been minimized.

Show comment
Hide comment
@emveepee

emveepee Apr 1, 2014

It might be worth ask Tom why he made this change to GeexBox.
http://hg.openbricks.org/openbricks/rev/e0e1736acffa

emveepee commented Apr 1, 2014

It might be worth ask Tom why he made this change to GeexBox.
http://hg.openbricks.org/openbricks/rev/e0e1736acffa

@wolfgar

This comment has been minimized.

Show comment
Hide comment
@wolfgar

wolfgar Apr 2, 2014

Member

If I remind correctly the 3.10 cec driver has not been adapted, do you confirm tom ?
Apart from this, I have just checked : I reproduce the issue. So I will investigate it tomorrow...

Member

wolfgar commented Apr 2, 2014

If I remind correctly the 3.10 cec driver has not been adapted, do you confirm tom ?
Apart from this, I have just checked : I reproduce the issue. So I will investigate it tomorrow...

@tomlohave

This comment has been minimized.

Show comment
Hide comment
@tomlohave

tomlohave Apr 2, 2014

Le 02/04/2014 03:30, wolfgar a écrit :

If I remind correctly the 3.10 cec driver has not been adapted, do you
confirm tom ?

Exactly, something I have tried without success.
but even with the kernel part, if you try to stop or reboot on xbmc
(using 3.10 kernel and cec enabled on xbmc), xbmc logs say xbmc is
terminated, while thread is not
on Utilite, kernel 3.0.35,I found one problem maybe related to this. if
you try to stop cec component using peripheral menu, system freezes

Apart from this, I have just checked : I reproduce the issue. So I
will investigate it tomorrow...


Reply to this email directly or view it on GitHub
#54 (comment).

www.geexbox.org
mailto:tomlohave@openbricks.org

tomlohave commented Apr 2, 2014

Le 02/04/2014 03:30, wolfgar a écrit :

If I remind correctly the 3.10 cec driver has not been adapted, do you
confirm tom ?

Exactly, something I have tried without success.
but even with the kernel part, if you try to stop or reboot on xbmc
(using 3.10 kernel and cec enabled on xbmc), xbmc logs say xbmc is
terminated, while thread is not
on Utilite, kernel 3.0.35,I found one problem maybe related to this. if
you try to stop cec component using peripheral menu, system freezes

Apart from this, I have just checked : I reproduce the issue. So I
will investigate it tomorrow...


Reply to this email directly or view it on GitHub
#54 (comment).

www.geexbox.org
mailto:tomlohave@openbricks.org

@steven1758

This comment has been minimized.

Show comment
Hide comment
@steven1758

steven1758 Apr 14, 2014

Yea,It is very right ,but after remove this, We can not use the HDMI-CEC now.
it will be very good if we can fix this problem : )

steven1758 commented Apr 14, 2014

Yea,It is very right ,but after remove this, We can not use the HDMI-CEC now.
it will be very good if we can fix this problem : )

@mk01

This comment has been minimized.

Show comment
Hide comment
@mk01

mk01 Apr 15, 2014

@colleagues,

poweroff and restart disappeared only few days ago with some of Gotham pulls (personally I have all pulled from upstream). It was there with Beta3 for sure. Actually I realised this 2 days ago only so don't know exactly.

later edit:
just removed "upower" package and SHUTDOWN and REBOOT is back.

mk01 commented Apr 15, 2014

@colleagues,

poweroff and restart disappeared only few days ago with some of Gotham pulls (personally I have all pulled from upstream). It was there with Beta3 for sure. Actually I realised this 2 days ago only so don't know exactly.

later edit:
just removed "upower" package and SHUTDOWN and REBOOT is back.

@wolfgar

This comment has been minimized.

Show comment
Hide comment
@wolfgar

wolfgar Apr 23, 2014

Member

Please apply this kernel patch and you should not have the issue any longer : patch

there were 2 issues which can lead to the blocking situation : a big mistake in poll implementation (They -fsl dev- tried to return negative error codes while poll always returns an unsigned mask => it was a really big mistake because then libcec issued a blocking read while there was nothing to read for real) and also notifications for some events were missing but as these events were useless I dropped them...
Have fun
I have also updated libcec because physical addr was not properly retrieved... I will publish it tomorrow

Member

wolfgar commented Apr 23, 2014

Please apply this kernel patch and you should not have the issue any longer : patch

there were 2 issues which can lead to the blocking situation : a big mistake in poll implementation (They -fsl dev- tried to return negative error codes while poll always returns an unsigned mask => it was a really big mistake because then libcec issued a blocking read while there was nothing to read for real) and also notifications for some events were missing but as these events were useless I dropped them...
Have fun
I have also updated libcec because physical addr was not properly retrieved... I will publish it tomorrow

@steven1758

This comment has been minimized.

Show comment
Hide comment
@steven1758

steven1758 Apr 23, 2014

@wolfgar Oh ,It is great, just have a quickly test. which is very well. We can use the shutdown and reboot now.

But the HDMI-CEC still can not get work with our SUMSUNG TV,which is ok with your older XBMC
https://github.com/wolfgar/xbmc/commits/imx-wip
Do you have tried the latest version's CEC,is it ok with your TV ?

I am testing with your latest libcec , xbmc and this patch in kernel
https://github.com/xbmc-imx6/libcec
https://github.com/xbmc-imx6/xbmc

Thanks again for your effort. : )

steven1758 commented Apr 23, 2014

@wolfgar Oh ,It is great, just have a quickly test. which is very well. We can use the shutdown and reboot now.

But the HDMI-CEC still can not get work with our SUMSUNG TV,which is ok with your older XBMC
https://github.com/wolfgar/xbmc/commits/imx-wip
Do you have tried the latest version's CEC,is it ok with your TV ?

I am testing with your latest libcec , xbmc and this patch in kernel
https://github.com/xbmc-imx6/libcec
https://github.com/xbmc-imx6/xbmc

Thanks again for your effort. : )

@wolfgar

This comment has been minimized.

Show comment
Hide comment
@wolfgar

wolfgar Apr 23, 2014

Member

Hi,
Yes it works fine faced to my panasonic TV : The TV is powered up by the device then the TV remote can be used to navigate the GUI and when I turn off TV, my device is also turned off...
I will send to you a private mail with an utility to perform additional tests...

Member

wolfgar commented Apr 23, 2014

Hi,
Yes it works fine faced to my panasonic TV : The TV is powered up by the device then the TV remote can be used to navigate the GUI and when I turn off TV, my device is also turned off...
I will send to you a private mail with an utility to perform additional tests...

@wolfgar

This comment has been minimized.

Show comment
Hide comment
@wolfgar

wolfgar Apr 27, 2014

Member

OK, so now it works totally with (for 3.0.35) :

or for kernel 3.10

Member

wolfgar commented Apr 27, 2014

OK, so now it works totally with (for 3.0.35) :

or for kernel 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment