Showing posts with label OpenELEC. Show all posts
Showing posts with label OpenELEC. Show all posts

Tuesday, March 5, 2019

Install font to LibreELEC or OpenELEC

How to install new font to LibreELEC or OpenELEC

Login with root to LibreELEC or OpenELEC.

# mkdir -p /storage/.xbmc/media/Fonts
or
# mkdir -p /storage/.kodi/media/Fonts

Upload truetype font to this path.

Reboot again.


Friday, March 25, 2016

Live TV DVB-T2 with VDR Addons on OpenELEC

I have Geniatech DVB-T2 Stick T220.
I use OpenELEC to play Live TV with it.



Current version of OpenELEC is 6.0.3.

First install services add-ons VDR PVR Backend.
Goto: System -> Settings -> Add-ons -> Install from repository -> OpenELEC Add-ons (offical) -> Services -> VDR PVR Backend



Install VDR PVR Backend

After Installed. Go back to PVR clients.

Install VDR VNSI Client (If VDR VNSI Client is not installed)

Select Configure of VDR VNSI Client.

Enable create channel groups automatically on the server And OK.

Next Goto Home -> Programs -> VDR Configuration


Select Channel scanner Configuration


Start scanning TV channel.
Select 
  • Tuner Type: DVB-T
  • Country: <your location>
  • Cleanup all
And Start


After scan completed. Select Close.

Enable TV menu on OpenELEC
Goto: Home -> System -> Settings -> TV

Select Enable:  General -> Enabled and Synchronis channel groups with backend(s)


Go back to Home and Select TV

Now already to watch Live TV from DVB-T2 Device and recording.

Have a good day. :)


Addition:

VDR PVR Backend has other plugins to use.
You can enable on configure menu.

Goto: Home -> System -> Settings -> Add-ons -> Install from repository -> OpenELEC Add-ons (offical) -> Services -> VDR PVR Backend

Select Configure.

You can enable other plugins if you want to use.



Reference:
VDR - The Video Disk Recorder

VDR Wiki

Tuesday, August 11, 2015

How to use own remote control for LibreELEC or OpenELEC

IR Receiver (TSOP44.., TSOP48.., TSOP38238, ...)


Connect IR Receiver to Raspberry Pi

Vcc -> 3V
GND -> GND
Vout -> GPIO 18









Load LIRC module on boot.
Edit /boot/config.txt
Add line

dtoverlay=lirc-rpi
***For new kernel***
dtoverlay=gpio-ir


or (change GPIO pin in for IR Receiver)
dtoverlay=lirc-rpi,gpio_out_pin=17,gpio_in_pin=18
*** For new kernel ***
dtoverlay=gpio-ir,gpio_pin=18,gpio_pull=up
See on :


Learning own remote control

Kill Process of LIRCD

# killall lircd

Start learning remote control button.

# irrecord /storage/.config/lircd.conf

irrecord -  application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

This program will record the signals from your remote control
and create a config file for lircd.


A proper config file for lircd is maybe the most vital part of this
package, so you should invest some time to create a working config
file. Although I put a good deal of effort in this program it is often
not possible to automatically recognize all features of a remote
control. Often short-comings of the receiver hardware make it nearly
impossible. If you have problems to create a config file READ THE
DOCUMENTATION of this package, especially section "Adding new remote
controls" for how to get help.

If there already is a remote control of the same brand available at
http://www.lirc.org/remotes/ you might also want to try using such a
remote as a template. The config files already contain all
parameters of the protocol used by remotes of a certain brand and
knowing these parameters makes the job of this program much
easier. There are also template files for the most common protocols
available in the remotes/generic/ directory of the source
distribution of this package. You can use a template files by
providing the path of the file as command line parameter.

Please send the finished config files to  so that I
can make them available to others. Don't forget to put all information
that you can get about the remote control in the header of the file.

Press RETURN to continue.


Now start pressing buttons on your remote control.

It is very important that you press many different buttons and hold them
down for approximately one second. Each button should generate at least one
dot but in no case more than ten dots of output.
Don't stop pressing buttons until two lines of dots (2x80) have been
generated.

