XU4 cloudshell with 4.9 and IR-remote Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
delaerp

XU4 cloudshell with 4.9 and IR-remote

Post by delaerp »

After upgrading to 4.9 kernel the IR-remote didn't work anymore. I had to rerun the ./install_ir.sh script to fix the problem.
User avatar
Fourdee
Site Admin
Posts: 2787
Joined: Tue Feb 06, 2007 1:36 pm

Re: XU4 cloudshell with 4.9 and IR-remote

Post by Fourdee »

delaerp wrote:After upgrading to 4.9 kernel the IR-remote didn't work anymore. I had to rerun the ./install_ir.sh script to fix the problem.
Thanks for the heads up, i'll link this to the ticket so we can investigate:
https://github.com/Fourdee/DietPi/issues/926
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: XU4 cloudshell with 4.9 and IR-remote

Post by johnvick »

I've just run this script for the first time and the IR doesn't alter the Cloudshell display.

Doing

Code: Select all

cat /dev/lirc0 
from the command line then pressing the buttons produces characters on the screen so the IR is working.

Also the Cloudshell display does not auto power off - the screen goes dark but the light is still on on the periphery. New with kernel 4.9.

If you apply the settings with dietpi-cloudshell it goes off fully.

John
delaerp

Re: XU4 cloudshell with 4.9 and IR-remote

Post by delaerp »

John,

I use the original hardkernel remote, I can not switch off the cloudshell script, I just turn off the backlight. You can find my setup in one of my old posts :

http://dietpi.com/phpbb/viewtopic.php?f=15&t=618

hope this helps you.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: XU4 cloudshell with 4.9 and IR-remote

Post by johnvick »

Hi Patrick,

Thanks I installed wiring pi from the menu and used your config but it doesn't work. I've the hardkernel remote and

cat /dev/lirc0

shows characters onscreen but when I stop the lirc service It still shows these characters - not sure what's going on here.

John
delaerp

Re: XU4 cloudshell with 4.9 and IR-remote

Post by delaerp »

John,

Did you install irexec?
cat /dev/lirc0 gives as output : cat: /dev/lirc0: Device or resource busy
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: XU4 cloudshell with 4.9 and IR-remote

Post by johnvick »

No - tried the obvious apt-get install irexec -

But unable to locate package. How do you do it?
delaerp

Re: XU4 cloudshell with 4.9 and IR-remote

Post by delaerp »

John,

I think irexec is part of the lirc package, I installed it a year ago before it was in dietpi-software. I posted then how it installed it (see this post)
http://dietpi.com/phpbb/viewtopic.php?f=15&t=604

I hope you can solve it.

Patrick
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: XU4 cloudshell with 4.9 and IR-remote

Post by johnvick »

Hi Patrick,

Thanks for your help but no luck here. Would you mind posting the contents of /etc/lirc hardware.conf, lircd.conf and lircm.conf?

John
delaerp

Re: XU4 cloudshell with 4.9 and IR-remote

Post by delaerp »

John,

/etc/lirc/hardware.conf

Code: Select all

# /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="default"
# usually /dev/lirc0 is the correct setting for systems using udev 
DEVICE="/dev/lirc0"
MODULES="gpioplug_ir_recv gpio_ir_recv"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
/etc/lirc/lircd.conf

Code: Select all

begin remote
  name  odroid1.conf
  bits           16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100
  header       8959  4566
  one           508  1737
  zero          508   600
  ptrail        507
  repeat       8959  2291
  pre_data_bits   16
  pre_data       0x4DB2
  gap          108299
  toggle_bit_mask 0x0
      begin codes
          KEY_POWER                0x3BC4
          KEY_MUTE                 0x11EE
          KEY_HOME                 0x41BE
          KEY_UP                   0x53AC
          KEY_DOWN                 0x4BB4
          KEY_LEFT                 0x9966
          KEY_RIGHT                0x837C
          KEY_ENTER                0x738C
          KEY_BACK                 0x59A6
          KEY_VOLUMEDOWN           0x817E
          KEY_VOLUMEUP             0x01FE
          KEY_MENU                 0xA35C
      end codes
end remote
/etc/lirc/lircmd.conf

Code: Select all

#UNCONFIGURED
#
# To find out how to get a proper configuration file please read:
# 
#	/usr/share/doc/lirc/README.Debian
begin
        prog   = irexec
        button = KEY_VOLUMEDOWN
        config = gpio write 7 0
end

begin
	prog   = irexec
	button = KEY_VOLUMEUP
	config = gpio write 7 1
end

begin
	prog   = irexec
	button = KEY_POWER
	config = poweroff
end

begin
	prog   = irexec
	button = KEY_HOME
	config = reboot
end

begin
	prog   = irexec
	button = KEY_MENU
	config = ./DietPi/dietpi/dietpi-update
end

begin
	prog   = irexec
	button = KEY_BACK
	config = bash
end
I hope this can help you. I don't have X.org installed, I always ssh to the XU4

Patrick
Post Reply