Skip to content

Commit e33f616

Browse files
authored
Merge pull request #6 from FourThievesVinegar/fix/bootup-sequence
Working kiosk
2 parents 4b54f18 + 3bc72e7 commit e33f616

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

overlays/rootfs-overlay/etc/systemd/system/microlab-browser.service

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[Unit]
2-
Description=Microlab Browser (X11 Kiosk)
3-
After=network-online.target systemd-logind.service getty@tty1.service
2+
Description=Microlab Browser (X11 Kiosk on vt7)
3+
After=network-online.target systemd-logind.service
44
Wants=network-online.target
5-
BindsTo=getty@tty1.service
65

76
# OR conditions using the '|' prefix — if any exists, the unit may start
87
ConditionPathExists=|/dev/fb0
@@ -26,17 +25,17 @@ RuntimeDirectoryMode=0700
2625
Environment=DISPLAY=:0
2726
Environment=XDG_RUNTIME_DIR=%t/microlab-browser
2827

29-
# Attach to a real VT and open a PAM session so logind grants seat/DRM/input access
28+
# Open a PAM session so logind grants seat/DRM/input access.
29+
# Attach to a VT we control (not the tty1 getty).
3030
StandardInput=tty
31-
TTYPath=/dev/tty1
31+
TTYPath=/dev/tty7
3232
TTYReset=yes
33-
TTYVHangup=yes
34-
TTYVTDisallocate=yes
3533
PAMName=login
3634

37-
# Launch Xorg on :0 and run startBrowser script as *thief*
35+
# Launch Xorg on :0 bound to vt7 and run startBrowser as *thief*
3836
# (no --no-sandbox needed because we're not root)
39-
ExecStart=/usr/bin/xinit /opt/solderless-microlab/scripts/startBrowser.sh -- :0 -nolisten tcp -s 0 -dpms -nocursor vt1
37+
ExecStart=/usr/bin/xinit /opt/solderless-microlab/scripts/startBrowser.sh -- :0 -nolisten tcp -s 0 -dpms -nocursor vt7
38+
4039
Restart=on-failure
4140
RestartSec=5
4241

0 commit comments

Comments
 (0)