Go to advanced search

by PeterO
Fri Dec 13, 2019 3:44 pm
Forum: General discussion
Topic: I need "CPU power meter" for my RPI4
Replies: 10
Views: 258

Re: I need "CPU power meter" for my RPI4

jamesh wrote:
Fri Dec 13, 2019 3:25 pm
Everything you will ever need in every language!

https://rosettacode.org/wiki/Linux_CPU_utilization
The layout of the C version is atrocious !
PeterO
by PeterO
Fri Dec 13, 2019 1:24 pm
Forum: General discussion
Topic: I need "CPU power meter" for my RPI4
Replies: 10
Views: 258

Re: I need "CPU power meter" for my RPI4

rin67630 wrote:
Fri Dec 13, 2019 1:16 pm
It should be there by default.
Does someone know an equivalent for the command line over SSH?
If it was there by default why would the OP be asking for it ?????
PeterO
by PeterO
Fri Dec 13, 2019 1:14 pm
Forum: General discussion
Topic: I need "CPU power meter" for my RPI4
Replies: 10
Views: 258

Re: I need "CPU power meter" for my RPI4

Right click in the Panel,
Add/Remove Panel items,
Add CPU usage

Once it's appeared in the panel you need to right click on it to configure it to show the percentage.
There is also the Resources Monitor that can show RAM usage as well as CPU usage.

PeterO
by PeterO
Fri Dec 13, 2019 11:14 am
Forum: Advanced users
Topic: Using a Pi as an X-server for another computer.
Replies: 3
Views: 98

Re: Using a Pi as an X-server for another computer.

It should be some simple configuration, to get the Pi to act this way, does anyone know how to go about this? Anyone know how you would start? The "old school" way is to allow remote xclients to access the Pi's xserver via tcp... There are newer (more secure) ways that use other protocols but to ge...
by PeterO
Thu Dec 12, 2019 4:30 pm
Forum: General discussion
Topic: [Solved] Annoying feature of 'apt-get uprgade'
Replies: 42
Views: 1122

Re: Annoying feature of 'apt-get uprgade'

hippy wrote:
Thu Dec 12, 2019 4:25 pm
Seems the same annoyance is there with 'apt' as it is with 'apt-get''.
I give up !
PeterO
by PeterO
Thu Dec 12, 2019 4:24 pm
Forum: General discussion
Topic: [Solved] Annoying feature of 'apt-get uprgade'
Replies: 42
Views: 1122

Re: Annoying feature of 'apt-get uprgade'

What research should I have done ? I merely highlighted an annoyance with apt-get in my opening post. I mean I'd spent about an hour looking at manual pages, apt source code, web pages, trying to find any evidence to support your concerrn trolling about apt overwriting config files without warning,...
by PeterO
Thu Dec 12, 2019 2:37 pm
Forum: General discussion
Topic: [Solved] Annoying feature of 'apt-get uprgade'
Replies: 42
Views: 1122

Re: Annoying feature of 'apt-get uprgade'

But if 'apt' simply overwrites user modified configuration files, or if it doesn't, doesn't offer a choice, that's potentially more problematic than the issue with 'apt-get', arguably even less fit for purpose. Do you have any evidence that apt has different behaviour to apt-get in this respect ? P...
by PeterO
Thu Dec 12, 2019 1:05 pm
Forum: General discussion
Topic: [Solved] Annoying feature of 'apt-get uprgade'
Replies: 42
Views: 1122

Re: Annoying feature of 'apt-get uprgade'

That makes sense but rather makes apt-get not fit for purpose when it is used interactively. Which I think is why the current advice is to use "apt" instead. But if 'apt' simply overwrites user modified configuration files, or if it doesn't, doesn't offer a choice, that's potentially more problemat...
by PeterO
Thu Dec 12, 2019 9:27 am
Forum: General discussion
Topic: [Solved] Annoying feature of 'apt-get uprgade'
Replies: 42
Views: 1122

