User avatar
rolgiati
Posts: 64
Joined: Wed Jul 18, 2012 8:20 pm

Memory split with less video memory ?

Sun Apr 07, 2013 12:10 pm

I am looking into freeing more usable memory on a Raspi 256Mb that will be used headless, and only accessed through ssh in CLI mode.

Would it be possible to change the memory split and reduce the video memory to 12 MB ?
( which should be sufficient for a VGA display of 800 x 600 in 16 colours )

How could it be done ?

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Memory split with less video memory ?

Sun Apr 07, 2013 1:18 pm

If you're using debian, run

sudo raspi-config

Image

I'll let you work the rest out. ;)

You'll find the minimum is 16MB, it will accept figures for less, but sets it to 16MB.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

chris57100
Posts: 522
Joined: Wed Sep 12, 2012 7:23 pm
Location: Thionville
Contact: Website

Re: Memory split with less video memory ?

Fri Apr 12, 2013 2:35 pm

I think that now the minimum is 8Mb. Also i am not sure but a 8 multiple is recommanded
Raspberry Pi Home Server : http://www.pihomeserver.fr
Software and electronic tutorials : Samba, Airplay, CUPS, Time machine, Nginx, Owncloud, rTorrent, Wordpress, etc.
Full Wi-Fi hotspot installation on a RPi 3 including a captive portal and freeradius management: https://github.com/pihomeserver/Kupiki-Hotspot-Script

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Memory split with less video memory ?

Fri Apr 12, 2013 6:13 pm

chris57100 wrote:I think that now the minimum is 8Mb. Also i am not sure but a 8 multiple is recommanded

Code: Select all

[email protected]:~# uname -a
Linux raspberrypi 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 armv6l GNU/Linux
[email protected]:~# tail /boot/config.txt -n1
gpu_mem=32
[email protected]:~# cat /proc/meminfo|grep Mem
MemTotal:         481288 kB
MemFree:          433492 kB
[email protected]:~# 
edit & reboot

Code: Select all

[email protected]:~# tail /boot/config.txt -n1
gpu_mem=16
[email protected]:~# cat /proc/meminfo|grep Mem
MemTotal:         497544 kB
MemFree:          450076 kB
[email protected]:~#
edit & reboot

Code: Select all

[email protected]:~# tail /boot/config.txt -n1
gpu_mem=8
[email protected]:~# cat /proc/meminfo|grep Mem
MemTotal:         497544 kB
MemFree:          450400 kB
[email protected]:~#
edit & reboot

Code: Select all

[email protected]:~# tail /boot/config.txt -n1
gpu_mem=4
[email protected]:~# cat /proc/meminfo|grep Mem
MemTotal:         497544 kB
MemFree:          452832 kB
[email protected]:~# 
edit & reboot

Code: Select all

[email protected]:~# tail /boot/config.txt -n1
gpu_mem=3
[email protected]:~# cat /proc/meminfo|grep Mem
MemTotal:         497544 kB
MemFree:          450332 kB
[email protected]:~# 
edit & reboot.

Code: Select all

[email protected]:~# tail /boot/config.txt -n1
gpu_mem=1
[email protected]:~# cat /proc/meminfo|grep Mem
MemTotal:         497544 kB
MemFree:          452856 kB
[email protected]:~# 
I rest my case ?
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

chris57100
Posts: 522
Joined: Wed Sep 12, 2012 7:23 pm
Location: Thionville
Contact: Website

Re: Memory split with less video memory ?

Fri Apr 12, 2013 7:21 pm

Excellent ! I never tested and really thought that 1Mb was not possible :shock:
Raspberry Pi Home Server : http://www.pihomeserver.fr
Software and electronic tutorials : Samba, Airplay, CUPS, Time machine, Nginx, Owncloud, rTorrent, Wordpress, etc.
Full Wi-Fi hotspot installation on a RPi 3 including a captive portal and freeradius management: https://github.com/pihomeserver/Kupiki-Hotspot-Script

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Memory split with less video memory ?

Fri Apr 12, 2013 7:36 pm

It isn't, it just accepts the figure. The memory is identical to the 16MB setting.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

chris57100
Posts: 522
Joined: Wed Sep 12, 2012 7:23 pm
Location: Thionville
Contact: Website

Re: Memory split with less video memory ?

Fri Apr 12, 2013 8:15 pm

Oups, bad eyes !!!
Ok thanks for the tip
Raspberry Pi Home Server : http://www.pihomeserver.fr
Software and electronic tutorials : Samba, Airplay, CUPS, Time machine, Nginx, Owncloud, rTorrent, Wordpress, etc.
Full Wi-Fi hotspot installation on a RPi 3 including a captive portal and freeradius management: https://github.com/pihomeserver/Kupiki-Hotspot-Script

User avatar
rolgiati
Posts: 64
Joined: Wed Jul 18, 2012 8:20 pm

Re: Memory split with less video memory ?

Fri Apr 12, 2013 9:03 pm

Thanks for the info.

ProDigit
Posts: 374
Joined: Tue Aug 30, 2011 1:24 am

Re: Memory split with less video memory ?

Fri Aug 02, 2019 7:07 am

Old topic, but,
What if you have bought one of them 3,5" Rpi screens with a resolution of 480x320 pixels?
It should be possible to lower the Vram to a mere 1MB, as there's only about 153k pixels to feed?

User avatar
RaTTuS
Posts: 10412
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Memory split with less video memory ?

Fri Aug 02, 2019 7:19 am

no need to necro this , on the older pi's 16MB is as low as you can go with the memory split IIRC
dunno about Pi4
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

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23362
Joined: Sat Jul 30, 2011 7:41 pm

Re: Memory split with less video memory ?

Fri Aug 02, 2019 8:07 am

Impressive necro though, might be a record.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

Return to “Advanced users”