Press RETURN now to start recording.

................................................................................
Found const length: 107201
Please keep on pressing buttons like described above.
................................................................................
Space/pulse encoded remote control found.
Signal length is 67.
Found possible header: 8951 4451
Found trail pulse: 572
Found repeat code: 8961 2214
Signals are space encoded.
Signal length is 32
Now enter the names for the buttons.

Please enter the name for the next button (press  to finish recording)
KEY_POWER

Now hold down button "KEY_POWER".

Please enter the name for the next button (press  to finish recording)
KEY_1

Now hold down button "KEY_1".

Please enter the name for the next button (press  to finish recording)
KEY_2

Now hold down button "KEY_2".

Please enter the name for the next button (press  to finish recording)
KEY_3

Now hold down button "KEY_3".

Please enter the name for the next button (press  to finish recording)
...


If you want to know irrecord key and button name list, use this command.

# irrecord --list

It will display list of key and button name.

IR Remote Key on Raspberry PI (See on file /etc/lirc/lircd.conf.rpi)

KEY_POWER
KEY_1
KEY_2
KEY_3
KEY_4
KEY_5
KEY_6
KEY_7
KEY_8
KEY_9
KEY_0
KEY_VOLUMEUP
KEY_VOLUMEDOWN
KEY_MUTE
KEY_EXIT
KEY_CHANNELUP
KEY_CHANNELDOWN
KEY_INFO
KEY_UP
KEY_LEFT
KEY_RIGHT
KEY_DOWN
KEY_OK
KEY_MENU
KEY_AUDIO
KEY_VIDEO
KEY_BACKSPACE
KEY_PLAY
KEY_PAUSE
KEY_FORWARD
KEY_STOP
KEY_RADIO
KEY_TEXT
KEY_TITLE
After finish all key. Press Enter for finished.

(If you type incorrect or some problem about step, delete file /storage/.config/lircd.conf and run irrecord command)

Reboot.

# shutdown -r now

Test IR Remote for control menu.



Reference :

Device Tree overlays
https://github.com/raspberrypi/firmware/tree/master/boot/overlays

Guide To lirc rpi GPIO Receiver
http://wiki.openelec.tv/index.php?title=Guide_To_lirc_rpi_GPIO_Receiver

Guide to add your own remote
http://wiki.openelec.tv/index.php/Guide_to_add_your_own_remote

Sunday, November 10, 2013

Geniatech DVB-T2 Stick T220 for OpenELEC on Raspberry Pi

Linux kernel 3.14 and later is support Geniatech DVB-T2 Stick T220 Driver.

Current version of OpenELEC support it.

Raspberrypi kernel source code
https://github.com/raspberrypi/linux

If you use OpenELEC, current firmware (version 4.0.x and later) is support this device.

See on http://openelec.tv/news/22-releases/129-openelec-4-0-4-released


Below for old firmware (OpenELEC version 3.xx).

OpenELEC have not Geniatech DVB-T2 Stick T220 Driver.
I want to use DVB-T2 on OpenELEC with tvheadend.
I try to extract Geniatech DVB-T2 Stick T220 driver from CrazyCat
https://bitbucket.org/CrazyCat/s2-liplianin-v39
And create patch file for patch in OpenELEC.

Download : Geniatech DVB-T2 Stick T220 driver patch file

First Step.
Get OpenELEC Source.
(More Information see on Building and Installing OpenELEC for Raspberry Pi on Wiki)
git clone git://github.com/OpenELEC/OpenELEC.tv.git
After get OpenELEC Source.
Download t220 driver patch file and Extract zip file.
Copy linux-215-t220-new.patch file to OpenELEC.tv/packages/linux/patches/<kernel version>/linux-215-t220-new.patch
Build OpenELEC image.
cd OpenELEC.tv
PROJECT=RPi ARCH=arm PVR=yes make release
After build image finished.
Image created on OpenELEC.tv/target path.
Install image to SDCARD for Test.