User Tools

Site Tools


raspberry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
raspberry [2015/01/18 18:26] – created adminraspberry [2015/01/18 22:08] – [Disable screensaver/standby] admin
Line 1: Line 1:
 ====== Raspberry Pi Model B ====== ====== Raspberry Pi Model B ======
  
 +===== Wifi Setup =====
 +
 +
 +/etc/network/interfaces :
 +
 +<code>
 +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
 +</code>
 +
 +/etc/wpa_supplicant/wpa_supplicant.conf :
 +
 +<code>
 +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
 +update_config=1
 +
 +network={
 + ssid="OpenWrt"
 + psk="_wallstreet39_"
 + key_mgmt=WPA-PSK
 +}
 +</code>
 +
 +===== SainSmart 3.2" - screen =====
 +
 +Follow this: http://www.raspberrypi.org/forums/viewtopic.php?f=91&t=95601
 +
 +/etc/modules
 +
 +<code>
 +# /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
 +</code>
 +
 +/etc/rc.local :
 +
 +<code>
 +#!/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
 +</code>
 +
 +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
 +
 +<code>
 +# NO BLANK SCREEN
 +@xset s noblank
 +@xset s off
 +@xset -dpms
 +</code>
 +
 +
 +===== 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