Re: Raspberry Pi 3 and NetBSD 10.0_BETA - WiFi stops working after few hours and wonky USB keyboard

2023-03-26 Thread MJ




On 27/03/2023 7:26 am, Bartek Krawczyk wrote:

Hi,
is anybody using a Raspberry Pi 3 daily? I've been testing it with 10.0_BETA 
(tried -current from a week back but didn't boot) and I'm experiencing 
intermittent problems with WiFi and USB keyboard.

I'm currently compiling packages from pkgsrc-current to test the future 2023Q1 
release and right now I'm at security/ca-certificates (btw. this one is a beast 
to build: llvm, rust, damn). The load during compile is around 1-1.5 and 
usually 1 or 2 cores are utilized (Rpi3 has 4 cores).

First problem I noticed is that USB keyboard is "wonky". It repeats my keystrokes a bunch of times until I hit a different key. 


I had noticed this when testing the RPI 3B under NetBSD 9.x. I only used the keyboard to 
install and then went straight to headless, but yes, when I hit return/enter for 
something, it would scroll off the page until I "smashed" a few more keys. I 
don't recall it happening for other keys though.

[...]


Another problem is that after a while - hours, tens of hours the Pi stops 
responding over network, my router/ap (MikroTik) shows stuff like:


I have heard the WiFi on these is terrible, so you're probably not configuring 
or doing anything wrong.

Perhaps the device is going into power saving mode and your connection 
terminates?

You could mitigate this by using whatever gets your wifi back by placing it in 
a script and pinging a known site. Once the site no longer responds, write a 
message to the log using logger and restart wpa_supplicant.

Another thing, change the channel of the router, perhaps there's interference 
from others around you?

Cheers
Matt.



Re: Invisible mouse pointer

2023-03-26 Thread Mayuresh
On Sun, Mar 26, 2023 at 11:12:47PM +, RVP wrote:
> Not all X display drivers will have that option. The `vmware' driver does,
> where it defaults to `off'. Which driver is Xorg using on NetBSD? Check
> /var/log/Xorg.0.log.

It's vmware, I suppose:

$ grep LoadModule Xorg.0.log
[   110.165] (II) LoadModule: "dri"
[   110.165] (II) LoadModule: "dri2"
[   110.165] (II) LoadModule: "glx"
[   110.213] (II) LoadModule: "shadow"
[   110.234] (II) LoadModule: "vmware"
[   110.275] (II) LoadModule: "vgahw"
[   111.508] (II) LoadModule: "fb"
[   111.508] (II) LoadModule: "shadowfb"
[   111.511] (II) LoadModule: "ramdac"
[   115.029] (II) LoadModule: "kbd"
[   115.049] (II) LoadModule: "ws"
$ grep UnloadModule Xorg.0.log
$
-- 
Mayuresh


Re: Invisible mouse pointer

2023-03-26 Thread RVP

On Sun, 26 Mar 2023, Mayuresh wrote:


On Fri, Mar 24, 2023 at 09:33:22PM +, RVP wrote:

Try toggling the "HWCursor" option. See:


No luck with that!



Not all X display drivers will have that option. The `vmware' driver does,
where it defaults to `off'. Which driver is Xorg using on NetBSD? Check
/var/log/Xorg.0.log.

-RVP


Raspberry Pi 3 and NetBSD 10.0_BETA - WiFi stops working after few hours and wonky USB keyboard

2023-03-26 Thread Bartek Krawczyk

Hi,
is anybody using a Raspberry Pi 3 daily? I've been testing it with 
10.0_BETA (tried -current from a week back but didn't boot) and I'm 
experiencing intermittent problems with WiFi and USB keyboard.


I'm currently compiling packages from pkgsrc-current to test the future 
2023Q1 release and right now I'm at security/ca-certificates (btw. this 
one is a beast to build: llvm, rust, damn). The load during compile is 
around 1-1.5 and usually 1 or 2 cores are utilized (Rpi3 has 4 cores).


