Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 43
  1. #11
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,918

    Getting HDMI CEC to work on pCP 7.0

    One quick update .... I said earlier that the screen wa messed up in Jivelite when I use
    dtoverlay=vc4-kms-v3d
    ...
    of course ...
    Jivelite is set to the Joggler screen on startup ... so I had a mini Jivelite in the top left corner of the screen.

    To resolve that all that I had to do was use a keyboard to navigate into Settings/Screen and change to one of the HD skins.
    So that part of things is working fine now.
    I'll update the earlier post.
    Last edited by Paul Webster; 2021-01-27 at 15:37.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  2. #12
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,489
    Okay, I added all of the needed dependencies. It build cleanly for me. I'm not sure what options are needed and which aren't. But these instructions work fine, with these changes.

    pCP (piCore) packages names that are needed

    cmake libudev-dev libXrandr-dev python3.8-dev swig git rpi-vc-dev

    The rpi-vc stuff is in a different spot......

    cmake -DHAVE_CURSES_API=0 -DHAVE_CURSES_TINFO=0 -DHAVE_LINUX_API=1 -DRPI_INCLUDE_DIR=/usr/local/include -DRPI_LIB_DIR=/usr/local/lib ..

    I did not have time to package things up.....which I probably could this weekend...... but the build is pretty easy for you to continue to test.

    Code:
    tc@Pi4-armhf-Devel:~$ sudo cec-client
    No device type given. Using 'recording device'
    CEC Parser created - libCEC version 6.0.2
    no serial port given. trying autodetect:
     path:     Raspberry Pi
     com port: RPI
    
    opening a connection to the CEC adapter...
    DEBUG:   [              10]     Broadcast (F): osd name set to 'Broadcast'
    DEBUG:   [              10]     logical address changed to Free use (e)
    DEBUG:   [              10]     Open - vc_cec initialised
    NOTICE:  [              10]     connection opened
    DEBUG:   [              10]     processor thread started
    DEBUG:   [              10]     << Broadcast (F) -> TV (0): POLL
    DEBUG:   [              10]     initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
    TRAFFIC: [              10]     << e0
    DEBUG:   [            1011]     command 'feature abort' timeout
    DEBUG:   [            1511]     initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
    TRAFFIC: [            1511]     << e0
    DEBUG:   [            1545]     >> POLL not sent
    DEBUG:   [            1545]     TV (0): device status changed into 'not present'
    DEBUG:   [            1545]     registering new CEC client - v6.0.2
    DEBUG:   [            1546]     SetClientVersion - using client version '6.0.2'
    NOTICE:  [            1546]     setting HDMI port to 1 on device TV (0)
    DEBUG:   [            1546]     << Broadcast (F) -> TV (0): POLL
    DEBUG:   [            1546]     initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
    TRAFFIC: [            1546]     << e0
    DEBUG:   [            2546]     command 'feature abort' timeout
    ^Csignal caught: 2 - exiting
    DEBUG:   [            3047]     initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
    Last edited by paul-; 2021-01-27 at 21:07.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #13
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,918
    Thanks.

    Just tried to build on the device ... very old RPI1
    Code:
    [    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
    [    0.000000] OF: fdt: Machine model: Raspberry Pi Model B Rev 2
    cmake fails immediately with a "Segmentation Fault"
    wrong Arm?

    Also - swig not in the list of extensions (and not on PiCore either).

    I'll see if I can free up a more modern RPi and see if it works there.
    Last edited by Paul Webster; 2021-01-28 at 03:18.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  4. #14
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,918
    Borrowed a newer RPi ... progress
    cmake does not segfault.


    For the list of extensions required to build ... also need 'C' compiler and related applications
    compiletc

    .. currently building ...
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  5. #15
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,918
    Annoyingly I can't get the RPi to load the /dev/cec0 with the new SD card that I have rebuilt things on.

    I suspect there is something that I did yesterday that I have missed out today.
    The overlay is specified in config.txt
    dtoverlay=vc4-kms-v3d

    If I put the SD card from yesterday into the 2nd RPi then I do get /dev/cec0 created ... so the hardware difference does not appear to be the issue.
    The 2nd Pi is a B+ ... so not very different anyway.

    I have also put the cmdline.txt from RPi1 into RPi2 and it does not change things.

    Next step is to compare all of the .tcz extensions I loaded.
    Obviously RPi2 has a lot more because of the build environment (I had to add a max_loop=150 to cmdline.txt avoid a mount error when installing one).
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  6. #16
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,918
    Well that was good ...

    The differences between the 2 SD cards were mainly RPi2 had all of the build tools and RPI1 had Jivelite ...

    So I used pCP to install Jivelite on RPi2 ... and, as if by magic, on reboot I had /dev/cec0 (and sound devices appearing).

    I had not installed Jivelite yet because I wanted to save time ... since I knew that I did not need it until I had the CEC stuff working.

    So there must be some config going on when pCP knows that the screen is going to be used.

    Finally I can get back to trying out remote control stuff.
    Last edited by Paul Webster; 2021-01-28 at 09:31.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  7. #17
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,489
    I forgot that I never submitted swig extension. But sounds like you figured that out.

    Jivelite is going to pull in graphics-KERNEL.tcz which is the needed kernel modules for vc4/cec, et al.


    Let me know how I can help you.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #18
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,918
    It has proved difficult to build the other tools ... so am trying a different and I suspect simpler route.
    Current idea is to use ir-keytable because I see that it has some CEC rules.

    Challenge there is it seems to be looking for a device that I do not have ... so am going back to basics so that I can prove that this can work.
    I'll put Raspberry Pi OS on the RPi and try to get HDMI CEC working with JiveLite / SqueezePlay there ... using dtoverlay=vc4-kms-v3d ideally without using full desktop.
    At least that will show that it should be possible ... then the challenge is to work out the differences and how to achieve something similar in pCP.
    Last edited by Paul Webster; 2021-01-29 at 02:59.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  9. #19
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,918
    New theory ... to get CEC commands to come into the system almost automatically ... and be made available to ir-keytable we need another kernel option to be enabled

    MEDIA_CEC_RC

    It looks like it was added to kernel in 2017
    https://patchwork.kernel.org/project...uil@xs4all.nl/
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  10. #20
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,489
    I see the config option that you are looking at. Do you know how to build your own kernel under RaspiOS?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •