Linux Virtual Delivery Agent

Client battery status display

The Linux VDA can redirect and display the battery status of client devices in virtual desktops. This feature is enabled by default and available for the following versions of Citrix Workspace app:

  • Citrix Workspace app for iOS
  • Citrix Workspace app for Linux
  • Citrix Workspace app for Mac (version 2204.1 is not supported)
  • Citrix Workspace app for Windows (version 2204.1 is not supported)

Overview

When users open a virtual desktop, they can see a battery icon in the Linux system tray. The battery icon indicates the battery status of their client devices. To check for the percentage of remaining battery life, click the battery icon. For example, see the following screen capture:

Battery status icon

Different battery icons indicate different battery statuses. For an overview, see the following table:

Battery icon Charging status Level of remaining battery life Percentage of remaining battery life
Battery that is charging and has high level of remaining life Charging, indicated with a “+” symbol High, indicated with a green color >=80%
Battery that is charging and has medium level of remaining life Charging, indicated with a “+” symbol Medium, indicated with an amber color >=20% and <80%
Battery that is charging and has low level of remaining life Charging, indicated with a “+” symbol Low, indicated with a red color < 20%
Battery that is not charging and has high level of remaining life Not charging, indicated with a “-“ symbol High, indicated with a green color >=80%
Battery that is not charging and has medium level of remaining life Not charging, indicated with a “-“ symbol Medium, indicated with an amber color >=20% and <80%
Battery that is not charging and has low level of remaining life Not charging, indicated with a “-“ symbol Low, indicated with a red color < 20%
Unknown battery status Unknown Unknown Unknown

Configuration

Client battery status display is enabled by default.

To disable the feature, run the following command:

/opt/Citrix/VDA/bin/ctxreg update -k "HKLM\System\CurrentControlSet\Control\Citrix\VirtualChannels\MrVc"  -v "Enabled" -d "0x00000000"
<!--NeedCopy-->

To enable the feature, run the following command:

/opt/Citrix/VDA/bin/ctxreg update -k "HKLM\System\CurrentControlSet\Control\Citrix\VirtualChannels\MrVc"  -v "Enabled" -d "0x00000001"
<!--NeedCopy-->

Note:

The preceding commands impact the soft keyboard feature, which shares the Mobile Receiver Virtual Channel (MRVC) with client battery status display.

Based on your distribution, complete the following extra steps:

  1. If you are using RHEL 8.x or SUSE 15.x installed with GNOME, install a compatible extension for your GNOME shell to enable AppIndicator support:

    1. Run the gnome-shell --version command to check your GNOME shell version.

    2. Download a compatible extension for your GNOME shell from https://extensions.gnome.org/extension/615/appindicator-support. For example, if your shell version is 3.28, you can select 24 or 26 for the extension version.

      GNOME shell extension

    3. Untar the downloaded package. Verify that the “uuid” value in the metadata.json file in the package is set to appindicatorsupport@rgcjonas.gmail.com.

    4. Run the mv command to move the appindicatorsupport@rgcjonas.gmail.com directory to the location under /usr/share/gnome-shell/extensions/.

    5. Run the chmod a+r metadata.json command to make the metadata.json file readable to other users.

      Tip:

      By default, the metadata.json file in the appindicatorsupport@rgcjonas.gmail.com directory is readable only to the root user. To support screen sharing, make the metadata.json file readable to other users as well.

    6. Install GNOME Tweaks.

    7. In the desktop environment, reload your GNOME shell by pressing the Alt+F2, r, and Enter keys in sequence or by running the killall -SIGQUIT gnome-shell command.

    8. In the desktop environment, run GNOME Tweaks and then enable KStatusNotifierItem/AppIndicator Support in the Tweaks tool.

  2. If you are using Debian 11.3 or Debian 10.9 installed with GNOME, complete the following steps to install and enable GNOME system tray icons:

    1. Run the sudo apt install gnome-shell-extension-appindicator command. You might have to log out and then back in again for GNOME to see the extension.

    2. Search for Tweaks in your Activities screen.

    3. Select Extensions in the Tweaks tool.

    4. Enable Kstatusnotifieritem/appindicator support.

      Tweaks

Client battery status display