[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Playing YouTube on RPi4B with task-gnome-desktop



Dear Debian ARM users,

As Bullseye almost frozen, I have seen if I can play YouTube video on
my RPi4B 8GB. It was essentially a success with some tricks as follows:

(1) 5GHz WiFi becomes unusable with firmware-brcm80211 version 20210208-1 and newer,
as reported #985632. 2.4GHz WiFi works fine even with Bluetooth (resolved #984844).

(2) task-gnome-desktop is installed.

(3) Pulseaudio does not work with ALSA sinks brought by vc4.ko, e.g. in
#!/bin/sh
set -x
while true; do
  systemctl --user status pulseaudio
  pacmd list-sinks
  pacmd exit
  systemctl --user restart pulseaudio
done
    every command gets stuck or fails (#985928). A workaround is preventing
    pulseaudio from touching the ALSA sinks brought by vc4.ko. In /etc/pulse/default.pa
    (3-1) Comment out "load-module module-udev-detect" and
             "load-module module-detect".
    (3-2) Add "load-module module-alsa-card device_id=2" assuming snd_bcm2835 has
             device ID 2 in /proc/asound/cards.

In the following, Firefix-ESR Wayland in Bullseye with MOZ_ENABLE_WAYLAND=1
in the enviroment variables is assumed. Gnome Wayland session is also assumed.

(4) A YouTube video https://youtu.be/NCqNDjntd3E can played by the Firefox ESR
     Wayland with some drop of frames and some degradation of textures. Audio is
     fine with HDMI output. Load average is above 7.

(5) With the weston session, the frame drop and texture degradation decrease and
      the load average decreases below 4.

(*) Firefox (ESR) with MOZ_ENABLE_WAYLAND=1 does not work at all on
Gnome Wayland and Weston sessions on the Raspberry Pi OS
as v3d.ko does not support Wayland. I wonder how Ubuntu RasPi
team will handle it (or simply dropping support of Wayland as Raspberry Pi OS does).

I hope this being somewhat interesting to the list members...

Best regards, Ryutaroh Matsumoto


Reply to: