About Chromebooks

Chromebook, ChromeOS and Google Chrome browser news

Chrome OS emulator on Android Studio

GPU acceleration command for Linux coming soon to Project Crostini

One of the key missing components when running Linux on a Chromebook is support for GPU hardware acceleration. That’s why many high-framerate games and the Android emulator in Android Studio don’t yet work, or if they do, they don’t work well. 9to5Google spotted a code commit that will allow you to test GPU acceleration support, likely soon in the Canary, Dev and Beta channels of Chrome OS.

You can see in the code snippet above how this will work for testing purposes. Rather than click the Terminal application to start the Linux container, you’ll manually start the container from the crosh app (ctrl + alt + T) using an lxc the vmc start command; similar to the way we started Linux in the early days of Project Crostini. Using a new –enable-gpu parameter with the manual startup command will implement the hardware acceleration for graphics.

Obviously, there’s far more involved than to type this parameter to get GPU hardware acceleration working. But the Chromium team has been working on those bits of plumbing quite a bit over the past few weeks.

As of now, I don’t see a target release for GPU support in Project Crostini. However, it does show as Priority 2 initiative, which Priority 1 being the highest priority, on the Crostini Platform Hotlist.

Additionally, back in November, Google said full Android Studio support would be coming to Crostini in early 2019, leading me to think that’s the target date for GPU acceleration support on Linux for Chromebooks. I could be wrong, but I’d think that’s the main reason Google wants to get this working. Sure, GPU support Linux games will be welcome too; I just don’t think that’s the impetus for adding the feature.

More to follow when the new –enable-gpu parameter starts working since I tested it on the Chrome OS 72 Dev Channel without any success. I’m sure it will arrive in the Canary Channel first, but I generally stick with the Dev Channel for my testing and usage.

author avatar
Kevin C. Tofel

3 thoughts on “GPU acceleration command for Linux coming soon to Project Crostini

  1. Just picked up a Pixelbook for $690 open boxes at my local Best Buy, and used Google Express to get the Pen for 20% off. Looks like a good time to jump in the pool!! I can’t wait for this!

  2. > … you’ll manually start the container from the crosh app (ctrl + alt + T) using an lxc command

    Not to nitpick but that’s actually the crosh ‘vmc’ command that will incorporate the new ‘–enable-gpu’ option not lxc.

    1. I’m glad you nitpicked and I’ll make the correction, thanks! Can’t believe I wrote that since I was testing the command with ‘vmc start’ 😉

Comments are closed.

Scroll to top