Go to advanced search

by rpdom
Mon Jun 21, 2021 5:53 pm
Forum: Python
Topic: How to print an HTML file on a USB printer?
Replies: 6
Views: 201

Re: How to print an HTML file on a USB printer?

There is a package called weasyprint that will take a URL and render it to a PDF file. Then you can print the PDF (as that is the native format for CUPS print files). weasyprint isn't available in the package repository on buster (but it is in bullseye), but you can install it with pip3. You just mi...
by rpdom
Mon Jun 21, 2021 8:42 am
Forum: Compute Module
Topic: [SOLVED]Can't get NVMe working, it worked until a reboot and now says I need updated software!
Replies: 12
Views: 401

Re: [SOLVED]Can't get NVMe working, it worked until a reboot and now says I need updated software!

Gavinmc42 wrote:
Mon Jun 21, 2021 1:55 am
RPT can test Raspberry Pi OS but not every other distribution and they will not bother much with Sid which is always unstable. Wonder who they named it after?
In Toy Story, Sid was the boy next door who broke all the toys.
by rpdom
Sun Jun 20, 2021 6:35 pm
Forum: Compute Module
Topic: [SOLVED]Can't get NVMe working, it worked until a reboot and now says I need updated software!
Replies: 12
Views: 401

Re: Can't get NVMe working, it worked until a reboot and now says I need updated software!

thatchunkylad198966 wrote:
Sun Jun 20, 2021 6:18 pm
thagrol wrote:
Sun Jun 20, 2021 6:02 pm
thatchunkylad198966 wrote:
Sun Jun 20, 2021 5:42 pm
then upgraded to Sid
I expect that's the problem right there. Stick with Buster.
If you can't help, don't reply. :? :roll:
If you won't listen to advice, don't post. :roll:
by rpdom
Sun Jun 20, 2021 6:06 pm
Forum: Beginners
Topic: DC Motor Control Options for a dozen, or more motors
Replies: 8
Views: 221

Re: DC Motor Control Options for a dozen, or more motors

Thank you @rpdom, this is the kind if tip I was looking for One direction is all that I need. I'll take a look at the ULN2801 Thanks again! I would recommend you use the ULN2803A with the pi, it will work directly with the gpio pins and has the correct 2.7K resistor built in for the input, to limit...
by rpdom
Sun Jun 20, 2021 6:05 pm
Forum: General discussion
Topic: Is Purchasing Pi Zero in Larger #'s Possible?
Replies: 16
Views: 573

Re: Is Purchasing Pi Zero in Larger #'s Possible?

That is why I said "readily". That is, the quantity range of 2 upwards per order, and through the normal resellers. In that case you should already know the answer as it has been stated many times before. Only the WH version is available in quantity for general sales. The plain Zero and Z...
by rpdom
Sun Jun 20, 2021 3:14 pm
Forum: General discussion
Topic: Is Purchasing Pi Zero in Larger #'s Possible?
Replies: 16
Views: 573

Re: Is Purchasing Pi Zero in Larger #'s Possible?

James, just to be clear, is it the wireless (Pi0W) or the wireless + fitted header (Pi0WH) that is readily available without the one per customer limit? IIRC any version of the Zero is available for bulk sales at the full price (not the discounted one per customer price). Bulk in this case being 10...
by rpdom
Sun Jun 20, 2021 12:33 pm
Forum: Beginners
Topic: Raspberry Pi 3B Under Voltage Warning
Replies: 25
Views: 845

Re: Raspberry Pi 3B Under Voltage Warning

Imperf3kt wrote:
Sun Jun 20, 2021 12:13 pm
is that inline fuse not the polyfuse?
The polyfuse is inline.
by rpdom
Sun Jun 20, 2021 12:08 pm
Forum: Beginners
Topic: Raspberry Pi 3B Under Voltage Warning
Replies: 25
Views: 845

Re: Raspberry Pi 3B Under Voltage Warning

Thats true, except the Pi3B also has a polyfuse that is specified and intended to trip at 6V. If it doesn't then its faulty and you'd expect a lot of customer complaints. Fuses trip on current, not voltage. IIRC the polyfuse on the Pi 3B is rated at 2.6A. However there is also a protection diode wh...
by rpdom
Sun Jun 20, 2021 11:26 am
Forum: Beginners
Topic: DC Motor Control Options for a dozen, or more motors
Replies: 8
Views: 221

Re: DC Motor Control Options for a dozen, or more motors

Do you want the motors to be reversible, or just to turn run in one direction? If one direction, you could control 8 of them with one ULN2801 chip. That will handle the current and protect the GPIOs (which aren't designed to handle anything like a motor). You will still need software to handle the s...
by rpdom
Sun Jun 20, 2021 11:05 am
Forum: Troubleshooting
Topic: Task manager miss reporting RAM usage
Replies: 5
Views: 139

Re: Task manager miss reporting RAM usage

The GPU can only access the bottom 1GB of RAM. The CPUs can access all of the RAM. Even though some of that 1GB is reserved for the GPU (shouldn't be more than 256MB really), the rest should still be shown in any task manager. I'd ignore the pretty graphical thingy and see what "free -h" r...
by rpdom
Sun Jun 20, 2021 11:01 am
Forum: General discussion
Topic: Is Purchasing Pi Zero in Larger #'s Possible?
Replies: 16
Views: 573

Re: Is Purchasing Pi Zero in Larger #'s Possible?

You should be able to buy the wireless version in bulk, or email info@RaspberryPi.com with you needs and it will be passed onto sales. James, just to be clear, is it the wireless (Pi0W) or the wireless + fitted header (Pi0WH) that is readily available without the one per customer limit? IIRC any ve...
by rpdom
Sun Jun 20, 2021 7:56 am
Forum: Other projects
Topic: Print server (CUPS) is very slow with pdf files
Replies: 7
Views: 353

Re: Print server (CUPS) is very slow with pdf files

The reason why I told the OP to look for a postscript driver is that it would read the PDF and print because PDF files are written in postscript format, so there would be no conversion and print fast PDF files are not PostScript. They are based on PostScript, but have other extensions. Actually CUP...
by rpdom
Sun Jun 20, 2021 5:46 am
Forum: Beginners
Topic: Raspberry Pi 3B Under Voltage Warning
Replies: 25
Views: 845

Re: Raspberry Pi 3B Under Voltage Warning

Thats true, except the Pi3B also has a polyfuse that is specified and intended to trip at 6V. If it doesn't then its faulty and you'd expect a lot of customer complaints. Fuses trip on current, not voltage. IIRC the polyfuse on the Pi 3B is rated at 2.6A. However there is also a protection diode wh...
by rpdom
Sat Jun 19, 2021 9:07 pm
Forum: General discussion
Topic: SSH file on headless pi 4
Replies: 18
Views: 591

Re: SSH file on headless pi 4

Cloud1 wrote:
Sat Jun 19, 2021 8:15 pm
Are you creating a file named ssh or a folder, it should be a file, no extension either.
It can have an extension of .txt
by rpdom
Sat Jun 19, 2021 7:48 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: DS1307 Pi Zero
Replies: 9
Views: 225

Re: DS1307 Pi Zero

WaziRiPi wrote:
Sat Jun 19, 2021 7:35 pm
So you mean even if I remove resistors DS1307 will work. I am asking to know what it should do theoretically.
Yes, you don't need any extra resistors. The Pi already has them.
by rpdom
Sat Jun 19, 2021 7:47 pm
Forum: General discussion
Topic: SSH file on headless pi 4
Replies: 18
Views: 591

Re: SSH file on headless pi 4

I've never had any problem with enabling ssh with the file in the boot partition method, and I install images for testing frequently.

The ssh client and server are both already installed on Raspberry Pi OS, but the server is disabled initially until that file is detected at boot time.
by rpdom
Sat Jun 19, 2021 6:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: DS1307 Pi Zero
Replies: 9
Views: 225

Re: DS1307 Pi Zero

WaziRiPi wrote:
Sat Jun 19, 2021 4:17 pm
Is connecting GPIO2 and GPIO3 to SDA SCL with pull up resistor through 5V wrong?
You should not connect SDA or SCl to 5V through a resistor. There are already resistors on the Pi to pull up to 3.3V. 5V is too high for the Pi and could cause damage.
by rpdom
Sat Jun 19, 2021 10:59 am
Forum: Troubleshooting
Topic: Mounting a network HDD on a remote Pi (SOLVED)
Replies: 14
Views: 274

Re: Mounting a network HDD on a remote Pi (SOLVED)

thagrol wrote:
Sat Jun 19, 2021 10:51 am
You might want to switch to NFS instead of CIFS/Samba. NFS is linux native, has better perofrmance, and full support for linux owner, group, and permissions.
This! Plus NFS is a whole lot easier then CIFS to set up.
by rpdom
Sat Jun 19, 2021 9:15 am
Forum: Other projects
Topic: I want to create an "On Air" sign for my studio.
Replies: 3
Views: 135

Re: I want to create an "On Air" sign for my studio.

The first problem you will have is connecting your Pi to a VGA screen. The Pi does not have a VGA output, so you will need an Active HDMI to VGA convertor (not just a cable - those don't work). As for displaying signs, well I'd use any graphics package to generate some images of each sign I want dis...
by rpdom
Sat Jun 19, 2021 9:05 am
Forum: Advanced users
Topic: 8-bit character console?
Replies: 6
Views: 239

Re: 8-bit character console?

How are you receiving these characters and how are you displaying them on the console? The VGA/framebuffer thing should be irrelevant. Just the method you use to display them. Like if you "cat" a file of 8-bit characters, most of them will be displayed correctly - or are you talking about ...
by rpdom
Sat Jun 19, 2021 7:09 am
Forum: Troubleshooting
Topic: Onboard bluetooth comms between RPi 3s
Replies: 8
Views: 273

Re: Onboard bluetooth comms between RPi 3s

Things have gone pretty well up to the last step where the address is changed in the rfcomm-client.py file is changed. The default code is: addr = None which I changed to: addr = B8:27:EB:5E:18:0F But when I try and run the code it returns a syntax error with the arrow pointing at the first colon. ...
by rpdom
Fri Jun 18, 2021 4:24 pm
Forum: Advanced users
Topic: Maximum stable overclocking speed of a Pi 4 or 400
Replies: 52
Views: 1849

Re: Maximum stable overclocking speed of a Pi 4 or 400

thatchunkylad198966 wrote:
Fri Jun 18, 2021 3:35 pm
I'm no good with hardware, I'm more of a software dude; PCB?
PCB = Board (Printed Circuit Board)
by rpdom
Fri Jun 18, 2021 12:16 pm
Forum: Advanced users
Topic: startx at boot single client and unprivileged user
Replies: 29
Views: 847

Re: startx at boot single client and unprivileged user

Only if run from root's crontab. The cron daemon may be running as root but processes in a normal user's crontab are run by that user. I'd expect someone claiming years of linux experience to know that. I think that "drtechno" is referring to the /etc/crontab file for some reason. Not the...
by rpdom
Fri Jun 18, 2021 11:55 am
Forum: C/C++
Topic: atomic or volatile, that is the question ( Whether 'tis nobler in the mind to mutex them)
Replies: 74
Views: 1955

Re: atomic or volatile, that is the question ( Whether 'tis nobler in the mind to mutex them)

Heater, you stated already by yourself: At least I think so. Anyone know better? so let's just wait if anyone knows better, ok? Many people have already stated (or implied) that what you are trying to do is NOT a beginner subject. In fact most professionals wouldn't do it like that. You keep claimi...
by rpdom
Fri Jun 18, 2021 11:48 am
Forum: Advanced users
Topic: startx at boot single client and unprivileged user
Replies: 29
Views: 847

Re: startx at boot single client and unprivileged user

Yes, that stops user ecks from gaining elevated privileges but it doesn't solve the other problem: calling start /path/to/program as ecks from rc.local, cron, or a systemd service. Use of a user with restricted rights was implied in options 3 & 4 of my OP. If its executing inside cron, then its...

Go to advanced search