(Solved) (Hardkernel) Remote Control Help

Post Reply
domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

(Solved) (Hardkernel) Remote Control Help

Unread post by domcc » Tue May 21, 2019 2:58 am

Just received my replacement of the N2. Still cannot use the Ubuntu OS for some reason...Have tried both CoreElec and Android and the remote works flawlessly without editing or configuring anything..Thanks all..... Am running the Ubuntu EMMC module on the N2. Have tried to activate the remote from some of the posts on these forums and elsewhere. Can't seem to get it right. A USB air mouse isn't working either.
The OS with a regular keyboard and mouse is running very good.
Are there simpler instructions for a non tech anywhere??? Thanks
Last edited by domcc on Mon Jun 17, 2019 2:42 am, edited 2 times in total.

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by odroid » Tue May 21, 2019 9:22 am

Try this instruction and let us know if you have any further questions.
https://wiki.odroid.com/odroid-c2/appli ... buntu18.04

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by domcc » Wed May 22, 2019 3:16 am

Have tried the instructions in the the link a number of times.. The ls code gives me this---ls: cannot access '/dev/lirc*': No such file or directory....

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by mad_ady » Wed May 22, 2019 4:44 am

Have you run this command?

Code: Select all

sudo /sbin/modprobe meson-ir
I found that it's better to have meson-ir under /etc/modules than to have it loaded by lirc. An extra benefit is you get /dev/lirc0 with lirc off so you can use it with mode2 for example.

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by domcc » Wed May 22, 2019 5:31 am

Nothing comes up with this command...

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by tobetter » Wed May 22, 2019 8:52 am

domcc wrote:
Wed May 22, 2019 5:31 am
Nothing comes up with this command...
If you do not have the device node /dev/lirc0, then you would not install the LIRC package and not configured properly. In oder to have it, you must check 1) if the package lirc is installed 2) lircd is running.

Could you share the output of lsmod and systemctl lirc status?

joy
Posts: 863
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 9 times
Been thanked: 39 times
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by joy » Wed May 22, 2019 9:31 am

Let me check it with the latest version today.

joy
Posts: 863
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 9 times
Been thanked: 39 times
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by joy » Wed May 22, 2019 12:15 pm

Hi domcc,
I've checked remote control with the latest release version again
and it works normally.

I'm using the Ubuntu 18.04 Mate and version is as following.

Code: Select all

$ uname -a
Linux odroid 4.9.177-28 #1 SMP PREEMPT Thu May 16 23:10:54 -03 2019 aarch64 aarch64 aarch64 GNU/Linux

