[SOLVED] Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Moderators: odroid, mdrjr

[SOLVED] Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Wed Jul 11, 2018 9:56 am

I installed a fresh copy of Ubuntu 18.04 (v3.0) on my C2 and cannot get the HK IR remote to work. It wont even work with Kodi. Is there an official guide to get the IR Remote setup properly for the Ubuntu 18.04 (v3.0) image on the C2? (It worked flawlessly with the Ubuntu 16.04 (v2.4) image on the same C2).

Code: Select all
odroid@odroid:~$ sudo apt-get install lirc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
lirc is already the newest version (0.10.0-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
odroid@odroid:~$
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby odroid » Wed Jul 11, 2018 10:14 am

Refer this LIRC guide for Ubuntu 18.04.
https://wiki.odroid.com/odroid-c2/appli ... buntu18.04
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Thu Jul 12, 2018 7:02 am

Manually checked it also. there is no lirc0 in the /dev directory

Code: Select all
odroid@odroid:~$ ls /dev/lirc*
ls: cannot access '/dev/lirc*': No such file or directory
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby odroid » Thu Jul 12, 2018 7:35 am

Did you load "meson-ir" driver?
Check "lsmod" output first.
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Thu Jul 12, 2018 8:32 am

Code: Select all
odroid@odroid:~$ lsmod
Module                  Size  Used by
nls_utf8                1409  1
udf                    88464  1
fuse                   91055  3
btusb                  21436  0
snd_usb_audio         134083  2
snd_hwdep               8171  1 snd_usb_audio
snd_seq_dummy           1332  0
snd_usbmidi_lib        22635  1 snd_usb_audio
snd_seq_oss            36653  0
snd_seq_midi            5562  0
snd_seq_midi_event      6376  2 snd_seq_oss,snd_seq_midi
snd_seq                60246  6 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy,snd_seq_midi
smsc95xx               22271  0
snd_rawmidi            23002  2 snd_usbmidi_lib,snd_seq_midi
joydev                 11035  0
snd_seq_device          7162  5 snd_seq,snd_rawmidi,snd_seq_oss,snd_seq_dummy,snd_seq_midi
sg                     30434  0
w1_gpio                 3801  0
wire                   28606  1 w1_gpio
meson_gpiomem           4048  0
gxbb_wdt                3395  0
sch_fq_codel            7827  3
ip_tables              17220  0
ipv6                  387345  61
autofs4                27592  2
sr_mod                 17196  1
cdrom                  30139  1 sr_mod
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Thu Jul 12, 2018 8:57 am

Removed lirc and installed again:

Code: Select all
odroid@odroid:~$ sudo service lircd restart
odroid@odroid:~$ ls /dev/lirc*
/dev/lirc0


Remote still does not work.
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby odroid » Thu Jul 12, 2018 9:48 am

Did you follow the WiKi instructions?
https://wiki.odroid.com/odroid-c2/appli ... controller
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Thu Jul 12, 2018 10:34 am

I have followed the wiki, so many things missing from a new image install...


Code: Select all
odroid@odroid:~$ irw
Cannot connect to socket /var/run/lirc/lircd: No such file or directory
odroid@odroid:~$ ps -ax | grep lirc
 4849 pts/0    S+     0:00 grep --color=auto lirc
odroid@odroid:~$ lsmod
Module                  Size  Used by
ir_lirc_codec           4934  0
lirc_dev               10879  1 ir_lirc_codec
ir_mce_kbd_decoder      3402  0
ir_sanyo_decoder        1657  0
ir_sony_decoder         1663  0
ir_rc5_decoder          1586  0
ir_jvc_decoder          1725  0
ir_nec_decoder          1789  0
ir_rc6_decoder          2010  0
meson_ir                3356  0
nls_utf8                1409  1
udf                    88464  1
fuse                   91055  3
snd_seq_dummy           1332  0
snd_usb_audio         134083  2
snd_hwdep               8171  1 snd_usb_audio
snd_usbmidi_lib        22635  1 snd_usb_audio
snd_seq_oss            36653  0
snd_seq_midi            5562  0
snd_seq_midi_event      6376  2 snd_seq_oss,snd_seq_midi
snd_seq                60246  6 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy,snd_seq_midi
smsc95xx               22271  0
btusb                  21436  0
snd_rawmidi            23002  2 snd_usbmidi_lib,snd_seq_midi
joydev                 11035  0
sg                     30434  0
snd_seq_device          7162  5 snd_seq,snd_rawmidi,snd_seq_oss,snd_seq_dummy,snd_seq_midi
w1_gpio                 3801  0
wire                   28606  1 w1_gpio
meson_gpiomem           4048  0
gxbb_wdt                3395  0
sch_fq_codel            7827  3
ip_tables              17220  0
ipv6                  387345  64
autofs4                27592  2
sr_mod                 17196  1
cdrom                  30139  1 sr_mod


Tried even to do a custom remote, got this error:

Code: Select all
odroid@odroid:~$ sudo irrecord --device /dev/lirc0 lircd.conf
Running as regular user odroid
Using driver default on device /dev/lirc0
Driver `default' not found (wrong or missing -U/--plugindir?).
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Thu Jul 12, 2018 11:21 am

Have you tried ir-keytable instead?

See my post here:

viewtopic.php?f=144&p=176534#p176534
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Thu Jul 12, 2018 11:31 am

which directory does this get saved in?
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Thu Jul 12, 2018 11:42 am

You can save it anywhere, you will likely need to install ir-keytable with apt.

Save it in the home directory.
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby joy » Thu Jul 12, 2018 12:28 pm

Hi noobs4u,
lircd must be running if lirc configuration is done.
As I checked, there is no lircd in your list.
Code: Select all
odroid@odroid:~$ ps -ax | grep lirc
 3145 ?        Ss     0:00 /usr/sbin/lircd --nodaemon
 3164 ttyS0    S+     0:00 grep --color=auto lirc

Here is my lirc_options.conf.
I think you already modified the conf file, but could you check your lirc_options.conf again?
Code: Select all
odroid@odroid:~$ cat /etc/lirc/lirc_options.conf
# These are the default options to lircd, if installed as
# /etc/lirc/lirc_options.conf. See the lircd(8) and lircmd(8)
# manpages for info on the different options.
#
# Some tools including mode2 and irw uses values such as
# driver, device, plugindir and loglevel as fallback values
# in not defined elsewhere.

[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

https://wiki.odroid.com/odroid-c2/appli ... ver_module

And please try "service lircd restart" again.
Code: Select all
odroid@odroid:~$ sudo service lircd restart

odroid@odroid:~$ service --status-all | grep lirc
 [ + ]  lircd
 [ - ]  lircmd
joy
 
Posts: 587
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Fri Jul 13, 2018 3:03 am

Code: Select all
odroid@odroid:~$ service --status-all | grep lirc
 [ - ]  lircd
 [ - ]  lircmd
odroid@odroid:~$


I see you had a + and -, both mine are -
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Fri Jul 13, 2018 4:42 am

So I re-imaged. Followed the lirc guide for Ubuntu 18.04 to install and register lirc and HK remote. When it came time to test, irw gave me this:

Code: Select all
odroid@odroid:~$ sudo service lircd restart
odroid@odroid:~$ sudo service lircd-uinput restart
odroid@odroid:~$ irw
Cannot connect to socket /var/run/lirc/lircd: Connection refused


daemon check:
Code: Select all
odroid@odroid:~$ ps -ax | grep lirc
 1888 ?        Sl     0:04 /usr/bin/pluma file:///etc/lirc/lirc_options.conf
 2487 pts/0    S+     0:00 grep --color=auto lirc


lsmod:
Code: Select all
odroid@odroid:~$ lsmod
Module                  Size  Used by
fuse                   91055  3
ir_lirc_codec           4934  0
ir_mce_kbd_decoder      3402  0
lirc_dev               10879  1 ir_lirc_codec
ir_sanyo_decoder        1657  0
ir_sony_decoder         1663  0
ir_rc6_decoder          2010  0
ir_jvc_decoder          1725  0
ir_rc5_decoder          1586  0
ir_nec_decoder          1789  0
meson_ir                3356  0
snd_usb_audio         134083  2
snd_seq_dummy           1332  0
snd_hwdep               8171  1 snd_usb_audio
snd_usbmidi_lib        22635  1 snd_usb_audio
snd_seq_oss            36653  0
snd_seq_midi            5562  0
snd_seq_midi_event      6376  2 snd_seq_oss,snd_seq_midi
snd_seq                60246  6 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy,snd_seq_midi
snd_rawmidi            23002  2 snd_usbmidi_lib,snd_seq_midi
snd_seq_device          7162  5 snd_seq,snd_rawmidi,snd_seq_oss,snd_seq_dummy,snd_seq_midi
smsc95xx               22271  0
sg                     30434  0
btusb                  21436  0
joydev                 11035  0
w1_gpio                 3801  0
wire                   28606  1 w1_gpio
meson_gpiomem           4048  0
gxbb_wdt                3395  0
sch_fq_codel            7827  3
ip_tables              17220  0
ipv6                  387345  57
autofs4                27592  2


service status:
Code: Select all
odroid@odroid:~$ service --status-all | grep lirc
 [ - ]  lircd
 [ - ]  lircmd


Results are much better, but it looks like the daemon isn't running...
Last edited by noobs4u on Fri Jul 13, 2018 4:56 am, edited 1 time in total.
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 4:49 am

Did you try ir-keytable?
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Fri Jul 13, 2018 4:56 am

not yet, the daemon isn't running
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 4:57 am

You don't need lirc for ir-keytable, it's why I recommended it.

Code: Select all
wget https://www.dropbox.com/s/66x8elis49i5ab9/remote.conf?dl=1 -O remote.conf
sudo apt install ir-keytable
sudo ir-keytable -c -w remote.conf
Last edited by rooted on Fri Jul 13, 2018 5:08 am, edited 2 times in total.
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Fri Jul 13, 2018 5:00 am

Good times!

Code: Select all
odroid@odroid:~$ ir-keytable -c -w remote.conf
Read odroid table
Old keytable cleared
Wrote 12 keycode(s) to driver
/sys/class/rc/rc0//protocols: Permission denied
Couldn't change the IR protocols
Last edited by noobs4u on Fri Jul 13, 2018 5:06 am, edited 1 time in total.
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 5:06 am

It should. It's been a while since I used the Hardkernel remote.
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Fri Jul 13, 2018 5:08 am

rooted wrote:It should. It's been a while since I used the Hardkernel remote.


Code: Select all
odroid@odroid:~$ ir-keytable -c -w remote.conf
Read odroid table
Old keytable cleared
Wrote 12 keycode(s) to driver
/sys/class/rc/rc0//protocols: Permission denied
Couldn't change the IR protocols


Back to square one...
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 5:09 am

Run it with sudo

And try the remote.
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Fri Jul 13, 2018 5:13 am

rooted wrote:Run it with sudo

And try the remote.


Code: Select all
odroid@odroid:~$ sudo ir-keytable -c -w remote.conf
Read odroid table
Old keytable cleared
Wrote 12 keycode(s) to driver
Protocols changed to nec


remote still not operating...
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 5:18 am

Aim the front of the remote at the camera in your phone, push the buttons and make sure it's working. You will see a light.
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Fri Jul 13, 2018 5:21 am

yep, little lights are flashing when I hold down any number of buttons...
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 5:26 am

It should be working, ir-keytable bypasses lirc and directly uses the kernel.

Try this, run ir-keytable like this and press the buttons.

Code: Select all
sudo ir-keytable -t


If it's working it should detect button presses. Try your TV remote or any other IR remote you have lying nearby in addition to the HK remote

Are you sure the C2 IR sensor is facing toward you?
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Fri Jul 13, 2018 5:32 am

Pressed each button once:

Code: Select all
odroid@odroid:~$ sudo ir-keytable -t
Testing events. Please, press CTRL-C to abort.
984.582897: event type EV_MSC(0x04): scancode = 0xb2dc
984.582897: event type EV_SYN(0x00).
987.415608: event type EV_MSC(0x04): scancode = 0xb288
987.415608: event type EV_SYN(0x00).
990.563980: event type EV_MSC(0x04): scancode = 0xb282
990.563980: event type EV_SYN(0x00).
992.474252: event type EV_MSC(0x04): scancode = 0xb2ca
992.474252: event type EV_SYN(0x00).
993.710188: event type EV_MSC(0x04): scancode = 0xb299
993.710188: event type EV_SYN(0x00).
994.901294: event type EV_MSC(0x04): scancode = 0xb2c1
994.901294: event type EV_SYN(0x00).
995.867367: event type EV_MSC(0x04): scancode = 0xb2d2
995.867367: event type EV_SYN(0x00).
996.788492: event type EV_MSC(0x04): scancode = 0xb2ce
996.788492: event type EV_SYN(0x00).
998.114040: event type EV_MSC(0x04): scancode = 0xb2c5
998.114040: event type EV_SYN(0x00).
999.214808: event type EV_MSC(0x04): scancode = 0xb29a
999.214808: event type EV_SYN(0x00).
1000.135907: event type EV_MSC(0x04): scancode = 0xb281
1000.135907: event type EV_SYN(0x00).
1001.192447: event type EV_MSC(0x04): scancode = 0xb280
1001.192447: event type EV_SYN(0x00).
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 6:25 am

It's working, try the remote in Kodi

You should exit "ir-keytable -t" with Ctrl + c first of course.
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 8:57 am

Did it work?
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Fri Jul 13, 2018 9:41 am

rooted wrote:It's working, try the remote in Kodi

You should exit "ir-keytable -t" with Ctrl + c first of course.


Yep
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Fri Jul 13, 2018 9:43 am

rooted wrote:Did it work?


Unfortunately, no. This has become super annoying.
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 10:17 am

I don't understand how it isn't working, the remote is programmed and functional.

I will try and figure it out and post back.
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby joy » Fri Jul 13, 2018 10:43 am

I think we need to figure out the reason why lircd doesn't work normally with noobs4u's environment.
lircd can register uinput event via its interface and it may be working with KODI once lircd works normally.
I've tried to reproduce the issue with my environment but I couldn't. :(
I will try it again.
joy
 
Posts: 587
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 10:51 am

I'm installing Ubuntu 18 now.
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby joy » Fri Jul 13, 2018 11:02 am

Could you try this command?
And please share the result.
Code: Select all
$ mode2 -d /dev/lirc0

If you have
Code: Select all
mode2: could not open /dev/lirc0
mode2: default_init(): Device or resource busy

please do this and then try irrecord.
Code: Select all
$ sudo kill `pidof lircd`

Code: Select all
$ sudo irrrecord --device /dev/lirc0 lircd.conf


If you still have the same issue, could you share /var/log/syslog file here?
Last edited by joy on Fri Jul 13, 2018 12:07 pm, edited 1 time in total.
joy
 
Posts: 587
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 11:29 am

@joy

There is no /dev/lirc0 after following the instructions in the wiki.

A quick look at dmesg

Code: Select all
rc0: meson-ir as /devices/c8100580.meson-ir/rc/rc0
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby joy » Fri Jul 13, 2018 11:48 am

rooted wrote:@joy

There is no /dev/lirc0 after following the instructions in the wiki.

A quick look at dmesg

Code: Select all
rc0: meson-ir as /devices/c8100580.meson-ir/rc/rc0

Hi rooted,
Weird.... :o
Did you modify lirc_options.conf under /etc/lirc/ ?
https://wiki.odroid.com/odroid-c2/appli ... buntu18.04
After you modify it and restart lircd, you must find the node.
joy
 
Posts: 587
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 11:52 am

I restarted it twice, now I have it.
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 12:10 pm

One thing that's wrong is the plugin directory in the lirc_options.conf

In the wiki it says

Code: Select all
plugindir = /usr/lib/arm-linux-gnueabihf/lirc/plugins


But should be

Code: Select all
plugindir = /usr/lib/aarch64-linux-gnu/lirc/plugins


*edit*
This fixed the issue, it works now. Please update the wiki.
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 2:13 pm

Did you understand @joy?

@noobs4u

Change the line above and restart lircd and lircd-uinput then your remote should work.
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby joy » Fri Jul 13, 2018 2:36 pm

rooted wrote:One thing that's wrong is the plugin directory in the lirc_options.conf

In the wiki it says

Code: Select all
plugindir = /usr/lib/arm-linux-gnueabihf/lirc/plugins


But should be

Code: Select all
plugindir = /usr/lib/aarch64-linux-gnu/lirc/plugins


*edit*
This fixed the issue, it works now. Please update the wiki.

rooted,
You're right.
Really sorry for making this confusion. :(

I think I made this mistake because I should three wiki pages for XU4, C1 and C2.
This configuration is for XU4 system.

I've updated the wiki page.
https://wiki.odroid.com/odroid-c2/appli ... ver_module

And thank you so much.

@noobs4u,
Really sorry.
With the wrong conf option, now I can reproduce the problem as yours. :(
Code: Select all
root@odroid:~# service --status-all | grep lirc
 [ - ]  lircd
 [ - ]  lircmd

Could you try the updated lirc_options.conf as rooted mentioned?
https://wiki.odroid.com/odroid-c2/appli ... ver_module
joy
 
Posts: 587
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Fri Jul 13, 2018 3:21 pm

Thanks joy, glad we got it resolved. I don't understand why ir-keytable method doesn't work but I will start another thread for that perhaps tomorrow.
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby joy » Fri Jul 13, 2018 3:31 pm

rooted wrote: I don't understand why ir-keytable method doesn't work but I will start another thread for that perhaps tomorrow.

Yes, please.
I'm not used to using ir-keytable so I wanna learn it this time.
joy
 
Posts: 587
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Sat Jul 14, 2018 8:10 am

rooted wrote:One thing that's wrong is the plugin directory in the lirc_options.conf

In the wiki it says

Code: Select all
plugindir = /usr/lib/arm-linux-gnueabihf/lirc/plugins


But should be

Code: Select all
plugindir = /usr/lib/aarch64-linux-gnu/lirc/plugins


*edit*
This fixed the issue, it works now. Please update the wiki.


SUCCESS!!!! I've put my hammer back in the tool box. PHEW, close one. You both are absolute gems! Thanks so much!!!! :D :D :D
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Sat Jul 14, 2018 8:15 am

joy wrote:
rooted wrote: I don't understand why ir-keytable method doesn't work but I will start another thread for that perhaps tomorrow.

Yes, please.
I'm not used to using ir-keytable so I wanna learn it this time.



@joy, Agreed.
@rooted, If you manage to work out the ir-keytable method for 18.04, I'd love to have the link to the new thread for it. Options are always best.
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby rooted » Sat Jul 14, 2018 8:46 am

You're welcome.

The ir-keytable thread is here but I haven't figured anything out yet.

viewtopic.php?t=31539
User avatar
rooted
 
Posts: 5884
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby joy » Mon Jul 16, 2018 10:09 am

noobs4u wrote:SUCCESS!!!! I've put my hammer back in the tool box. PHEW, close one. You both are absolute gems! Thanks so much!!!! :D :D :D

@noobs4u,
I'm so glad to hear it's working!!! :D
joy
 
Posts: 587
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X

Re: Ubuntu 18.04 (v3.0) LIRC HK IR Remote Not Working

Unread postby noobs4u » Tue Jul 17, 2018 1:35 pm

@joy, Thanks!

@odroid, please mark this thread as solved!
User avatar
noobs4u
 
Posts: 93
Joined: Fri Apr 01, 2016 1:56 am
languages_spoken: english
ODROIDs: XU4, C2


Return to Issues

Who is online

Users browsing this forum: No registered users and 7 guests