First problem I noticed is that USB keyboard is "wonky". It repeats my 
keystrokes a bunch of times until I hit a different key. It's barely 
usable. I thought it may be due to CPU utilization but it also happens 
right after a reboot. Console via SSH is of course OK. The keyboard 
itself of course is my daily driver on both Windows and Mac OS and is 
working fine. This is the only external device connected to the RPI3 and 
I do have a proper and powerful enough power adapter (JustPI, 5V and 3A).


Another problem is that after a while - hours, tens of hours the Pi 
stops responding over network, my router/ap (MikroTik) shows stuff like:


mar/25 20:32:50 caps,debug B8:27:EB:E4:30:C8@5GHz-ap-salon-1 connected, 
signal strength -59
mar/25 20:32:56 caps,debug B8:27:EB:E4:30:C8@5GHz-ap-salon-1 
disconnected, 4-way handshake timeout, signal strength -59
mar/25 20:32:59 caps,debug B8:27:EB:E4:30:C8@5GHz-ap-salon-1 connected, 
signal strength -51
mar/25 20:33:05 caps,debug B8:27:EB:E4:30:C8@5GHz-ap-salon-1 
disconnected, 4-way handshake timeout, signal strength -55
mar/25 20:33:08 caps,debug B8:27:EB:E4:30:C8@5GHz-ap-salon-1 connected, 
signal strength -59
mar/25 20:33:14 caps,debug B8:27:EB:E4:30:C8@5GHz-ap-salon-1 
disconnected, 4-way handshake timeout, signal strength -59
mar/25 20:33:18 caps,debug B8:27:EB:E4:30:C8@5GHz-ap-salon-1 connected, 
signal strength -59
mar/25 20:33:24 caps,debug B8:27:EB:E4:30:C8@5GHz-ap-salon-1 
disconnected, 4-way handshake timeout, signal strength -59
mar/25 20:33:27 caps,debug B8:27:EB:E4:30:C8@5GHz-ap-salon-1 connected, 
signal strength -60


when I connect to the RPI3 with screen and keyboard I can barely see 
anything in logs, maybe:


Mar 25 09:21:21 rpi3 wpa_supplicant[7237]: bwfm0: 
CTRL-EVENT-SSID-REENABLED id=0 ssid="bat cave"
Mar 25 09:21:21 rpi3 wpa_supplicant[7237]: bwfm0: Trying to associate 
with 64:d1:54:ee:0c:fc (SSID='bat cave' freq=5240 MHz)
Mar 25 09:21:31 rpi3 wpa_supplicant[7237]: bwfm0: Authentication with 
64:d1:54:ee:0c:fc timed out.
Mar 25 09:21:31 rpi3 wpa_supplicant[7237]: bwfm0: 
CTRL-EVENT-DISCONNECTED bssid=64:d1:54:ee:0c:fc reason=3 locally_generated=1
Mar 25 09:21:31 rpi3 wpa_supplicant[7237]: bwfm0: 
CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="bat cave" auth_failures=2 
duration=23 reason=CONN_FAIL


or:

