Linux What key activates screen
#1
Question 
I have the following scenario:
  • my HTPC does not go into standby or activates a screensaver
  • the screen is deactivated after 30 minutes of idle time

When I start the HTPC activity with my Harmony I have to options:
  1. send any key to activate the screen
  2. send no key

The first option has the problem that the key is taken as a command.
If the key is ENTER the selected movie will be started for example.
The second option has no effect at all, of cause.

I thought I could send a non-intrusive command like KEY_LEFTCTRL but that does not activate the screen.

Code:
1499720052.526714: event type EV_MSC(0x04): scancode = 0x800f0446
1499720052.526714: event type EV_KEY(0x01) key_down: KEY_LEFTCTRL(0x001d)
1499720052.526714: event type EV_SYN(0x00).
1499720052.630682: event type EV_MSC(0x04): scancode = 0x800f0446
1499720052.630682: event type EV_SYN(0x00).
1499720052.755909: event type EV_MSC(0x04): scancode = 0x800f0446
1499720052.755909: event type EV_SYN(0x00).
1499720053.007664: event type EV_KEY(0x01) key_up: KEY_LEFTCTRL(0x001d)

Why?
What key can I use that activates the screen, but does not execute any command?
Reply
#2
I dont understand exactly, is the 30 minute idle time set in the OS or Kodi?
For me, I set the time to turn off screen directly in kodi: Settings -> System -> Energy Saving -> Tick the first entry, somehing like "Turn off screen while idle after.." (its set german for me so I dont know it exactly). Screensaver is deactivated in Kodi, also timeout and screensaver for the display is all deactivated in Ubuntu, let Kodi handle it.

I can wake up the screen with any button (IR remote or keybard) and it won't do any actions for this keypress except turning on the screen, i think this is what you want to achieve.
Reply
#3
You are right.

It turned out, I did not had configured any "torn display off" at all.
So the first key press could not reactivate the screen, but executed the command.

I disabled any "wake upa" key and it now works as expected.
Reply

Logout Mark Read Team Forum Stats Members Help
What key activates screen0