Code: Select all

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic
Can you share your /etc/lirc/lirc_options.conf and all files in /etc/lirc/lircd.conf.d/*?

And which remote controller do you use?

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by domcc » Thu May 23, 2019 1:55 am

First..Thanks for for your input......I'm using the Harknel remote. Was editing lirc_options.conf for ODROID-C2 and ODROID-N2 file. I believe I should be using this (snippet) file...lircd.conf.d/hk.lircd.conf...So should I delete,rename lirc_options.conf file and add the hk.lircd.conf to the lirc folder or just edit the options conf file with the hk snippet???

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by domcc » Thu May 23, 2019 6:14 am

Got it to work just one time with the irw command. The keyboard quit working. Rebooted and back to square one. Nothing, Have no idea where the glitch is,

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by domcc » Thu May 23, 2019 9:01 am

Final thought.....There is a glitch somewhere in the system. Don't know if its hardware ,firmware or os.After the install of lirc it shows up in the lsmod prompt. After a reboot , it doesn't show. I've done this a number of times. It shows on install . disappears on reboot.????????

joy
Posts: 863
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 9 times
Been thanked: 39 times
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by joy » Thu May 23, 2019 12:18 pm

@domcc,
Thank you for sharing your status.
Let's check the detailed configurations.

1. meson-ir module
Please check meson-ir module is loaded well.

Code: Select all

$ lsmod | grep meson_ir

meson_ir               16384  0

2. /dev/lirc0

Code: Select all

ls /dev/lirc*
/dev/lirc0
If you don't have the node, /etc/lirc/lircd_options.conf file doesn't include its proper configuration.
If there is no /dev/lirc0, please share lircd_options.conf file and lircd.conf.d/hk.lircd.conf here.
Those files should be located in following path.

Code: Select all

/etc/lirc/lircd_options.conf
/etc/lirc/lircd.conf.d/hk.lircd.conf
3. lircd service
Please check lircd service status and share the result here.

Code: Select all

~# service lircd status
  lircd.service - Flexible IR remote input/output application support
   Loaded: loaded (/lib/systemd/system/lircd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-05-23 02:51:51 UTC; 14min ago
     Docs: man:lircd(8)
           http://lirc.org/html/configure.html
 Main PID: 2455 (lircd)
   CGroup: /system.slice/lircd.service
           ─2455 /usr/sbin/lircd --nodaemon

May 23 02:51:51 odroid lircd[2455]: lircd-0.10.0[2455]: Notice: accepted new client on /var/run/lirc/lircd
May 23 02:51:51 odroid lircd-0.10.0[2455]: Warning: min_gap_length is 0 for 'odroid' remote
May 23 02:51:51 odroid lircd[2455]: lircd-0.10.0[2455]: Info: [lirc] protocol is enabled
May 23 02:51:51 odroid lircd[2455]: lircd-0.10.0[2455]: Notice: accepted new client on /var/run/lirc/lircd
May 23 02:51:51 odroid lircd-0.10.0[2455]: Warning: max_gap_length is 0 for 'odroid' remote
May 23 02:51:51 odroid lircd-0.10.0[2455]: Notice: lircd(default) ready, using /var/run/lirc/lircd
May 23 02:51:51 odroid lircd-0.10.0[2455]: Notice: accepted new client on /var/run/lirc/lircd
May 23 02:51:51 odroid lircd-0.10.0[2455]: Info: [lirc] protocol is enabled
May 23 02:51:51 odroid lircd-0.10.0[2455]: Notice: accepted new client on /var/run/lirc/lircd
May 23 02:51:51 odroid lircd-0.10.0[2455]: Notice: accepted new client on /var/run/lirc/lircd

Code: Select all

$ service --status-all
.....
 [ + ]  lircd
 [ + ]  lircmd
.....
4. irw
And you said you got it to work just one time.
Did you have key event with irw command?

Code: Select all

# irw

( key input )

000000004db24bb4 00 KEY_DOWN odroid
000000004db2837c 00 KEY_RIGHT odroid
000000004db253ac 00 KEY_UP odroid
......
Please share the test result here,
then, we can define if there is hw faulty.

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by domcc » Thu May 23, 2019 2:05 pm

From the web..Lirc broken on 18.4 https://bugs.launchpad.net/ubuntu/+sour ... ug/1788235

I cannot give any outputs from the prompts since the module does not show up with lsmod command. "" It just disappears"". The conf files are ok. I've checked and double checked.

I will look into the workaround tomorrow .time permitting.. Thank you

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by mad_ady » Thu May 23, 2019 4:01 pm

Most likely lirc doesn't start correctly and doesn't load your module. Try modprobe meson-ir

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by domcc » Thu May 23, 2019 9:11 pm

Correct , Lirc module doesn't load.
modprobe meson-ir returns nothing..

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by mad_ady » Thu May 23, 2019 9:58 pm

Can you run lsmod | grep meson-ir after running modprobe? The fact that modprobe doesn't say anything is a good thing.
You can add meson-ir to /etc/modules so that it's loaded on boot by the system instead of relying on lirc.

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by domcc » Fri May 24, 2019 2:45 am

I need to close this thread . The remote works sporadically.When it does work , it interferes with the mouse and the keyboard doesn't work. I reboot and the remote doesn't work. Nothing else I can do at the moment. Thanks for all the responses.

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by odroid » Fri May 24, 2019 9:10 am

Let us help you to solve the issue of auto-loading the meson-ir driver.

BTW, can you tell me which mouse and keyboard do you use? Is it a generic USB input device?

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by domcc » Sat May 25, 2019 12:48 am

I have a Lanovo wired usb keyboard and an HP wireless mouse (new).
I also tried to use a wireless mini keyboard and an air mouse which the unit did not recognize. I believe at least the air mouse should have worked.

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by domcc » Sat May 25, 2019 1:29 am

One other problem is that on reboots the mouse cursor does not line up with the desktop icons. That is ,when I click on a certain icon some other program opens up. Not the one I clicked on, And reboot etc etc etc.
I have been using Linux for a number of years and have always been able to find a fix for problems ?????????

joy
Posts: 863
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 9 times
Been thanked: 39 times
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by joy » Sun May 26, 2019 11:26 am

Hi domcc,
To clarify the basic setup instruction of LIRC on Ubuntu 18.04, let me explain the setup process here.

1. Install N2 Ubuntu 18.04 Mate Image on my eMMC
https://wiki.odroid.com/odroid-n2/os_im ... te_desktop

2. Booting and update all packages to the latest one

Code: Select all

$ sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y

Code: Select all

$ sudo reboot
After this procedure and system reboot, I can get the kernel package version as following.

Code: Select all

$ uname -a
Linux odroid 4.9.177-28 #1 SMP PREEMPT Thu May 16 23:10:54 -03 2019 aarch64 aarch64 aarch64 GNU/Linux
3. Install LIRC
https://wiki.odroid.com/odroid-c2/appli ... buntu_1804

Code: Select all

$ sudo apt-get install lirc 
4. Set-up lirc_options.conf
Modify /etc/lirc/lirc_options.conf.
https://wiki.odroid.com/odroid-c2/appli ... ver_module
Here is my /etc/lirc/lirc_options.conf.

Code: Select all

[lircd]
nodaemon        = False
driver          = default
device          = /dev/lirc0
output          = /var/run/lirc/lircd
pidfile         = /var/run/lirc/lircd.pid
plugindir       = /usr/lib/aarch64-linux-gnu/lirc/plugins
permission      = 666
allow-simulate  = No
repeat-max      = 600
#effective-user =
#listen         = [address:]port
#connect        = host[:port]
#loglevel       = 6
#release        = true
#release_suffix = _EVUP
#logfile        = ...
#driver-options = ...
 
[lircmd]
uinput          = False
nodaemon        = False
 
[modinit]
code = /sbin/modprobe meson-ir
 
[lircd-uinput]
add-release-events = True
release-timeout    = 50
release-suffix     = _EVUP
And restart lircd service.

Code: Select all

$ sudo service lircd restart

At this step,
If the setup with /etc/lircd/lirc_options.conf normally, you can get /dev/lirc0 node and meson-ir that is loaded normally,
because lircd service on Ubuntu 18.04 (lirc package 0.10.0) will load meson-ir module automatically based on the following line in licd_options.conf.

Code: Select all

[modinit]
code = /sbin/modprobe meson-ir
Some users made a very small mistake (like comment the line, #[modinit]...) and they couldn't see lirc node or meson-ir loaded.
So I asked you to share your lirc_options.conf file here.

Could you show me /etc/lirc/lirc_options.conf file of your card?


And how about the LIRC result without USB devices?

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by domcc » Tue May 28, 2019 1:09 am

"/etc/lirc/lircd_options.conf" file

[lircd]
nodaemon = False
driver = default
device = dev/lirc0
output = /var/run/lirc/lircd
pidfile = /var/run/lirc/lircd.pid
plugindir = /usr/lib/aarch64-linux-gnu/lirc/plugins
permission = 666
allow-simulate = No
repeat-max = 600
#effective-user =
#listen = [address:]port
#connect = host[:port]
#loglevel = 6
#release = true
#release_suffix = _EVUP
#logfile = ...
#driver-options = ...

[lircmd]
uinput = False
nodaemon = False

[modinit]
code = /sbin/modprobe meson-ir

# [lircd-uinput]
# add-release-events = True
# release-timeout = 50
# release-suffix = _EVUP

lsmod | grep meson_ir
meson_ir 16384 0

odroid@odroid:~$ irw
000000004db24bb4 00 KEY_DOWN odroid
000000004db24bb4 01 KEY_DOWN odroid
000000004db2738c 00 KEY_ENTER odroid
000000004db2738c 01 KEY_ENTER odroid
'all key presses give me double entries"

systemctl lirc status
Unknown operation lirc


When I try the remote a couple of presses work. Then is freezes.
This is with the keyboard and mouse.
The same thing without the keyboard and mouse.

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by mad_ady » Tue May 28, 2019 2:33 am

The dev entry is missing a forward slash: device = dev/lirc0

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: ( Hardkernel) Remote Control Help

Unread post by domcc » Tue May 28, 2019 4:10 am

Thank you....fixed

This is what I get with the irw test.

odroid@odroid:~$ irw

000000004db253ac 00 KEY_UP odroid
^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A000000004db2738c 00 KEY_ENTER odroid

000000004db2738c 01 KEY_ENTER odroid
000000004db24bb4 00 KEY_DOWN odroid
^[[B000000004db24bb4 01 KEY_DOWN odroid
^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B000000004db2738c 00 KEY_ENTER odroid
^[[B^[[B^[[B000000004db2738c 01 KEY_ENTER odroid
^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[

joy
Posts: 863
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 9 times
Been thanked: 39 times
Contact:

Re: [SOLVED] (Hardkernel) Remote Control Help

Unread post by joy » Tue May 28, 2019 12:12 pm

@mad_ady,
Thank you, mad_ady. ;)

(updated)
Hi @domcc,
It looks now remote controller works normally as I checked your irw output.
https://wiki.odroid.com/odroid-c2/appli ... ow_to_test

Can you share remaining problem related to this?

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by domcc » Tue May 28, 2019 9:26 pm

Thank you..

When I try to use the remote, only a couple of clicks work.
Then it freezes. The keyboard stops working.

When I reboot without the keyboard the same thing happens. The remote freezes.

I would be happy using an air mouse but the one I have does not work with this N2.

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by tobetter » Tue May 28, 2019 9:38 pm

domcc wrote:Thank you..

When I try to use the remote, only a couple of clicks work.
Then it freezes. The keyboard stops working.

When I reboot without the keyboard the same thing happens. The remote freezes.

I would be happy using an air mouse but the one I have does not work with this N2.
Is your N2 completely frozen so you cannot do anything? Or only remote does not work?
Can you get the output with "lsusb -t" on your N2?

"Tapatalk wishes you to have fun with ODROID"


domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by domcc » Tue May 28, 2019 11:44 pm

The N2 itself works fine. Have been trying to get the remote working before I do anything else.
Here are the symptoms
1..Everything boots up fine with the (wired) keyboard and wireless mouse .
I try the remote and maybe get one or two clicks and then it freezes. The keyboard stops working.
2..I reboot without the keyboard and mouse.Then try the remote. Same thing happens One or two clicks . The remote freezes. Doesn't work.
3. Tried an air mouse and a mini keyboard also .Not recognized at all.
4.. Output of lsusb -t

odroid@odroid:~$ lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by tobetter » Tue May 28, 2019 11:52 pm

domcc wrote:
Tue May 28, 2019 11:44 pm
The N2 itself works fine. Have been trying to get the remote working before I do anything else.
Here are the symptoms
1..Everything boots up fine with the (wired) keyboard and wireless mouse .
I try the remote and maybe get one or two clicks and then it freezes. The keyboard stops working.
2..I reboot without the keyboard and mouse.Then try the remote. Same thing happens One or two clicks . The remote freezes. Doesn't work.
3. Tried an air mouse and a mini keyboard also .Not recognized at all.
4.. Output of lsusb -t

odroid@odroid:~$ lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M
So the regardless of connecting keyboard and mouse, the remote does not work after a couple of clicks. But still N2 is working fine.
Would you do lsusb command for me, please? Maybe the driver of Air mouse or mini keyboard are not compiled with the kernel.

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by domcc » Wed May 29, 2019 12:41 am

Correct . N2 is working fine. remote not working.
Mini keyboard seems to be working now.
Air Mouse not working. Cannot find drivers for it.Bus 001 Device 0006 ID 25a7:7001

droid@odroid:~$ lsusb
Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 25a7:0701
Bus 001 Device 005: ID 04b3:3025 IBM Corp. NetVista Full Width Keyboard
Bus 001 Device 004: ID 03f0:3d4a Hewlett-Packard
Bus 001 Device 003: ID 0c45:3451 Microdia
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by tobetter » Wed May 29, 2019 1:36 am

domcc wrote:
Wed May 29, 2019 12:41 am
Correct . N2 is working fine. remote not working.
Mini keyboard seems to be working now.
Air Mouse not working. Cannot find drivers for it.Bus 001 Device 0006 ID 25a7:7001

droid@odroid:~$ lsusb
Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 25a7:0701
Bus 001 Device 005: ID 04b3:3025 IBM Corp. NetVista Full Width Keyboard
Bus 001 Device 004: ID 03f0:3d4a Hewlett-Packard
Bus 001 Device 003: ID 0c45:3451 Microdia
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The Aire Mouse with 25a7:7001, I cannot find out the driver in the current kernel tree...Can you post the link of your mouse how it looks like?
If you are using HK's stock remote, I would suggest doing in Petitboot. Power off your N2 and place the boot select switch to SPI and power on while HDMI cable is attached. If everything is fine, you will see Petitboot screen and try to press up and down if the menu cursor is moving one at a time when you press a button. If the hardware is ok and the remote is ok...it should work, I think.

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by mad_ady » Wed May 29, 2019 2:33 am

Wow - you have implemented ir support in petitboot? That's great! I need to try it out...

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by tobetter » Wed May 29, 2019 3:03 am

mad_ady wrote:
Wed May 29, 2019 2:33 am
Wow - you have implemented ir support in petitboot? That's great! I need to try it out...
:( Only HK remote controller, since it works as a standard input event device which is not LIRC.

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by mad_ady » Wed May 29, 2019 3:29 am

It can be emulated by other remotes, so I wouldn't worry.
Is there a kernel driver that handles the ir to keyboard input conversion, since you're not running lirc?
Is the driver available for stock ubuntu as well?

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by tobetter » Wed May 29, 2019 4:10 am

mad_ady wrote:
Wed May 29, 2019 3:29 am
It can be emulated by other remotes, so I wouldn't worry.
Is there a kernel driver that handles the ir to keyboard input conversion, since you're not running lirc?
Is the driver available for stock ubuntu as well?
Here you are, this driver is enabled for the kernel in SPI flash memory and for Ubuntu, they can be enabled and the custom keymap can be added.
https://github.com/hardkernel/linux/blo ... te_meson.c
https://github.com/hardkernel/linux/blo ... s.dts#L207
These users thanked the author tobetter for the post:
mad_ady (Wed May 29, 2019 1:10 pm)

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by domcc » Wed May 29, 2019 4:34 am

The remote scrolls in petiboot.
Am going to start over. delete lirc.etc etc etc
Thanks all

domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by domcc » Thu May 30, 2019 5:35 am

Update-------My hunch was right. Its either the module or the Ubuntu os that is not right. (corrupted). Just burned Android to sd card ,booted without any glitches and the remote is working without any configuration. I know that this is for another thread, but can the emmc module be re flashed through adb fastboot or putty?

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by tobetter » Thu May 30, 2019 8:32 am

domcc wrote:Update-------My hunch was right. Its either the module or the Ubuntu os that is not right. (corrupted). Just burned Android to sd card ,booted without any glitches and the remote is working without any configuration. I know that this is for another thread, but can the emmc module be re flashed through adb fastboot or putty?
Do you want to flash Ubuntu Mate image to eMMC and having difficulty to do so since you do not have eMMC adaptor?

"Tapatalk wishes you to have fun with ODROID"


domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by domcc » Thu May 30, 2019 8:51 am

Yes. I was reading about needing the adapter. I was just wondering if it can be done with adb or the otg port.Nothing important right now, just playing around.. I can use Android for what I need.

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by tobetter » Thu May 30, 2019 9:10 am

domcc wrote:Yes. I was reading about needing the adapter. I was just wondering if it can be done with adb or the otg port.Nothing important right now, just playing around.. I can use Android for what I need.
I don't know how much you are familiar with Linux command line too, one thing what you do flash the image on the N2 itself is using the command "dd". I am not sure if Android has the command, but Petitboot has it.

You can download the target image and extact it into USB stick, then plug it to N2. On Android or Petitboot which has "dd" command, you can flash the image to eMMC. Assuming that the image file name is "os.img" in USB stick in which device node is "/dev/sda" and eMMC is always "/dev/mmcblk0", this command would work.

" dd if=<mount/entry/of/your/USB/stick> of=/dev/mmcblk0 conv=fsync" where the directory mounted with /dev/sda0, for example.

Since it happens on N2, not PC, the performance would be slow but would work.

But before doing this, it would be worth to run Ubuntu on SD to test if LIRC works or not.

"Tapatalk wishes you to have fun with ODROID"


domcc
Posts: 23
Joined: Tue May 21, 2019 1:56 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by domcc » Thu May 30, 2019 11:18 am

Thanks for the response. Will give it it a try the next couple days. Hope to have some fun with this!!!!!!

phaseshifter
Posts: 3464
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 37 times
Been thanked: 42 times
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by phaseshifter » Fri May 31, 2019 2:11 pm

i have not read the complete thread but i own an original remote from h-k brought it years ago .."thinking one day i`ll use it""...never had batteries in it from mem have to find it..lol..

does it work with petitboot out of the box...????

EDIT :: i found it i`ll try for my self and see if it dont work i`m not going to hijack this thread ..phase...!!!

RE-EDIT:: nice it does work...for petitboot..dont know that i have much use for it otherwise so far but yes quite cool..
Last edited by phaseshifter on Fri May 31, 2019 5:56 pm, edited 1 time in total.
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: (Hardkernel) Remote Control Help

Unread post by tobetter » Fri May 31, 2019 2:31 pm

phaseshifter wrote:
Fri May 31, 2019 2:11 pm
does it work with petitboot out of the box...????
HK stock remote works in Petitboot out of the box. :)
These users thanked the author tobetter for the post:
phaseshifter (Fri May 31, 2019 5:57 pm)

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest