Jump to content

[HELP] LYRICS MONITOR PROJECT


Rodrigo Elizei
Go to solution Solved by usual user,

Recommended Posts

Hello, guys!
I would appreciate so much if you could help me develop my project.
English isn't my native language(but I can understand very well) and I'm a beginner on Linux world. But I've made some progress so far and I'm really focused on that.
I have been searching a lot for more than 20 days about the topics below but I'm really struggling with some issues.

 

MY SETUP:
-MXQ PRO 4K- Rockchip RK3228A - Nand Flash 1GB
-Armbian_22.02.0-trunk_Rk322x box_focal_legacy_4.4.194_xfce_desktop.img

 

GOAL:
-Displaying in full screen my PDF lyrics  on stage and switch the pages using a footswitch.

 

GOALS ALREADY REACHED:
-Installed Armbian on my board(following the instructuions provided here);
-Opened PDF lyrics full screen with Evince application;
-Switched the lyrics using the usb footswitch I made.


So, the "basic" is already working.

 

THINGS I NEED TO SET UP(AND NEED A LOT OF HELP):

1- I need to enable the IR Remote which comes with the board.(because on stage I won't be able to use a mouse to open the files)
I wrote "evtest" on terminal and found this information:

 

":~$ evtest
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
/dev/input/event0:    RC for dw_hdmi
/dev/input/event1:    SIGMACHIP Usb Mouse
/dev/input/event2:    USB OPTICAL MOUSE 
/dev/input/event3:    USB USB Keyboard
/dev/input/event4:    USB USB Keyboard
/dev/input/event5:    gpio_ir_recv
Select the device event number [0-5]:  12466    "

 

Well, the last option was the one that worked. But I don't know how to enable this device. I also found out that the device that worked in my test, is "connected" to the rc1 folder, not the rc0.
I've tried several tutorials with keymaps and lirc, but no success. I'm totaly lost.

 

2- I need to "hide" all the boot information during starup. I've already tried every tutorial available and nothing seems to work. I would like to put a logo or a welcome message or simply hide all the text displayed on startup process.(yes, I've tried plymouth too, but it didn't work).

 

3- I would like to improve the general performance of my project (faster boot, faster window opening, better use of ram, etc...)
I understand the limitation of my hardware, but since I need to use just one application(Evince), nothing else, I think I can remove or desable some tools and functionalities. But I don't know which ones. 

 

My dream is to make an embedded system only for this application, or run this application on kiok mode. But I know that I'm not able yet! haha

 

I really appreciate if any of you can help me with any of those issues.

Thank you.

Link to comment
Share on other sites

  • Solution
9 hours ago, Rodrigo Elizei said:

gpio_ir_recv

The hard work is already done, the kernel enumerates your IR device. Basically, only a suitable keymap is missing to emit the key codes you want. Each IR remote control sends different scan codes and each user expects different keycodes that are triggered at the touch of a button, so it is up to each user to create a corresponding keymap. Use ir-keytable -s rc1 -tp all from the v4l-utils ackage to determine the scan codes and assign them a keycode in e.g. a MXQ-PRO-4K.toml (man rc_keymap). If the MXQ-PRO-4K.toml located in the /etc/rc_keymaps directory is also registered in /etc/rc_maps.cfg, it will be loaded at system startup and the remote control will work out-of-the-box, e.g.:

*       rc-empty                 MXQ-PRO-4K.toml

 

Link to comment
Share on other sites

Thank you for replying!

I tried but I could do it. I don't know how to work with the options and the arguments provided in the link you sent me.

When I write "ir-keytable", I get this:

 

Found /sys/class/rc/rc0/ with:
    Nome: RC for dw_hdmi
    Driver: cec
    Default keymap: rc-cec
    Input device: /dev/input/event0
    Supported kernel protocols: cec 
    Enabled kernel protocols: cec 
    barramento: 30, fornecedor/produto:0000:0000, versão: 0x0001
    Intervalo de repetição = 125 ms, período de repetição = 125 ms
Found /sys/class/rc/rc1/ with:
    Nome: gpio_ir_recv
    Driver: gpio_ir_recv
    Default keymap: rc-rktvbox
    Input device: /dev/input/event5
    Supported kernel protocols: rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon 
    Enabled kernel protocols: nec 
    barramento: 25, fornecedor/produto:0001:0001, versão: 0x0100
    Intervalo de repetição = 500 ms, período de repetição = 125 ms

 

Mine is the second one (in bold). But I don't know to "switch' to this one. So, every tutorial I try to follow doesn't work, because it seems that the first one is the main device.

Link to comment
Share on other sites

1 hour ago, Rodrigo Elizei said:

I tried but I could do it.

The necessary command has already been given before:

ir-keytable -s rc1 -tp all

It can be used to collect the scancodes to create the MXQ-PRO-4K.toml. The link has been provided to look up the meaning of the specified parameters and to obtain further background information. This command shows what the contents of the MXQ-PRO-4K.toml should look like:

man rc_keymap

For reference see the *.toml files that come with v4l-utils.

With your provided information, the /etc/rc_maps.cfg entry must look like this:

*       rc-rktvbox                 MXQ-PRO-4K.toml

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines