Remote won't come back after tv is shutdown

Greetings, I run coreelec 19.5-Matrix_rc2 on an amlogic cpu, paired with an old LG TV from 2011-2012, CEC works mostly fine in that I can move around kodi with just the tv’s remote, but that feature only lasts for as long as I don’t turn off the tv screen, when I turn the tv back on the remote stops working for kodi and I have to set it up again with the tv’s software. SOMETIMES like 10% of the time the remote will still work.
these are the logs for when I: turn tv on → setup remote → move cursor around → turn tv off → turn tv on

No device type given. Using 'recording device'
CEC Parser created - libCEC version 6.0.2
no serial port given. trying autodetect: 
 path:     /dev/aocec
 com port: AOCEC

opening a connection to the CEC adapter...
DEBUG:   [              49]	Broadcast (F): osd name set to 'Broadcast'
NOTICE:  [              50]	connection opened
DEBUG:   [              50]	<< Broadcast (F) -> TV (0): POLL
DEBUG:   [              50]	processor thread started
TRAFFIC: [              50]	<< f0
DEBUG:   [              81]	>> POLL sent
DEBUG:   [              81]	TV (0): device status changed into 'present'
DEBUG:   [              81]	<< requesting vendor ID of 'TV' (0)
TRAFFIC: [              81]	<< f0:8c
TRAFFIC: [             425]	>> 0f:87:00:e0:91
DEBUG:   [             425]	TV (0): vendor = LG (00e091)
DEBUG:   [             425]	>> TV (0) -> Broadcast (F): device vendor id (87)
DEBUG:   [             426]	expected response received (87: device vendor id)
DEBUG:   [             426]	replacing the command handler for device 'TV' (0)
DEBUG:   [             426]	TV (0): CEC version 1.3a
DEBUG:   [             426]	TV (0): menu language set to 'eng'
DEBUG:   [             426]	registering new CEC client - v6.0.2
DEBUG:   [             426]	SetClientVersion - using client version '6.0.2'
NOTICE:  [             426]	setting HDMI port to 1 on device TV (0)
DEBUG:   [             427]	SetConfiguration: double tap timeout = 200ms, repeat rate = 0ms, release delay = 500ms
DEBUG:   [             427]	detecting logical address for type 'recording device'
DEBUG:   [             427]	trying logical address 'Recorder 1'
DEBUG:   [             427]	<< Recorder 1 (1) -> Recorder 1 (1): POLL
TRAFFIC: [             427]	<< 11
WARNING: [            1150]	Write: write failed
TRAFFIC: [            1150]	<< 11
WARNING: [            1483]	Write: write failed
DEBUG:   [            1483]	>> POLL not sent
DEBUG:   [            1483]	using logical address 'Recorder 1'
DEBUG:   [            1483]	Recorder 1 (1): device status changed into 'handled by libCEC'
DEBUG:   [            1483]	Recorder 1 (1): power status changed from 'unknown' to 'on'
DEBUG:   [            1483]	Recorder 1 (1): vendor = Pulse Eight (001582)
DEBUG:   [            1483]	Recorder 1 (1): CEC version 1.4
DEBUG:   [            1483]	AllocateLogicalAddresses - device '0', type 'recording device', LA '1'
DEBUG:   [            1485]	Recorder 1 (1): osd name set to 'CECTester'
DEBUG:   [            1485]	Recorder 1 (1): menu language set to 'eng'
DEBUG:   [            1485]	using auto-detected physical address 1000
DEBUG:   [            1485]	Recorder 1 (1): physical address changed from ffff to 1000
DEBUG:   [            1485]	<< Recorder 1 (1) -> broadcast (F): physical address 1000
TRAFFIC: [            1485]	<< 1f:84:10:00:01
NOTICE:  [            6639]	CEC client registered: libCEC version = 6.0.2, client version = 6.0.2, firmware version = 5, logical address(es) = Recorder 1 (1) , physical address: 1.0.0.0,  compiled on 2022-07-27 06:55:21 by portisch@ubuntu on Linux 5.15.0-41-generic (x86_64), features: P8_USB, DRM, P8_detect, AOCEC
DEBUG:   [            6639]	Recorder 1 (1): vendor = LG (00e091)
DEBUG:   [            6639]	replacing the command handler for device 'Recorder 1' (1)
DEBUG:   [            6639]	Recorder 1 (1): CEC version 1.3a
DEBUG:   [            6639]	<< Recorder 1 (1) -> TV (0): OSD name 'CECTester'
TRAFFIC: [            6639]	<< 10:47:43:45:43:54:65:73:74:65:72
DEBUG:   [            7068]	<< requesting power status of 'TV' (0)
TRAFFIC: [            7068]	<< 10:8f
DEBUG:   [            8279]	expected response not received (90: report power status)
TRAFFIC: [            8279]	<< 10:8f
TRAFFIC: [            8426]	>> 01:90:01
DEBUG:   [            8426]	TV (0): power status changed from 'unknown' to 'standby'
DEBUG:   [            8426]	>> TV (0) -> Recorder 1 (1): report power status (90)
waiting for input
DEBUG:   [            8427]	expected response received (90: report power status)
TRAFFIC: [           10003]	>> 0f:87:00:e0:91
DEBUG:   [           10003]	<< Recorder 1 (1) -> Broadcast (F): vendor id LG (e091)
TRAFFIC: [           10003]	<< 1f:87:00:e0:91
DEBUG:   [           10003]	>> TV (0) -> Broadcast (F): device vendor id (87)
TRAFFIC: [           10284]	>> 0f:87:00:e0:91
DEBUG:   [           10284]	<< Recorder 1 (1) -> Broadcast (F): vendor id LG (e091)
TRAFFIC: [           10284]	<< 1f:87:00:e0:91
DEBUG:   [           10284]	>> TV (0) -> Broadcast (F): device vendor id (87)
TRAFFIC: [           21287]	>> 01
DEBUG:   [           21287]	<< POLL: TV (0) -> Recorder 1 (1)
TRAFFIC: [           21415]	>> 01:8c
DEBUG:   [           21415]	<< Recorder 1 (1) -> TV (0): vendor id LG (e091)
TRAFFIC: [           21416]	<< 1f:87:00:e0:91
DEBUG:   [           21417]	>> TV (0) -> Recorder 1 (1): give device vendor id (8C)
TRAFFIC: [           35858]	>> 01:1a:01
DEBUG:   [           35859]	>> Recorder 1 (1): deck status changed from 'stop' to 'LG other'
DEBUG:   [           35859]	<< Recorder 1 (1) -> TV (0): deck status 'LG other'
TRAFFIC: [           35859]	<< 10:1b:20
DEBUG:   [           35860]	>> TV (0) -> Recorder 1 (1): give deck status (1A)
TRAFFIC: [           35994]	>> 01
DEBUG:   [           35994]	<< POLL: TV (0) -> Recorder 1 (1)
TRAFFIC: [           38555]	>> 01:44:04
DEBUG:   [           38555]	SetCurrentButton right (4) D:0ms cur:4
DEBUG:   [           38555]	key pressed: right (4) current(ff) duration(0)
DEBUG:   [           38555]	Changed key right (4) D:0ms cur:ff
DEBUG:   [           38555]	key pressed: right (4, 0)
DEBUG:   [           38555]	making Recorder 1 (1) the active source
DEBUG:   [           38555]	>> TV (0) -> Recorder 1 (1): user control pressed (44)
DEBUG:   [           38555]	TV (0): power status changed from 'standby' to 'in transition from standby to on'
NOTICE:  [           38555]	>> source activated: Recorder 1 (1)
DEBUG:   [           38555]	CheckKeypressTimeout T:1615.391
DEBUG:   [           38555]	Key right: idle (duration:0) (4) timeout:31492264ms (rel:500,rep:0,prs:500,rel:0)
TRAFFIC: [           38626]	>> 01:45
DEBUG:   [           38626]	key released: right (4) D:71ms
DEBUG:   [           38627]	>> TV (0) -> Recorder 1 (1): user control release (45)
TRAFFIC: [           39195]	>> 01:44:04
DEBUG:   [           39195]	SetCurrentButton right (4) D:0ms cur:4
DEBUG:   [           39195]	key pressed: right (4) current(ff) duration(0)
DEBUG:   [           39195]	Changed key right (4) D:0ms cur:ff
DEBUG:   [           39195]	key pressed: right (4, 0)
DEBUG:   [           39195]	CheckKeypressTimeout T:1616.031
DEBUG:   [           39195]	Key right: idle (duration:0) (4) timeout:31492264ms (rel:500,rep:0,prs:500,rel:0)
DEBUG:   [           39195]	>> TV (0) -> Recorder 1 (1): user control pressed (44)
DEBUG:   [           39696]	CheckKeypressTimeout T:1616.532
DEBUG:   [           39696]	Key unknown: idle (duration:501) (ff) timeout:532889572ms (rel:1000,rep:0,prs:0,rel:0)
TRAFFIC: [           39704]	>> 01:44:04
DEBUG:   [           39704]	SetCurrentButton right (4) D:0ms cur:4
DEBUG:   [           39704]	key pressed: right (4) current(ff) duration(0)
DEBUG:   [           39704]	Changed key right (4) D:0ms cur:ff
DEBUG:   [           39704]	key pressed: right (4, 0)
DEBUG:   [           39704]	CheckKeypressTimeout T:1616.540
DEBUG:   [           39704]	Key right: idle (duration:0) (4) timeout:31492264ms (rel:500,rep:0,prs:500,rel:0)
DEBUG:   [           39704]	>> TV (0) -> Recorder 1 (1): user control pressed (44)
TRAFFIC: [           39776]	>> 01:45
DEBUG:   [           39776]	key released: right (4) D:72ms
DEBUG:   [           39776]	>> TV (0) -> Recorder 1 (1): user control release (45)
TRAFFIC: [           40976]	>> 01:45
DEBUG:   [           40976]	>> TV (0) -> Recorder 1 (1): user control release (45)
TRAFFIC: [           46596]	>> 0f:36
NOTICE:  [           46596]	resetting SL initialised state
DEBUG:   [           46596]	Recorder 1 (1): power status changed from 'on' to 'in transition from standby to on'
DEBUG:   [           46596]	TV (0): power status changed from 'in transition from standby to on' to 'standby'
DEBUG:   [           46596]	>> TV (0) -> Broadcast (F): standby (36)
TRAFFIC: [           46659]	>> 0f:36
NOTICE:  [           46659]	resetting SL initialised state
TRAFFIC: [           47843]	>> 0f:36
NOTICE:  [           47843]	resetting SL initialised state
TRAFFIC: [           47904]	>> 0f:36
NOTICE:  [           47904]	resetting SL initialised state
TRAFFIC: [           48029]	>> 0f:36
NOTICE:  [           48029]	resetting SL initialised state
TRAFFIC: [           58004]	>> 0f:87:00:e0:91
DEBUG:   [           58004]	<< Recorder 1 (1) -> Broadcast (F): vendor id LG (e091)
TRAFFIC: [           58004]	<< 1f:87:00:e0:91
DEBUG:   [           58004]	>> TV (0) -> Broadcast (F): device vendor id (87)
TRAFFIC: [           58284]	>> 0f:87:00:e0:91
DEBUG:   [           58284]	<< Recorder 1 (1) -> Broadcast (F): vendor id LG (e091)
TRAFFIC: [           58284]	<< 1f:87:00:e0:91
DEBUG:   [           58285]	>> TV (0) -> Broadcast (F): device vendor id (87)
TRAFFIC: [           65632]	>> 0f:87:00:e0:91
DEBUG:   [           65632]	<< Recorder 1 (1) -> Broadcast (F): vendor id LG (e091)
TRAFFIC: [           65632]	<< 1f:87:00:e0:91
DEBUG:   [           65634]	>> TV (0) -> Broadcast (F): device vendor id (87)
TRAFFIC: [           66213]	>> 0f:87:00:e0:91
DEBUG:   [           66213]	<< Recorder 1 (1) -> Broadcast (F): vendor id LG (e091)
TRAFFIC: [           66213]	<< 1f:87:00:e0:91
DEBUG:   [           66213]	>> TV (0) -> Broadcast (F): device vendor id (87)
TRAFFIC: [           66485]	>> 01
DEBUG:   [           66485]	<< POLL: TV (0) -> Recorder 1 (1)
TRAFFIC: [           67917]	>> 0f:87:00:e0:91
DEBUG:   [           67917]	>> TV (0) -> Broadcast (F): device vendor id (87)
DEBUG:   [           67918]	<< Recorder 1 (1) -> Broadcast (F): vendor id LG (e091)
TRAFFIC: [           67918]	<< 1f:87:00:e0:91
TRAFFIC: [           68784]	>> 01
DEBUG:   [           68784]	<< POLL: TV (0) -> Recorder 1 (1)
TRAFFIC: [           75096]	>> 01:89:04:00
NOTICE:  [           75096]	SL initialised
TRAFFIC: [           75096]	<< 10:89:05:01
DEBUG:   [           75097]	>> TV (0) -> Recorder 1 (1): vendor command (89)
DEBUG:   [           75212]	<< Recorder 1 (1) -> TV (0): deck status 'LG other'
TRAFFIC: [           75212]	<< 10:1b:20
DEBUG:   [           75338]	<< Recorder 1 (1) -> TV (0): in transition from standby to on
TRAFFIC: [           75339]	<< 10:90:02
TRAFFIC: [           75557]	>> 01:1a:01
DEBUG:   [           75558]	>> TV (0) -> Recorder 1 (1): give deck status (1A)
DEBUG:   [           75558]	<< Recorder 1 (1) -> TV (0): deck status 'LG other'
TRAFFIC: [           75558]	<< 10:1b:20
TRAFFIC: [           82118]	>> 0f:87:00:e0:91
DEBUG:   [           82118]	<< Recorder 1 (1) -> Broadcast (F): vendor id LG (e091)
TRAFFIC: [           82118]	<< 1f:87:00:e0:91
DEBUG:   [           82119]	>> TV (0) -> Broadcast (F): device vendor id (87)
TRAFFIC: [           82527]	>> 0f:87:00:e0:91
DEBUG:   [           82527]	<< Recorder 1 (1) -> Broadcast (F): vendor id LG (e091)
TRAFFIC: [           82527]	<< 1f:87:00:e0:91
DEBUG:   [           82528]	>> TV (0) -> Broadcast (F): device vendor id (87)
TRAFFIC: [           82806]	>> 0f:87:00:e0:91
DEBUG:   [           82806]	<< Recorder 1 (1) -> Broadcast (F): vendor id LG (e091)
TRAFFIC: [           82806]	<< 1f:87:00:e0:91
DEBUG:   [           82806]	>> TV (0) -> Broadcast (F): device vendor id (87)
TRAFFIC: [           82978]	>> 01
DEBUG:   [           82978]	<< POLL: TV (0) -> Recorder 1 (1)
TRAFFIC: [           89788]	>> 0f:36
NOTICE:  [           89788]	resetting SL initialised state
DEBUG:   [           89788]	>> TV (0) -> Broadcast (F): standby (36)
TRAFFIC: [           90997]	>> 0f:36
NOTICE:  [           90997]	resetting SL initialised state
TRAFFIC: [           91059]	>> 0f:36
NOTICE:  [           91059]	resetting SL initialised state
TRAFFIC: [           91121]	>> 0f:36
NOTICE:  [           91121]	resetting SL initialised state
TRAFFIC: [           91184]	>> 0f:36
NOTICE:  [           91184]	resetting SL initialised state
TRAFFIC: [           91247]	>> 0f:36
NOTICE:  [           91247]	resetting SL initialised state
TRAFFIC: [          101419]	>> 0f:87:00:e0:91
DEBUG:   [          101419]	<< Recorder 1 (1) -> Broadcast (F): vendor id LG (e091)
TRAFFIC: [          101419]	<< 1f:87:00:e0:91
DEBUG:   [          101419]	>> TV (0) -> Broadcast (F): device vendor id (87)