Re: Annoying feature of 'apt-get uprgade'

That makes sense but rather makes apt-get not fit for purpose when it is used interactively. Which I think is why the current advice is to use "apt" instead. See man apt .... DESCRIPTION apt provides a high-level commandline interface for the package management system. It is intended as an end user...
by PeterO
Wed Dec 11, 2019 9:31 pm
Forum: General discussion
Topic: [Solved] Annoying feature of 'apt-get uprgade'
Replies: 42
Views: 1122

Re: Annoying feature of 'apt-get uprgade'

My understanding is that apt-get was originally intended to be "scripted" and as such probably never expected to have to deal with users who change their mind after typing a few characters.

PeterO
by PeterO
Wed Dec 11, 2019 7:58 pm
Forum: General discussion
Topic: We want "more"
Replies: 16
Views: 671

Re: We want "more"

trejan wrote:
Wed Dec 11, 2019 7:46 pm
PeterO wrote:
Wed Dec 11, 2019 7:40 pm
NO !
No... Aardappeltaart doesn't mean swapping back to the old more utility.
Then they shouldn't have used the word "more" .
PeterO
by PeterO
Wed Dec 11, 2019 7:40 pm
Forum: General discussion
Topic: We want "more"
Replies: 16
Views: 671

Re: We want "more"

:) This is in .bashrc on the PI # make less more friendly for non-text input files, see lesspipe(1) #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" Uncommenting helped, I do wonder if less shouldn't be more by default. NO ! more is a filter for paging through text one screenful at a t...
by PeterO
Wed Dec 11, 2019 6:52 pm
Forum: General discussion
Topic: New Pi 4B v1.2?
Replies: 172
Views: 11828

Re: New Pi 4B v1.2?

so it seems to be an issue affecting more users (using a HDMI cable from your own store). I can't reproduce the issue by myself (I have a HDMI screen with this resolution but don't own any microHDMI cables - my use-cases are headless and the original cable is rather expensive here (~17$) so it won'...
by PeterO
Wed Dec 11, 2019 4:31 pm
Forum: General discussion
Topic: What does echo "!2" mean ?
Replies: 9
Views: 232

Re: What does echo "!2" mean ?

I'm actually a bit surprised that you got an "event not found" error msg; there should almost certainly be a "second command" somewhere. Something like !2000 would usually generate an error, since it is unlikely you would have 2000 commands in your history. Depends on setting of "HISTSIZE" You can ...
by PeterO
Tue Dec 10, 2019 8:40 pm
Forum: Beginners
Topic: Connecting 5V pullup to Pi GPIO
Replies: 33
Views: 919

Re: Connecting 5V pullup to Pi GPIO

emma1997 wrote:
Tue Dec 10, 2019 8:13 pm
AFAICS it is shown.
Errrrr..... No it isn't. You are imagining a part of the circuit that was not being included in the models.
PeterO
by PeterO
Tue Dec 10, 2019 7:54 pm
Forum: Beginners
Topic: Connecting 5V pullup to Pi GPIO
Replies: 33
Views: 919

Re: Connecting 5V pullup to Pi GPIO

Actually in those diagrams it's after, not before. Since it isn't show in the diagrams how can you be so sure ?. And if was after the charge/discharge times would be a major limiting factor ! We all know these are models of the input circuitry and all models have limits. If you stay within the limi...
by PeterO
Tue Dec 10, 2019 6:19 pm
Forum: Beginners
Topic: Connecting 5V pullup to Pi GPIO
Replies: 33
Views: 919

Re: Connecting 5V pullup to Pi GPIO

emma1997 wrote:
Tue Dec 10, 2019 4:48 pm
Am I the only one giggling at these resistor model representations of bias current?
Yes.
PeterO
by PeterO
Tue Dec 10, 2019 6:15 pm
Forum: General discussion
Topic: New Pi 4B v1.2?
Replies: 172
Views: 11828

