[ARM Application] Solve the problem of LCD screen automatically closing and closing without changing the kernel code

Publisher:HeavenlyLoveLatest update time:2016-11-22 Source: eefocusKeywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

       It can be implemented in the application. Do not change the kernel driver. Write a small program:
#include  
#include  
#include  
void keep_LCD_screen(void) 

       int fd; 
       fd = open("/dev/tty0", O_RDWR); 
       write(fd, "\033[9;0]", 8); 
       close(fd); 

int main(void)
{
       keep_LCD_screen();
       return 0;
} Compile this application to generate an executable file. If it is named "LCD_screen", download "LCD_screen" to the /bin directory of the development board, and then add the following command $./bin/LCD_screen
       to the rcS startup configuration file in the root file directory /etc/init.d.        Restart the kernel and the LCD will not turn off automatically. You can implement it in the application when you want to turn it off. It is definitely not a wise approach to block the blank_screen_t() function. Once you block blank_screen_t(), sometimes some applications will want to turn off the display, and you will not be able to implement it at this time. You can only change the kernel.

Keywords:ARM Reference address:[ARM Application] Solve the problem of LCD screen automatically closing and closing without changing the kernel code

Previous article:[ARM Notes] Driver identification process and examples of devices - NAND Flash
Next article:[ARM Notes] The relationship between virtual address and physical address

Recommended ReadingLatest update time:2024-11-16 13:45

ARM instruction set - data processing instructions
ARM assembly instruction set Composition of ARM assembly files Instruction: After compilation, it is stored in the memory unit as an instruction (machine code), and the CPU can complete the processing operation when it is executed. Pseudo-instructions: replaced with recognizable ARM instructions during compilation
[Microcontroller]
ARM Watchdog Timer——WDT
Watchdog principle The watchdog is a timer in principle. The timer counts pulses. When the timer overflows, a reset signal is generated to reset the entire system. The function of the watchdog is to prevent the system from accidentally running away, and it can still be reset and operate normally in an unattended state
[Microcontroller]
ARM Watchdog Timer——WDT
ARM32 ARM64 device tree matching and compatible ATAGS
arm32 arm64 u-boot load linux command bootm   bootm uImage_addr // No device tree, bootm 0x30007FC0   bootm uImage_addr initrd_addr dtb_addr // has device tree  ---   nand read.jffs2 0x30007FC0 kernel; // Read kernel uImage to memory 0x30007FC0   nand read.jffs2 32000000 device_tree; // Read dtb to memory 32000000
[Microcontroller]
(Embedded) About the storage controller in ARM (I)
Purpose: When the development board (JZ2440 V3) starts the CPU from Nand flash after power-on, the CPU will copy the first 4K data of Nand flash to the 4K internal SRAM called "Steppingstone" (starting address is 0) through the internal hardware, and then jump to address 0 to start execution. In this experiment, we
[Microcontroller]
(Embedded) About the storage controller in ARM (I)
Design of switch signal acquisition template based on ARM
O Introduction The switch signal acquisition template designed in this paper is a plug-in for an embedded SCADA system, called the Intelligent Binary Input Board (B-board). This device is mainly used for real-time data acquisition and control in the field of industrial process control such as power systems.
[Microcontroller]
Design of switch signal acquisition template based on ARM
Development of Solar Heating Controller for Oil Tanks in Single Wells of Oilfields Based on ARM
my country's total annual primary energy reserves (excluding biomass energy and new energy) are 1.4 billion tons of standard coal, including 1.46 billion tons of raw coal, 170 million tons of crude oil, 30 billion cubic meters of natural gas, 240 billion kWh of hydropower, 250 kWh of nuclear power, 400-600 million tons
[Microcontroller]
Development of Solar Heating Controller for Oil Tanks in Single Wells of Oilfields Based on ARM
What is the difference between ARM and embedded?
There are some clear differences between ARM and embedded systems. First of all, ARM is an embedded processor architecture, and an embedded system is an integrated software and hardware system that runs multiple applications at the same time, usually embedded in larger systems, such as portable electronic devices and
[Microcontroller]
Solution to the problem that the ARM development board cannot mount the USB disk
Introduction: I inserted the USB drive into the development board, and it said it was connected, but nothing was displayed. The manual said there would be a folder called udsik, but I couldn't find it. problem solved: 1. cd /dev, you can see sd1, this is the prompt when inserting the USB disk sd: sda1 2. Create
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号