Posts by chewitt

    Bash
    #!/bin/bash
    (
    sleep 10
    echo "17" > /sys/class/gpio/export
    echo "out" > /sys/class/gpio/gpio17/direction
    echo "1" > /sys/class/gpio/gpio17/value
    )&

    ^ see if that works then? .. if it does there's a timing issue and you should switch to a system.d service and schedule the events properly in the userspace boot sequence (autostart.sh is a rather blunt tool).

    SSD drives fail differently to mechanical HDD drives. The management firmware can persistently mark memory areas; so in the current boot cells can go bad causing a cascade of problems, but on reboot those gone-bad areas are marked bad so capacity reduced but problems are avoided .. until more cells go bad. In my experience once cells start failing reliability only heads in a downwards direction.

    LE automatically fsck's any filesystems marked dirty on boot, so if a drive (and thus partitions and filesystems had issues) we attempt cleanup and this might keep things working. In this respect our distro packaging into two files (KERNEL and SYSTEM) means as long as those files are intact a reboot often does a "clean" start; but equally if those files are damaged you have a total boot failure.

    Kingspec are a budget SSD manufacturer so I would have lower expectations on drive lifespan compared to e.g. Samsung EVO 'pro' drives, and I would expect less-developed firmware which increases the probability of low-level issues where the entire drive behaves bad or has problem interactions with BIOS etc.

    To me, the log looks like a dying drive. Make sure you have a backup of any important config.

    I'd start with repeating the setup on a clean SD card and the current LE12 nightly .. it will have updated kernel + ffmpeg + kodi and is what devs are working on (LE11 is not under active development now). Also, when you say "crashes out" does HTPC lock up (hard crash) or simply video stops and it drops back to the home screen (soft crash)?

    Still there is another issue - no audio at all. Is there similar kernel boot parameter for audio?

    Nope. Audio depends on the EDID data from the HDMI connection which is clearly missing. Please run "pastekodi" over SSH and share the URL so we can see if there are errors in the boot log.

    Code
    video=HDMI-A-1:1920x1080M@60

    You can try adding that ^ to kernel boot params in uEnv.ini to force output to 1080@60 .. but if the resolution is not auto-detected the normal reason is bad/broken EDID data from the TV/Monitor on the HDMI connection or a bad HDMI cable, or (rarely, but possible) broken pins in the HDMI connector.

    Code
    mkdir -p /storage/.config/firmware/brcm
    wget http://ix.io/4tpc -O /storage/.config/firmware/brcm/brcmfmac4330-sdio.oranth,tanix-tx6.txt
    reboot

    ^ see if that nvram config works better. Run "pastekodi" and "ifconfig | paste" after boot and share the URLs. Also ensure the correct wireless regulatory domain has been configured in LE settings.

    Kodi hasn't been niche for 20 years and while LE is smaller, we've always sought to keep the distro simple and one of the ways that's done it avoiding niche things that few people use. To quote Spock .. "the needs of the many outweigh the needs of the few" :)

    I wouldn't guarantee that the subreddit has official team members moderating it. Kodi forums are the correct place to make and discuss feature requests but you'll need to find someone who cares to code the feature.

    The "error" messages related to brcmfmac are harmless since the driver falls back to the generic filenames automatically and no device has the clm_blob file available (and it's not essential. All looks good to me; so there should be a wlan0 device in the OS and you should be able to configure a WiFi connection. If not, share "journalctl | paste" after attempting to configure a connection.

    Seeing as both the projects mentioned above do have the source code available as open source, would it be possible to include a feature built-in to Kodi for this?

    Kodi is open-source to technically everything is always possible, but since most projectors have in-built keystone correction capabilities adding a software correction feature is a niche use-case; and the perpetual challenge with niche use-cases and open-source is finding that one other person with the coding skills and motivation to implement and then maintain support for the feature.

    It's not something LE would do .. in part because it would need to be done in Kodi; we only package Kodi into a convenient distro image.

    The boot log shows the kernel probed SDIO and loaded firmware this time so there should be a "wlan0" device listed if you run "ifconfig" but there are ieee80211 errors. See if "iwconfig wlan0 power off" stops them? .. and also try to create a WiFi connection.

    Code
    cd /storage/.update
    wget https://chewitt.libreelec.tv/testing/LibreELEC-AMLGX.arm-11.0.2.tar
    reboot

    ^ please update to that image and share the boot log again. The WiFi card appears to be the newer BCM43752 chip (as that's what the BT driver loaded firmware for) but it's odd the kernel doesn't show any attempt to probe SDIO. I can ask the Minix devs for the Android dts and schematics to look at.

    Casting and streaming media "to" other devices gets complicated. It's easier to simply setup a central repository of media and then have the respective client devices independently connect and play media from it. In a home this would be a NAS device that can serve files over SMB, and with native Kodi apps for the different client device OS in use. The NAS can connects to a WiFi router, and if possible has an Ethernet connection to the Living Room player device (RPi4) as nothing sucks more than shitty WiFi killing the movie mood. Firesticks can also run Kodi natively, accessing the same content over SMB. If the NAS has options for Plex or Jellyfin you also have other options for native player apps with different features, e.g. Plex can serve content on-the-fly at reduced resolution which can be useful for WiFi connected clients that may have lower bandwidth, and kids don't care whether something is 4K or HD .. they care they're watching a movie with cousins.

    As the NAS device is running in an environment with less stable power arrangements I'd use SSDs for storage instead of spinning drives. It won't prevent filesystems getting corrupted by will avoid physical drive damage from sudden power loss. Using a NAS and SSDs is more expensive than trying to frankenstein something with Raspberry Pi's and USB drives, but any trailer that size and with 3x TVs isn't exactly downmarket camping so you can probably afford it :)