News for hackers. Stuff that matters.
Re:Ask HN: New ThinkPad battery life on Ubuntu by blae on Monday October 16, 2023 @02:27PM (#37904007)
You need to make sure your browser uses video acceleration.
Re:Ask HN: New ThinkPad battery life on Ubuntu by jitl on Monday October 16, 2023 @02:33PM (#37904096)
+1, if your software stack decides to use CPU for video things, you’re going to have a hot lap and a drained battery. Sometimes your browser can already be using GPU for web page rendering but still uses CPU for video encode and decode.
Re:Ask HN: New ThinkPad battery life on Ubuntu by kcb on Monday October 16, 2023 @03:06PM (#37904612)
Hardware video acceleration in a browser is somehow still a mess on Linux.

I've spent hours trying every unholy combination of browser/version/Wayland/x11/flags/command line arguments and still can't hardware decode a YouTube video on a pretty standard Intel igpu laptop. Something that should really just work out of the box.

Re:Ask HN: New ThinkPad battery life on Ubuntu by abrouwers on Monday October 16, 2023 @03:31PM (#37905087)
Strange - for me, installing intel-media-driver & setting the vaapi config option in about:config (for firefox) is sufficient. I gave up trying to get it to work in Chrom{e,ium}, though.