Go to advanced search

by DougieLawson
Wed May 23, 2018 7:53 pm
Forum: Troubleshooting
Topic: RPi won't boot after first shutdown
Replies: 7
Views: 860

Re: RPi won't boot after first shutdown

The first thing to try to get over the "won't boot after shutdown" bug is sudo rpi-update; sudo poweroff pull power and reboot. That gets the 4.14.42-v7+ kernel with new bootcode that solves that boot problem. It's been out for a couple of days and is running on 13 out of 15 of my raspberries.
by DougieLawson
Wed May 23, 2018 7:41 pm
Forum: Networking and servers
Topic: Migrating from IPv4 server to IPv6
Replies: 3
Views: 88

Re: Migrating from IPv4 server to IPv6

My IPv6 is a 6to4 tunnel (as Plusnet don't do native IPv6, unlike BT & Sky who do). I use my globally unique 6to4 address which is a /64 prefix. 6to4 is quite interesting as it's 2002:ipip:ipip:nnnn where ipip:ipip is your 32-bit IPv4 address in hex and nnnn is a randomly assigned 16-bit subnet. I'm...
by DougieLawson
Wed May 23, 2018 6:48 pm
Forum: Python
Topic: Can I use MySQL as a way to store and edit python variables
Replies: 3
Views: 56

Re: Can I use MySQL as a way to store and edit python variables

I thought that using a cursor and "SELECT * FROM" would recheck the database each time, but have just found out that it doesn't actually reload the data from the row each cycle (unless the connection is closed or something like a 'commit' order is sent) . The only way I've found at the moment is to...
by DougieLawson
Tue May 22, 2018 9:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: "sudo i2cdetect -y 1" shows full table
Replies: 1
Views: 59

Re: "sudo i2cdetect -y 1" shows full table

That means your SDA line is connected to GND. It's either going to be a bad cable or a solder bridge between SDA & GND
by DougieLawson
Tue May 22, 2018 7:02 pm
Forum: Networking and servers
Topic: Migrating from IPv4 server to IPv6
Replies: 3
Views: 88

Re: Migrating from IPv4 server to IPv6

Enable radvd or dhcpv6 on your router and your Raspberry will get a IPv6 address. It's got some already that you'll see with an ip -6 addr command. pi@hitchhiker:~ $ ip -6 addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000 inet6 ::1/128 scope host valid_lft forever preferred_lft fo...
by DougieLawson
Tue May 22, 2018 6:45 pm
Forum: Beginners
Topic: raspberry pi jessie Mosquitto configuration
Replies: 5
Views: 79

Re: raspberry pi jessie Mosquitto configuration

Remove

Code: Select all

listener 1883
from your /etc/mosquitto/*.conf or /etc/mosquitto/conf.d/*.conf files and that solves the problem. It's a "feechur" of 1.5 that was introduced this week.
by DougieLawson
Mon May 21, 2018 8:33 pm
Forum: General programming discussion
Topic: Forcing GPIO2 state after shutdown
Replies: 8
Views: 164

Re: Forcing GPIO2 state after shutdown

I don't know because I've never had a desire to test gpio-poweroff (because all 15 of my raspberries run 24/365.25). I was just giving general advice to start from pin#29 and upwards as those pins are less likely to conflict with other pin uses.
by DougieLawson
Mon May 21, 2018 7:13 pm
Forum: General programming discussion
Topic: Forcing GPIO2 state after shutdown
Replies: 8
Views: 164

Re: Forcing GPIO2 state after shutdown

With a 40-pin header I always start at physical pin#29 and work down to pin#40 (GND pins excluded). They're never used by systems functions (I2C, SPI, UART, etc.) as they didn't exist on the original 26-pin RPi1B.
by DougieLawson
Mon May 21, 2018 6:34 pm
Forum: General programming discussion
Topic: Forcing GPIO2 state after shutdown
Replies: 8
Views: 164

Re: Forcing GPIO2 state after shutdown

Every pin number in /boot/config.txt is the GPIO numbering scheme.GPIO2 is used for the I2C interface (and has a 1.8Kohm external pull-up), you may want to pick a different pin.

https://pinout.xyz should help you find them.
by DougieLawson
Mon May 21, 2018 6:10 pm
Forum: General discussion
Topic: STICKY: PMs being turned off from June 13
Replies: 21
Views: 650

Re: STICKY: PMs being turned off from June 13

The underlying reason is that the RPF don't want to be the first folks to get arrested by the "EU GDPR Police" as fighting that would be a waste of the money destined for educational purposes. That seems like a valid reason. They can switch it back on when phpBB3 change the code, they change registr...
by DougieLawson
Mon May 21, 2018 5:48 pm
Forum: Official Foundation Display
Topic: Raspberry pi 7”touchscreen brightness
Replies: 2
Views: 56

Re: Raspberry pi 7”touchscreen brightness

Assuming this is the official RPF 7" touch screen and not a V1.0 model. There's a virtual filesystem /sys/class/backlight/rpi_backlight In there you've got pi@Challenger:/sys/class/backlight/rpi_backlight $ ls -la total 0 drwxr-xr-x 3 root root 0 May 19 09:17 . drwxr-xr-x 3 root root 0 May 19 09:17 ...
by DougieLawson
Mon May 21, 2018 5:43 pm
Forum: Beginners
Topic: HDMI to VGA adapter
Replies: 3
Views: 121

Re: HDMI to VGA adapter

When I was looking for an HDMI to VGA adapter, I read that there were a lot of rubbish ones available online, so I bought mine from The PiHut, not the cheapest, but it works for me. 8-) https://thepihut.com/collections/raspberry-pi-screens/products/raspberry-pi-hdmi-to-vga-convertor +1 That's the o...
by DougieLawson
Mon May 21, 2018 5:39 pm
Forum: Troubleshooting
Topic: Ethernet Problems PI3 B+
Replies: 26
Views: 1597

Re: Ethernet Problems PI3 B+

since the latest rpi-update my pis frequently crash early on in kernel start up. Succeeds maybe 1 in 4 or 5 tries. 4.14.39-v7+ However when it does boot the problem with my rsync script causing the rpi to lockup seems to be resolved. Stop using sudo rpi-update since you clearly don't understand wha...
by DougieLawson
Mon May 21, 2018 5:33 pm
Forum: Recommended peripherals
Topic: PI3 and WiFi antenna
Replies: 1
Views: 38

Re: PI3 and WiFi antenna

It is possible with some hardware hacking but your device then breaches the FCC certification (and any certification for every other part of the world where the RPi is sold).

The RPF & RP(T)Ltd. folks can't allow you to discuss those hardware mods on their forum.
by DougieLawson
Mon May 21, 2018 5:30 pm
Forum: AIY Projects
Topic: AIY Voice 2.0 Button LED
Replies: 7
Views: 379

Re: AIY Voice 2.0 Button LED

If you just want to test the button works and the LED lights run this simple python3 program (no AIY stuff needed)

Code: Select all

from gpiozero import LED, Button
from signal import pause

led = LED(25)
button = Button(23)

button.when_pressed = led.on
button.when_released = led.off

pause()
by DougieLawson
Mon May 21, 2018 5:12 pm
Forum: General discussion
Topic: STICKY: PMs being turned off from June 13
Replies: 21
Views: 650

Re: STICKY: PMs being turned off from June 13

Probably a good thing - I can edit my forum sig. Despite it, too many folks send tech questions to me by private message. Folks can DM on Twitter - but not for tech questions which should stay on the forum for everyone's benefit.
by DougieLawson
Sun May 20, 2018 7:58 pm
Forum: General discussion
Topic: Upgrade confusion?
Replies: 20
Views: 678

Re: Upgrade confusion?

FWIW, here are the grep match occurrences that might be significant: Preparing to unpack .../10-raspberrypi-kernel_1.20180417-1_armhf.deb ... Unpacking raspberrypi-kernel (1.20180417-1) over (1.20180328-1) ... run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.14.34+ /boot/kernel.img ru...
by DougieLawson
Sun May 20, 2018 7:44 pm
Forum: Troubleshooting
Topic: I cannot get my Pi to connect to the internet
Replies: 9
Views: 218

Re: I cannot get my Pi to connect to the internet

Use http://www.advanced-ip-scanner.com to scan your LAN for your Raspberry.
by DougieLawson
Sun May 20, 2018 7:42 pm
Forum: Troubleshooting
Topic: SSH problems with Raspberry Pi Zero W
Replies: 18
Views: 505

Re: SSH problems with Raspberry Pi Zero W

If you can logon to your RPi (using a keyboard, mouse and TV/monitor) then run these commands in an LXterminal window

sudo touch /boot/ssh
sudo reboot


Get this: http://www.advanced-ip-scanner.com
Use it to scan your LAN for the address of your Raspberry.
by DougieLawson
Sun May 20, 2018 2:48 pm
Forum: General discussion
Topic: tmux panes with individual titles
Replies: 7
Views: 155

Re: tmux panes with individual titles

tmux new -s foo gives the pane a name of "[foo]".
[CTRL]+[b] then [,] lets you set/change a name.
by DougieLawson
Sun May 20, 2018 2:38 pm
Forum: General discussion
Topic: Upgrade confusion?
Replies: 20
Views: 678

Re: Upgrade confusion?

It's easy to miss things. Try grep -i 'kernel' /var/log/apt/term.log to see if the kernel is updated.
by DougieLawson
Sun May 20, 2018 2:34 pm
Forum: Raspbian
Topic: tty-clock
Replies: 2
Views: 66

Re: tty-clock

Try running it with /usr/bin/tty-clock -c -n -T /dev/tty1 with

Code: Select all

disable_splash=1
in /boot/config.txt

Code: Select all

quiet logo.nologo
in /boot/cmdline.txt and sudo systemctl mask plymouth-start.service to get rid of the rainbow, kernel messages and the splash screen during boot.
by DougieLawson
Sun May 20, 2018 2:25 pm
Forum: General discussion
Topic: What is the UUID scheme?
Replies: 12
Views: 479

Re: What is the UUID scheme?

UUID and/or PARTUUID are reliable until you re-write the MBR partition table. root@endeavour:~ # blkid /dev/sda /dev/sda: PTUUID="20a75729" PTTYPE="dos" root@endeavour:~ # blkid /dev/sda* /dev/sda: PTUUID="20a75729" PTTYPE="dos" /dev/sda1: SEC_TYPE="msdos" LABEL="RECOVERY" UUID="0427-12C4" TYPE="vfa...
by DougieLawson
Sun May 20, 2018 2:06 pm
Forum: Advanced users
Topic: Two wireless networks simultaneous (wlan0-AP, wlan1-Client)
Replies: 3
Views: 92

Re: Two wireless networks simultaneous (wlan0-AP, wlan1-Client)

If this is the case you can either enable "predictable network interfaces names" (via raspi-config?) or whip up a udev rule that gives one of your interfaces a specific name. AFAIK it's one or the other options. "predictable" network names is easier to use (nothing needed in udev), except that ever...

Go to advanced search