karlkiste
Posts: 189
Joined: Tue Jan 22, 2013 8:50 am
Location: berlin, germany

Fiddling on memory split with camera enabled

Thu Oct 17, 2013 8:52 am

Hi!

I've just learned that enabling the camera module on raspbian will set the GPU memory to 128MB. I have not found, however, how this is done. Is it hardcoded in start_x.elf?

I'd like to try lower values, as I only need the preview function and neither video nor pictures saved or encoded. Maybe even dynamic memory split if possible.

Where can I find the value to change?

Thanks!

User avatar
RaTTuS
Posts: 10497
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Fiddling on memory split with camera enabled

Thu Oct 17, 2013 8:54 am

look in /boot/config.txt
gpu_mem
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

karlkiste
Posts: 189
Joined: Tue Jan 22, 2013 8:50 am
Location: berlin, germany

Re: Fiddling on memory split with camera enabled

Thu Oct 17, 2013 9:30 am

Yes, I've set

gpu_mem=16 # and 32, 64

I'm still missing 128MB from ARM memory.

It's a Model A, so I'd really like to save some bytes there.

----------EDIT-------------------

Oooops, sorry! No idea what I did before, now I've tried again, and the split value changes. Sorry for the noise.

P.S.: For running raspistill in preview-only mode, the required gpu_ram depends on the screen resolution. 64MB is sufficient for 1080p.

Return to “Camera board”