Go to advanced search

by DougieLawson
Tue Jun 19, 2018 7:26 pm
Forum: Official Foundation Display
Topic: Raspberry Pi 7inch Touchscreen not working
Replies: 11
Views: 446

Re: Raspberry Pi 7inch Touchscreen not working

If you have an active 7" touch screen you can't have an active HDMI display. It's one or the other with the standard display drivers.
by DougieLawson
Tue Jun 19, 2018 6:21 pm
Forum: Troubleshooting
Topic: Wrong screen resolution of Raspbian in VNC Viewer
Replies: 5
Views: 117

Re: Wrong screen resolution of Raspbian in VNC Viewer

Start with a ls -la /sys/module/bcm2708_fb/parameters command. It should be obvious what I'm showing you.
by DougieLawson
Mon Jun 18, 2018 9:13 pm
Forum: Add-ons
Topic: [solved]thermal paste to get heat sink on cpu?
Replies: 5
Views: 88

Re: thermal paste to get heat sink on cpu?

A heatsink on a Zero is a waste of effort because it's next to impossible to get it running hot. A heatsink on a 3B+ may not be needed as the termal conduction of the CPU package and circuit board are an order of magnitude better than earlier models.
by DougieLawson
Mon Jun 18, 2018 8:45 pm
Forum: Add-ons
Topic: [solved]thermal paste to get heat sink on cpu?
Replies: 5
Views: 88

Re: thermal paste to get heat sink on cpu?

What model of Raspberry do you have and why do you think you need a heatsink?
by DougieLawson
Mon Jun 18, 2018 8:44 pm
Forum: Beginners
Topic: Access denied on SHH (password is correct, user is pi)
Replies: 15
Views: 379

Re: Access denied on SHH (password is correct, user is pi)

Easiest way to fix a broken password is to boot to an emergency root shell. If NOOBS use the recovery system to add systemd.unit=rescue.target to /boot/cmdline If PINN use the PINN password reset option in the PINN recovery system. No mucking about needed. If plain Raspbian, pull the card, edit F:\c...
by DougieLawson
Mon Jun 18, 2018 8:38 pm
Forum: General discussion
Topic: recent serial i/o tutorial
Replies: 8
Views: 223

Re: recent serial i/o tutorial

The RPi has five SPI CS lines between the two devices /dev/spidev0.0 /dev/spidev0.1 /dev/spidev1.0 /dev/spidev1.1 & /dev/spidev1.2 https://pinout.xyz/pinout/spi spidev0 == GPIO7 (CE0.1), GPIO8 (CE0.0), GPIO9 (MISO0), GPIO10 (MOSI0) & GPIO11 (SCLK0) spidev1 == GPIO 16 (CE1.2), GPIO17(CE1.1), GPIO18 (...
by DougieLawson
Mon Jun 18, 2018 5:37 pm
Forum: Python
Topic: Tripple button activated stopwatch
Replies: 7
Views: 219

Re: Tripple button activated stopwatch

gordon77 wrote:
Mon Jun 18, 2018 4:39 pm
Here's an example that might get you started...

viewtopic.php?t=204237
We've done that bit.
by DougieLawson
Mon Jun 18, 2018 5:33 pm
Forum: Troubleshooting
Topic: Raspbian OS unreachable after several hours of use
Replies: 22
Views: 510

Re: Raspbian OS unreachable after several hours of use

5. Something is leaking memory and the RPi is still running in swapping hell. It's just so desperately slow so it appears dead.

For that set up a one minute cron job to run a free command and log the results.

sudo crontab -e

Code: Select all

# m h  dom mon dow   command
*/1 * * * * free >> /var/log/free.log
by DougieLawson
Mon Jun 18, 2018 3:00 pm
Forum: Beginners
Topic: Running a command [solved]
Replies: 3
Views: 89

Re: Running a command

Use the "dot slash commandname" feature of the shell.
./commandname
by DougieLawson
Mon Jun 18, 2018 2:57 pm
Forum: Raspbian
Topic: Help installing a new kernel module.
Replies: 2
Views: 64

Re: Help installing a new kernel module.

Pull the kernel source that matches your Raspbian kernel with the rpi-source helper script from https://github.com/notro/rpi-source. Get the current config with sudo modprobe configs zcat /proc/config.gz > .config Change that .config so that CONFIG_SENSORS_MAX1668=m is set. Make oldconfig, build it,...
by DougieLawson
Mon Jun 18, 2018 2:06 pm
Forum: Troubleshooting
Topic: Socket error [101]: Network not rechable
Replies: 3
Views: 89

Re: Socket error [101]: Network not rechable

What address are you trying to connect to when you get the socket error?

The first two commands of mine tell us what subnet you're connected to and where your gateway router is located.
by DougieLawson
Mon Jun 18, 2018 12:04 pm
Forum: Raspbian
Topic: Upgrade to kernel 4.16 in Strech
Replies: 3
Views: 116

Re: Upgrade to kernel 4.16 in Strech

Why do you want to go beyond the RPF/RP(T)Ltd supported 4.14.49 (latest with rpi-update)?

https://github.com/notro/rpi-source/wiki can help you get the source if you really want to build it yourself.
by DougieLawson
Mon Jun 18, 2018 11:21 am
Forum: Troubleshooting
Topic: keyboard configuration problem?
Replies: 9
Views: 192

Re: keyboard configuration problem?

