SSH and Ir wakeup code

Hi all,
just updated to the latest build and lost my ir code settings.
I can suspend but not wake up.

Im trying to SSH in to run the ir code scanner, but when it asked for a pasword i cant type anything?

I have a G30 remote so can technically program that button to anything.

Ssh password prompt does not output anything
Try coreelec as it’s the default one

That the thing though i just cant type anything. just a get a prompt saying password and nothing happens when i type?

Lets start again…

Obtained ir code.
Put into config.ini.

But unable to test as my N2 will not go into standby, just shuts down entirely.
Any idea what to check.

Remote wakeup mask is wrong for NEC,
it must be 0xffffffff

remotewakeup=‘0xbf40fe01’
decode_type=‘0x0’
remotewakeupmask=‘0xf708fb04’

Thats what it gave me when i pressed the button lol

OMG THIS IS DRIVING ME NUTS!

ok new code is
remotewakeup=‘0xf708fb04’, decode_type=‘0x0’, remotewakeupmask=‘0xffffffff’

God knows where i got the other from, had to many windows open.

So copied to config.ini.

Everything should be good to go, but alas how to get into suspend and not shutdown.
Every option on then menu shuts the n2 down. Power options are set to suspend.
?

How you know it’s power down or suspend? UART?
You can run systemctl suspend on SSH for testing.

Well i think normally if its suspended the red light stays on.
I may be mistaken?

It looks like its shutting right down, as the wakeup still will not work.

ill try the ssh command.

Then you don’t know…

Try this codes:

remotewakeup='0xbf40fe01'
decode_type='0x0'
remotewakeupmask='0xffffffff'

You see CE boot logo on resume?

The LED always will go off, also in suspend. Why it should not?

Well i have noticed that sometimes the red led will stay on. when this happens it has woken up from the remote, but if the light is out it wont? Strange.

So i have just confirmed by using cec and turning the tv off, it does indeed go into standby with light off, as when i turn the tv back on it resumes to where the box was, also setting suspend from the menu. then turning the tv back on it resumes.

So confirmed it is indeed going into suspend mode.
That that sorted.

I will try that code, can you just confirm for me, exactly where i am supposed to be putting it and in what file where?, been a long few days and im obviously doing something incorrect.

https://wiki.coreelec.org/coreelec:debuglogs

Ok but can you just confirm i am putting the details in the right file in the right place, so i know im not doing something wrong first?

IR Issue

I don’t know what you are doing but you have set this wake up IR code:
remotewakeup='0x23dc4db2'

Go to SSH and run mf. Then nano /flash/config.ini and edit your remote wakeup code.
ctrl-x and y to save and exit, snyc and reboot.

Then try again or make a log again.

Ok have no idea where that code came from. Weird?
I have a problem though, i cannot SSH in anymore, as soon as i try i just get a green cursor that wont let me type anything. Does not ask for user or anything.? Just a green cursor in the top left?

ffs

ok managed to get it this is what i see

login as: root
root@192.168.0.79's password:
##############################################
#                  CoreELEC                  #
#            https://coreelec.org            #
##############################################

CoreELEC (official): 20.1-Nexus (Amlogic-ng.arm)
      Machine model: Hardkernel ODROID-N2
     CoreELEC dt-id: g12b_s922x_odroid_n2
      Amlogic dt-id: g12b_w400_a

CORELEC:~ # mf
CORELEC:~ # nano /flash/config.ini
  GNU nano 7.1                   /flash/config.ini                    Modified

#------------------------------------------------------------------------------>
#
# CPU Frequency Control
#
# WARNING!!! WARNING!!! WARNING!!!
#   Before changing anything here please read the wiki entry at:
                               [ Read 148 lines ]
^G Help      ^O Write Out ^W Where Is  ^K Cut       ^T Execute   ^C Location
^X Exit      ^R Read File ^\ Replace   ^U Paste     ^J Justify   ^/ Go To Line
#------------------------------------------------------------------------------>
#
# config.ini
#
#------------------------------------------------------------------------------>

#------------------------------------------------------------------------------>
#
# Console Setup
#

^G Help      ^O Write Out ^W Where Is  ^K Cut       ^T Execute   ^C Location
^X Exit      ^R Read File ^\ Replace   ^U Paste     ^J Justify   ^/ Go To Line

Google is your friend…

Already watched it, i dont understand a thing. Just to confusing. I have no idea about this stuff.
I managed by trial and error to open the config.ini, and the code i see is the one i got from my remote already? not the one you mentioned.

So no idea where its getting that code from.?

Totally confused.
Pain in the ass, not worth the hassle.

At start no one has. But in this case some new things needs to be learn. That’s life.

Can you show again which values you want to change and I will give you sed commands to change the file without opening it in editor.

Ive actually worked out how to use the editor, and entered my code exactly…i think…, the problem is its already the same as my remote is giving me.

remotewakeup=‘0xbf40fe01’
decode_type=‘0x0’
remotewakeupmask=‘0xffffffff’

I cannot see the values that Portisch mentioned, so it is either stored somewhere else or i am editing the wrong file?

So ill explain what i am doing.

I log in using putty, using root password.
i enter

mount -o rw,remount /flash
nano /flash/config.ini

i see this…


remotewakeup='0xbf40fe01'
decode_type='0x0'
remotewakeupmask='0xffffffff'

#------------------------------------------------------------------------------>
# config.ini
#------------------------------------------------------------------------------>

#------------------------------------------------------------------------------>
#
# Console Setup
#
# consoleopt='console=ttyS0,115200 console=tty0 no_console_suspend'
#
#------------------------------------------------------------------------------>

#------------------------------------------------------------------------------>
                               [ Read 153 lines ]
^G Help      ^O Write Out ^W Where Is  ^K Cut       ^T Execute   ^C Location
^X Exit      ^R Read File ^\ Replace   ^U Paste     ^J Justify   ^/ Go To Line