21
Blogs / Re: Raspberry Pi and Python
« Last post by Dragon on November 15, 2023, 20:54:39 »As a follow up to my previous comment, the USB adapter for Wi-Fi is working now.
Continuing into the 2nd chapter of Raspberry Pi 3 Cookbook for Python Programmers, I've found that I needed to install scikit-learn to have the necessary datasets. While trying to install scikit-learn on my RPI the other day, which was taking a very long time, the system went to sleep. The screen would go black after about 10 minutes and I was thinking it might be helpful to adjust the power settings so it wouldn't do that. The GUI doesn't have anything that I could find to change it, but I did find some command line stuff that worked without installing anything more.
Continuing into the 2nd chapter of Raspberry Pi 3 Cookbook for Python Programmers, I've found that I needed to install scikit-learn to have the necessary datasets. While trying to install scikit-learn on my RPI the other day, which was taking a very long time, the system went to sleep. The screen would go black after about 10 minutes and I was thinking it might be helpful to adjust the power settings so it wouldn't do that. The GUI doesn't have anything that I could find to change it, but I did find some command line stuff that worked without installing anything more.
Quote from: https://stackoverflow.com/questions/30985964/how-to-disable-sleeping-on-raspberry-pi#58698636
I found there are two settings that have to be changed as either one of them will blank the screen in ten minutes under the default settings.
set screen saver timeout to zero:
xset s 0
and set dpms (EnergyStar) to disabled:
xset -dpms
This way I haven't needed to install anything (no screensaver). It was confusing because I'd tried both items, but it wasn't until I learned they both were blanking the screen at ten minutes that I saw what was going on.
As this has tested out OK, the next step for me is to put them into an autostart routine.
ps Verify your settings with
xset q