User Tools

Site Tools


Action disabled: source
raspberry

Raspberry Pi Model B

Wifi Setup

/etc/network/interfaces :

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

/etc/wpa_supplicant/wpa_supplicant.conf :

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
	ssid="OpenWrt"
	psk="xxxxxxxxx"
	key_mgmt=WPA-PSK
}

SainSmart 3.2" - screen

Follow this: http://www.raspberrypi.org/forums/viewtopic.php?f=91&t=95601

/etc/modules

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

snd-bcm2835
## TOUCH SCREEN MODULE
fbtft_device name=waveshare32b

/etc/rc.local :

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

## TOUCH SCREEN IF HDMI OR TOUCH SCREEN
echo "is it HDMI or DVI?" > /home/pi/tft.log
/usr/bin/tvservice -s >> /home/pi/tft.log
if (/usr/bin/tvservice -s | /bin/egrep 'HDMI|DVI') ; then
    echo "HDMI / DVI screen" >> /home/pi/tft.log
    # below setting is default
    # con2fbmap 1 0
else
    echo "switch on PiTFT" >> /home/pi/tft.log
    con2fbmap 1 1
fi


# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

exit 0

Run “sudo raspi-config” and select “3 Enable boot to Desktop → Desktop login as user pi …”

SainSmart 3.2" - touch

Disable screensaver/standby

/etc/xdg/lxsession/LXDE/autostart

# NO BLANK SCREEN
@xset s noblank
@xset s off
@xset -dpms

Enable screen to show/work on commandline

This is to get the screen working while booting and show whats going on during boot time on your Pi!

Add the following after “rootwait” in /boot/cmdline.txt (line 1):

fbcon=map:10 fbcon=font:VGA8x8
raspberry.txt · Last modified: 2015/12/26 00:02 by admin