Unable to get HAL working
Solution 1:
The short answer is : the DRM required by 40D to prevent you skipping their adverts is not compatible with linux because it has not be implemented.
I haven't managed to get 40D to work on linux for several years, there are hackish workarounds involving running windows plugins in your browser but the performance hit is huge and using wine is cumbersome and tricky. https://community.linuxmint.com/tutorial/view/2028
You can get a free windows vm images here for testing browsers : https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/linux/ if you run them in virtualbox or vmware you can get reasonable performance but you still can't skip the adverts.
There are plenty of torrents of 40D programs available that have no adverts and will play with far less load on your system and a lot less bother on your part. It's a shame 40D is pushing people to piracy with its DRM when they could offer people who want to pay a subscription model instead of advertising. If you are in the uk you have already paid for channel 4 content via your taxes. https://en.wikipedia.org/wiki/Channel_4#Funding