Posts by Anode

    Good suggestion, Da Flex. Unfortunately, the behavior was completely unchanged after updating to LE 11.0.1 .

    To recap:

    LibreELEC 11.0.1

    System Tools 11.0.0.1 from Team LibreELEC "/storage/.kodi/addons/virtual.system-tools/bin/hd-idle -a sda -i 300"

    Raspberry Pi 4b 4GB

    Seagate Expansion STKP14000402 14TB

    USB drive spins down once, but after spinning back up, the drive's LED is out and it won't spin down again until a reboot.

    Swapping a 2TB Ext4-formatted WestenDigital drive for the 14 TB ExFat-formatted Seagate, and the WesternDigital drive spins down, back up, and down again as expected. Its LED also works correctly after spinning down and up multiple times.

    Thanks again.

    To recap:

    LibreELEC 10.0.4

    System Tools 10.0.0.134 from Team LibreELEC

    Raspberry Pi 4b 4GB

    Seagate Expansion STKP14000402 14TB

    USB drive spins down once, but after spinning back up, the drive's LED is out and it won't spin down again until a reboot.

    As per elonesna's example, I modified the command in /storage/.config/autostart.sh to match my configuration:

    "/storage/.kodi/addons/virtual.system-tools/bin/hd-idle -a sda -i 300 -l /storage/hd-idle.log"

    With the Seagate Expansion STKP14000402 drive, behavior was unchanged from my previous commands. (It spins down once, but after spinning back up, the drive's LED is out and it won't spin down again until a reboot.)

    I decided to shut down and swap a 2TB Ext4-formatted WestenDigital drive for the 14 TB ExFat-formatted Seagate. I didn't change anything else, and the WesternDigital drive spins down, back up, and down again as expected. Its LED also works correctly after spinning down and up multiple times.

    Working properly with one drive and not the other makes me think the configuration is basically correct, but there's an incompatibility with that Seagate drive. Commands tried-

    "hd-idle"

    "hd-idle -i 0 -a sda -i 300"

    "/storage/.kodi/addons/virtual.system-tools/bin/hd-idle -a sda -i 300 -l /storage/hd-idle.log"

    Here's the complete hd-idle.log contents, annotated as to which drive was connected:

    Seagate

    date: 2023-07-08, time: 18:51:35, disk: sda, running: 330, stopped: 61

    WesternDigital

    date: 2023-07-08, time: 20:51:54, disk: sda, running: 300, stopped: 511

    date: 2023-07-08, time: 21:39:55, disk: sda, running: 301, stopped: 2580

    date: 2023-07-08, time: 22:07:58, disk: sda, running: 302, stopped: 1381

    Thanks again for the help-

    The add-on is System Tools 10.0.0.134 from Team LibreELEC.

    The command currently is "hd-idle". I've also used "hd-idle -i 0 -a sda -i 300", which makes the timeout 5 minutes instead of the default 10, but the problem of only working once remains.

    Not sure how to tell if the daemon is running. Under System/Add-Ons/Running, the only listing is LibreELEC Configuration 10.0 both before and after the drive spins down and back up again. It's not spinning back up correctly, in that the drive's indicator LED is on before spin-down, but never comes back on until after a reboot, even though the drive is working otherwise.

    I have Debug logging on, but don't see any odd errors in KODI.log or System.log. There are a couple of lines of text that flash by in the upper left corner of the black screen during shutdown, but they go by too fast to read. Is that stored somewhere?

    Thanks for the replies-

    I have a new Seagate HD plugged into RPi 4b running LE 10.0.4 . This drive spins down by itself after 10 minutes of inactivity on Mac, Win, and DD-WRT, but not LE10. I have HD-Idle from repository installed and added autostart.sh to launch it.

    It works as expected the first time there is inactivity; the drive spins down and its drive activity LED turns off. It wakes up and works again just fine, but the drive LED never comes back on and it won't spin down again the next time there is inactivity until after a reboot. Then it will work one more time again until the next reboot.

    Any suggestions?

    Thanks-

    Sorry about the delayed response, but I've sorted through a few mysteries. It took a bit to figure out the cryptic error messages; it turns out the Debug Log has been too big to upload to pastebin successfully.

    I'm coming to believe that the problem is with the DD-WRT v3.0-r49567 NAS, or at least LE10.0.2 Official's interaction with it, as MrMC on APTV accesses the same NAS without the music player hanging on Pause.

    I've figured out that when the music player hangs, I don't need a full reboot to restore function afterall. Making the video player play a file seems to reestablish the connection to the NAS, and then the music player will come out of pause and continue playing.

    I've also noticed that occasionally, the music player skips in the middle of a song, then moves on to the next song and keeps playing.

    FYI, here's a dreaded snippet of the error log, useless though it may be to some, it's the best I can do in this case:

    "Process - <smb://192.XXX.XX.X/MusicFiles/XXXX.flac> source read failed with -1!"

    "unix_err:'2' error : 'No such file or directory'

    2022-11-14 14:24:54.565 T:20561 ERROR <general>: Read - Error( -1, 103, Software caused connection abort )"

    My next step is to update to the latest DD-WRT and see if that helps. Other suggestions appreciated. Thanks again!

    Thanks for the suggestion; I've just turned off DRM Prime decoder, and will post results later.

    The unit had frozen last night while paused, after 4 days of working fine, so its also had a fresh reboot.

    Just to be clear, I'm having trouble with the Music Player freezing on pause, and don't use this RPi for video playback.

    When the Music Player is paused for an extended period, it sometimes won't come out of pause. The GUI works, the Play/Pause button toggles, the counter goes to -0:00, but it won't resume playback. Previous/Next buttons work, the cover art and Title text changes when selected, but it still won't advance the counter or play audio until a reboot. Then it will then work fine pausing/resuming for a matter of hours, or a few days, until it stops working again.

    Debug Log from immediately after problem occurred: http://ix.io/49C2

    This is a clean install of LibreELEC 10.0.2 Official on a fresh RPi4 (4gig) with new CanaKit power supply and Geekworm case, so the hardware itself should be functional. I also have an Apple TV with Mr.MC playing files from the same NAS without trouble.

    Thanks! I appreciate all the work that goes into coding, and troubleshooting, such a cool product.