Posts by CSC_

    Nothing wrong with the remote. It was working fine with LibreELEC all day yesterday and today, then it suddenly stopped working. When trying to re-Pair it, I get "Bluetooth Error: Authentication Failed" every time. When pressing "Trust and Connect", it claims it's connected, but no button works.

    Looking it up it's not too uncommon that Bluetooth devices spontaneously stop working sadly, usually it's speakers though.

    Did you read the instructions? You have to edit that file after copying it:

    nano /storage/.config/swap.conf

    Then reboot.

    I just realized your PC has 8GB of RAM, so I don't think 16GB swap (or more) will make a difference.

    I have 16GB of RAM actually. I didn't see anyone mentioning how to edit it (I did see Nano come up but I didn't know what that was). Editing the swap.conf worked perfectly, nano reports the proper >32GB swap file size :)

    As for the Google Chrome issue, nano /storage/.kodi/addons/browser.chrome/bin/chrome-downloader allows you to edit the CHROME_FILE to a more proper, updated source. It failed to extract the first time then installed properly afterwards. I'm on Chrome now.

    Option A: SSH login from another PC

    1. find the IP of your LE device by using your router menu
    2. open a terminal on another PC, and type ssh root@<IP_OF_YOUR_LE_DEVICE> to connect to your LE device
    3. use the default password "libreelec" to finish the login
    4. to end your SSH session, just use the "exit" command

    Option B: Use an LE terminal add-on

    1. download the "System Tools" add-on
    2. start the "Terminal" app

    I assume the swap file was made? cp /etc/swap.conf /storage/.config didn't return with anything indicating it did but there was no error either.

    How would I install Chrome manually? I see in that linked thread above mglae said to edit /storage/.kodi/addons/browser.chrome/bin/chrome-downloader but I'm not sure how?

    The only strange thing in last install log is that you have partitions on device. I would expect to see blank device after changing sector size. I did not check how my nvme looked during test.

    I think that was the second one I did. Got confused because I had two logs there (and because of the time spent in BIOS menus, the timestamps on the logs are very confusing and not accurate) that one was the second installation in Legacy mode. Here's the first one when I was still in UEFI mode. It shouldn't have any partitions yet?


    The Generic-Legacy branch actually installed! With BIOS set to Legacy as well (UEFI and UEFI with CSM DID NOT WORK). I... was very shocked when it booted into LibreELEC. I thought I left the USB stick in, but I didn't.

    https://i.imgur.com/96xFKYF.jpeg

    I'm really surprised that branch was needed since it seems like it would only be necessary if the machine was driving graphics off of an nVidia GPU (as it mentions AMD/Intel/Nvidia) and my laptop can't do that, all outputs are 100% tied to the Intel integrated.

    Problem solved finally. Hurray!

    Which boot mode is selected in BIOS boot settings (Legacy, UEFI or UEFI with something)?

    Is secure boot turned off in BIOS?

    Currently UEFI with CSM (which seems to be some hybrid compatibility thing), but I tried all three of Legacy, UEFI, and UEFI with CSM, nothing works.

    Secure Boot is indeed off. The USB installer for LibreElec won't work without it off, so I just left it off, especially since nothing needs it anyway.

    Random suggestion: boot into Ubuntu and "dd" the LE image directly to the NVME drive, then see if it can boot?

    How would I do this?

    You told me current and supported LBA sizes on your device and confirmed that reading wikis is hard.

    Run 'nvme format --lbaf=0 /dev/nvme0n1' on live ubuntu to switch your nvme disk to 512 sector size.

    Restart, boot from libreelec installer disk, install libreelec. Lets hope that your selected libreelec version can handle RTX10

    Tested with WD Blue NVME and confirmed that 4096 sector size results error in installer logs and switching back to 512 size works. Test system was using UEFI boot. So probably no need to run in legacy boot mode on your laptop.

    If you want to argue about 4k sector performance and old software, your choice. I prefer stuff that works without bolts flying in all directions.

    I had to install nvme-cli as that didn't come with the Ubuntu Live USB, but I did run it.

    Unfortunately, nothing's changed. Still not booting. Attached the log, I don't know if anything has changed.

    I've heard (today from looking at sector size---this isn't something that I've ever come across) there's a "maybe 10% difference" (some of the posters were actually unsure there was any difference) in performance, I can assure you I wouldn't notice because before LibreELEC I never knew what sector size was for SSDs, lol. I thought that was something only on really old HDDs for the platters.

    Librelec uses bootloader that can't install itself into 4096 sector size device. Regular Linux tends to use grub, which is more widespread and gets updates/fixes faster than syslinux. Libreelec does not use grub cause they care about size and not about grub's bells and whistles.

    I guess you did not read the link.

    Could you boot your laptop with Live ubuntu disk and show 'smartctl -c /dev/nvme0n1' output for your Toshiba NVME. Dunno if live ubuntu includes smart monitoring tools in their build. I used different live os to check drives.

    I find that incredibly odd, is it based on a very old and unupdated bootloader?

    I did but I fail to see why it's even relevant unless this is a profoundly old thing that isn't working.

    I have no idea what you need from it, is it here? https://i.imgur.com/CsLvK3T.png

    I don't understand why the sector size would even be an issue? LibreELEC needs a highly specific size or something? No other OS seems to have an issue with 4096 sector sizes.

    Can this be fixed?

    I'm only replying as an x86 user on I3,I5,I7 and AMD A9 hardware as I never had any install issues. LE installed on a Sandisk USB3 thumdrive runs equally well on all my systems. It really sounds like the NVME in your system is hosing up the install somehow. Not what ya want to hear I know but sometimes the simplest fix is a different drive. Even a new SSD at today's good prices would make a top notch HTPC. The RPi5 is another great choice BTW and runs LE12 very smooth.

    RPi5 doesn't have battery backup and is an additional purchase.

    I also bought the SSD for this purpose and I'm not sure what LibreELEC is having so much issue with. USB thumb drive sounds unpleasant, bad boot times and general sluggishness with it being on a USB thumb drive.

    I don't know why this isn't working. I also said I tried an HDD as well---same issue. LibreELEC is the problem, not the hardware (an HDD and an SSD) that can have every other OS.


    So I think I'm making... progress, if anyone with more intimate knowledge of how LibreELEC is structured can help?

    Had the idea to install Ubuntu as a dual boot (I mean, I really just wanted LibreELEC, but who cares about another OS there if this makes it work) so I could gain access to GRUB.

    Classic SysAdmin: How to Rescue a Non-booting GRUB 2 on Linux - Linux Foundation
    Once upon a time we had legacy GRUB, the Grand Unified Linux Bootloader version 0.97. Learn how to rescue a non-booting GRUB 2 on Linux.
    www.linuxfoundation.org


    Found that and there's a section for booting from GRUB. This part here:

    grub> set root=(hd0,1)
    grub> linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1
    grub> initrd /boot/initrd.img-3.13.0-29-generic
    grub> boot

    Is where I seem to be stuck, as the second line is supposed to tell GRUB where the kernel is, but this clearly isn't LibreELEC's kernel as it yields an error saying it can't find it.

    So this is as far as I've gotten. Something installed, that much is sure, but it's not bootable... yet?

    I can't look at the LibreELEC installation in Ubuntu as it appears as an empty drive. I suspect I need to mount it as some other folder or do something to gain permission. But I see it's not empty, it has about ~1.3GB taken up. The 4GB "EFI" partition that LibreELEC is also there, although I'm not sure what good it is since nothing views it as a bootloading partition (since syslinux isn't installing/working), but it is there.

    Code
    #################################################################
    # Installing syslinux to /tmp/installer/part1
    #################################################################
    
    /dev/nvme0n1p1: unsupported sectors size

    (as before) the installer fails to install syslinux to the NVME drive and no bootloader = no boot.

    If you have a standard non-fancy drive around you can see if that works (to isolate the issue to NVME vs SATA) but it's likely due to some oddity with NVME drive firmware. I'm unsure what the solution/workaround is with syslinux so install grub to the (otherwise fine) nvme drive instead of syslinux and see what happens.

    Google reports there are 387,000 results for "install grub bootloader" so plenty of things to read.

    A lot of results and no actual good tutorials, most of it is people asking how. A lot of it also depends on actually having some version of GRUB already. Closest I got involved wiping the entire drive to install GRUB, which was naturally pointless since that removed LibreELEC, and any attempt to readd LibreELEC would just remove GRUB anyway since LibreELEC wipes the entire drive.

    I don't have the log anymore but the same incidents (it not installing syslinux) were occurring on a bog standard 5400RPM SATA HDD as well.

    ChatGPT was similarly unhelpful for trying to install GRUB, which I found odd because I thought programming was one of its actual uses.

    nmve (Toshiba XG3) got 4k sector size. Based on internet search syslinux 6.03 supports 4k sector size, but its official installers don't.

    SSD probably also on 4k sectors.

    What would be the fix here, then?

    To my knowledge Raspberry Pis are popular HTPCs with LibreELEC, same with NUCs. Those both utilize NVMe drives.

    You might throw insults at some things. Throwing insults at people normally does not help in getting answers.

    Ubuntu live CD also allows you to install OS on disk and verify that your laptop can boot generic Linux OS.

    People are trying to understand your setup why trying to guess what hardware you are using with you giving as little as possible.

    Secure boot tends to work with Windows, but it is highly likely to break with Linux. Keep it off with Linux.

    MSI GF63/75 manuals show that they support both UEFI and Legacy boots. Change to legacy boot. Make sure that you have nvme and ssd devices listed in boot device list. Both laptops have manual page telling how to change boot mode.

    I didn't insult anyone? I mentioned wanting to install it internally instead of running by USB because I see LibreELEC is used often by USB, which I know it can do, but I don't want, for reasons I listed. I fail to see how that offends any actual people.

    No one asked for my laptop. I didn't list it because I frankly didn't think it was needed, the LibreELEC installer just says "Generic" for Intel/AMD so I figured it didn't matter, we're also very far removed from laptops having actually different parts and firmware than desktop computers. It's an MSI GL63 8RD.

    SecureBoot is off. UEFI is changed to Legacy. Doing a new, fresh install with these settings changes, and nothing changed, still doesn't boot, and BIOS still doesn't recognize any boot devices. Posted a new log. Don't know if it's any different.

    I'm trying to install it to an NVMe drive, although like I said I also tried a SATA HDD where the same thing (read: nothing) happened.

    I guess I'll try some older versions. Maybe something bugged out. I don't know.

    EDIT: Tried some older ones, nothing's worked yet. Also tried Rufus instead of the USB-SD Creator downloaded from the LibreELEC site (since sometimes the program writing to the USB is an issue, have never had success with balenaEtcher, but Rufus always works). Still didn't work.

    EDIT 2: Tried the latest nightly (https://test.libreelec.tv/12.0/Generic/G…-248f521.img.gz) and nothing changed.

    Why doesn't this work for me? I'm assuming it's an issue with syslinux? Ubuntu and other distros that use GRUB work fine for me...


    The main reason I want to use LibreELEC on this laptop is that I want to use it as an HTPC, since I actually have it here. Naturally, with 16GB of RAM, four (counting USB-C) USB ports, battery backup to protect against power flickers or bad weather, and an internal SATA slot, it's beating the crud out of the nVidia Shield TV.

    I have a much stronger laptop I use for personal use, I like to recycle old hardware when I can and using this laptop as an HTPC is how I'd like to repurpose it as I would get great use out of it.

    Why LibreELEC specifically instead of Windows or Linux? LibreELEC can use the Amazon Fire Stick remote I have here. Windows and Linux distros can't. It syncs (it's recognized as "AR" in the respective Bluetooth menus) but no program recognizes it as an attached device. I don't know how LibreELEC does it, but it does. Works perfectly fine with it.

    Create an Ubuntu Live USB and see if that boots. If it does, grub works (where syslinux does not) and you can do a manual LE install to the NVME drive using grub as the bootloader. Create a GPT partition scheme on the drive with two partitions: BOOT (512MB/VFAT) and STORAGE (100% remaining space/EXT4) and setup the grub boot entry using the data in syslinux.cfg as a general guide for boot params.

    Ubuntu booted from a live USB.. but why wouldn't it? LibreELEC also works from a live USB but why would want it on some slow and clunky external drive hogging up a USB slot instead of my fast and internal NVMe? I want to put LibreELEC there.

    I have no idea how you do any of that since you didn't really give any instructions and ChatGPT keeps malfunctioning so I'm not sure what I'm supposed to be doing.

    Share the install log from the installer USB?

    I attached it to this post.

    Secure boot turned on?

    MSI with 8750H search would indicate that you have gaming laptop with integrated high end nvidia graphics. Not particularly unique, but also not particularly generic or linux gpl friendly.

    It is a gaming laptop, the dedicated GPU (which would never see any use in watching videos via LibreELEC, as all outputs are attached to the integrated GPU only) is indeed an nVidia one, a GeForce GTX 1050 Ti.

    I wanted to repurpose the laptop into an HTPC.