Raspberry Pi Tidbits

When I upgraded my Raspbian image from Jessie to Stretch, my wifi adapter stopped working. I thought perhaps the adapter had died, so I swapped it out, but the problem continued. Thinking the filesystem had been corrupted, I burned a new image on the SD card. Even with the new version, the wifi adapter still wasn’t connecting to the network.

After hours of beating my head against the wall, I stumbled across a Raspberry Pi forum post that finally led me to the right answer. I discovered that the ctrl_interface line was missing from wpa_supplicant.conf. After adding it and rebooting, the Pi connected to the wifi network:

ctrl_interface=/var/run/wpa_supplicant
network={
    ssid="**********"
    psk="***********"
}

Since I rebuilt the system, I was struggling to remember how I’d previously set it up to boot directly into kiosk mode. It took another google-based reminder that you have to modify the  local LXDE autostart file, not the system file. I replaced the contents of /home/pi/.config/lxsession/LXDE-pi/autostart with the following:

@xset s off
@xset -dpms
@xset s noblank
@chromium-browser --kiosk /home/pi/kiosk/start.html