Widevine support in Librem 5

Setting up Widevinecdm for firefox-esr (following the procedure described at the link: Widevine on Mobile/ARM Linux | Luigi311)

  1. On the phone in console mode, do:

sudo apt install curl git python3 squashfs-tools
cd ~/Public
git clone ``https://github.com/AsahiLinux/widevine-installer.git
cd widevine-installer

  1. Find the directory where to import the library

export LIBDIR=$(dirname $(find /usr/lib* -name “firefox-esr” -type d))
echo “$LIBDIR”

  1. If the LIBDIR string is not empty, fix the installation script to take into account the firefox-esr version (not firefox). If the string is empty, firefox-esr is not installed

sed ‘s/firefox/firefox-esr/’ ./widevine-installer

  1. Run the script

sudo LIBDIR=“$LIBDIR” ./widevine-installer

  1. Reboot the phone so that widevine is taken into account in firefox-esr.

  2. If you haven’t already done so, you need to enable DRM in the firefox-esr options. To do so :

  • Launch firefox-esr
  • Type about:config in the url bar
  • Find the browser.eme.ui.enabled parameter and set it to true (if it isn’t already). This will bring up a “Digital Rigths Management (DRM) Content Play DRM controlled content” checkbox
  • Open the firefox-esr settings and check the checkbox that now appears above the “Firefox updates” section
4 Likes