Tenrec: Difference between revisions
Brian Wilson (talk | contribs) |
Brian Wilson (talk | contribs) |
||
Line 132: | Line 132: | ||
Autologin: Edit /etc/gdm3/custom.conf | Autologin: Edit /etc/gdm3/custom.conf | ||
Settings | |||
-> Location services -> turn on (What is Mozilla Location Service?) | |||
-> Privacy -> Screen lock -> Don't blank, don't lock screen. don't lock on suspend | |||
How can I make the icons bigger? | |||
What is Fractional Scaling | |||
Date and Time are stuck in London. | |||
=== Audio === | === Audio === |
Revision as of 06:18, 2 December 2021
Tenrec is a Raspberry Pi 4B
2020-May-09 arrived from Newark
I set it up as a build machine, with its faster processor and more RAM and SSD on USB3 it runs circles around violet (Pi 3B+) and of course my little Pi Zeroes.
Hardware
Cable management is always an issue with the Pi, they stick out everywhere! :-)
- Pi 4B with 4GB
- Seeed heatsink kit so cute, had to have one. Probably superfluous.
- 7" Pi touch screen from Element14
- Multicomp Pro case, clear
- Corsair GTX 240GB SSD
- Startech USB3S2SAT3CB USB3.0-SATA3 cable w/UASP (lsusb id is 174c:55aa with ASMedia ASM1053E chipset)
- Kensington USB3 hub
I drilled a couple holes in the bottom of the case, attached RAM mount hardware.
I got a Kensington USB3 hub and I run it on a separate 5V supply, so now it's powering the Apple keyboard and a Startech USB3 SATA cable.
The combination of USB3, SATA3, and a reasonably fast SSD is working well.
Quirks tests
set quirks=174c:55AA in /boot/cmdline.txt then run sudo ./Storage.sh and observe the results
Category Test Result HDParm Disk Read 162.96 MB/s HDParm Cached Disk Read 161.84 MB/s DD Disk Write 163 MB/s FIO 4k random read IOPS ( KB/s) FIO 4k random write IOPS ( KB/s) IOZone 4k read 15504 KB/s IOZone 4k write 23439 KB/s IOZone 4k random read 15545 KB/s IOZone 4k random write 21437 KB/s
With quirks turned off, it's faster
Category Test Result HDParm Disk Read 270.66 MB/s HDParm Cached Disk Read 265.18 MB/s DD Disk Write 166 MB/s FIO 4k random read IOPS ( KB/s) FIO 4k random write IOPS ( KB/s) IOZone 4k read 16087 KB/s IOZone 4k write 20849 KB/s IOZone 4k random read 16183 KB/s IOZone 4k random write 23324 KB/s
Screen and touch screen rotation
In this case, the 7" screen is upside down. You can fix this! https://raspberrypiprojects.com/raspberry-pi-rotate-touch-screen/ Also the image did not fill up the screen, perhaps it was defaulting to 640x480?
In /boot/config.txt,
lcd_rotate=2 framebuffer_width=800 framebuffer_height=480
On the login screen with these settings there is a white band on the right, one or two pixels wide but I don't care. It goes away after login.
Power
I had the lightning bolt low voltage warning almost continuously until I plugged in only a hub to the USB ports. I am using a 5V 4A switching supply and a USB-C cable. My power meter says it's pulling just over an amp at 5.2 volts.
Software
Countless variations of Raspios have I installed now, all fail when the display comes on. White screen of death.
2021-11-30 Today I am trying Ubuntu Server 64-bit, 21.10 I think it is. It works.
I have been using the Pi Imager, it is great. I have been installing directly onto a SSD instead of them wee SD cards.
Ubuntu settings
Locale? Try "dpkg-reconfigure locales".
WiFi
With Ubuntu I cannot run raspi-config any longer. WiFi is in settings. It says WiFi is "unavailable". There are no "visible networks". It worked before I installed matchbox. Dang. I had to edit a file, the file 10-rpi-ethernet-eth0.yaml contains this:
network: ethernets: {} wifis: wlan0: dhcp4: true access-points: "wildsong": password: "somethingaboutturtles"
I don't know what it is for but when I do
netplan try
it comes right up. It is still not visible in Settings->WiFi
Bluetooth works.
Ubuntu packages
emacs matchbox xinit
foxtrotgps navit gpsd
Matchbox
Autologin: Edit /etc/gdm3/custom.conf
Settings
-> Location services -> turn on (What is Mozilla Location Service?)
-> Privacy -> Screen lock -> Don't blank, don't lock screen. don't lock on suspend
How can I make the icons bigger?
What is Fractional Scaling
Date and Time are stuck in London.
Audio
For ALEXA, do not install pulseaudio it makes her sound crackly and talk slowly. (Seriously weird.) I hacked around with pulseaudio because it was not working. I used some notes from here, on StackExchange.
I am using a Logitech camera for its microphone and the built in audio line out.
Adding X11
I installed the window environment on the SSD. Also it goes without saying, emacs.
sudo -s dpkg --configure -a apt update apt full-upgrade reboot apt install emacs-nox apt install xserver-xorg xinit apt install raspberrypi-ui-mods reboot
Now I have a lightdm login screen, so I log in.
Adding Squeezelite
http://www.winko-erades.nl/installing-squeezelite-player-on-a-raspberry-pi-running-jessie/
Adding Alexa
Sample code is in /home/pi/alexa/.
I did a clean build after switching from Violet (Debian Stretch) to Tenrec (Debian Buster). Finally I did the build on the console on Tenrec after trying a few times from remote SSH sessions that got interrupted by random life events like dinner and walks.
Wake word: | | Simply say Alexa and begin your query. | | Tap to talk: | | Press 't' and Enter followed by your query (no need for the 'Alexa').| | Hold to talk: | | Press 'h' followed by Enter to simulate holding a button. | | Then say your query (no need for the 'Alexa'). | | Press 'h' followed by Enter to simulate releasing a button. | | Stop an interaction: | | Press 's' and Enter to stop an ongoing interaction. | | Privacy mode (microphone off): | | Press 'm' and Enter to turn on and off the microphone. | | Playback Controls: | | Press '1' for a 'PLAY' button press. | | Press '2' for a 'PAUSE' button press. | | Press '3' for a 'NEXT' button press. | | Press '4' for a 'PREVIOUS' button press. | | Settings: | | Press 'c' followed by Enter at any time to see the settings screen. | | Speaker Control: | | Press 'p' followed by Enter at any time to adjust speaker settings. | | Firmware Version: | | Press 'f' followed by Enter at any time to report a different | | firmware version. | | Info: | | Press 'i' followed by Enter at any time to see the help screen. | | Reset device: | | Press 'k' followed by Enter at any time to reset your device. This | | will erase any data stored in the device and you will have to | | re-register your device. | | This option will also exit the application. | | Reauthorize device: | | Press 'z' followed by Enter at any time to re-authorize your device. | | This will erase any data stored in the device and initiate | | re-authorization. | | | | Quit: | | Press 'q' followed by Enter at any time to quit the application.
Hooking up some NeoPixels
https://www.instructables.com/id/Alexa-Assistant-With-a-10-Raspberry-Pi-Zero-W-and-/