Go to advanced search

by spectrum6
Sun Jul 12, 2020 6:22 pm
Forum: Device Tree
Topic: Cant turn off Power LED on Rasp Pi 4 Model B
Replies: 9
Views: 723

Re: Cant turn off Power LED on Rasp Pi 4 Model B

I've run some tests using the latest rpi-update kernel (5.4.50-v7l+) on 4Bs of various vintages, cutting and pasting your settings: # Disable the ACT LED. dtparam=act_led_trigger=none dtparam=act_led_activelow=off # Disable the PWR LED. dtparam=pwr_led_trigger=none dtparam=pwr_led_activelow=off All...
by spectrum6
Sun Jul 12, 2020 12:04 pm
Forum: Troubleshooting
Topic: Backend terminated or disconnected.Fatal Python error: Segmentation fault
Replies: 5
Views: 324

Re: Backend terminated or disconnected.Fatal Python error: Segmentation fault

Segmentation fault is generally a programming error, the library/program is pointing at memory outside of it's program's allocated memory/scope. Tensorflow has several reported issues along those lines, so perhaps upgrading to a later version of Tensorflow or applying a workaround in your program mi...
by spectrum6
Sun Jul 12, 2020 1:07 am
Forum: Troubleshooting
Topic: Cannot get NTP client to sync with local server
Replies: 21
Views: 505

Re: Cannot get NTP client to sync with local server

Yeah it's usually pretty simple. In my case systemd-timesyncd runs on all my Linux boxes and they all sync to a public NTP server of some sort, generally whatever the OS has configured out of the box. Years ago I used to run ntpd for all my local devices, but honestly couldn't be bothered anymore. :)
by spectrum6
Sun Jul 12, 2020 12:55 am
Forum: Troubleshooting
Topic: Cannot get NTP client to sync with local server
Replies: 21
Views: 505

Re: Cannot get NTP client to sync with local server

The firewall in the Cisco is turned off. Beside, if Hubitat can go through, the RPi should. And yes, 16 means untrusted time source. But who decide it's 16? I dont recall having set that anywhere. To try the public server, I'll have to connect this network to internet. I'll do that. it might help f...
by spectrum6
Sun Jul 12, 2020 12:25 am
Forum: Troubleshooting
Topic: Cannot get NTP client to sync with local server
Replies: 21
Views: 505

Re: Cannot get NTP client to sync with local server

Any more idea? One thing I noticed is the ntp server at 192.168.2.34 was reporting stratum 16, now I don't know if that is real or not, I want to say it starts with 16 until it can actually talk to the ntp server to probe it's stratum. But if it is 16, clients will not sync. I think it was suggeste...
by spectrum6
Sat Jul 11, 2020 8:46 pm
Forum: Troubleshooting
Topic: Cannot get NTP client to sync with local server
Replies: 21
Views: 505

Re: Cannot get NTP client to sync with local server

Samething. I see that the datetimectl command did effectively changed the time but after a reboot, it failed again. Compared to the log i posted earlier, there that line that bugs me a lot related to no interface available for broadcast... CA775838-3B37-4A8A-AEC9-771227420126.jpeg I am not sure thi...
by spectrum6
Sat Jul 11, 2020 4:58 pm
Forum: Troubleshooting
Topic: Cannot get NTP client to sync with local server
Replies: 21
Views: 505

Re: Cannot get NTP client to sync with local server

If the clock is too far out of sync then usually NTP will not sync it. In the default case, if ntpd detects that the time on the host is more than 1000s from the server time, ntpd assumes something must be terribly wrong and the only reliable action is for the operator to intervene and set the clock...
by spectrum6
Sat Jul 11, 2020 12:56 pm
Forum: Device Tree
Topic: Cant turn off Power LED on Rasp Pi 4 Model B
Replies: 9
Views: 723

Re: Cant turn off Power LED on Rasp Pi 4 Model B

The dtparams mentioned are all supported by the 4B DTB (you can check for errors using "sudo vcdbg log msg", and list the known parameters with the "dtparam" command). My findings are similar to the OP, tried it via /boot/config.txt to set dtparam=pwr_led_trigger=none and the light is still on. 007...
by spectrum6
Sat Jul 11, 2020 12:35 pm
Forum: Device Tree
Topic: Cant turn off Power LED on Rasp Pi 4 Model B
Replies: 9
Views: 723

