We’d like to put our Jetson Orin Nano into Kiosk mode and have followed these instructions
Creating Shell Script For Kiosk Mode
-
Open terminal: you can use short-cut ctrl+alt+t
-
Find name of touchscreen with xrandr --query
-
Open new text file named kiosk.sh:
-
Use vim ~/kiosk.sh
-
Enter:
-
#!/bin/bash
-
xrandr --output “touchscreen name” --rotate (right or left you need to figure it out)
-
exec “Path to executable”
-
Move kiosk.sh to kiosk home with mv ~/kiosk.sh /home/kiosk/
-
Make kiosk.sh executable with sudo chmod 770 kiosk.sh
-
Make the kiosk user the owner with sudo chown kiosk:kiosk kiosk.sh
Creating Kiosk Mode
-
Open terminal: you can use short-cut ctrl+alt+t
-
Create a new user named kiosk:
-
In terminal type: sudo useradd –m kiosk
-
You need to assign no password to the kiosk user: sudo passwd –d kiosk
-
Configure autologin for the kiosk user by changing custom.conf file in /etc/gdm3/:
-
Open a text editor for custom.conf by typing the following in the terminal: sudo nano /etc/gdm3/custom.conf
-
Under the [daemon] tag type:
AutomaticLoginEnable = true
AutomaticLogin = kiosk
-
Save the custom.conf file: ctrl+o , then press enter to confirm
-
Close text editor: ctrl+x
-
Create an xsession file that will run when kiosk logs in:
-
In terminal type in: sudo /usr/shar/xsession/kiosk.desktop
-
Type the following into the text editor (replace Path to executable with an actual path):
-
Save the custom.conf file: ctrl+o , then press enter to confirm
-
Close text editor: ctrl+x
-
Make kiosk.desktop the default session when kiosk logs in:
-
Switch to the root user (sudo will no longer suffice). In the terminal type: su -
-
Open kiosk config file: nano /var/lib/AccountsService/users/kiosk
-
Change the Session and XSession to kiosk:
-
Save the custom.conf file: ctrl+o , then press enter to confirm
-
Close text editor: ctrl+x
-
Switch back to your user. In terminal type: exit
-
Reboot system. In terminal type: reboot
-
When the nvidia reboots, it should automatically login and execute the program listed in the Exec in step 4.
-
Once the program ends the xsession will end and send you back to the regular login screen. Since the PMC interface doesn’t have a way to exit the app, you can use ctrl+alt+F1 to close the xsession. This is an easy way to login to the admin user to troubleshoot the nvidia system.
PROBLEM: However, on startup we get a black screen followed by going back to login screen.