ATtiny85 ricevitore USB Keyboard e WAKEUP from sleep con libreria "TrinketHidCombo"

Ciao a tutti.
Sto programmando il microcontrollore ATtiny85 come ricevitore infrarossi via USB su Linux/Windows con la libreria "TrinketHidCombo" -> "GitHub - adafruit/Adafruit-Trinket-USB: Arduino libraries allowing Trinket to act as USB devices".
Come progetto ho seguito il codice presente nel sito "https://www.instructables.com/Digispark-IR-Receiver-Keyboard/" e sto usando un logitech harmony come remote device "Dragon Box Media Player".
Collegando via USB su windows o linux viene riconosciuta la tastiera e i comandi vengono inviati correttamente, funziona bene dire.
L'unico problema che vorrei risolvere è il wakeup dopo lo sleep, infatti non funziona.

  1. Prima cosa strana:
    Dopo che il sistema va in sleep e premo un tasto nel telecomando vedo solamente alla prima pressione la luce che si accende nel ATtiny85, le successive pressioni non vengono riconosciute.
    Ho provato a commantare nella libreiria TrinketHidCombo la parte di codice "char isConnected();" nel file "TrinketHidCombo.h" e le linee "char Trinket_Hid_Combo::isConnected()" nel file "TrinketHidCombo.cpp" ma non è cambiato niente.

  2. Seconda cosa strana su Linux:
    Quando viene riconosciuto la keyboard nella parte "power" del device mancano i componenti di wakeup*.

root@mymce:~# lsusb
Bus 001 Device 019: ID 1781:24ab Multiple Vendors Trinket HID Combo

root@mymce:~# grep 24ab /sys/bus/usb/devices/*/idProduct
/sys/bus/usb/devices/1-8/idProduct:24ab

root@mymce:~# ls -l /sys/bus/usb/devices/1-8/power/
total 0
-r--r--r-- 1 root root 4096 May 21 17:19 active_duration
-rw-r--r-- 1 root root 4096 May 21 17:19 async
-rw-r--r-- 1 root root 4096 May 21 17:19 autosuspend
-rw-r--r-- 1 root root 4096 May 21 17:19 autosuspend_delay_ms
-r--r--r-- 1 root root 4096 May 21 17:19 connected_duration
-rw-r--r-- 1 root root 4096 May 21 17:19 control
-rw-r--r-- 1 root root 4096 May 21 17:19 level
-rw-r--r-- 1 root root 4096 May 21 17:19 persist
-r--r--r-- 1 root root 4096 May 21 17:19 runtime_active_kids
-r--r--r-- 1 root root 4096 May 21 17:19 runtime_active_time
-r--r--r-- 1 root root 4096 May 21 17:19 runtime_enabled
-r--r--r-- 1 root root 4096 May 21 17:19 runtime_status
-r--r--r-- 1 root root 4096 May 21 17:19 runtime_suspended_time
-r--r--r-- 1 root root 4096 May 21 17:19 runtime_usage

Dalla documentazione del kernel linux "https://www.kernel.org/doc/Documentation/usb/power-management.txt"

	power/wakeup

		This file is empty if the device does not support
		remote wakeup.  Otherwise the file contains either the
		word "enabled" or the word "disabled", and you can
		write those words to the file.  The setting determines
		whether or not remote wakeup will be enabled when the
		device is next suspended.  (If the setting is changed
		while the device is suspended, the change won't take
		effect until the following suspend.)

Quindi mi viene da pensare che nel codice della libreria manca il supporto per il "remote wakeup".
Deduco che il problema sia nel codice perchè usando la tastiera USB Logitech K400 il wakeup funziona ed infatti sono presenti i files "power/wakeup*"
Qualcuno riesce ad aiutarmi per eventualmente implementare questa parte e abilitare il wakeup dallo stato di sleep?
grazie a chiunque possa darmi una mano.

in conformità al punto 13 del REGOLAMENTO, ti rammento che il cross-posting è proibito (anche tra lingue diverse) e ... tu hai già posto la stessa/simile domanda QUI.

Ti prego quindi di continuare nel thread che hai già aperto.

Guglielmo

P.S.: Il motivo è che i messaggi doppi fanno perdere tempo alle persone che cercano di aiutare. Qualcuno potrebbe spendere parecchio tempo per scrivere una risposta dettagliata su una discussione, senza sapere che qualcun altro ha già fatto lo stesso in un altra identica/simile discussione.