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.
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
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- EEWorld invites you to participate in the "National Competition Experience Sharing Competition" to support the 2019 National Undergraduate Electronic Design Competition
- STM32WB new generation wireless chip BLE application development and design series courses are now online
- The key to the difference between capacitors lies in the dielectric
- C language memory allocation in STM32
- Russia's revenge is too crazy! This organization has been unbanned, and the era of piracy is back...
- Problems with crystal oscillator circuits
- How to use TMS320DM8148 for object recognition?
- [RVB2601 Creative Application Development] Development Environment Construction and LED Flowing Light
- Transfer-【TWS headphones】Some you really don’t know
- Need help 24V 100mA working current sensorless built-in MOS three-phase brushless motor driver chip