-
Notifications
You must be signed in to change notification settings - Fork 1
/
boot_hacks
41 lines (31 loc) · 1.45 KB
/
boot_hacks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#DCZia_Hackz
#Info mostly sourced from: https://himeshp.blogspot.com/2018/08/fast-boot-with-raspberry-pi.html
gpu_mem=64
disable_overscan=1
# Force on HDMI
hdmi_force_hotplug=1
hdmi_drive=2
#Force 1080p output
hdmi_group=1
hdmi_mode=16
# Disable the rainbow splash screen
disable_splash=1
# Disable bluetooth
dtoverlay=pi3-disable-bt
# Overclock the Pis SD Card reader from 50 to 84MHz - A good U1 card can do 100 but for compatibility we set 84
# This can only be done with at least a UHS Class 1 card
dtoverlay=sdtweak,overclock_50=84
# Set the bootloader delay to 0 seconds. The default is 1s if not specified.
boot_delay=0
# Overclock the raspberry pi. Make sure you have a good power supply.
force_turbo=1
# Binding keys 1-3 to key1 right ctrl key2 space key3 h
dtoverlay=gpio-key,gpio=21,gpio_pull=up,active_low=1,label=key1,keycode=109
dtoverlay=gpio-key,gpio=20,gpio_pull=up,active_low=1,label=key2,keycode=65
dtoverlay=gpio-key,gpio=16,gpio_pull=up,active_low=1,label=key3,keycode=35
# Binding joystick up up arrow down down arrow left left arrow right right arrow press esc
dtoverlay=gpio-key,gpio=6,gpio_pull=up,active_low=1,label=joyup,keycode=103
dtoverlay=gpio-key,gpio=19,gpio_pull=up,active_low=1,label=joydown,keycode=108
dtoverlay=gpio-key,gpio=5,gpio_pull=up,active_low=1,label=joyleft,keycode=105
dtoverlay=gpio-key,gpio=26,gpio_pull=up,active_low=1,label=joyright,keycode=106
dtoverlay=gpio-key,gpio=13,gpio_pull=up,active_low=1,label=joypress,keycode=1