Mar 25 13:05:21 rpi3 wpa_supplicant[7237]: bwfm0: 
CTRL-EVENT-DISCONNECTED bssid=64:d1:54:ee:0c:fb reason=0
Mar 25 13:05:30 rpi3 wpa_supplicant[7237]: bwfm0: Trying to associate 
with cc:2d:e0:ea:16:14 (SSID='bat cave' freq=2452 MHz)
Mar 25 13:05:40 rpi3 wpa_supplicant[7237]: bwfm0: Authentication with 
cc:2d:e0:ea:16:14 timed out.
Mar 25 13:05:40 rpi3 wpa_supplicant[7237]: bwfm0: 
CTRL-EVENT-DISCONNECTED bssid=cc:2d:e0:ea:16:14 reason=3 locally_generated=1
Mar 25 13:05:44 rpi3 wpa_supplicant[7237]: bwfm0: Trying to associate 
with 64:d1:54:ee:0c:fc (SSID='bat cave' freq=2457 MHz)
Mar 25 13:05:49 rpi3 wpa_supplicant[7237]: bwfm0: Associated with 
64:d1:54:ee:0c:fc
Mar 25 13:05:49 rpi3 wpa_supplicant[7237]: bwfm0: WPA: Key negotiation 
completed with 64:d1:54:ee:0c:fc [PTK=CCMP GTK=CCMP]
Mar 25 13:05:49 rpi3 wpa_supplicant[7237]: bwfm0: CTRL-EVENT-CONNECTED - 
Connection to 64:d1:54:ee:0c:fc completed [id=0 id_str=]
Mar 25 13:07:58 rpi3 wpa_supplicant[7237]: bwfm0: WPA: Group rekeying 
completed with 64:d1:54:ee:0c:fc [GTK=CCMP]
Mar 25 13:12:59 rpi3 wpa_supplicant[7237]: bwfm0: WPA: Group rekeying 
completed with 64:d1:54:ee:0c:fc [GTK=CCMP]
Mar 25 13:17:59 rpi3 wpa_supplicant[7237]: bwfm0: WPA: Group rekeying 
completed with 64:d1:54:ee:0c:fc [GTK=CCMP]
Mar 25 13:07:58 rpi3 wpa_supplicant[7237]: bwfm0: WPA: Group rekeying 
completed with 64:d1:54:ee:0c:fc [GTK=CCMP]


(which is funny, 'cause wpa_supplicant show the rekeying was completed 
but my APs show it's a timeout and device gets disconnected)


or once:

Mar 25 16:21:39 rpi3 /netbsd: [ 136787.2070108] bwfm0: could not set power

and ifconfig shows that everything should be fine:

bwfm0: flags=0x8843 mtu 1500
ssid "bat cave" nwkey 
65536:"",0x2aa34e60730c1c89c23bb00ce8e4f25b,0xb3785e891a65b9ecc7bcfd6632fb51c3,""

powersave off
bssid cc:2d:e0:ea:16:14 chan 10
address: b8:27:eb:e4:30:c8
media: IEEE802.11 autoselect (VHT mode 11ac)
status: active
inet6 fe80::e739:9d49:e1e3:c527%bwfm0/64 flags 0 scopeid 0x3
inet 192.168.2.212/24 broadcast 192.168.2.255 flags 0

but of course it isn't. So far I'm running wpa_supplicant with -d and -f 

Who to contact with a question about netbsd.org mail servers ?

2023-03-26 Thread vom513
Perhaps not the mail servers proper, but rather however/whatever sends out mail 
from the GNATS PR system.  

Seems like it will “spoof” the from as myself on some replies ?  My DMARC 
settings for my domain reject this as intended.  I would guess other folks 
would be missing mail as well (or at least it’s going to their SPAM folder).

Thanks.



Re: TOTP apps, and WebAuthn recommended devices?

2023-03-26 Thread Taylor R Campbell
> Date: Sat, 25 Mar 2023 08:36:36 -0400
> From: Greg Troxel 
> 
> Thanks very much for the detailed response.
> 
> One thing that's not 100% clear to me:
> 
>   One device (plus a second one as a backup!)
> 
> 
> A device can fail or be lost, so the backup concept is obvious, and
> perhaps should extend to a third.
> 
> Are the backup devices independent in that you
> 
>   enroll device A on a site
> 
>   enroll device B on the same site
> 
> and then either one will be accpeted by the site to login, and they
> otherwise don't have anything to do with each other?  I mean no transfer
> of keymat, or other linkage.
> 
> So therefore one could have a secondary backup in a place far away
> that's somewhat hard to get to, and when visiting it every few months,
> enroll that backup as an additional key in the sites that were added to
> the working device (carried with you) and the primary backup.

That is all correct.  Security key enrollments are independent.


P.S. There is also a proposal for a scheme that does allow devices to
 be linked in a way that preserves the privacy properties but
 doesn't require you to have the backup key itself to enroll it --
 only to log in with it -- but it's not there yet:
 
https://www.yubico.com/blog/yubico-proposes-webauthn-protocol-extension-to-simplify-backup-security-keys/)