Recently, i installed ubuntu server 20 64bit on Raspberry pi 4 B+ 4GB model, and youtube is laggy so i searched a bit and installed raspi-config and tried to change memory split setting but it says i don't have vcgencmd installed I tried many things to install vcgencmd i tried building userland, i succeed to build it, and i see vcgencmd is in /opt/vc/bin, but when i use
$ /opt/vc/bin/vcgencmd
it says it can't find vcgencmd I'm sure that there wasn't any typo, because i used tab auto correction i also tried installing libraspberrypi-bin, but it says it is not available i tried
pip3 install vcgencmd
it installed successfuly, but when i try to use it, it says
Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/vcgencmd/init.py", line 20, in subprocess.check_output('vcgencmd') File "/usr/lib/python3.8/subprocess.py", line 411, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.8/subprocess.py", line 489, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.8/subprocess.py", line 854, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'vcgencmd'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 184, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.8/runpy.py", line 143, in _get_module_details return _get_module_details(pkg_main_name, error) File "/usr/lib/python3.8/runpy.py", line 110, in _get_module_details import(pkg_name) File "/usr/local/lib/python3.8/dist-packages/vcgencmd/init.py", line 22, in raise ImportError('\'vcgencmd\' does not exist in path') ImportError: 'vcgencmd' does not exist in path i used raspi-update to update firmware, and there was no problem updating firmware but i still can't use vcgencmd can anyone help me?
ldd /opt/vc/bin/vcgencmd
?/opt/vc/bin
to$PATH
. en.wikipedia.org/wiki/PATH_(variable)