How to disable Wallpaper Carousel in Xiaomy Mi
Recently something was updated automatically in the phone firmware, after which funny pictures with funny facts began to appear on the lock screen instead of the boring image that I put there by purpose. Maybe for someone it's ok, but it wildly pissed me off. One time I already turned off this pornography, but I completely forgot how. Separately, it infuriates that, until you find how to finally turn it off, you will ruin more than one setting and then look for how to turn it back on.
In the end, I found how to turn it off properly - go to Settings, select "Always On Display & Lock Screen", find the "Wallpaper Carousel" section, go there and cut it to hell.
It’s not easy to cut it down just like that right away - at first the application will offer to use your own photos instead of turning off the functionality completely - don’t get be caught in this trap, refuse. Then the application will ask you to give a feedback, what exactly did not you like - we politely answer, or we send it impolitely.
After the above, it turns out that the carousel is still in place! No need to despair! We go to the wallpaper settings and once again set the background image on the phone screen.
Now everything works as it should - the phone has again become quite boring and has turned from a time waster into a smart assistant in life.
Tonometer
The team which is developing the TON cryptocurrency offered everyone to make a network status page as a contest. I took part in this contest and got tons of fun.
Since the topic is very interesting to me, I thought, why not? At the very least, there will be motivation to figure out how it all works and what it consists of.
I did not have time to do everything planned, but more or less a working prototype turned out. Here you can check out the demo of the project.
The data is collected on a home server where a lightweight client of the TON network is assembled, which requests data about the system and puts it in the InfluxDB database. The server part written in nodejs reads the prepared data and shows the data in the browser by the client to react.
The code is posted on github.
Fixing TWS Bluetooth headset
The kids's TWS Bluetooth earbuds became poorly magnetized to the charging station, which is why they began to charge poorly. We bought new headphones instead, but I was wondering what happened to the old ones?
Disassembling the charging case gave nothing, visually everything was in place - there was a suspicion that something was wrong with the installation of the magnets in the charging case, but everything turned out to be in place. There was nothing to do but to assemble everything back. I tried to press the headphones themselves more tightly into the slot, gluing a piece of packaging bubble polyethylene to the opposite side of the case with double-sided tape, but I was not happy with such a "repair".
Then the idea came to my mind to check the location of the magnetic poles - possibly one of the magnets was glued in with the back side, and instead of attracting - pushed the earpiece away? I found a small magnet from other broken headphones and began to magnetize it to the case and to the plugs. In the case, everything was in place - both slots perfectly magnetized the test magnet, and on the same side. But the plugs showed an anomaly - being magnetized to one of the headphones, the magnet refused to stop in one place - instead, it strove to move to the side.
Disassembling the earphone immediately revealed that the magnet had peeled off from its rightful place where it should be glued and was magnetized to the magnet of the earphone.
In fact, in both headphones, the magnets turned out to be peeled off, only in one of them the magnet also slipped onto its side, which is why if one of the headphones was still at least charged, then the other was not charged at all. Apparently, this is the result of earplugs falling out in combination with poor quality glue.
I glued the magnet in place with cyanoacrylate and put the earphone back together - now it magnetizes and charges perfectly. Now my kid asks for the headphones back - the new ones turned out to be worse than the old ones!
Quick setup Raspberry Pi Zero W
From time to time I have a need quickly setup Raspbian on Raspberry Pi Zero W.
Here is the quick step by step guide:
In the local computer download an image and upload it to sd card: (replace /dev/sdX, username, wlanname, wlanpassword, 192.168.0.155 with your own values)
# download image
wget https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-05-28/2021-05-07-raspios-buster-armhf-lite.zip
# extract
unzup 2021-05-07-raspios-buster-armhf-lite.zip
# copy to device
sudo dd if=2021-05-07-raspios-buster-armhf-lite.img of=/dev/sdX bs=2M conv=fsync
# activate ssh
touch /media/username/boot/ssh
# update the wifi access credentials
cat > /media/username/rootfs/etc/wpa_supplicant/wpa_supplicant.conf << EOF
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=DE
network={
ssid="wlanname"
psk="wlanpassword"
key_mgmt=WPA-PSK
}
EOF
# setup static IP address
cat >> /media/username/rootfs/etc/dhcpcd.conf << EOF
interface wlan0
static ip_address=192.168.0.155/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1 8.8.8.8
EOF
# prevent warning locale not found
cat >> /media/username/rootfs/etc/environment << EOF
LC_ALL=C
LANG=en
LANGUAGE=en
EOF
Put sd card to device and turn it on.
If everzthing went successful then you will see the new device in the network.
Connect to device by ssh: pi@192.168.0.155, the default password: "raspberry".
# expand filesystem on SD card
sudo raspi-config --expand-rootfs
# reboot
sudo reboot now
# after reboot login again and
# upgrade the system
sudo apt-get update
sudo apt-get upgrade -y
After all steps above you will have a device with Linux to play with.
It is very important to use good card reader. I wasted lots of time before I discovered that my internal card reader does not write sd card well. It reads ok, but when I try to write or format sd cards on it the previously written information appears unchanged. After swithing to exteranal card reader all problems were gone.
The more information you can find on the original Raspberry Pi OS documentation.