Re: New Pi 4B v1.2?

emma1997 wrote:
Tue Dec 10, 2019 5:05 pm
At first release they were about double list on Ebay etc.
So nothing to do with the real pricing then, just greedy people trying to make a fast buck !
PeterO
by PeterO
Mon Dec 09, 2019 3:58 pm
Forum: Beginners
Topic: Connecting 5V pullup to Pi GPIO
Replies: 33
Views: 919

Re: Connecting 5V pullup to Pi GPIO

My take on it would be ... .-----------------. | 5V |<----.----< Pi 5V | | .|. | | |_| | __ | | | <-|__|-- IO |<----^----< Pi GPIO | 100M | | | | | | 0V |----------< Pi 0V `-----------------' Arduino It depends if we thinking about internal (my diagram) or external (your diagram) pull up resistors....
by PeterO
Mon Dec 09, 2019 11:15 am
Forum: Beginners
Topic: Connecting 5V pullup to Pi GPIO
Replies: 33
Views: 919

Re: Connecting 5V pullup to Pi GPIO

Not sure it's better though :-)
PullUp.png
PullUp.png (7.34 KiB) Viewed 382 times
PeterO
PS: Any excuse to play with my graphics tablet :lol:
by PeterO
Mon Dec 09, 2019 10:33 am
Forum: Beginners
Topic: Connecting 5V pullup to Pi GPIO
Replies: 33
Views: 919

Re: Connecting 5V pullup to Pi GPIO

... but can I safely make the assumption that it might as well be a physical 100MOhm resistor in series with the input? Possibly. But the pull-up is before that notional 100M resistance. ----5v | - | | | | 20k | | - | ---- o--------| |----> ---- 100M In your diagram it's not clear which side is the...
by PeterO
Mon Dec 09, 2019 8:53 am
Forum: Beginners
Topic: Connecting 5V pullup to Pi GPIO
Replies: 33
Views: 919

Re: Connecting 5V pullup to Pi GPIO

It's only a safe assumption as long as the voltage on the pin stays between 0V and 3.3V. Outside the "safe zone" other components come into play and the input becomes non-linear so ohms law doesn't apply any longer (*). PeterO (*) Well ohms law still applies, but effectively the circuit has changed ...
by PeterO
Sun Dec 08, 2019 4:58 pm
Forum: Beginners
Topic: building libudev for the Pi
Replies: 4
Views: 115

Re: building libudev for the Pi

The easy way to find out what compiler switches are neeeded to use a particular library is to use "pkg-config" pi@raspberrypi:~ $ pkg-config --cflags --libs libudev -ludev You can use pkg-config in your CMakeLists.txt file as well.... This stackoverflow answer shows how to do it... https://stackover...
by PeterO
Sun Dec 08, 2019 10:15 am
Forum: Beginners
Topic: Will I burn my RPI if I accidentially provide a large voltage to any 3.3v GPIO pin?
Replies: 15
Views: 440

Re: Will I burn my RPI if I accidentially provide a large voltage to any 3.3v GPIO pin?

mannok wrote:
Sun Dec 08, 2019 9:14 am
Hi there, I am new to electronic side of RPI. I owned a RPI 4B at the moment. And I have several question about RPI GPIO pins.

May I know if I will burn my GPIO in the follow scenarios?
The answers are Yes.

PeterO
by PeterO
Fri Dec 06, 2019 6:08 pm
Forum: Beginners
Topic: Connecting 5V pullup to Pi GPIO
Replies: 33
Views: 919

Re: Connecting 5V pullup to Pi GPIO

I heard many warnings that connecting 5V directly to any GPIO will fry the Pi. But the 5V pullup on the Arduino is behind a 100 MOhm resistor, therefore I want to ask if this configuration is dangerous for the Pi? I think you've misunderstood some of the details of input pins. The 100 MΩ resistor y...

Go to advanced search