Skip to main content

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.

  1. Check the current mode:

    cat /sys/class/usb_role/4e00000.usb-role-switch/role

    If the output is host, no switching is needed; check whether the keyboard and mouse work properly. Otherwise, continue to the next step.

  2. 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/role
    cat /sys/class/usb_role/4e00000.usb-role-switch/role

    After confirming that the output is host, check whether the keyboard and mouse work.

Scope of the Settings

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.

  1. On the desktop, open Settings > Display

    UNO-Q-DSI-TOUCH-10.1A display rotation

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

    UNO-Q-DSI-TOUCH-10.1A display rotation

Touch Rotation​

  1. Create the configuration directory (this can also be run if it already exists):

    sudo mkdir -p /etc/X11/xorg.conf.d
  2. Open the touch configuration file:

    sudo nano /etc/X11/xorg.conf.d/99-goodix-dsi-rotation.conf
  3. If the file is empty, add the following configuration; if a configuration already exists, modify only the TransformationMatrix line.

    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"
    EndSection

    The example above is for 90° Right. If you need another orientation, replace the TransformationMatrix line 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"

    UNO-Q-DSI-TOUCH-10.1A display rotation

  4. Press Ctrl+O → Enter to save, and press Ctrl+X to exit. After saving other work, reboot the UNO Q:

    sudo reboot

    After 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​

  1. 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-desktop
    sudo nano /etc/lightdm/lightdm.conf
  2. 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=false
    autologin-user=arduino
    autologin-user-timeout=0

    UNO Q LightDM Auto-login Configuration

    Replace arduino with the actual desktop account returned by whoami. 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.

  3. Save the file and other work, then reboot:

    sudo reboot

    Confirm 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.

  1. 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
  2. In the existing [Seat:*] section, find #xserver-command=X, uncomment it, and change it to:

    xserver-command=X -s 0 -dpms

    UNO Q LightDM Always-On Configuration

    • -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 existing xserver-command contains other parameters, keep the necessary parameters; keep only one effective configuration in the same section.

  3. After saving your work, reboot:

    sudo reboot

Hide the Mouse Cursor​

  1. Open /etc/lightdm/lightdm.conf

    sudo nano /etc/lightdm/lightdm.conf

    Add -nocursor to the xserver-command in the existing [Seat:*] section. UNO Q LightDM hide mouse cursor

    To only hide the cursor:

    xserver-command=X -nocursor

    When the always-on setting is also needed, combine the parameters on the same line:

    xserver-command=X -s 0 -dpms -nocursor

    Do not add a second xserver-command, otherwise it may overwrite the original setting. Keep the three auto-login configuration items; setting only -nocursor will not enable auto-login or fullscreen web pages.

  2. 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
  1. In "Session and Startup", go to "Application Autostart".

  2. Find "Arduino App Lab" and uncheck it.

    Xfce cancel Arduino App Lab desktop auto start

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