Re: Cant turn off Power LED on Rasp Pi 4 Model B

Did you load the actual overlay? The parameters are not going to have an effect unless you first call dtoverlay=act-led. That's not correct - the base DTBs also expose parameters, not just overlays. The distinction is useful because base DTBs can have different implementations of a common parameter...
by spectrum6
Sat Jul 11, 2020 11:46 am
Forum: Device Tree
Topic: Cant turn off Power LED on Rasp Pi 4 Model B
Replies: 9
Views: 723

Re: Cant turn off Power LED on Rasp Pi 4 Model B

Did you load the actual overlay? The parameters are not going to have an effect unless you first call dtoverlay=act-led.

As for the /sys filesystem, hard to tell without knowing what you did, but works for me.

echo none > /sys/class/leds/led1/trigger
by spectrum6
Fri Jul 10, 2020 4:45 pm
Forum: Beginners
Topic: How do I print a Python Program
Replies: 33
Views: 1022

Re: How do I print a Python Program

If your using vim on buster, and you have lpr working with a default printer then you can just type ":hardcopy" in vim (not in editing mode). It will send the document with syntax highlighting & color to the printer. If you want to write a PostScript file to disk you can do ":hardcopy >/tmp/test.ps"...
by spectrum6
Wed Jul 08, 2020 11:31 pm
Forum: General programming discussion
Topic: Can we control the on-board leds
Replies: 62
Views: 141519

Re: Can we control the on-board leds

Here is an option to persist on reboots:

Code: Select all

sudo apt-get install sysfsutils
Edit the config file /etc/sysfs.conf,

Code: Select all

sudo vi /etc/sysfs.conf
and add the following line:

Code: Select all

class/leds/led1/trigger = none
You can add led0 in there as well if you want. led1 is the red power light.
by spectrum6
Sun Jul 05, 2020 1:19 pm
Forum: General discussion
Topic: Mistake with GPU memory [solved]
Replies: 7
Views: 364

Re: Mistake with GPU memory

I’m using a 64 bit windows 10 to edit but does it work on windows 7? If your using an SD card adapter (https://www.amazon.com/SanDisk-microSD-Memory-Adapter-MICROSD-ADAPTER/dp/B0047WZOOO) there is a switch on the side for write protection. You might want to try flipping that switch and see if that ...
by spectrum6
Sat Jul 04, 2020 10:14 am
Forum: Beginners
Topic: New to Raspberry Pi: Errors and weird messages on first boot
Replies: 22
Views: 667

Re: New to Raspberry Pi: Errors and weird messages on first boot

Current preferred commands are (adding the sudo prefix because nearly everyone does, and beginners definitely should, run from user 'pi'): sudo apt update sudo apt full-upgrade And--at least in my experience--a "dist-upgrade"/"full-upgrade" does not remove packages. At the end, it may suggest runni...
by spectrum6
Fri Jul 03, 2020 9:17 pm
Forum: Raspberry Pi OS
Topic: [Guide] Kodi on Raspberry Pi OS / Raspbian Buster
Replies: 384
Views: 139693

Re: [Guide] Kodi on Raspbian Buster

@Rascas Nice job on the Kodi build, it has been running great. I couldn't find it mentioned anywhere in this topic, but is the Libretro cores available anywhere? I see you have kodi-game-libretro, but there are apparently no cores/emulators installed. Is that available through another repository? If...
by spectrum6
Fri Jul 03, 2020 6:52 pm
Forum: Beginners
Topic: New to Raspberry Pi: Errors and weird messages on first boot
Replies: 22
Views: 667

Re: New to Raspberry Pi: Errors and weird messages on first boot

It looks like in your first screenshot you had network connectivity issues during the post-install configuration. But on the back of that packaging the first 2 commands perform the same function as the post-install where you encountered the issue. It is generally preferred to do "apt-get update" and...
by spectrum6
Fri Jul 03, 2020 2:34 pm
Forum: Troubleshooting
Topic: Wrong time because of no DNS, and no DNS due to bad time.
Replies: 15
Views: 503

Re: Wrong time because of no DNS, and no DNS due to bad time.

Anyway, the idea has to be to get the system time to something that is "close to right" before trying to sync to the network. Why "fake-hwclock" isn't working to that end is the (next) mystery to be solved. I don't know if anyone has direct experience with DNSSEC so far, it would be good to know ho...
by spectrum6
Fri Jul 03, 2020 2:11 pm
Forum: Troubleshooting
Topic: Wrong time because of no DNS, and no DNS due to bad time.
Replies: 15
Views: 503

Re: Wrong time because of no DNS, and no DNS due to bad time.

I didn't think stub-resolvers needed the correct time for exactly this reason? From what I gathered DNSSEC does use time to validate the signature. I guess like an SSL certificate there is a validity time. But this is a local/client-side verification it appears. My guess is Debian changed the defau...
by spectrum6
Fri Jul 03, 2020 1:40 pm
Forum: Troubleshooting
Topic: Wrong time because of no DNS, and no DNS due to bad time.
Replies: 15
Views: 503

Re: Wrong time because of no DNS, and no DNS due to bad time.

Is fake-hwclock service running? What does "systemctl status fake-hwclock" say? Do you leave the PI turned off for prolonged periods?

If fake-hwclock is working properly, this blog post may help you, take a look:
https://warlord0blog.wordpress.com/2019 ... on-failed/
by spectrum6
Thu Jul 02, 2020 8:59 pm
Forum: Networking and servers
Topic: route issues
Replies: 10
Views: 377

Re: route issues

Right. And going back to the OT/OP ^^, it appears dhcpcd.conf has a magic keyword "destination" that can be used to dynamically configure routes etc acquired via ppp. See the man page for dhcpcd.conf. Yeah, weird. :) This is what is kind of annoying about Debian-based systems, there are 9 ways to d...
by spectrum6
Thu Jul 02, 2020 8:49 pm
Forum: Networking and servers
Topic: route issues
Replies: 10
Views: 377

