mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
raspberrypi2: gpu mem can now be set to a value as high as 960 MB
This commit is contained in:
parent
b3f331eb89
commit
a750f9c4c3
@ -30,8 +30,7 @@ OVERCLOCK = {
|
|||||||
800: '800|250|400|0',
|
800: '800|250|400|0',
|
||||||
900: '900|250|450|0',
|
900: '900|250|450|0',
|
||||||
950: '950|250|450|0',
|
950: '950|250|450|0',
|
||||||
1000: '1000|500|600|6',
|
1000: '1000|500|600|6'
|
||||||
1001: '1001|500|500|2'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def _get_board_settings():
|
def _get_board_settings():
|
||||||
@ -222,8 +221,7 @@ def overclock():
|
|||||||
('800|250|400|0', 'modest (800/250/400/0)'),
|
('800|250|400|0', 'modest (800/250/400/0)'),
|
||||||
('900|250|450|0', 'medium (900/250/450/0)'),
|
('900|250|450|0', 'medium (900/250/450/0)'),
|
||||||
('950|250|450|0', 'high (950/250/450/0)'),
|
('950|250|450|0', 'high (950/250/450/0)'),
|
||||||
('1000|500|600|6', 'turbo (1000/500/600/6)'),
|
('1000|500|600|6', 'turbo (1000/500/600/6)')
|
||||||
('1001|500|500|2', 'Pi2 (1000/500/500/2)')
|
|
||||||
],
|
],
|
||||||
'section': 'expertSettings',
|
'section': 'expertSettings',
|
||||||
'advanced': True,
|
'advanced': True,
|
||||||
|
@ -56,7 +56,7 @@ def _get_board_settings():
|
|||||||
name = name.strip()
|
name = name.strip()
|
||||||
value = value.strip()
|
value = value.strip()
|
||||||
|
|
||||||
if name.startswith('gpu_mem'):
|
if name == 'gpu_mem':
|
||||||
gpu_mem = int(value)
|
gpu_mem = int(value)
|
||||||
|
|
||||||
elif name == 'arm_freq':
|
elif name == 'arm_freq':
|
||||||
@ -115,7 +115,7 @@ def _set_board_settings(s):
|
|||||||
|
|
||||||
seen.add(name)
|
seen.add(name)
|
||||||
|
|
||||||
if name.startswith('gpu_mem'):
|
if name == 'gpu_mem':
|
||||||
lines[i] = '%s=%s' % (name, s['gpuMem'])
|
lines[i] = '%s=%s' % (name, s['gpuMem'])
|
||||||
|
|
||||||
elif name == 'arm_freq':
|
elif name == 'arm_freq':
|
||||||
@ -136,12 +136,6 @@ def _set_board_settings(s):
|
|||||||
if 'gpu_mem' not in seen:
|
if 'gpu_mem' not in seen:
|
||||||
lines.append('gpu_mem=%s' % s['gpuMem'])
|
lines.append('gpu_mem=%s' % s['gpuMem'])
|
||||||
|
|
||||||
if 'gpu_mem_256' not in seen:
|
|
||||||
lines.append('gpu_mem_256=%s' % s['gpuMem'])
|
|
||||||
|
|
||||||
if 'gpu_mem_512' not in seen:
|
|
||||||
lines.append('gpu_mem_512=%s' % s['gpuMem'])
|
|
||||||
|
|
||||||
if 'arm_freq' not in seen:
|
if 'arm_freq' not in seen:
|
||||||
lines.append('arm_freq=%s' % arm_freq)
|
lines.append('arm_freq=%s' % arm_freq)
|
||||||
|
|
||||||
@ -186,7 +180,7 @@ def gpuMem():
|
|||||||
'description': 'set the amount of memory reserved for the GPU (choose at least 96MB if you use the CSI camera board)',
|
'description': 'set the amount of memory reserved for the GPU (choose at least 96MB if you use the CSI camera board)',
|
||||||
'type': 'number',
|
'type': 'number',
|
||||||
'min': '16',
|
'min': '16',
|
||||||
'max': '448',
|
'max': '960',
|
||||||
'section': 'expertSettings',
|
'section': 'expertSettings',
|
||||||
'advanced': True,
|
'advanced': True,
|
||||||
'reboot': True,
|
'reboot': True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user