User Tools

Site Tools


raspberry

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
raspberry [2015/01/18 18:29] adminraspberry [2015/12/26 00:02] (current) – [Wifi Setup] admin
Line 26: Line 26:
 network={ network={
  ssid="OpenWrt"  ssid="OpenWrt"
- psk="_wallstreet39_"+ psk="xxxxxxxxx"
  key_mgmt=WPA-PSK  key_mgmt=WPA-PSK
 } }
 </code> </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.1421602188.txt.gz · Last modified: 2015/01/18 18:29 by admin