Re: route issues

@david_1234 another option to try is see if there is a "replacedefaultroute" option for your pppd peers configuration (by the looks of the guide you used it should be in /etc/ppp/peers/quectel-ppp). Might be some documentation in "man pppd" https://manpages.debian.org/buster/ppp/pppd.8.en.html . It'...
by spectrum6
Thu Jul 02, 2020 7:03 pm
Forum: Networking and servers
Topic: route issues
Replies: 10
Views: 377

Re: route issues

On a RaspiOS system as soon as you ignore the rules in /etc/network/interfaces (*Don't edit*) then all bets are off. Restore the interfaces file back to normal and take a look in /etc/dhcp c d.conf which is the configuration file for RaspiOS networking. Actually, dhcpcd has a wrapper script that ch...
by spectrum6
Thu Jul 02, 2020 6:26 pm
Forum: Networking and servers
Topic: route issues
Replies: 10
Views: 377

Re: route issues

What you need to do when you bring up your ppp0 interface is drop this route: 0.0.0.0 10.0.0.250 0.0.0.0 UG 202 0 0 eth0 and replace it with a default route, gateway, & interface over ppp0. That should do the job. You should also have a route for your ppp0 subnet tunneling over that interface, altho...
by spectrum6
Wed Jul 01, 2020 11:04 pm
Forum: General discussion
Topic: Netflix on Raspberry Pi 4
Replies: 56
Views: 74074

Re: Netflix on Raspberry Pi 4

Did your 'testing' involve multiarch? Could you be more specific on what your testing concluded? Yes, I basically stood up a 64-bit Raspbian container, which already has armhf as a foreign architecture, then I added the sources.list on 32-bit Raspbian. Essentially what happened is it complains abou...
by spectrum6
Wed Jul 01, 2020 7:35 pm
Forum: General discussion
Topic: Netflix on Raspberry Pi 4
Replies: 56
Views: 74074

Re: Netflix on Raspberry Pi 4

It seems like an ARM Chromebook OS img would be 64 bit. Right? Am I missing anything? Edit: Oh I get it. Chrome OS is 64 bit kernel, but 32 bit userland. See this thread for more details I think maybe the only option here based on my testing is you would need to setup a container (lxd/lxc, etc) and...

Go to advanced search