Posts by robmcc83

    I understand that but surely I want to spin down a hard drive not a partition.


    The example was from another thread on this forum that is suppose to spin down a drive after 5 minutes.


    I've added that example to the autostart.sh but changed it from sda1 to sdb because my sda drive is a ssd and my sdb drive is a hdd which is the one I want to spin down.


    It does spin down 5 minutes after a reboot so it clearly works but after playing a video it will not spin down after 5 minutes of inactivity it just spins forever (well the 1 hour I left it to see if it would spin down)


    Thanks

    Hi all,


    I'm trying to spin down my western digital hard drive as it always spins and with it being in my tv cupboard it's quite noisy when not in use.


    I've searched the forum and found a thread which tells me to put the following code into the autostart.sh


    #!/bin/sh

    (sleep 60;

    hdparm -S 60 /dev/sda1

    )&


    Now obviously I've changed it to /dev/sdb as that's the drive I want to spin down.


    I reboot the computer and after 5 minutes it spins down as it should do.


    Perfect I thought it was working.


    I've since noticed it only spins down once at first boot.


    Example of behaviour is I reboot my system, 5 mins later it spins down. I then play a video file it takes a few seconds to spin back up (which I can hear it doing as it should).


    After stopping the video playing the drive will now no longer spin down again unless I reboot again and then it will spin down again after 5 mins.


    It also doesn't work after a suspend.

    I have my remote set to suspend the computer when I press the power button, this allows me to press the power button again to wake. But after a cycle of suspend and wake the hdd will no longer spin down.


    Am I doing something wrong here.


    Thanks in advance

    Brilliant :)

    Thanks for the help think I'll be able to do it now with the information you have both provided.


    I'll try later today when I get time and report back to hopefully let you know all has gone well.


    It's a shame the generic build doesn't work like the RPi builds.


    The raspberry PI let's me choose both HDMI and analog as the output at the same time.


    Anyway thanks again.

    Thanks for your suggestions.

    That audio profiles add-on looks like it would do the job.


    Only problem is looking at that is the is the configuration instructions seem to show how to set a key on the keyboard to toggle output.


    How would I change that to make it use a button on my mce remote, preferably one of the coloured ones at the bottom

    Thanks

    Hi all.

    Just a quick ask really although maybe a pain in the backside to achieve.


    My pc I run libreelec generic on has a Logitech 2.1 speaker setup plugged into the 3.5mm analog output.


    I switch to this output when playing music and quite often movies as the extra bass this provides makes for a better experience.


    By default I always leave out put on HDMI so it comes through my tv speakers as don't want to wake kids when just watching normal tv at night.


    What I have to do when changing output is go to audio settings and swap and change as needed, beginning to annoy me now as my 3 year old has to have the Logitech speakers on now when watching films as she loves it haha.


    Is it possible to map a button on my rc6 mce remote to achieve this.

    For example map the blue button to toggle between the 2 outputs as the coloured buttons aren't used as nobody uses teletext any more.


    Or even better say have the blue switch to HDMI and the red switch to analog.


    Thanks in advance

    ok so I have fixed the sound issue but created so many more by uninstalling the add-on.


    So much doesn't work with the latest versions of this add-on.


    On fresh install of the retroarch add-on from the gamestarter repo, my ps3 controllers do not work. I remember this from the le9 earlier days, but only this time I just updated keypad config and it worked.


    Second issue, the add-on does not install all Lanka cores from the settings part of the add-on.

    I select download all Lakka cores from the settings menu of the retroarch addon from gamestarter and most cores are missing, tried several times and still not all there.


    Then after you get through all this you are faced with no sound.


    I can solve this by going to the retroarch.cfg file, finding audio_device "" and adding my sound card I want to use which I find by running ssh and typing aplay -L

    Then in between the "" i add the device information and all works good.


    It seems like a lot of stuff is outdated with this add-on now could this be right.


    When I first started using this add-on on le 8.2.x it worked perfect no need to alter anything.

    Since le9 it just appears I have to mess around with so much just to get it working.


    I'm all up for helping if I can be any help as I love this add-on for kodi, I'll just keep hold of all altered files for now in case anything goes wrong with my setup so I can just copy them back over to save going through all config files again :)


    By the way I'm using generic 9.2.0 le on a amd platform.

    I have a gigabyte board and downgrading is easy for me (sorry for that news)


    For me i settled with a gigabyte f32 bios version in the end which is agesa 0.0.7.2 i believe this is actually a combiPI release but before they added 3000 series support, i think this release only added support for the athlon 200 zen cpu but i had to use this one as my western digital m2 ssd wouldnt work until this bios version.


    This bios has been solid for me.


    Windows works fine for me (i currently dual boot so i can also play a few steam games on my big tv)

    Linux distros work fine as long as they above kernel 5.0.x

    And libreelec works fine for me, been pretty solid to be honest.

    I use gamestarter addon and play some old retro games on libreelec, play mainly x264 and x265 movies/tv shows all 1080p and 4k, tvheadend for all the live tv stuff

    The computer is set to wake and sleep when a raspberry pi calls for it from mine or one of the kids bedrooms.

    i dont really change any settings in libreelec after stock install just skin stuff to my preference


    So i can assure you it does work fine so it must be related to something on or in your system.

    Or maybe even a faulty part of some sort.


    Mine has always worked fine on windows since agesa 1.0.0.4 pinnacle so the fact you have problems on windows my suggest a part is at fault somewhere.


    I use a gigabyte ga-a320m s2h v2 motherboard.

    the 2200g

    16 gb kingston hyperx (2x8gb 2667mhz)

    120gb western digital m2 2280 ssd (For libreelec)

    240gb kingston uv500 ssd (windows 10)

    4tb wd green sata hard drive (for all media)

    it was late last night when I wrote that so I'll explain a little better how I got a stable system.


    I had problems with both Linux and Windows when I put together this computer before even using libreelec, all we're graphic related and and one occasion the same problem was present on both fedora and windows so it seems certain things are shared between os'es.


    I had to use fedora as anything below kernel 5.0.x Linux wise would not boot on my system.


    Then came the agesa 1.0.0.6 pinnacle update and all the problems we're fixed and everything became stable.


    As more bios updates came out and I updated to them I started getting strange fan behaviour and the system becoming a little unstable again (random freezes and if I played a video on YouTube on windows when I would go full screen I would get audio but the screen would just be green).


    So things were clearly bios related so I contract gigabyte support with this issue and they were a great help. Basically latest is not greatest these days it appears and it worked for me.

    The tech support told me there is no benefit being on anything higher for the bios version than the final version of pinnacle PI as anything after that is just updates for amd 3000 series or up and coming processors.


    I questioned that as the latest bios also stated "improved boot times" but they said that's irrelevant to me as that's improved boot times for amd 3000 series not my 2200g.

    Also as newer processors come out they will have to remove older generation support as the bios is limited to a certain size, this means the motherboard will support a wide range of processors but will require different bios versions depending what you use.

    I was advised to use bios with agesa 1.0.0.6 pinnacle PI as this is the final version for 2200g anything after that is just support for newer stuff.

    Followed there advise updated drivers from amd and everything works fine now.

    Also Ubuntu since updated to to kernel 5.0.x so that also now works.

    Also I need to add for me libreelec didn't work until the beta reached kernel 5.0.x which I believe was libreelec 9.1 the old 8.2.5 didn't work for me and wouldn't boot just like any other Linux distro below kernel 5.

    Since 9.1.501 le has been solid for Me, had a few boot warnings but one was because I had virtualisation switched on in my bios and the other is apparently safe to ignore as it's only a warning and fixed in later kernel.


    Hope some of this can help you as it can be frustrating.


    But the fact my setup is pretty much same as yours (I think) and works fine you should be good if you follow what I did.


    Rob

    stay away from combi bios for that cpu.

    I have same setup as you and mine works fine.

    But didn't on most recent bios.

    I settled for agesa 0.0.7.2 which I believe is pinnacle


    I play games watch live tv, movies, tv shows etc most of the day and have no problems, I also play a lot of h265 and 4k h265 all work fine.

    I'm also running the 2200g on my build.

    Mine is working pretty solid now after tweaking for a little while.


    You must of been lucky, my system wouldn't boot until le 9.1.501


    No Linux os worked on my system until kernel version 5.0.x

    Anything 4.19 kernel or below wouldn't boot, I just got stuck with black screen.


    Maybe try a different bios version for your motherboard. That's what solved most of my problems simply by downgrading the bios.

    Hi, I've managed to solve this.

    It was indeed my autostart.sh file


    Using the script from the wiki for the prevent idle shutdown works fine.


    Ive added stuff to the autostart.sh in the past and though I knew what I was doing lol.


    Looking at the wiki for autostart it became clear I needed to use the nohup command to keed the script running.


    Thanks again for the help suppose I just needed a little extra time on this to solve it.


    Rob

    Thanks will give this a try tomorrow when I get a spare half hour.


    Im wondering if it might be something to do with the autostart script to be honest.


    The fact it works with a reboot, and works if I power it of then on again, but when it sleeps then wakes that's when it no longer works.


    I'll try the above script and let you know.


    Thanks

    Hi all.


    Somebody a while back pointed me in the direction of useful shell scripts wiki for wanting to wake and sleep my computer running libreelec.


    Im having a hard time trying to get it working correctly.


    I have created a prevent_idle_shutdown.sh file in the config directory containing the scripts from here Useful shell scripts [LibreELEC.wiki]


    I have then added what I need to to the autostart.sh file


    After that I have ran chmod +x on both files to make sure the executable and rebooted.


    Then running my pi over samba shares this will prevent my computer from going to sleep, and when stopping the media on the pi the main computer will go to sleep.


    My problem is that the next time the computer wakes it will not sleep after the time I have set, it's almost like the script is keeping it awake even though nothing is connecting to it, so basically it only works once.


    Anybody know anything about this.


    Thanks