If this is a headless raspberry pi (a server, for example), just run:

raspi-config

Advanced

Memory split

Define 16M as the memory for the GPU

Advertisements