Raspberry Pi – a couple more tips

I have my Pi networked via a switch to my main (Windows) PC. I use WinSCP or my PC for copying files both ways but it means I’m not using the Pi for periods of 15 or 20 minutes.
Unfortunately the default display timeout on the Pi is 10 minutes. It’s not a bad thing but I decided I wanted an hour.
This fix seems to work. It came from this page on the Raspberry Pi forums. To save you the effort of reading through a few different suggestions, the one that worked for me is this in a terminal (From the answer at 1.02 am). The 3600 is the time period in seconds in case you hadn’t guessed!
Apparently there are two timeout mechanism hence two commands are needed.
xset s 3600 xset dpms 3600 3600 3600
You can view the settings with
xset q
However to make these settings permanent, you need to edit the file:
sudo nano /etc/xdg/lxsession/LXDE/autostart
That way they are set at boot time.
Note. I’m not really a fan of nano. From Ubuntu I’ve used gedit quite a bit and it is a visual full-screen editor, not line by line like nano. Yeah you could use VS Code if it were open but then on files where you have to use sudo, it’s easier to use gedit.
So
sudo apt install gedit
will install it. Just gedit or sudo gedit (for those awkward files!)


My Raspberry Pi now has both a 7″ touchscreen and a 24″ monitor working at the same time. Most work is done on the big screen but the smaller display is for testing. I’ve reconfigured it so the menu is on the bigger screen, it makes more sense.
I’m not going to be departing from SDL2 any day soon, but if I were starting from scratch, I would seriously consider
It just shows what you can do in 38,000 lines of code.
There are some subtle differences between it and Visual Studio Code. The main one is the not having access to the VisualStudio market place. The C/C++ template isn’t there but instead is installed by default.
I played with a couple of free packages today. I can recommend hardinfo. (sudo apt install hardinfo to install then hardinfo to run ) though less about the benchmarks than the information it gives on your system.
It was very easy. This was onto my Pi 4 running 64-bit Raspberry Pi OS.
Yesterday’s post reminded me of one of the joys of my youth. The Creative Computing magazines’ “BASIC Computer games” book and it’s sequel “More BASIC Computer games.” . I bought these in 1982, and they weren’t cheap then- about £20 each.