Kodi Community Forum

Full Version: Question about disabling the framebuffer to free up some GPU memory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
@popcornmix Pointed out in this thread that LE disables the console framebuffer which frees-up approx 7M of GPU memory:
(2018-09-30, 21:29)popcornmix Wrote: [ -> ]One thing I spotted was:
Code:
[   3] 0x3e512f80: used 6.9M (refcount 1 lock count 8, size  7237632, align 4096, data 0x3e513000, d1rual) 'ARM FB'
so arch doesn't remove the framebuffer. In LE it is done here:
https://github.com/LibreELEC/LibreELEC.t...le.service  

I created /usr/lib/systemd/system/unbind-console.service and modified my kodi.service to include Wants=unbind-console.service in an attempt to free-up the GPU memory by disabling the framebuffer. However, when kodi runs via the systemd service, it seems that the framebuffer is still listed in the output of vcdbg reloc despite the fact that when I cat /sys/devices/virtual/vtconsole/vtcon1/bind I see a 0 returned.

When am I missing? My kodi.service:
Code:
[Unit]
Description=Kodi standalone
After=remote-fs.target
Wants=unbind-console.service

[Service]
User=kodi
Group=kodi
ExecStart=/usr/bin/kodi-standalone
Restart=on-failure
SendSIGHUP=yes

[Install]
WantedBy=multi-user.target
I understand now... disabling the framebuffer doesn't remove it from memory BUT, resetting the size (down to a lower resolution) does.  I will make a systemd service unit that does this and update this thread.

EDIT: Here --> https://github.com/graysky2/raspberrypi-kodi-service