Most Popular
1500 questions
15
votes
6 answers
GPIO: Why wire button to ground rather than +3.3v?
In most examples I've seen of wiring buttons to GPIO inputs, the button is wired so that when closed, a circuit is completed between the pin and ground, producing a low input on the pin. A pull-up resistor is used to default the input value to high.…

howard10
- 253
- 1
- 2
- 6
15
votes
3 answers
How do I get my bluetooth keyboard to pair automatically before I log in?
I asked how to install bluetooth, so I can use an existing mouse and keyboard. I was able to get that to work, but the keyboard ceases to function when the GUI is logged out.
That means that I still need a 2.4Ghz keyboard to login, or to use the…

zenbike
- 2,490
- 6
- 19
- 26
15
votes
4 answers
Can Python control normal Minecraft, or only the RasPi Edition?
My son wants to make a game in Python that is materialized in Minecraft. If he does that using the RasPi Edition, can that same Python code control the normal Minecraft on a PC? My guess is that Python sends commands to Minecraft rather than running…

Jim L.
- 325
- 1
- 3
- 12
15
votes
6 answers
Failed to create MMAL component b'vc.ril.camera': Out of memory
I am trying to run a simple script that listens for a button click and then takes a picture. Once two pictures have been taken it compares the two using OpenCV to calculate the difference. I am running into this error when running my script followed…

Justin
- 432
- 1
- 4
- 12
15
votes
2 answers
How do I restart Raspberry Pi from a remote system?
I have mounted my Raspberry Pi videos folder into my Ubuntu 10.04 system. I can paste different videos to mounted directory along with videos folder in Raspberry Pi whenever I require.
The problem is I want to restart the Raspberry Pi every time…

Viswa
- 191
- 1
- 2
- 6
15
votes
2 answers
Gigabit USB ethernet running at 100mb/s
I bought a small gigabit ethernet USB adapter, which works fine OOTB in a Raspberry Pi 3, but only at 100mbits/s. How can I make it run at full speed?
ethtool:
# ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: …

santiagozky
- 479
- 1
- 4
- 9
15
votes
4 answers
Enabling ARMv8 on Raspberry Pi 3 B
According to this article I should be able to switch to ARMv8 on my Raspberry Pi Model 3B, but I'm getting "rainbow screen" after adding to config.txt the line:
arm_control=0x200
Why is it not working?
Is it even worth switching from ARMv7 to…

madneon
- 509
- 2
- 5
- 15
15
votes
1 answer
How to get touchscreen right click on Raspbian Stretch
I am currently using Raspbian Stretch with a Waveshare 7 inch touchscreen, and I would like to get right click input (preferably with two finger or long touch).
There appear to be no solutions for Raspbian Stretch, and I have tried to use solutions…

The Sleepy Penguin
- 181
- 2
- 8
15
votes
2 answers
Raspberry as an I2C SLAVE
Does anyone know how to setup a Raspberry Pi 3 as an I2C slave (in C++)?
Before someone answers saying that it's not possible, it is possible.
Here is a link that says it is possible (pigpio documentation)
This is the code I'm trying to use (from…

Sebastião
- 153
- 1
- 1
- 8
15
votes
2 answers
ifup and ifdown do not work on raspbian stretch lite 2017-09-07-raspbian-stretch-lite.img
I just installed a clean image of the latest Raspbian Stretch Lite.
Specifically - 2017-09-07-raspbian-stretch-lite.img
ifconfig shows that my wifi interface wlan0 is detected and up.
eth0: flags=4099 mtu 1500
ether…

saraf
- 571
- 1
- 4
- 11
15
votes
4 answers
How to printscreen on Raspberry Pi?
I would like to screenshot the Midori browser and i've tried the following methods as mentioned HERE.
Using Imagemagick which is pre-installed in Raspberry Pi. I pressed the printscreen key on the keyboard and attempt to paste it on that software.…

yvonnezoe
- 401
- 1
- 6
- 19
15
votes
4 answers
Is the Raspberry Pi vulnerable to the KRACKs on WPA2 networks?
I have an updated RPI Zero W running Stretch.
The research is stating that wpa_supplicant is vulnerable on all Linux machines. According to Debian patches are rolled out:
For the oldstable distribution (jessie), these problems have been fixed
in…

Janghou
- 1,446
- 1
- 16
- 20
15
votes
5 answers
How to change user pi sudo permissions; how to add other accounts with different permissions?
Since I occasionally use my Pi over SSH, I have learned that it is dangerous to allow SSH to access sudo commands. Thus, I plan to turn off this permission in the near future. But, when I install packages I usually have to reboot. Currently, this is…

xxmbabanexx
- 3,258
- 7
- 35
- 56
15
votes
2 answers
Open the network list with command line
I'm working with a Pi running Raspbian. Is there a way to open the network list with a command from the terminal? This is the list I mean:
I have searched in the file ~/.config/lxpanel/LXDE-pi/panels/panel is defined the menu bar (sizes, icons,…

Francisco Javier Gil Blanco
- 153
- 1
- 1
- 5
15
votes
6 answers
Installed pyusb, still: 'ImportError: no module named core'
On my Raspberry Pi I installed libusb and pyusb via sudo apt-get install libusb-dev python-usb.
But running some Python code (pyrow, to read data from a rowing machine) gives me this error at import usb.core:
ImportError: no module named core
This…

A. Goossens
- 293
- 1
- 2
- 8