Octothorp removes any differences due to where you live and how you speak.
{} are braces, [] are brackets and () are parentheses, they are not curly brackets, square brackets and round brackets (or left banana, right banana).
by DougieLawson
Mon Jun 18, 2018 11:17 am
Forum: Troubleshooting
Topic: Reading 4 Analog ultrasonic sensors with MCP 3008
Replies: 4
Views: 82

Re: Reading 4 Analog ultrasonic sensors with MCP 3008

Have you thought about using the supplied function in GPIOZero which makes reading an MCP3008 into child's play? #!/usr/bin/python3 from gpiozero import MCP3008 from time import sleep LL = MCP3008(channel=4, device=0) while True: adcValue = (LL.value * 3.3)*100 print('{:.1f}'.format(adcValue), 10 * ...
by DougieLawson
Mon Jun 18, 2018 10:56 am
Forum: Beginners
Topic: Can't find/edit Config.txt
Replies: 3
Views: 92

Re: Can't find/edit Config.txt

Has this whole forum really become Raspbian only? Nobody stops you from helping OP, not even Dougie. He does give some good advice in this case, though Openelec uses Berryboot or U-boot or something like that (or it did last time I looked at it). It's not as simple as Raspbian or NOOBS. So asking w...
by DougieLawson
Mon Jun 18, 2018 10:40 am
Forum: Beginners
Topic: Can't find/edit Config.txt
Replies: 3
Views: 92

Re: Can't find/edit Config.txt

Since you're running OpenElec rather than Raspbian you're much more likely to get a sane answer from https://forum.openelec.tv
by DougieLawson
Mon Jun 18, 2018 9:58 am
Forum: Troubleshooting
Topic: keyboard configuration problem?
Replies: 9
Views: 192

Re: Weird problem!

The # is more correctly called an "octothorp" not "hash", "pound", "sharp" or "hashtag".

Pound is from lb (latin libra) where the writing of "lb" got steadily lazier until it morphed into the octothorp.
by DougieLawson
Mon Jun 18, 2018 9:08 am
Forum: Troubleshooting
Topic: Wrong screen resolution of Raspbian in VNC Viewer
Replies: 5
Views: 117

Re: Wrong screen resolution of Raspbian in VNC Viewer

For a headless system there's an option in sudo raspi-config to force the resolution.
That added

Code: Select all

hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=81
to my /boot/config.txt

RealVNC uses the framebuffer dimensions for /dev/fb0. Which you can see at /sys/module/bcm2708_fb/parameters.
by DougieLawson
Mon Jun 18, 2018 8:56 am
Forum: General discussion
Topic: Password Lost
Replies: 5
Views: 166

Re: Password Lost

Add

Code: Select all

systemd.unit=emergency.target
to the end of /boot/cmdline (which you can do on Windows for a plain Raspbian card or with the NOOBS cmdline recovery editor).

That forces a systemd system to boot to an emergency root shell.

If you replace NOOBS with PINN that includes a password reset function.
by DougieLawson
Sun Jun 17, 2018 7:21 pm
Forum: Troubleshooting
Topic: Raspbian Stretch
Replies: 7
Views: 218

Re: Raspbian Stretch

Remove the

Code: Select all

proto=WPA
key_mgmt=WPA-PSK
lines as they do nothing useful.

Can you see your network on the GUI widget (top right of the task bar)?

Image
by DougieLawson
Sun Jun 17, 2018 6:22 pm
Forum: Beginners
Topic: Editing json file
Replies: 2
Views: 80

Re: Editing json file

You MUST stop transmission before editing the JSON file. It ALWAYS writes the current settings back to the JSON file when it terminates (which is a truly insane design).
by DougieLawson
Sun Jun 17, 2018 4:10 pm
Forum: Troubleshooting
Topic: RPI3 B >>> Mariadb >>> E: Unable to correct problems, you have held broken packages.
Replies: 4
Views: 82

Re: RPI3 B >>> Mariadb >>> E: Unable to correct problems, you have held broken packages.

What happens if you run
sudo apt-get update
sudo apt-get install mariadb-server-10.3
by DougieLawson
Sun Jun 17, 2018 2:36 pm
Forum: General discussion
Topic: Twitter Bot with automated photo
Replies: 5
Views: 176

Re: Twitter Bot with automated photo

twitterauth.json (no underscore in there) needs to be in the same directory as the script (/home/pi/twitterauth.json).
The tweeting script is in /home/pi/tweeter.pi on my system.

Tweepy gets installed with sudo pip3 install tweepy
by DougieLawson
Sun Jun 17, 2018 11:36 am
Forum: Off topic discussion
Topic: Digital TC Soldering Station (UK)
Replies: 15
Views: 365

Re: Digital TC Soldering Station (UK)

The annoying thing is the Aldi in Basingstoke isn't built yet. It opens in the Autumn.
Nearest Aldi is a 30 mile round trip.
by DougieLawson
Sun Jun 17, 2018 10:38 am
Forum: General discussion
Topic: Twitter Bot with automated photo
Replies: 5
Views: 176

Re: Twitter Bot with automated photo

Should work. I've not tested it.
Change the // lines to #// to fix my syntax errors.

Edit: https://twitter.com/IMSlights/status/10 ... 6916452353 first one worked.
And five minutes later https://twitter.com/IMSlights/status/10 ... 3665131520

Go to advanced search