New answers tagged

1

A microcontroller is in principle not different from a general purpose CPU. A microcontroller also handles interrupts, which preempts the flow of code, so you can not count on precise cycle timing. You can also have a scheduler on a microcontroller, this depends on the operating system. The Programmable Realtime Unit (PRU) on the Beaglebone you mentioned is ...


2

This is expected behaviour and is documented in the manual. At the terminal type man 8 mount: -r, --read-only Mount the filesystem read-only. A synonym is -o ro. Note that, depending on the filesystem type, state and kernel behavior, the system may still write to the device. For example, Ext3 or ext4 will replay its journal if the filesystem is dirty. To ...


0

I encountered the same issue just after having installed the kernel headers. If you did the same, remember to restart your RasPi, then check the service status sudo systemctl status docker.service I also prefered to specify the host in /etc/docker/daemon.json, see here for more details. So I had to remove the -H option in the systemd unit config (/lib/...


0

That solved the problem on DietPi for me: /run is mounted as tmpfs Create a softlink for the StateDirectory under /var/lib: ln -s /run /var/lib/run disable PrivateTmp #PrivateTmp=yes changing StateDirectory to tmpfs: StateDirectory=run/timesync RuntimeDirectory is absolute to /run, wich already is a tmpfs, so this doesn't need to be changed


0

SOLUTION! Ok, the answer was to to first use pigpio and to test if my GPIO's were working... download both http://abyz.me.uk/rpi/pigpio/ (press the underlined download link and the download) Then get GPIO Pin test / gpiotest - http://abyz.me.uk/rpi/pigpio/examples.html - extract and run it once you've ran the command sudo pigpio and then run extracted ...


0

If Super+Enter launches a terminal immediately, but starting firefox takes a log time, then the problem could be firefox instead of i3. It's not uncommon (actually it's expected) for GUI applications to take a few moments before they are visible. I have the same situation: I start firefox via i3's demu on workspace 1 (desktop 1). Then, I switch to ...


0

You can edit your sources.list as follows (raspbian Buster): remove everything under /etc/apt/sources.list.d/ then create raspi.list: sudo rm -rf /etc/apt/sources.list.d/* create raspi.list: printf "%s\n" "deb http://archive.raspberrypi.org/debian/ buster main" |\ sudo tee /etc/apt/sources.list.d/raspi.list Edit your /etc/apt/sources....


0

The command apt-get update reads from /etc/apt/sources.list and /etc/apt/sources.list.d/. It updates the repository cache, so your machine knows what packages are available from those repositories. To remove any of these repositories, you would need to remove them from /etc/apt/sources.list or they could also be configured in any file inside /etc/apt/...


1

As pointed out by @Caleb there unfortunately seems to be a long standing bug in the triggerhappy service. But the udev rule can be useful if you want the triggerhappy happy daemon to take account of events triggered by new event sources - which can come from devices that are connected to the machine during or after boot. To work around this bug you can ...


0

You should consider to use overlayfs to make read only (but fake writable) the / filesystem. This will prevent some systemd services fails. You can do this using raspi-config script in 4 Performance Options > P3 Overlay File System Then the FS will be read only but fake writable (all changes will be lost at shutdown or reboot). You can read the raspi-...


0

The solution I used for my problem was to simply use a different driver, than the one provided by Brother. As you can read on http://openprinting.org/printer/Brother/Brother-HL-2240D the printer is compatible with the hpijs-pcl5e driver, hence I downloaded the PPD file from there and did a quick sudo apt install printer-driver-hpijs and the printer was ...


0

Thanks to Stephen Kitt in the comments. Using chroot and this tutorial solved the problem. Creating a directory with a 64-bit debian. apt install binutils debootstrap mkdir my-directory debootstrap --arch amd64 stretch my-directory http://deb.debian.org/debian Then installing qemu in the environment. chroot my-directory apt install qemu qemu-system Then to ...


0

Just ideas, as I have not tried it. /lib64/ld-linux-x86-64.so.2: No such file or directory is caused by libraries not installed. You will need to add the libraries for the foreign architecture. In debian, there is a multiarch package that (if I remember correct) manages this. The forign architecture can be pulled from the Debian repos: Same place that your ...


1

You could check if the fs are online, and then, and only then run mount command. a possible solution could be: online_disk=`2>/dev/null df -t cifs | wc -l` [ $online_disk -gt 0 ] || muont -a This two line of code check for cifs mount, if the device are online there are some line and it skip, otherways it run the mount cmd. Schedule it with cron


0

I've finally figured out the multiroom audio Raspberry Pi conundrum! The solution was to bring in PulseAudio. ALSA cannot do it alone because of the Raspberry Pi's ALSA bcm2835 driver limitations. The driver cannot copy data from one stream to another using mmap for reasons I don't quite understand. This is the case even when mmap is specifically enabled and ...


Top 50 recent answers are included