IR Remote for Cloudshell/dietpi
-
- Posts: 133
- Joined: Fri Apr 01, 2016 1:56 am
- languages_spoken: english
- ODROIDs: XU4, C2
- Has thanked: 14 times
- Been thanked: 5 times
- Contact:
IR Remote for Cloudshell/dietpi
I have the cloudshell case for my XU4 with dietpi installed. I also have cloudshell and the lirc package installed. I am unable to get the IR remote to work at all even after going through the config screen and selecting it to install the hardkernel remote. Is there further configurations that need to be done for it to work with the LCD on the cloudshell?
- odroid
- Site Admin
- Posts: 36922
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 1594 times
- Been thanked: 1069 times
- Contact:
-
- Posts: 133
- Joined: Fri Apr 01, 2016 1:56 am
- languages_spoken: english
- ODROIDs: XU4, C2
- Has thanked: 14 times
- Been thanked: 5 times
- Contact:
Re: IR Remote for Cloudshell/dietpi
Already did that. Using Hardkernel IR remote. Followed the prompts and installed the defaults for the Hardkernel remote which should be already configured. And as far as a log file is concerned, I wouldn't even know where to look. Could you provide a general directory that I should start in? I'm running dietpi currently.odroid wrote:http://odroid.com/dokuwiki/doku.php?id= ... _ir_config
Any log file?
- odroid
- Site Admin
- Posts: 36922
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 1594 times
- Been thanked: 1069 times
- Contact:
Re: IR Remote for Cloudshell/dietpi
Check the output of "lsmod" command.
There should be below two modules.
gpio-ir-recv
gpioplug-ir-recv
And you can find "/dev/lirc0" device node.
There should be below two modules.
gpio-ir-recv
gpioplug-ir-recv
And you can find "/dev/lirc0" device node.
-
- Posts: 133
- Joined: Fri Apr 01, 2016 1:56 am
- languages_spoken: english
- ODROIDs: XU4, C2
- Has thanked: 14 times
- Been thanked: 5 times
- Contact:
Re: IR Remote for Cloudshell/dietpi
odroid wrote:Check the output of "lsmod" command.
There should be below two modules.
gpio-ir-recv
gpioplug-ir-recv
And you can find "/dev/lirc0" device node.
Code: Select all
root@DietPi:~# lsmod
Module Size Used by
xt_multiport 1607 2
iptable_filter 1475 1
ip_tables 12007 1 iptable_filter
cdc_ether 4507 0
usbnet 22217 1 cdc_ether
r8152 53236 0
ina231_sensor 8388 0
i2c_s3c2410 8876 0
fb_ili9340 3597 1
ir_lirc_codec 4034 0
lirc_dev 9711 1 ir_lirc_codec
gpioplug_ir_recv 1176 0
gpio_ir_recv 2874 0
fbtft_device 37972 0
fbtft 31765 2 fb_ili9340,fbtft_device
syscopyarea 3057 1 fbtft
sysfillrect 3400 1 fbtft
sysimgblt 2147 1 fbtft
fb_sys_fops 1348 1 fbtft
spi_s3c64xx 13713 0
fuse 75445 1
root@DietPi:~#
Code: Select all
root@DietPi:/dev# ls
lirc0 ptyd7 ptysc ptyy1 tty45 ttydd ttySAC3 ttyxf
lircd ptyd8 ptysd ptyy2 tty46 ttyde ttysb ttyy0
log ptyd9 ptyse ptyy3 tty47 ttydf ttysc ttyy1
- odroid
- Site Admin
- Posts: 36922
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 1594 times
- Been thanked: 1069 times
- Contact:
Re: IR Remote for Cloudshell/dietpi
Looks fine for me.
Same configuration worked well on our Ubuntu image.
You need to report this issue on the DietPi thread.
I think below two lines might not be compatible with DietPi or Debian image if the lirc demon doesn't work correctly.
https://github.com/mdrjr/cloudshell_ir/ ... _ir.sh#L39
https://github.com/mdrjr/cloudshell_ir/ ... _ir.sh#L51
Same configuration worked well on our Ubuntu image.
You need to report this issue on the DietPi thread.
I think below two lines might not be compatible with DietPi or Debian image if the lirc demon doesn't work correctly.
https://github.com/mdrjr/cloudshell_ir/ ... _ir.sh#L39
https://github.com/mdrjr/cloudshell_ir/ ... _ir.sh#L51
-
- Posts: 133
- Joined: Fri Apr 01, 2016 1:56 am
- languages_spoken: english
- ODROIDs: XU4, C2
- Has thanked: 14 times
- Been thanked: 5 times
- Contact:
Re: IR Remote for Cloudshell/dietpi
I posted this over at the dietpi forum: http://fuzon.co.uk/phpbb/viewtopic.php?f=11&t=376. Hopefully Fourdee will be able to take a look.odroid wrote:Looks fine for me.
Same configuration worked well on our Ubuntu image.
You need to report this issue on the DietPi thread.
I think below two lines might not be compatible with DietPi or Debian image if the lirc demon doesn't work correctly.
https://github.com/mdrjr/cloudshell_ir/ ... _ir.sh#L39
https://github.com/mdrjr/cloudshell_ir/ ... _ir.sh#L51
-
- Posts: 298
- Joined: Fri Apr 03, 2015 5:01 am
- languages_spoken: english
- ODROIDs: C1 / C2 / XU4 + Cloudshell.
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: IR Remote for Cloudshell/dietpi
Looks like the configuration vars are different compared to whats expected by the install script. None of the items listed below are in the Jessie config after installation (/etc/lirc/hardware.conf). So none of these get applied:odroid wrote:Looks fine for me.
Same configuration worked well on our Ubuntu image.
You need to report this issue on the DietPi thread.
I think below two lines might not be compatible with DietPi or Debian image if the lirc demon doesn't work correctly.
https://github.com/mdrjr/cloudshell_ir/ ... _ir.sh#L39
https://github.com/mdrjr/cloudshell_ir/ ... _ir.sh#L51
https://github.com/mdrjr/cloudshell_ir/ ... sh#L32-L36
Code: Select all
root@DietPi-XU4:~# cat /etc/lirc/hardware.conf
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false
#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false
#Try to load appropriate kernel modules
LOAD_MODULES=true
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="/dev/lirc0"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE=""
MODULES=""
# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
As far as I can tell the IR receiver is working (press a few buttons then ctrl+c to exit):
Code: Select all
cat /dev/lirc0
Code: Select all
systemctl status lirc -l
http://DietPi.com - Lightweight justice for your Odroid.
DietPi web hosting is powered by http://MyVirtualServer.com
DietPi web hosting is powered by http://MyVirtualServer.com
-
- Posts: 298
- Joined: Fri Apr 03, 2015 5:01 am
- languages_spoken: english
- ODROIDs: C1 / C2 / XU4 + Cloudshell.
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: IR Remote for Cloudshell/dietpi
I think it may be an issue with the service script (/etc/init.d/lirc). I couldn't get the service to launch, even with bare minimal settings and using a remote template in
Noobs4u, please try the following after you run https://raw.githubusercontent.com/mdrjr ... tall_ir.sh , then test your device:
Code: Select all
/usr/share/lirc/remotes/
Code: Select all
/usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput
http://DietPi.com - Lightweight justice for your Odroid.
DietPi web hosting is powered by http://MyVirtualServer.com
DietPi web hosting is powered by http://MyVirtualServer.com
-
- Posts: 11
- Joined: Thu Apr 21, 2016 10:43 am
- languages_spoken: english
- ODROIDs: xu4
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: IR Remote for Cloudshell/dietpi
I have same problem, In my caseFourdee wrote:I think it may be an issue with the service script (/etc/init.d/lirc). I couldn't get the service to launch, even with bare minimal settings and using a remote template inNoobs4u, please try the following after you run https://raw.githubusercontent.com/mdrjr ... tall_ir.sh , then test your device:Code: Select all
/usr/share/lirc/remotes/
Code: Select all
/usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput
after run lircd by
Code: Select all
/usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput
but
after starting lirc service by
Code: Select all
systemctl start lirc
should I create custom lircd.service for systemd?
-
- Posts: 133
- Joined: Fri Apr 01, 2016 1:56 am
- languages_spoken: english
- ODROIDs: XU4, C2
- Has thanked: 14 times
- Been thanked: 5 times
- Contact:
Re: IR Remote for Cloudshell/dietpi
Well, it definitely had results. It messed the LCD screen up really good. Nothing a restart couldn't fix though. It seemed to want to navigate through dietpi-config but the cloudshell was also displaying over the top of it at the same time. After rebooting, the remote was rendered useless and the cloudshell LCD was back to normal. The results you requested earlier:Fourdee wrote:I think it may be an issue with the service script (/etc/init.d/lirc). I couldn't get the service to launch, even with bare minimal settings and using a remote template inNoobs4u, please try the following after you run https://raw.githubusercontent.com/mdrjr ... tall_ir.sh , then test your device:Code: Select all
/usr/share/lirc/remotes/
Code: Select all
/usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput
Code: Select all
root@PlexMedia:~# systemctl status lirc -l
● lirc.service - LSB: Starts LIRC daemon.
Loaded: loaded (/etc/init.d/lirc)
Active: active (exited) since Sun 2016-04-24 02:37:38 BST; 10min ago
Process: 640 ExecStart=/etc/init.d/lirc start (code=exited, status=0/SUCCESS)
Apr 24 02:37:38 PlexMedia lirc[640]: srm7500libusb
Apr 24 02:37:38 PlexMedia lirc[640]: tira
Apr 24 02:37:38 PlexMedia lirc[640]: tira_raw
Apr 24 02:37:38 PlexMedia lirc[640]: udp
Apr 24 02:37:38 PlexMedia lirc[640]: uirt2
Apr 24 02:37:38 PlexMedia lirc[640]: uirt2_raw
Apr 24 02:37:38 PlexMedia lirc[640]: usb_uirt_raw
Apr 24 02:37:38 PlexMedia lirc[640]: usbx
Apr 24 02:37:38 PlexMedia systemd[1]: Started LSB: Starts LIRC daemon..
Apr 24 02:37:38 PlexMedia lirc[640]: .
root@PlexMedia:~#
-
- Posts: 298
- Joined: Fri Apr 03, 2015 5:01 am
- languages_spoken: english
- ODROIDs: C1 / C2 / XU4 + Cloudshell.
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: IR Remote for Cloudshell/dietpi
Interesting, so it appears there is a bug in the service script installed by Lirc on Jessie. Basically rendering the service unusable.studioai wrote: I have same problem, In my case
after run lircd byirw works normallyCode: Select all
/usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput
but
after starting lirc service byirw doesn't workCode: Select all
systemctl start lirc
should I create custom lircd.service for systemd?
If you do make a systemd service script, post it here and I will test it on my XU4 also.
http://DietPi.com - Lightweight justice for your Odroid.
DietPi web hosting is powered by http://MyVirtualServer.com
DietPi web hosting is powered by http://MyVirtualServer.com
-
- Posts: 298
- Joined: Fri Apr 03, 2015 5:01 am
- languages_spoken: english
- ODROIDs: C1 / C2 / XU4 + Cloudshell.
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: IR Remote for Cloudshell/dietpi
Thanks. Yep, I thought as much, the service says active but the daemon is not running (exited).noobs4u wrote:Code: Select all
root@PlexMedia:~# systemctl status lirc -l ● lirc.service - LSB: Starts LIRC daemon. Loaded: loaded (/etc/init.d/lirc) Active: active (exited) since Sun 2016-04-24 02:37:38 BST; 10min ago Process: 640 ExecStart=/etc/init.d/lirc start (code=exited, status=0/SUCCESS) Apr 24 02:37:38 PlexMedia lirc[640]: srm7500libusb Apr 24 02:37:38 PlexMedia lirc[640]: tira Apr 24 02:37:38 PlexMedia lirc[640]: tira_raw Apr 24 02:37:38 PlexMedia lirc[640]: udp Apr 24 02:37:38 PlexMedia lirc[640]: uirt2 Apr 24 02:37:38 PlexMedia lirc[640]: uirt2_raw Apr 24 02:37:38 PlexMedia lirc[640]: usb_uirt_raw Apr 24 02:37:38 PlexMedia lirc[640]: usbx Apr 24 02:37:38 PlexMedia systemd[1]: Started LSB: Starts LIRC daemon.. Apr 24 02:37:38 PlexMedia lirc[640]: . root@PlexMedia:~#
Interesting. You can stop/start dietpi-cloudshell at any time by simply running dietpi-cloudshell over SSH.Well, it definitely had results. It messed the LCD screen up really good. Nothing a restart couldn't fix though. It seemed to want to navigate through dietpi-config but the cloudshell was also displaying over the top of it at the same time. After rebooting, the remote was rendered useless and the cloudshell LCD was back to normal.
It might be worth testing the remote in a different environment (eg: kodi), just so we can get an idea if the remote is functional.
http://DietPi.com - Lightweight justice for your Odroid.
DietPi web hosting is powered by http://MyVirtualServer.com
DietPi web hosting is powered by http://MyVirtualServer.com
-
- Posts: 11
- Joined: Thu Apr 21, 2016 10:43 am
- languages_spoken: english
- ODROIDs: xu4
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: IR Remote for Cloudshell/dietpi
Sorry I solved this problem by installing ir-keytable. So, there's no systemd script. Sorry !Interesting, so it appears there is a bug in the service script installed by Lirc on Jessie. Basically rendering the service unusable.
Who is online
Users browsing this forum: No registered users and 2 guests