Go to advanced search

by hippy
Mon Dec 28, 2020 4:37 pm
Forum: Troubleshooting
Topic: Can't install Java 8 [SOLVED]
Replies: 2
Views: 118

Re: Can't install Java 8

I'm trying to install java 8 on a Raspberry Pi 4 (4GB) with the beta 64 bit OS. You might have more success using a 32-bit OS. This looked promising for me on my Pi 3B though I did not attempt an actual install ... pi@Pi3B:~ $ sudo apt-get install openjdk-8-jdk-headless Reading package lists... Don...
by hippy
Mon Dec 28, 2020 4:26 pm
Forum: General discussion
Topic: Raspberry Pi mini computer and BeagleBoard mini computer.
Replies: 6
Views: 399

Re: Raspberry Pi mini computer and BeagleBoard mini computer.

Gunter wrote:
Mon Dec 28, 2020 5:34 am
What is the difference between the product the Raspberry Pi organization has for sale and the product the BeagleBoard organization has for sale?
That's like asking what is the difference between the planes Boeing and Airbus make. It's too open-ended to give any meaningful answer.
by hippy
Sun Dec 27, 2020 8:31 pm
Forum: Troubleshooting
Topic: Chromium plays some YT videos, not others
Replies: 3
Views: 113

Re: Chromium plays some YT videos, not others

