If this does not bring the desired effect (some Raspbian distributions), there is another possibility. Here there is an alternative solution, but this works (for me) only when started via startx and not when the Pi starts in the desktop mode. This should stop the touchscreen from automatically turning off. In addition, the line -no-splash must be commented out with a #.įinally, we edit the config file sudo nano /etc/kbd/configĪnd add the following parameters at the end: BLANK_TIME=0 The additional content gets attached: s s noblank ![]() Then we edit the following file, sudo nano /etc/X11/xinit/xinitrc To prevent this, we proceed as follows: First, we install a required package: sudo apt-get install x11-xserver-utils – Note: Below is a simpler method for current Raspbian versions –Īnother point that bothers some applications is that after a few minutes of inactivity, the screen saver starts and the touchscreen turns completely black. for home automation, you could possibly set a motion detector in front/above it, where the display is turned on only when needed: Operate a motion sensor PIR on the Raspberry Pi Then the lighting can be switched off (1) or back on (0) by means of the following commands: echo 1 > /sys/class/backlight/rpi_backlight/bl_powerĮcho 0 > /sys/class/backlight/rpi_backlight/bl_power Now we give the file, which is responsible for the backlight, the necessary rights: sudo chmod 777 /sys/class/backlight/rpi_backlight/bl_power ![]() However, there is the possibility of switching the backlight on and off via command line, should the display currently not be needed.įirst of all, the firmware must be brought up to date, as the drivers were initially not there. Unfortunately, it is not possible to connect the display after starting the Pi, as it must already be connected and powered up at startup. Option "EmulateThirdButtonMoveThreshold" "30"Īfter the restart, a long click should look like this: MatchProduct "FT5406 memory based driver" In this case, pressing the touchscreen for a longer time in one place triggers the same effect as right-clicking on that location.įor this, we have to edit a file sudo nano /etc/X11/nfĪnd insert the following content: Section "InputClass" If you use the touchscreen without a mouse and keyboard, you will definitely miss the right-click function. The following is written at the end of the file: lcd_rotate=2Īfter the restart, the image should now be rotated by 180 ° and you can turn the display over, which puts the micro USB connector on top.Īlternatively, there are the following options: display_rotate=0 # Normal It only needs to be specified for one file sudo nano /boot/config.txt Luckily, there is the possibility to rotate the picture automatically. So if you do not have a 90 degree USB cable, it will be difficult to set up the display vertically. One point that initially bothered me a bit is that the micro USB entrance for the power supply is on the bottom of the display. In addition, a Raspberry Pi Model 2B or Raspberry Pi 3 should be used, if the display is not powered externally (so only via the GPIOs). What is the coloured dot in the top right corner?Īll of these tips have been tested on Raspbian, but should also run on Jessie or Kodi.Optimal programs and tools for the touchscreen.If you have more points, write a short comment and it will be added □ ![]() If you have bought the display recently or are thinking about it, you can read some important points here. The official 7″ Raspberry Pi touchscreen was developed by the Raspberry Pi Foundation and has a large number of options. In order to cover many topics, I have created this article, where some frequently asked questions (FAQ) are summarized. Not only is the very accurate 10-finger capacitive touch a positive, but also no GPIOs or HDMI ports are occupied. ![]() The official Raspberry Pi touchscreen module offers many options and makes many other touch displays look old for a similar price.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |