Ready to give up
#1
Hi

After weeks of hustle I have only managed to accomplish a few things. 

Got my Pi3b started with Retropie and Kodi, too much work with all roms and whatnot.

Changed to OSMC/Kodi, extremely laggy and missed alot like OpenVPN.

Changed to Libre/Open Elec. Took a few days to get NordVPN to work and install some add-ons
that promise more than they deliver. 

Now Im completely stuck on how to add a power button like this: https://www.youtube.com/watch?v=4nTuzIY0i3k 

And nomatterwhat Zach Morris IARL wont function, added RetroArch but it always restarts Kodi after game Launch,
cant even open RetroArch.

Is the Raspberry 3 experience supposed to be this awful? Every forum I visit gives more questions than answers.
Reply
#2
As the video says....LibreELEC isn't based on debian. So to use that, I guess you have to use something else.

Did you see the links in the description of that YT video? There should be everything you need. Ifyouhave problems at a specific point, then please ask more precise questions where you might be stuck and we try to help as much as we can.
Reply
#3
Thank you for answer.

I knew debian was different but I find it strange they cant make a "on/off" script for OpenElec. 

Went back to OSMC. Got Putty to work (finally) so I can do stuff better now.

Still strange that RetroArch crashes.
Reply
#4
This is the text from the youtube description:


Code:
VERSION 1.1
apt-get with the following command :
     
      
  1.  sudo apt-get install update
    
  2.  sudo apt-get install python-dev
 
  3.  sudo apt-get install python3-dev
 
  4.  sudo apt-get install gcc
 
  5.  sudo apt-get install python-pip




Next you need to get RPi.GPIO:

  6.  wget https://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.11.tar.gz


Uncompress the packages:

  7.  sudo tar -zxvf RPi.GPIO-0.5.11.tar.gz



move into the newly created directory:

  8.  cd RPi.GPIO-0.5.11


install the module by doing:

  9.  sudo python setup.py install

  10.  sudo python3 setup.py install


creating a directory to hold your scripts:

  11.  mkdir /home/pi/scripts

call our script shutdown.py (it is written in python). Create and edit the script by doing:

 
  12.  sudo nano /home/pi/scripts/shutdown.py


The content of the script: Paste it in the blank area

#!/usr/bin/python
import RPi.GPIO as GPIO
import time
import subprocess

# we will use the pin numbering to match the pins on the Pi, instead of the
# GPIO pin outs (makes it easier to keep track of things)

GPIO.setmode(GPIO.BOARD)  

# use the same pin that is used for the reset button (one button to rule them all!)
GPIO.setup(5, GPIO.IN, pull_up_down = GPIO.PUD_UP)  

oldButtonState1 = True

while True:
   #grab the current button state
   buttonState1 = GPIO.input(5)

   # check to see if button has been pushed
   if buttonState1 != oldButtonState1 and buttonState1 == False:
     subprocess.call("shutdown -h now", shell=True,
       stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     oldButtonState1 = buttonState1

   time.sleep(.1)


Press CRTL X  Then Y      
    
    

Restart the pi
    
    13.  sudo reboot
    
    
    
configure our script to run at startup,

  14.  sudo nano /etc/rc.local
 

Add the following to the file
 
  sudo python /home/pi/scripts/shutdown.py &

Press CRTL X  Then Y  
As you can see, there are many "sudo apt-get install blabla"
OpenELEC and LibreELEC are read-only systems. Means there's no apt-get for you on those systems. That's why you have to use something else that gives you the option to apt-get something.
Reply
#5
There's a raspberry pi tools add-on for LibreElec (in their repo) which provides RPi.GPIO. So with a little work it could probably be got to work on LE as well, although the script would need slight adjustment to make use of that source for the Python library rather than the one that's expected above.

Python is already available there so that doesn't need any installation.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#6
Finally after many days Im getting things working.

Using OSMC and got both NordVPN and On/Off button to work.

How do I make OSMC less laggy? 

How do I get "RetroArch" and "Internet Archive ROM Launcher" to work?
Both installed but choosing a game in "IARL" and nothing happens.
Reply
#7
You can install VPN using the instructions on the OSMC forum here: https://discourse.osmc.tv/t/howto-osmc-r...lient/1844

Where is OSMC 'lagging'?
Does it occur when you use an add-on, or is it through all menus? Are you using a Class 10 or better SD card, and an adequate PSU?

Most people use Retrosmc for retro-gaming: https://discourse.osmc.tv/t/howto-retrop...-osmc/6671
Reply
#8
(2017-11-08, 17:05)Sam.Nazarko Wrote: Most people use Retrosmc for retro-gaming

Based on what statistics? Where can I see them?
I have nothing against your project, but please stop acting like a salesman here.
Reply
#9
(2017-11-08, 17:40)asavah Wrote:
(2017-11-08, 17:05)Sam.Nazarko Wrote: Most people use Retrosmc for retro-gaming

Based on what statistics? Where can I see them?
I have nothing against your project, but please stop acting like a salesman here.

I meant that most people use Retrosmc for retrogaming on OSMC rather than
retrogaming via a Leia test build on OSMC. He's already said he's using OSMC, so
it's a good option.

OSMC is free software (nothing to sell).
Reply
#10
I'd be curious about where OSMC is laggy too. I'm running it on a Pi3 using my modded Estuary skin with no problems. You really need to purchase the MPEG2 and VC1 licenses for video to play well though. And if you're streaming stuff from a NAS there are some advanced options you can change to make that better too.
Reply
#11
(2017-11-08, 17:05)Sam.Nazarko Wrote: Where is OSMC 'lagging'?
Does it occur when you use an add-on, or is it through all menus? Are you using a Class 10 or better SD card, and an adequate PSU?

Hi

Compared to Libre/Open there is very noticable delay when going 
through menues, even lengthy freezes when opening up addons, folders. 

RPi3B, no overclock, Sandisk class10, 16 GB.
Reply
#12
(2017-11-08, 19:00)Aarni Wrote:
(2017-11-08, 17:05)Sam.Nazarko Wrote: Where is OSMC 'lagging'?
Does it occur when you use an add-on, or is it through all menus? Are you using a Class 10 or better SD card, and an adequate PSU?

Hi

Compared to Libre/Open there is very noticable delay when going 
through menues, even lengthy freezes when opening up addons, folders. 

RPi3B, no overclock, Sandisk class10, 16 GB.

It may be worth starting a forum post on the OSMC forum with a debug log and a bit more information, such as the
skin you are using.
Reply

Logout Mark Read Team Forum Stats Members Help
Ready to give up0