Dec 15 2020 18:29:44 Copyright (c) 2012 Broadcom version 4b4aff21f72c5b9ba39d83c7b0f8fa910a6ef99b (clean) (release) (start_x) Hmm, from the command line ... pi@Pi3B:~ $ vcgencmd version Nov 30 2020 22:13:46 Copyright (c) 2012 Broadcom version ab1181cc0cb6df52bfae3b1d3fef0ce7c325166c (clean) (releas...
by hippy
Sun Dec 27, 2020 7:09 pm
Forum: Troubleshooting
Topic: Purging bluealsa
Replies: 0
Views: 50

Purging bluealsa

Investigating some issue with Chromium I used "chromium-browser --version" and, as well as the version number, it reported something about "blueALSA" and something about it being sand-boxed. Vaguely remembering that bluealsa was one of the things which should be purged when using...
by hippy
Sun Dec 27, 2020 5:59 pm
Forum: General discussion
Topic: Algodoo in Raspberry pi 3
Replies: 3
Views: 143

Re: Algodoo in Raspberry pi 3

There seems to be downloads for Windows, Mac and iPad, but not a mention of Linux, X86 or otherwise, and no link to any code to compile oneself, so it's probably not usable on a Pi.

Perhaps contact the developer. They'll know more than anyone here.
by hippy
Sun Dec 27, 2020 5:37 pm
Forum: Troubleshooting
Topic: Chromium plays some YT videos, not others
Replies: 3
Views: 113

Chromium plays some YT videos, not others

I am having a weird problem with Chromium playing YouTube videos; some work as expected, some don't. It seems to be consistent depending on video viewed rather than just random. For those which don't work; so long as the mouse is being moved over the video playback area they are are fine, play as ex...
by hippy
Sun Dec 27, 2020 4:31 pm
Forum: General discussion
Topic: Trouble getting two python scripts to execute at startup
Replies: 4
Views: 134

Re: Trouble getting two python scripts to execute at startup

You can add the following early in /etc/rc.local to create a log file which allows what's going on within rc.local to be monitored ...

Code: Select all

exec > /tmp/rc.local.log 2>&1; set -x
Then, when rebooted, to see what happened ...

Code: Select all

cat /tmp/rc.local.log
by hippy
Sun Dec 27, 2020 2:21 pm
Forum: Raspberry Pi 400
Topic: Pi400 Red Screen at First Power Up
Replies: 7
Views: 406

Re: Pi400 Red Screen at First Power Up

A solid red screen is what would be expected if a Pi 4 were trying to flash Boot Eeprom with the recovery image and had failed to do that. Not sure how that could come about though.

It might be worth downloading the Raspberry Pi OS to a new SD Card and seeing if that works better.
by hippy
Sun Dec 27, 2020 2:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Pi is powered down, display still on - why?
Replies: 5
Views: 346

Re: Pi is powered down, display still on - why?

The Pi Zero WH has its 5V input from the PSU wired straight to the 5V pin on the the 40-way header and doesn't use a PMIC so 5V is always present on that header as is 3V3. The only way to completely remove power from the display or Pi plus display would be to use external hardware to disconnect the ...
by hippy
Sun Dec 27, 2020 1:52 pm
Forum: Beginners
Topic: One Button / Multiple Raspberries
Replies: 20
Views: 582

Re: One Button / Multiple Raspberries

It is a good job , that the Raspberry engineers who designed the GPIO layout and configuration Did not design the UK 400kv supper grid . As there would have been a few black/outs, and fried engineers I am not sure how much the "Raspberry engineers" designed and how much was inherited or i...
by hippy
Sun Dec 27, 2020 1:41 pm
Forum: General discussion
Topic: Auto Updating Python Program
Replies: 2
Views: 108

Re: Auto Updating Python Program

One way to do it is to provide your program and associated files as an 'apt package', run a web server which the clients can update from using the standard 'apt' command. That's pretty easy to set-up and configure.

Whether "best" or not depends on your criteria for that.
by hippy
Sun Dec 27, 2020 10:44 am
Forum: General discussion
Topic: HDMI-Composite Mirroring or other options
Replies: 8
Views: 234

Re: HDMI-Composite Mirroring or other options

So, what are these KMS drivers, and how would I go about setting them to automatically detect and act upon the presence/absence of an hdmi display? Is there something I need to add to or change in the config file? AFAIR you don't need to alter anything with these KMS drivers. You only need to alter...
by hippy
Sun Dec 27, 2020 10:14 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Pi is powered down, display still on - why?
Replies: 5
Views: 346

Re: Pi is powered down, display still on - why?

Most Pi's will continue to supply 5V and 3V3 to the 40-way header when the Pi OS is shutdown until its PSU is unplugged so the display keeps showing what it was last sent.

Which Pi are you using ?
by hippy
Sat Dec 26, 2020 7:02 pm
Forum: Troubleshooting
Topic: Re: Pi3B+ Firmware Revision History
Replies: 12
Views: 367

Re: Pi3B+ Firmware Revision History

Apart from a tiny amount of code baked into the SoC (which cannot be changed) there is no firmware on a 3B+. Alternatively it can be argued there's a lot, with some calling things firmware which others would not. But I'm not wanting to argue over that - I would ask the OP what they mean by "fi...
by hippy
Sat Dec 26, 2020 6:52 pm
Forum: Python
Topic: Solved Syntaxerror Python3
Replies: 6
Views: 157

Re: Syntaxerror Python3

If I delete those lines with the # as first sign; commenting?; the program workss as it should. Shall I run without those lines at all? You can delete them or put the leading "#" back in. They are indeed comments, indicating what the 'gpio' (pin) and 'mode' parameters can be in the 'pi.se...
by hippy
Sat Dec 26, 2020 5:48 pm
Forum: Python
Topic: List question
Replies: 5
Views: 228

Re: List question

I just found my code with comments and see now that [1] specified hex ? No that just specifies retrieving item 1 in the list which, with the first item being 0, makes item 1 the second item in the list. The value retrieved as item 1 may well be considered to be hex. array = [ [ 1, 2, 3 ], [ 4, 5, 6...
by hippy
Sat Dec 26, 2020 4:07 pm
Forum: General discussion
Topic: inetd on a Pi
Replies: 7
Views: 187

Re: inetd on a Pi

Well, if just installing some package was the solution - then I don't see why anyone would bother starting a thread. Anybody can find and install a package. If the OP had known that, and which package to install, the OP would probably have done that. It's not unreasonably to come here for help. I w...
by hippy
Sat Dec 26, 2020 12:16 pm
Forum: General discussion
Topic: inetd on a Pi
Replies: 7
Views: 187

Re: inetd on a Pi

I can't entirely help except to say 'inetd' has always been brought in when installing 'telnetd' and perhaps for similar daemons. There is no '/etc/inetd' on my Pi but I did find - /etc/inetd.conf /etc/init.d/openbsd-inetd /usr/sbin/inetd /lib/systemd/system/inetd.service /etc/systemd/system/multi-u...
by hippy
Sat Dec 26, 2020 11:16 am
Forum: Beginners
Topic: Only using root can execute certain command
Replies: 4
Views: 146

Re: Only using root can execute certain command

$ python3 ~/.local/lib/python3.7/site-packages/ruuvitag_sensor --help python3: can't open file '/home/pi/.local/lib/python3.7/site-packages/ruuvitag_sensor': [Errno 2] No such file or directory One would normally have to supply the .py extension ... python3 ~/.local/lib/python3.7/site-packages/ruuv...
by hippy
Fri Dec 25, 2020 11:45 am
Forum: Beginners
Topic: Connect to pc with USB
Replies: 4
Views: 152

Re: Connect to pc with USB

If by "double USB cable" you mean one of those PC-to-PC transfer cables which have a USB-A plug on each end which establish a TCP/IP network connection between the two - Yes, that does work, or at least used to. If it's something else you will have to provide more details of what you have,...
by hippy
Fri Dec 25, 2020 11:13 am
Forum: Advanced users
Topic: Extracting Bipmap data
Replies: 5
Views: 214

Re: Extracting Bipmap data

Python with PyGame provides fairly easy ways to extract the pixel data from an image. A very simplistic example - import pygame pygame.init() image = pygame.image.load("square.bmp") width, height = image.get_size() for h in range(height): s = "" for w in range(width): r, g, b, a ...
by hippy
Fri Dec 25, 2020 10:27 am
Forum: Python
Topic: List question
Replies: 5
Views: 228

Re: List question

it's not even a list It's more likely a list of lists. I would also think of such a construct as "an array". Each list doesn't have to be the same length but in this case they probably are. Technically the outer 'list' and contained 'lists' could be lists, tuples or dictionaries, or any m...
by hippy
Fri Dec 25, 2020 9:58 am
Forum: Raspberry Pi OS
Topic: "Raspberry Pi OS | Compatible with: | All Raspberry Pi models"
Replies: 11
Views: 418

Re: "Raspberry Pi OS | Compatible with: | All Raspberry Pi models"

It's perfectly okay to install the Raspberry Pi OS with Desktop on any Pi including the older and original versions. I have installed that on my Pi 1B's.

One doesn't have to use the desktop, can use raspi-config to set boot to command line.
by hippy
Fri Dec 25, 2020 9:50 am
Forum: Troubleshooting
Topic: Finding and Removing PulseAudio
Replies: 3
Views: 168

Re: Finding and Removing PulseAudio

PulseAudio and BlueAlsa refer to the desktop environment... ......as you are running Raspberry Pi Lite Operating System it is at this present time irrelevant. Does this mean code which is written for running at the command line, from rc.local or cron, which has been coded to coexist with PulseAudio...
by hippy
Thu Dec 24, 2020 5:00 pm
Forum: Python
Topic: wrong indentation.
Replies: 25
Views: 879

Re: wrong indentation.

From what I can tell, Python is like Pascal - a "teaching language" that somehow got out of the lab. You would be wrong, and the way you put it is rather disparaging to Python. But you are correct that Python made it mandatory that indentation is correct and consistent rather than leaving...

Go to advanced search