RPi-Distro / raspi-config

Configuration tool for the Raspberry Pi
Other
565 stars 206 forks source link

Display amount of memory on the Pi #247

Closed lurch closed 2 months ago

lurch commented 3 months ago

Raspberry Pi 4 and Raspberry Pi 5 come in board-variants with differing amounts of RAM, so it seems like it might be nice to display that info next to where the Pi model and revision are displayed.

Example screenshots: Screenshot from 2024-06-01 01-05-59

Screenshot from 2024-06-01 01-05-21

Screenshot from 2024-06-01 01-04-34

XECDesign commented 3 months ago

And if vcgencmd (raspi-utils) is not installed?

lurch commented 3 months ago

And if vcgencmd (raspi-utils) is not installed?

I could certainly add more defensive code to not add this memory info if vcgencmd isn't installed, if that's what you're suggesting? (Is that a likely situation?) But I noticed that vcgencmd was also unconditionally used here https://github.com/RPi-Distro/raspi-config/blob/bookworm/raspi-config#L1802

XECDesign commented 2 months ago

I've added it to runtime dependencies for the package. Thanks!