Author Topic: cec not working after reboot  (Read 3983 times)

Offline clausmuus

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • MLD
    • Email
cec not working after reboot
« on: October 24, 2012, 23:51:39 »
Hi,

if I reboot my RPI, after reboot the vompclient can not controlled by cec, but if I press a key the TV shows a message to select the cec client that should be controlled. If I now select the the RPI, I even so can not control the vompclient. After I restart the vompclient, every thing is ok.

Claus

PS.: After reboot, the hdmi output is disabled, until the vompclient will started. On shoutdown I see the console 1 and the shutdown log messages.
« Last Edit: October 24, 2012, 23:55:27 by clausmuus »
MLD - A Distribution also for the Raspberry PI

Offline MartenR

  • Hero Member
  • *****
  • Posts: 789
    • View Profile
Re: cec not working after reboot
« Reply #1 on: October 25, 2012, 07:09:55 »
Quote
PS.: After reboot, the hdmi output is disabled, until the vompclient will started. On shoutdown I see the console 1 and the shutdown log messages.
But this is not the default right?
On my machine the HDMI is enabled at boot up, so just enable it at boot up.

If there is no HDMI connected, the remote will just fail when connecting at the startup of vomp.

Marten

Offline clausmuus

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • MLD
    • Email
Re: cec not working after reboot
« Reply #2 on: October 25, 2012, 08:39:19 »
Hi Marten,

that is the "default", but not wished. If I don't start the vompclient and than do a reboot, I can see at boot time the boot log messages. But I will do some further tests with the "fbset" stuf, you have posted before. Maybe that fix it. An other idea is to select a specific resolution in the config.txt. Maybe that will help. I must test this also.
If there is no HDMI connected, the remote will just fail when connecting at the startup of vomp.
I have connected the hdmi. I also can see the vompclient, but just noting before the vompclient starts. Maybe there is a problem in the startup sequence? Maybe you first do the remote cec connect and after that activate the hdmi output? OK, I think this problem will be fixed if I found the reason, why the hdmi output will be disabled on reboot and I can fix this.
MLD - A Distribution also for the Raspberry PI

Offline MartenR

  • Hero Member
  • *****
  • Posts: 789
    • View Profile
Re: cec not working after reboot
« Reply #3 on: October 25, 2012, 08:48:26 »
Quote
OK, I think this problem will be fixed if I found the reason, why the hdmi output will be disabled on reboot and I can fix this.
So you did not turn it off... weird I always see the boot up process.

Probably it was to do something with the fbset, which does vomp at shutdown to restore the console.
Maybe again a problem of a new kernel??

Marten

Offline clausmuus

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • MLD
    • Email
Re: cec not working after reboot
« Reply #4 on: October 25, 2012, 08:55:56 »
No it's not a new kernel problem. I have this problem, since the vompclient automatically use the correct hdmi mode or maybe since it automatically switch to a free console.
MLD - A Distribution also for the Raspberry PI

Offline clausmuus

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • MLD
    • Email
Re: cec not working after reboot
« Reply #5 on: October 25, 2012, 09:00:43 »
Maybe I have some of the problems only if I watch TV before I do the restart (maybe not, if I only start the vompclient and than directly do the reboot). I will check this today evening.

Claus
MLD - A Distribution also for the Raspberry PI

Offline clausmuus

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • MLD
    • Email
Re: cec not working after reboot
« Reply #6 on: October 25, 2012, 09:02:15 »
Is there a different, if I do the reboot from the vomp menu or from command line, until the vomp is running (so it will be killed)?

Claus
MLD - A Distribution also for the Raspberry PI

Offline MartenR

  • Hero Member
  • *****
  • Posts: 789
    • View Profile
Re: cec not working after reboot
« Reply #7 on: October 25, 2012, 13:10:09 »
Yes, there is, I think, I know what is happening, wait for the weekend for a fix. (Framebuffer is not restore)

Offline MartenR

  • Hero Member
  • *****
  • Posts: 789
    • View Profile
Re: cec not working after reboot
« Reply #8 on: October 28, 2012, 10:15:04 »
I changed some initialisation and deinitialisation code, so that all objects are properly deinitialized also on the case of a reboot.

Marten