I would like to display a bmp or png image when linux is halted.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I would like to display a bmp or png image when linux is halted.

ソリューションへジャンプ
1,993件の閲覧回数
hideo_yamashiro
Contributor III

Hi,

We am developing a software for a equipment.
The software works on embedded linux on a our custom board based on mx7dsabresd.
We would like to display a image that a operator can safely power off on LCD when linux is halted.
We have no idea to implement that feature.
Could you give us any idea?

Now, When linux is halted, LCD display is completely off .

We just think a method the following but it is not good. we cannot change the image.
(1).When mxsfb_shutdown() in mxsfb.c is called,
      the LCD driver copies a converted image data to the frame buffer.
      In this case, we should make the converted image data before kernel build.
      We would like to use a bmp file or a png file directly.
Could you give us better ideas?

Best regard,
Hideo Yamashiro.

0 件の賞賛
返信
1 解決策
1,978件の閲覧回数
hideo_yamashiro
Contributor III

Hi, I can solved the issue by myselt.

I use sysemd, so I made a service file to display a power-off image file when the state of linux reach shutdown.target.
I use fbv package to display a image.
I modified the following driver source files to skip to stop LCD and pwm-backlight.
(1). mxsfb_shutdown() in mxsfb.c
(2). pwn_backlight_shutdown() in pwm_bl.c

Best regards,
Hideo Yamashiro.

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,979件の閲覧回数
hideo_yamashiro
Contributor III

Hi, I can solved the issue by myselt.

I use sysemd, so I made a service file to display a power-off image file when the state of linux reach shutdown.target.
I use fbv package to display a image.
I modified the following driver source files to skip to stop LCD and pwm-backlight.
(1). mxsfb_shutdown() in mxsfb.c
(2). pwn_backlight_shutdown() in pwm_bl.c

Best regards,
Hideo Yamashiro.

 

 

0 件の賞賛
返信