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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

3,403 Views
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!

Tags (3)
0 Kudos
4 Replies

949 Views
art
NXP TechSupport
NXP TechSupport

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 Kudos

949 Views
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 Kudos

949 Views
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 Kudos

949 Views
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 Kudos