Re: Getting wifi bitrate

2021-01-01 Thread Björn Gohla


[...]
>> I just want to show the network activity in my desktop status line.
>
> Understood, fair enough.
> The chosen Tx rate is not a very reliable indicator of actual throughput
> but it can serve as a wifi link quality indicator to some extent.

>From ifconfig.c I gather that

(nr->nr_rates[nr->nr_nrates - 1] & IEEE80211_RATE_VAL) / 2

is the current nominal rate in Mb/s, is that correct?

Curiously, what I observe with the RTL8192EU is that after associating,
that value starts at 1 and as transmissions are made, moves to 54 in
increasing steps, and then stays there. I guess that corroborates your
point about incorrect information being returned by the device.

Unfortunately I don't have another wifi adapter to test with.

Anyway, thanks for your help, I'll give it a rest now.

--
Cheers,
Björn



PF route-to and divert-packet

2021-01-01 Thread Valdrin MUJA
Hi Misc,

I’m trying to use policy based routing (route-to) with divert-packet feature.
I’m just using example code written at divert’s man page. (man divert)
I’ve two WAN interfaces which are pppoe0(default gw) and pppoe.
Those pf rules works below:
#
pass in log quick on vether10 inet proto udp from 10.10.10.52 to any port 53
pass in log quick on vether10 inet proto tcp from 10.10.10.52 to any port { 80 
443 } route-to (pppoe1 (pppoe1))
pass out log quick on pppoe1 inet proto tcp from 10.10.10.52 to any nat-to 
(pppoe1)

But when I add divert-packet into NAT lines as this:
pass out log quick on pppoe1 inet proto tcp from 10.10.10.52 to any 
divert-packet port 700 nat-to (pppoe1)

It fails. What should I do for using route-to (+) divert-packet feature 
together.
Please help. Thanks.


Re: Disable nVIDIA GPU?

2021-01-01 Thread Joseph Mayer
Hi Andrea,

Is the "Hybrid mode" set in your BIOS? That one should direct the Intel
GPU to the built-in LCD. Is your problem that even despite this the GPU
PCI device is still burning electricity?

Can you detail the trick you did on Linux to disable the dedicated GPU
there?

Joseph

‐‐‐ Original Message ‐‐‐
On Thursday, 31 December 2020 00:55, Andrea Boccia  wrote:

> Hi!
> my laptop, a ThinkPad P1 ships with the nVIDIA Quadro T1000 dGPU.
>
> sysctl hw.sensors reports an energy discharge rate of 30 Wh and CPU 
> temperatures of around 60 degrees. (I guess the cpu/gpu shared heatpipe isn't 
> doing any good...)
> Yes, apm is active and properly configured. (clock @ 800 Mhz)
> This is exactly the same behaviour I experienced some time ago on Linux, that 
> I solved through acpi_calls.
>
> How could I turn completely off the dGPU?
> Unfortunately disabling the GPU trough BIOS isn't possible.
>
> I don't think there is the need for a dmesg or any other kind of log, but let 
> me know if I'm wrong, I will immediately comply.
> Thanks!




Re: lenovo thinkpoad with nvidia and intel graphics?

2021-01-01 Thread Joseph Mayer
On Wednesday, 10 July 2019 19:14, Tommi Pernila  wrote:
> > I have a T430s with both Intel integrated graphics and discrete NVidia
> > graphics. I disabled the latter at the BIOS level since Xenocara
> > doesn't support it, and the system worked fine with just the integrated
> > Intel graphics.
> > You might be able to do the same with most of the T440p and T540p
> > units, but check the specs to be sure.
> > --
> > Matthew Graybosch
>
> It's good to note that most Lenovo laptops that have Intel and Nvidia GPUs,
> have the external displays wired only to the Nvidia GPU (T540p for sure as
> i have this model).
> So think if you can you can live without the external displays.

This is true for those laptops until Thunderbolt is supported and thus
you can connect a supported PCIe GPU such as an AMDGPU via an external
Thunderbolt-PCIe enclosure.

How good the actual performance is would need to be checked then. It
should be good considering it's 22gbps of full duplex PCIe data
bandwidth, but needs to be tested.