How did `echo mem > /sys/power/state ` do ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How did `echo mem > /sys/power/state ` do ?

7,155 次查看
wangvictor
Contributor III

Hi All,

I'm using i.MX6 sabresd for my board and ubuntu 16.04 for my os system.

When I go into the sleeping mode I will run `echo mem > /sys/power/state `.

And the back light will turn off.

Here I got some questions:

1. Where will it turned off the back light when I run `echo mem > /sys/power/state ` and how do it know which back light pin I've defined.

2. Which device will it turned off ?

Any answers or documents can provide me to understand it?

Thanks in Advanced!

标记 (3)
0 项奖励
4 回复数

4,701 次查看
art
NXP Employee
NXP Employee

Actually, when you execute the 'echo mem > /sys/power/state' command, the system goes to the "suspend-to-memory" power saving mode, turning most of the SoC IPs off. The display backlight is controlled by the backlight driver, you can check its definitions in the system .dts file.

You can find more information in the BSP documentation, please find it attached.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励

4,701 次查看
wangvictor
Contributor III

Artur Petukhov 員工 
Is the Soc IPs need the voltage which is from pmic?

I'm not quite sure what is the Soc IPs stand for.

0 项奖励

4,700 次查看
aravinthkumarja
Senior Contributor II

Hi victor,

1) This is direct syscall. it will call the kernel functions and it will do the respective operation.

2) In kernel it will fetch pin details from dts. In dts configured device it get to off.

Regards,

Aravinth

0 项奖励

4,701 次查看
wangvictor
Contributor III

@aravinthkumar jayaprakasam

1) Which kernel driver will it call could you give me a hint?

2) So if I defined it in the dts then it will be all set in the pmic detect?

0 项奖励