mirror of
https://github.com/karl0ss/AnotterKiosk.git
synced 2025-04-29 10:53:40 +01:00
kiosk: add support for custom modelines
This commit is contained in:
parent
09e631a7a9
commit
326a1426c3
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
raspikiosk.img
|
raspikiosk.img
|
||||||
raspios.img.xz
|
raspios.img.xz
|
||||||
work/
|
work/
|
||||||
|
.DS_Store
|
||||||
|
@ -5,6 +5,8 @@ hostname = "kioskpi"
|
|||||||
[screen]
|
[screen]
|
||||||
; can be used to force 1080p on 4k screens or workaround broken EDID communication
|
; can be used to force 1080p on 4k screens or workaround broken EDID communication
|
||||||
;force_resolution = "1920x1080"
|
;force_resolution = "1920x1080"
|
||||||
|
; force a custom modelines (for specialty diplays like embedded monitors, car screens, etc.)
|
||||||
|
;custom_modeline = "40.141 1024 1032 1064 1104 600 604 612 618 +HSync -VSync"
|
||||||
|
|
||||||
[wifi]
|
[wifi]
|
||||||
; If you need more complex WiFi settings (like WPA2-Enterprise, hidden SSIDs, etc.)
|
; If you need more complex WiFi settings (like WPA2-Enterprise, hidden SSIDs, etc.)
|
||||||
@ -16,7 +18,7 @@ ssid="My WiFi"
|
|||||||
psk="My Passphrase"
|
psk="My Passphrase"
|
||||||
|
|
||||||
[browser]
|
[browser]
|
||||||
url="https://tbspace.de/"
|
url="https://kittenlabs.de/"
|
||||||
; clear the browser cache every 10 minutes
|
; clear the browser cache every 10 minutes
|
||||||
cache_clear_interval=600
|
cache_clear_interval=600
|
||||||
|
|
||||||
@ -37,7 +39,7 @@ enabled=0
|
|||||||
; autossh can be used to keep a connection to a specified SSH server up-and-running to allow for remote access
|
; autossh can be used to keep a connection to a specified SSH server up-and-running to allow for remote access
|
||||||
; without the need for port forwarding, public IPv4 addressing, dynamic DNS, etc.
|
; without the need for port forwarding, public IPv4 addressing, dynamic DNS, etc.
|
||||||
enabled=0
|
enabled=0
|
||||||
args = "-p 22 -R 1234:127.0.0.1:22 tunnel@mydomain.de"
|
args = "-p 22 -R 1234:127.0.0.1:22 tunnel@example.com"
|
||||||
; security warning: ensure sshd_config "GatewayPorts" is set to "clientspecified" or "no".
|
; security warning: ensure sshd_config "GatewayPorts" is set to "clientspecified" or "no".
|
||||||
; GatewayPorts=yes will cause the kioskpi to be globally bound (0.0.0.0, regardless of the bind-address specified above) and be reachable from the internet!
|
; GatewayPorts=yes will cause the kioskpi to be globally bound (0.0.0.0, regardless of the bind-address specified above) and be reachable from the internet!
|
||||||
; This might be a huge risk.
|
; This might be a huge risk.
|
||||||
|
@ -24,6 +24,16 @@ then
|
|||||||
xrandr --output "${MONITOR}" --mode "${RESOLUTION}"
|
xrandr --output "${MONITOR}" --mode "${RESOLUTION}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set a custom modeline (if specified)
|
||||||
|
CUSTOM_MODELINE=$(get-ini /boot/kioskbrowser.ini screen custom_modeline)
|
||||||
|
if [ -n "${CUSTOM_MODELINE}" ]
|
||||||
|
then
|
||||||
|
MONITOR=$(xrandr -q | grep " connected" | awk '{ print $1; }')
|
||||||
|
xrandr --newmode "custom" ${CUSTOM_MODELINE}
|
||||||
|
xrandr --addmode "${MONITOR}" "custom"
|
||||||
|
xrandr --output "${MONITOR}" --mode "custom"
|
||||||
|
fi
|
||||||
|
|
||||||
# start chromium
|
# start chromium
|
||||||
URL=$(get-ini /boot/kioskbrowser.ini browser url)
|
URL=$(get-ini /boot/kioskbrowser.ini browser url)
|
||||||
chromium --start-fullscreen \
|
chromium --start-fullscreen \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user