Go to advanced search

by DougieLawson
Thu May 24, 2018 7:50 pm
Forum: General discussion
Topic: Why does the RPF care about how many desktops I have ?
Replies: 9
Views: 286

Re: Why does the RPF care about how many desktops I have ?

As I've said before no other distribution takes this approach. PeterO Debian has the "the configuration changed, would you like to keep your version or install then maintainers update". That's why the filesystem gets littered with *dpkg* configuration files. This arbitrary overwrite of "my" configu...
by DougieLawson
Thu May 24, 2018 7:39 pm
Forum: Add-ons
Topic: Outlier Temperature readings
Replies: 2
Views: 33

Re: Outlier Temperature readings

97°F (36.1°C) is not an outlier - it's normal.
by DougieLawson
Thu May 24, 2018 5:39 pm
Forum: Beginners
Topic: Want to know what does w1-gpio and w1-therm does
Replies: 1
Views: 24

Re: Want to know what does w1-gpio and w1-therm does

The modprobe for those two modules was the old Jessie way of getting 1-wire sensors running.

The config.txt way with the overlay is the modern Stretch way. The old way is deprecated.

Both enable the same thing - they let you read 1-wire sensors in userspace.
by DougieLawson
Wed May 23, 2018 10:33 pm
Forum: Beginners
Topic: Mounting SMB/Plex
Replies: 14
Views: 190

Re: Mounting SMB/Plex

Add a line in /etc/fstab for the filesystem you need mounted at boot.
by DougieLawson
Wed May 23, 2018 9:06 pm
Forum: Troubleshooting
Topic: i2c Problem
Replies: 1
Views: 47

Re: i2c Problem

Add dtoverlay=i2c-sensor,bmp180 to /boot/config.txt and reboot. That gives you the BMP180 data on two virtual filesystems (/sys/bus/iio/devices/iio:device*/in_pressure_input & /sys/bus/iio/devices/iio:device*/in_temp_input) that are easy to read with a simple python program. #!/usr/bin/python class ...
by DougieLawson
Wed May 23, 2018 7:53 pm
Forum: Troubleshooting
Topic: RPi won't boot after first shutdown
Replies: 7
Views: 870

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: 106

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: 4
Views: 102

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: 80

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: 106

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: 7
Views: 127

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: 174

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: 174

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: 174

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: 684

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: 65

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: 126

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: 1630

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: 47

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: 387

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: 684

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: 688

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: 230

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: 513

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.

Go to advanced search