Last active
January 6, 2019 06:12
-
-
Save mmonti/96aebd89d3e6e02eabfe567ee174b1a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Basic steps: https://die-antwort.eu/techblog/2017-12-setup-raspberry-pi-for-kiosk-mode/ | |
/boot/cmdline.txt | |
``` | |
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty3 quiet splash loglevel=0 logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles root=PARTUUID=45acf583-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait | |
``` | |
/boot/config.txt | |
``` | |
# uncomment if hdmi display is not detected and composite is being output | |
hdmi_force_hotplug=1 | |
# uncomment to force a specific HDMI mode (here we are forcing 800x480!) | |
hdmi_group=2 | |
hdmi_mode=87 | |
hdmi_cvt=800 480 60 6 0 0 0 | |
hdmi_drive=1 | |
max_usb_current=1 | |
disable_splash=1 | |
# Uncomment some or all of these to enable the optional hardware interfaces | |
dtparam=i2c_arm=on | |
dtparam=spi=on | |
dtoverlay=ads7846,penirq=25,speed=10000,penirq_pull=2,xohms=150 | |
``` | |
File: .bash_profile | |
``` | |
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx >/dev/null 2>&1 | |
``` | |
On file: /etc/rc.local | |
- add before exit 0 | |
dmesg --console-off | |
Add empty file: ~/.hushlogin | |
Add file to: /etc/x11/xorg.conf.d/99-calibration.conf | |
``` | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "3853 170 288 3796" | |
Option "SwapAxes" "1" | |
EndSection | |
``` | |
Add file to: /etc/X11/openbox/autostart | |
``` | |
xset s off | |
xset s noblank | |
xset -dpms | |
chromium-browser --disable-infobars --incognito --kiosk '$URL' | |
``` | |
File: /etc/systemd/system/autologin@.service | |
``` | |
[Service] | |
# the VT is cleared by TTYVTDisallocate | |
#ExecStart=-/sbin/agetty --autologin pi --noclear --noissue %I $TERM | |
ExecStart=-/sbin/agetty --skip-login --noclear --noissue --login-options "-f pi" %I $TERM | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment