Go to advanced search

by DougieLawson
Mon May 21, 2018 8:33 pm
Forum: General programming discussion
Topic: Forcing GPIO2 state after shutdown
Replies: 8
Views: 145

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

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

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: 6
Views: 175

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: Troubleshooting
Topic: Raspberry pi 7”touchscreen brightness
Replies: 2
Views: 41

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

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: 25
Views: 1441

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

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

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: 6
Views: 175

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

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

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

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

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

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

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

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

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...
by DougieLawson
Sun May 20, 2018 1:51 pm
Forum: General discussion
Topic: Upgrade confusion?
Replies: 20
Views: 660

Re: Upgrade confusion?

Raspbian does tell you when a reboot is needed, but the message usually gets lost in the wall of text of a big update/upgrade. How so?... the word `reboot` does not appear in 390 lines of output from `sudo apt-get upgrade` Did that include any update to raspberrypi-kernel? If not, then you probably...
by DougieLawson
Sun May 20, 2018 1:17 pm
Forum: Python
Topic: What is the difference between code academy Python and Pi's Python?
Replies: 24
Views: 402

Re: What is the difference between code academy Python and Pi's Python?

... and finally, Python will get out of puberty and become a decent language... :lol: Sorry, but the genie is out of the bottle, python will always remain an ugly language. They couldn't even manage to make python3 compatible with python2, they won't add your features for python4/5/6/7/8. You can d...
by DougieLawson
Sun May 20, 2018 12:23 pm
Forum: Networking and servers
Topic: Ethernet not working for router, OK via hub
Replies: 2
Views: 59

Re: Ethernet not working for router, OK via hub

Does your router have MAC address filtering enabled?
by DougieLawson
Sun May 20, 2018 11:38 am
Forum: Advanced users
Topic: Pi 3 B+ fries if 3V3 rail is shorted to 5V
Replies: 19
Views: 483

Re: Pi 3 B+ fries if 3V3 rail is shorted to 5V

Crikey... Stick one of these over the 5V GPIO pins, and problem solved... https://cdn.sparkfun.com//assets/parts/2/4/0/7/09044-02-L.jpg Nice, simple, pragmatic option. If I were designing the header for the RPi I'd have kept 5V away off the header on seperate pins, but that would have added some pe...
by DougieLawson
Sat May 19, 2018 11:08 pm
Forum: General discussion
Topic: Just throwing this out there: backdir
Replies: 23
Views: 1092

Re: Just throwing this out there: backdir

Gitolite - that gives you a local git repo.
GitWeb - that works with a Gitolite repo & Apache/Lighty/NGINX and gives you a web interface to your code stored in your local repo.

I only publish code to https://github.com when it may be useful to someone else.
by DougieLawson
Sat May 19, 2018 11:05 pm
Forum: General discussion
Topic: Telegram desktop app for Raspberry pi
Replies: 3
Views: 118

Re: Telegram desktop app for Raspberry pi

It's probably safer to pull the source from https://github.com/telegramdesktop/tdesktop and build that on your Raspberry.

Go to advanced search