Hot answers tagged

67 votes
Accepted

Will Raspbian move to 64-bit?

given that the processor is 64 bits, isn't it obvious that running the OS in 64 bits will be better in every way? No actually, it's not. In some ways, running a 64 bit operating system could ...
Jacobm001's user avatar
  • 11.9k
31 votes
Accepted

Were CPU features removed on the Raspberry Pi 4 revision 1.5 board?

The difference is that one Pi is running a 32-bit kernel, and the other is running a 64-bit kernel. We can see this from the "Architecture:" numbers in the /proc/cpuinfo, 32-bit arm kernels ...
Peter Green's user avatar
  • 6,436
23 votes

Will Raspbian move to 64-bit?

It's worth noting that the situation is different for ARM and Intel/AMD. That's because the switch to x86_64 was also used as an opportunity to update the badly-aging architecture, basically crippled ...
mattdm's user avatar
  • 347
23 votes
Accepted

Can I use all 4 cores of the Raspberry Pi's CPU?

By default, any computer will try to use all of its cores when it can. However, it can only achieve this when an application is multi-threaded. If it is not (i.e. a Python script that doesn't use the ...
lights0123's user avatar
17 votes

How to directly get CPU temp in Python?

For those coming here from Google. You can get Raspberry CPU temp in Python using gpiozero package. pip install gpiozero Create your temp.py from gpiozero import CPUTemperature cpu = ...
hg8's user avatar
  • 295
14 votes

Can I use all 4 cores of the Raspberry Pi's CPU?

I was wondering if there is a simple way to "turn on" all 100% of the CPU so that I can run processes faster (such as python calculations). Not in the sense that I think you are implying. This is not ...
goldilocks's user avatar
  • 58.7k
12 votes

How to directly get CPU temp in Python?

It has already been answered and accepted but I see that no one has brought up this alternative that doesn't depend on running a command but rather on reading from a file: /sys/class/thermal/...
eftshift0's user avatar
  • 740
8 votes

Can I use all 4 cores of the Raspberry Pi's CPU?

No for python. Other people are suggesting you to look into threading, which is a valid answer for most languages, but they didn't take into the account that you are using python. The python GIL ...
Anon's user avatar
  • 81
8 votes
Accepted

Can the Raspberry Pi 4 better distribute Python scripts to all four cores?

GIL is a design specification of the Python language, rather than a limitation of the Raspberry Pi [1] (multiprocessing is possible in Python, often with only a few lines of code [2], but ...
KPM's user avatar
  • 216
7 votes
Accepted

Raspberry Pi's reaction to 7.2 Volts applied to a GPIO pin?

No. Take it on the bright side. You have learned one thing never to do to a Raspberry Pi.
SDsolar's user avatar
  • 2,348
7 votes
Accepted

Crosscompiling: exact archictecture for all models

I believe I figured it out after quite some fiddling. What is the most specific parameter I can use to be compatible with all models? Raspbian FAQ's contain the final answer: -march=armv6 -mfpu=vfp ...
Pietro Saccardi's user avatar
6 votes

Will Raspbian move to 64-bit?

I am sure there are already people running Debian Aarch64 (ARMv8) on the Pi 3; it certainly would not be that hard for many people (see here for some clues about that might work)1 although for most ...
goldilocks's user avatar
  • 58.7k
5 votes
Accepted

Can I watch movies with the Rasberry Pi Zero?

All Raspberry Pis can play 1080p@30fps provided the video is encoded with a codec the Pi can accelerate (i.e. h.264) - note that filename extension doesn't always indicate the used codec correctly ! ...
flakeshake's user avatar
  • 6,235
5 votes
Accepted

Can Compute Modules provide clustering and high availability?

There is no reason you couldn't design a custom PCB and stick a bunch of compute modules on them if you desired. There are a few "gotchas" though. This wouldn't be particularly powerful. The chips ...
Jacobm001's user avatar
  • 11.9k
5 votes

Will Raspbian move to 64-bit?

As part of the launch publicity I saw it mentioned that one concern is the effort required to maintain two separate code bases (32 and 64 bit). the Adafruit PI3 Launch video also mentioned that the ...
Steve Robillard's user avatar
5 votes
Accepted

Using GPU to decode QRCODE

In theory, you could use the OpenGL API to speed things up a bit. There's no implementation of OpenCL for now. You could design your code such that its calculations are a fragment shader according to ...
Aloha's user avatar
  • 7,126
5 votes
Accepted

How does a Raspberry Pi deal with high temperature?

Yes, as the temperature rises the CPU frequency is lowered to prevent damage. The throttling begins around 82 degree Celsius. You can check the CPU Frequency with the following command: cat /sys/...
Steve Robillard's user avatar
5 votes
Accepted

How to decrease CPU usage of conky

Monitoring system vital signs by conky and other similar applications is done with a combination of setting up event handlers and periodically polling various pieces of data. Where the CPU time is ...
Richard Chambers's user avatar
5 votes

Can I use all 4 cores of the Raspberry Pi's CPU?

Using multiple cores requires explicitly exposing thread-level parallelism to the OS, which usually requires the programmer to write a multi-threaded program. (Or to run a single-threaded program ...
Peter Cordes's user avatar
5 votes

Any way to kill an application on high temperature?

The following shell script uses the videocore utility vcgencmd measure_temp to get a line like temp=37.4'C. It then does some string magic to isolate the 37 from that string, which is then compared to ...
Janka's user avatar
  • 1,708
4 votes

Will Raspbian move to 64-bit?

The 64-bit addressing can be useful even if you don't have more than 1GB of memory. It allows you to memory-map large files, so you have a pointer and let the OS do the I/O transparently. Just ...
GTC's user avatar
  • 41
4 votes

Will Raspbian move to 64-bit?

Addressing the assertion that the 64 bit native programs are larger (more memory for data and pointers), and that there are no noticeable benefits to a 64 vs. 32 bit OS on ARMv8 with less than 4GB of ...
Daniel Glasser's user avatar
4 votes
Accepted

Raspberry PI 3 Increase Gpu Memory to 944

This is useless as you don't seem to run GPU RAM heavy OpenGL applications. You don't need more than 128MB GPU RAM to run videos smoothly as the hardware decoder will use only a fixed amount. So ...
kwasmich's user avatar
  • 2,702
4 votes

Can I use all 4 cores of the Raspberry Pi's CPU?

This is not how CPUs work... at all. As it currently stands, your CPU is perfectly capable of running at 100% usage, assuming that it's not being throttled due to temperature related issues at 80 ...
Jacobm001's user avatar
  • 11.9k
4 votes

Can I use all 4 cores of the Raspberry Pi's CPU?

The other answers do give good detail, but don't seem to address your question(s) specifically. Yes, if the program (and the operating system) are programmed to account for multiple cores. ('...
Stese's user avatar
  • 232
4 votes
Accepted

How to directly get CPU temp in Python?

First, set up Python: pip install setuptools sudo pip install git+https://github.com/nicmd/vcgencmd.git Handy bash script cputemp (shebang)/usr/bin/python import vcgencmd CPUc=vcgencmd.measure_temp(...
SDsolar's user avatar
  • 2,348
4 votes

Lxpanel using 100% CPU (1 core)

I don't know what causes it, but I haven't seen it happen on Buster (yet), but if it happens for you, try this: lxpanelctl restart This command refreshes the panel, but leaves all the original ...
Botspot's user avatar
  • 1,759
4 votes
Accepted

How to get curent cpu mhz on a raspberry pi with python?

This is four lines, but here it is anyways. Probably isn't the best way, though. (oh, and in your script remember to use the shebang for python3) from os import popen str=popen("vcgencmd ...
IMadeAnAnswer's user avatar
4 votes

Controlling fan of the LABISTS Raspberry Pi4

The fan is not connected to a GPIO. The GPIO can not supply enough current to power a fan (they can supply perhaps 20 milliamps at 3.3 volts). If you attempt to power a fan (or any inductive load ...
joan's user avatar
  • 70.9k
4 votes

How is CPU in Raspberry Pi 4 +36% faster than for Raspberry Pi 3?

The Raspberry PI 4 uses a Quad-core ARM Cortex A72 processor while the Raspberry PI 3+ uses a Quad-core Cortex A53 processor. The A72 processor is a newer version (2016) of the ARMv8-A architecture ...
HeatfanJohn's user avatar
  • 3,100

Only top scored, non community-wiki answers of a minimum length are eligible