Dramatic reduction in performance after adding RTC - frankpintosr - 06-20-2019
Hi All, I recently added an RTC to my setup. I used one of these HiLetgo DS3231 High Precision RTC. Here are the steps I followed.
- Image SD card with OpenAuto Pro 3.3
- First boot and config with only Rii Keyboard USB dongle
#Check and install updatessudo sh -c "apt-get update && apt-get dist-upgrade && apt-get autoremove"sudo shutdown
- Physically connect USB sound card UGREEN USB Audio Adapter External Stereo Sound Card
- Physically connect the GPS Module neo-6m-gy-gps6m
- Boot Pi
#Installs gpsd clientssudo apt-get -y install gpsd gpsd-clients python-gps#Disable the gpsd systemd servicesudo systemctl stop gpsd.socketsudo systemctl disable gpsd.socket#Now the gpsd needs to be started and pointed at the UARTsudo killall gpsdsudo gpsd /dev/ttyS0 -F /var/run/gpsd.sock#Disable the serial getty servicesudo systemctl stop serial-getty@ttyS0.servicesudo systemctl disable serial-getty@ttyS0.service#Enable UARTsudo nano /boot/config.txt #At the end of the file add enable_uart=1#Edit /boot/cmdline.txtsudo mv /boot/cmdline.txt /boot/cmdline.txt.origsudo nano /boot/cmdline.txt #Add the following line dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwaitsudo reboot now#Connect gpsd to UART and testsudo killall gpsdsudo gpsd /dev/ttyS0 -F /var/run/gpsd.sock# Start gpsd at bootsudo nano /etc/default/gpsd #Change options to look like this START_DAEMON="true" DEVICES="/dev/ttyS0" GPSD_OPTIONS="-n"sudo systemctl enable gpsd.socketsudo systemctl start gpsd.socketsudo reboot now#Testcgpssudo shutdown
- Physically connect and install RTC HiLetgo DS3231 High Precision RTC
RPI Pins RTC PinsPin#1 3V3 Pin#1 +Pin#3 SDA Pin#2 DPin#5 SCL Pin#3 CPin#9 GND Pin#5 -sudo mv /boot/config.txt /boot/config.txt.backupsudo nano /boot/config.txt #Add the following line dtoverlay=i2c-rtc,ds3231sudo mv /lib/udev/hwclock-set /lib/udev/hwclock-set.backup sudo nano /lib/udev/hwclock-set #If the following lines exist comment them out, if they do not exist, add them #if [ -e /run/systemd/system ] ; then # exit 0 #fi#Check the date and time of the RTCsudo hwclock -r#Write the system time to the RTCsudo hwclock -w#Set the system time from the RTCsudo hwclock -s#Disable the fake-hwclocksudo apt-get -y remove fake-hwclocksudo update-rc.d -f fake-hwclock removesudo systemctl disable fake-hwclocksudo reboot now
After this reboot the Pi operates VERY slowly and I am unsure how to troubleshoot this. Can someone please help?
Thank you!
Frank
My Setup
2004 Chevrolet Tahoe Z71 with Bose and Onstar
Raspberry Pi 3 Module B+
RE: Dramatic reduction in performance - BlueWave - 06-20-2019
Hello,
Your problem looks very similar to this one https://bluewavestudio.io/community/showthread.php?tid=576.
Could you please check whether below lines are still in /boot/config.txt?
gpu_mem=256
dtoverlay=vc4-fkms-v3d
RE: Dramatic reduction in performance - frankpintosr - 06-20-2019
(06-20-2019, 08:01 AM)BlueWave Wrote: Hello,
Your problem looks very similar to this one https://bluewavestudio.io/community/showthread.php?tid=576.
Could you please check whether below lines are still in /boot/config.txt?
gpu_mem=256
dtoverlay=vc4-fkms-v3d
Strange, this file looks empty! I currently have this in config.txt
GNU nano 2.7.4 File: ./boot/config.txt
GNU nano 2.7.4 File: /boot/config.txt
dtoverlay=i2c-rtc,ds3231
dtparam=i2c_arm=off
I have edited the file to
GNU nano 2.7.4 File: config.txt
dtoverlay=i2c-rtc,ds3231
dtoverlay=vc4-fkms-v3d
dtparam=i2c_arm=off
gpu_mem=256
Is this correct now?
RE: Dramatic reduction in performance - BlueWave - 06-20-2019
Better try to add desired lines to default OpenAuto Pro /boot/config.txt file:
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=off
#dtoverlay=vc4-kms-v3d
gpu_mem=256
dtoverlay=vc4-fkms-v3d
disable_splash=1
dtoverlay=i2c-rtc,ds3231
dtparam=i2c_arm=off
RE: Dramatic reduction in performance - frankpintosr - 06-20-2019
(06-20-2019, 03:14 PM)BlueWave Wrote: Better try to add desired lines to default OpenAuto Pro /boot/config.txt file:
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=off
#dtoverlay=vc4-kms-v3d
gpu_mem=256
dtoverlay=vc4-fkms-v3d
disable_splash=1
dtoverlay=i2c-rtc,ds3231
dtparam=i2c_arm=off
That was the issue! Once I added the following lines to /boot/config.txt performance went back to normal.
gpu_mem=256
dtoverlay=vc4-fkms-v3d
After that test I deleted my config.txt, renamed my config.txt.backup to config.txt, added the two lines above, saved and rebooted. I also looked at my process to get the RTC working and found I renamed the original config.txt and then created a new file called config.txt It was a simple as changing the command line as shown below.
sudo mv /boot/config.txt /boot/config.txt.backup
to
sudo cp /boot/config.txt /boot/config.txt.backup
|