Screen and Desktop Settings
Connect a Keyboard and Mouse
Connect a USB-C Hub
Connect the keyboard and mouse to a USB-C Hub, connect the power supply to the Hub's PD port, and then connect the Hub to the UNO Q's USB-C port.
Set the USB Mode
Use Host mode when connecting a keyboard and mouse; use Device mode when connecting to a computer via USB for App Lab.
Run the following commands in the UNO Q desktop terminal or via network SSH. The corresponding role node must exist in the system.
- Connect Keyboard and Mouse (Host)
- Connect to Computer (Device)
-
Check the current mode:
cat /sys/class/usb_role/4e00000.usb-role-switch/roleIf the output is
host, no switching is needed; check whether the keyboard and mouse work properly. Otherwise, continue to the next step. -
Switch to Host mode. This operation interrupts the USB data connection to the computer.
echo host | sudo tee /sys/class/usb_role/4e00000.usb-role-switch/rolecat /sys/class/usb_role/4e00000.usb-role-switch/roleAfter confirming that the output is
host, check whether the keyboard and mouse work.
Run the following commands to switch back to Device mode. After switching, the USB keyboard and mouse will be disconnected.
echo device | sudo tee /sys/class/usb_role/4e00000.usb-role-switch/role
cat /sys/class/usb_role/4e00000.usb-role-switch/role
After confirming that the output is device, connect the UNO Q's USB-C port to the computer and check whether App Lab recognizes the board.
The commands above only switch the currently running USB mode and do not configure it to start automatically at boot. If the keyboard and mouse do not work after a restart, check the USB mode again.
Screen Rotation
Display Rotation
The following uses 90° Right (rotate 90° to the right) as an example.
-
On the desktop, open Settings > Display

Under Rotation, select Right, click Apply, and save.

Touch Rotation
-
Create the configuration directory (this can also be run if it already exists):
sudo mkdir -p /etc/X11/xorg.conf.d -
Open the touch configuration file:
sudo nano /etc/X11/xorg.conf.d/99-goodix-dsi-rotation.conf -
If the file is empty, add the following configuration; if a configuration already exists, modify only the
TransformationMatrixline.Section "InputClass"Identifier "Goodix DSI touchscreen rotation"MatchProduct "Goodix Capacitive TouchScreen"MatchIsTouchscreen "on"Driver "libinput"Option "CalibrationMatrix" "5.2 0 0 0 3.2 0 0 0 1"Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"EndSectionThe example above is for 90° Right. If you need another orientation, replace the
TransformationMatrixline with the corresponding content below, keeping only one:# Default portrait, 0°:Option "TransformationMatrix" "1 0 0 0 1 0 0 0 1"# 90° Right:Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"# 180° Inverted:Option "TransformationMatrix" "-1 0 1 0 -1 1 0 0 1"# 270° Left:Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
-
Press Ctrl+O → Enter to save, and press Ctrl+X to exit. After saving other work, reboot the UNO Q:
sudo rebootAfter rebooting, tap the center and four corners of the screen to confirm that the touch positions are correct.
Auto-Login to the Desktop at Boot
-
Open the LightDM configuration file on the UNO Q. Keep a backup of the existing configuration before modifying; if the backup file below already exists, use a new name:
sudo cp -n /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.before-uno-q-desktopsudo nano /etc/lightdm/lightdm.conf -
Set the following items in the existing
[Seat:*]section; add it only if the file does not have that section. Do not add the section name repeatedly or overwrite other configurations:[Seat:*]autologin-guest=falseautologin-user=arduinoautologin-user-timeout=0
Replace
arduinowith the actual desktop account returned bywhoami. This only configures Linux desktop login; it will not automatically log in to website accounts, nor will it disable the standby lock screen. Once enabled, anyone with access to the device can use that account directly. -
Save the file and other work, then reboot:
sudo rebootConfirm that you can enter that account without entering the desktop password. If the login screen still appears, check the account name and whether other LightDM configurations override the above settings.
Keep the Screen Always On
Set X Server Parameters via LightDM
This method is set when the X server starts, and is applicable to desktops where X11 is started by LightDM. It does not disable the password lock screen; Xfce power management or the screen saver may still reset the timers, so you need to check the display timer in Xfce "Power Manager" and the idle activation settings of the screen saver.
-
Before modifying, keep a configuration backup using the method in Auto-Login to the Desktop at Boot, then open:
sudo nano /etc/lightdm/lightdm.conf -
In the existing
[Seat:*]section, find#xserver-command=X, uncomment it, and change it to:xserver-command=X -s 0 -dpms
-s 0: Set the X server screen saver timeout to 0, disabling that timer.-dpms: Disable the X server's display power management (DPMS).
The current screenshot uses
[Seat:*], and no longer creates the old-style[SeatDefaults]. If an existingxserver-commandcontains other parameters, keep the necessary parameters; keep only one effective configuration in the same section. -
After saving your work, reboot:
sudo reboot
Hide the Mouse Cursor
-
Open
/etc/lightdm/lightdm.confsudo nano /etc/lightdm/lightdm.confAdd
-nocursorto thexserver-commandin the existing[Seat:*]section.
To only hide the cursor:
xserver-command=X -nocursorWhen the always-on setting is also needed, combine the parameters on the same line:
xserver-command=X -s 0 -dpms -nocursorDo not add a second
xserver-command, otherwise it may overwrite the original setting. Keep the three auto-login configuration items; setting only-nocursorwill not enable auto-login or fullscreen web pages. -
Save your work and run
sudo reboot.
Disable App Lab Desktop Autostart
Execute in the desktop terminal of the UNO Q's current account; sudo is not required.
xfce4-session-settings
-
In "Session and Startup", go to "Application Autostart".
-
Find "Arduino App Lab" and uncheck it.

-
Close the settings and App Lab windows, log out and log back in or reboot, and check whether App Lab no longer opens automatically.