Enable Console on PiScreen
To move the console from the HDMI/RCA to PiScreen you have to updated /boot/cmdline.txt
1. Backup cmdline.txt
2. Update cmdline.txt
Add the text below to the end of the first line. Not on a new line as this will not work.
Rotate will rotate the console on PiScreen. Rotate can be 0, 1, 2 or 3.
fbcon=map:10 fbcon=rotate:2 fbcon=font:ProFont6x11
Reboot for the changes to take effect.
First, we need to find out what file handle is used for the touchscreen on the PiScreen.
A file handle is created for each input device currently connected and can change depending on what is connected and how many input devices are connected.
If you have a keyboard and mouse connected, there should be 3 files. One for the keyboard, one for the mouse and the last one for the touchscreen. If you have just a keyboard connected, there would be two. One for the keyboard and one for the touchscreen.
To see what file handle is used for the touchscreen, view the file below.
Look for ADS7846 Touchscreen and within the same section you should see H: Handlers= followed by an eventnumber. This will tell you what file under /dev/input/ is used for the touchscreen.
Going forward, use the input event number associated to your touchscreen in the commands below.
ts_lib is used to calibrate the touche screen for console use. ts_lib also includes some other tools to test your touchscreen.
Now run the ts_calibrate utility, while setting the framebuffer device and touchscreen device variables;
ts_lib also includes a test utility to test your touchscreen;
Running ts_print will output the coordinates of the touchscreen when pressed;
To view raw events of the input system, E.g. touschscreen input, we can use evtest.
Run evtest with;
By default, the console will blank out after 30 mins.
This can be changed by editing the value
Setting this value to ‘0’ will disabling blanking.
Once you have enabled the console on PiScreen, you should head over to here to learn how to enable X Windows on your PiScreen.