Boris
Boris

Reputation: 3243

Power On/Off API in Samsung Tizen TV

Is it possible to programmatically to turn the TV On/Off via the Web (or other) APIs from within Tizen? (Can't find any reference to this in docs)

Upvotes: 4

Views: 3050

Answers (1)

Sanguinary
Sanguinary

Reputation: 354

Up until Tizen 4.0 it was possible to use these (now deprecated) Power API calls:

tizen.power.turnScreenOn();
tizen.power.turnScreenOff();

These has now changed to:

//Turn on
tizen.power.request("SCREEN", "SCREEN_NORMAL");

//Turn off
tizen.power.request("SCREEN", "SCREEN_OFF");

NOTE: That SCREEN_OFF cannot be requested directly and has to be called in a event handler.

You can read more about managing power resources here.

Upvotes: 3

Related Questions