Re: OpenBSD and multitasking

2022-04-25 Thread Joe Gidi
> Hello,
>
> I use OpenBSD amd64 snapshots on the following dmesg hardware.
> The download rate on a browser was slow and I figured out with some
> memory mapped partition that disk transfer rate was slow.
> I can bear this since I'm not into large file transfer business. But
> here is another interesting fact: each time my disk is used by some
> file transfer, all the running applications, mostly GUI based are
> stalling - that includes mostly chromium ( even if it is not chromium
> that it does the disk data transfer).
>
> My questions are: is something incorrectly set up on my computer,
> regarding the multitasking?
> I understand disk operations are slow, but may I say that kernel is
> dragged in that slow transfer too (no DMA, no cache, etc.)?
> Does this happens to all users, but since there are more powerful
> configuration involved the delay is not so noticeable?
>
> I know it is hard to project this, but can someone give me a hint
> about a minimum hardware to allow using chromium with no delays,
> please?
> I know, it should be advisable to get the maximum performance
> hardware, but i'm not in that case.



> sd0 at scsibus1 targ 0 lun 0: 
> naa.5000c5006520feaf
> sd0: 238475MB, 512 bytes/sector, 488397168 sectors

You're running on a Seagate 7200 RPM spinning disk. Migrate to an SSD.
Literally any SSD. I don't know where you are, but here, an equivalent
size generic SATA SSD costs $40 USD and will be exponentially faster for
random read/write and IOPS.

Trying to run heavy modern desktop applications like Chromium from a
spinning disk is an exercise in masochism. You're also running Chromium
with 8 GB of RAM, so it's entirely possible you're running into swap,
which will REALLY kill your performance, especially on a spinning disk...

-- 

Joe Gidi
j...@entropicblur.com

"You cannot buy skill." -- Ross Seyfried



Re: OpenBSD and multitasking

2022-04-25 Thread Mike Larkin
On Tue, Apr 26, 2022 at 02:13:16AM +0300, Mihai Popescu wrote:
> Hello,
>
> I use OpenBSD amd64 snapshots on the following dmesg hardware.
> The download rate on a browser was slow and I figured out with some
> memory mapped partition that disk transfer rate was slow.
> I can bear this since I'm not into large file transfer business. But
> here is another interesting fact: each time my disk is used by some
> file transfer, all the running applications, mostly GUI based are
> stalling - that includes mostly chromium ( even if it is not chromium
> that it does the disk data transfer).
>
> My questions are: is something incorrectly set up on my computer,
> regarding the multitasking?
> I understand disk operations are slow, but may I say that kernel is
> dragged in that slow transfer too (no DMA, no cache, etc.)?
> Does this happens to all users, but since there are more powerful
> configuration involved the delay is not so noticeable?
>
> I know it is hard to project this, but can someone give me a hint
> about a minimum hardware to allow using chromium with no delays,
> please?

See comments below. The hardware is ancient. I'd say try running
chrome on windows on this hardware and you'll probably see it's also
horrible.

"minimum hardware to allow using chromium with no delays" is probably
a machine with a fast nvme drive, 8+ cores, and 16+ gb ram.

> I know, it should be advisable to get the maximum performance
> hardware, but i'm not in that case.
>
> OpenBSD 7.1-current (GENERIC.MP) #483: Sat Apr 23 05:33:19 MDT 2022
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 7711170560 (7353MB)
> avail mem = 7460139008 (7114MB)
> random: good seed from bootblocks
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe86ed (64 entries)
> bios0: vendor Hewlett-Packard version "K06 v02.77" date 03/22/2018
> bios0: Hewlett-Packard HP Compaq Pro 6305 SFF

This is an almost 9 year old machine. Release date September 2013.
Also, see below.

> acpi0 at bios0: ACPI 5.0
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT MSDM TCPA IVRS VFCT
> SSDT SSDT CRAT
> acpi0: wakeup devices SBAZ(S4) PS2K(S3) PS2M(S3) P0PC(S4) PE20(S4)
> PE21(S4) PE22(S4) BNIC(S4) PE23(S4) BR12(S4) BR14(S4) OHC1(S3)
> EHC1(S3) OHC2(S3) EHC2(S3) OHC3(S3) [...]
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 16 (boot processor)
> cpu0: AMD A8-5500B APU with Radeon(tm) HD Graphics, 3194.45 MHz, 15-10-01
> cpu0: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1,IBPB
> cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
> 64b/line 16-way L2 cache
> cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 99MHz
> cpu0: mwait min=64, max=64, IBE
> cpu1 at mainbus0: apid 17 (application processor)
> cpu1: AMD A8-5500B APU with Radeon(tm) HD Graphics, 3194.05 MHz, 15-10-01
> cpu1: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1,IBPB
> cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
> 64b/line 16-way L2 cache
> cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> cpu1: disabling user TSC (skew=129)
> cpu1: smt 1, core 0, package 0
> cpu2 at mainbus0: apid 18 (application processor)
> cpu2: AMD A8-5500B APU with Radeon(tm) HD Graphics, 3194.05 MHz, 15-10-01
> cpu2: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1,IBPB
> cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
> 64b/line 16-way L2 cache
> cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> cpu2: disabling user TSC (skew=186)
> cpu2: smt 0, core 1, package 0
> cpu3 at mainbus0: apid 19

OpenBSD and multitasking

2022-04-25 Thread Mihai Popescu
Hello,

I use OpenBSD amd64 snapshots on the following dmesg hardware.
The download rate on a browser was slow and I figured out with some
memory mapped partition that disk transfer rate was slow.
I can bear this since I'm not into large file transfer business. But
here is another interesting fact: each time my disk is used by some
file transfer, all the running applications, mostly GUI based are
stalling - that includes mostly chromium ( even if it is not chromium
that it does the disk data transfer).

My questions are: is something incorrectly set up on my computer,
regarding the multitasking?
I understand disk operations are slow, but may I say that kernel is
dragged in that slow transfer too (no DMA, no cache, etc.)?
Does this happens to all users, but since there are more powerful
configuration involved the delay is not so noticeable?

I know it is hard to project this, but can someone give me a hint
about a minimum hardware to allow using chromium with no delays,
please?
I know, it should be advisable to get the maximum performance
hardware, but i'm not in that case.

OpenBSD 7.1-current (GENERIC.MP) #483: Sat Apr 23 05:33:19 MDT 2022
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 7711170560 (7353MB)
avail mem = 7460139008 (7114MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe86ed (64 entries)
bios0: vendor Hewlett-Packard version "K06 v02.77" date 03/22/2018
bios0: Hewlett-Packard HP Compaq Pro 6305 SFF
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT MSDM TCPA IVRS VFCT
SSDT SSDT CRAT
acpi0: wakeup devices SBAZ(S4) PS2K(S3) PS2M(S3) P0PC(S4) PE20(S4)
PE21(S4) PE22(S4) BNIC(S4) PE23(S4) BR12(S4) BR14(S4) OHC1(S3)
EHC1(S3) OHC2(S3) EHC2(S3) OHC3(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD A8-5500B APU with Radeon(tm) HD Graphics, 3194.45 MHz, 15-10-01
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1,IBPB
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 17 (application processor)
cpu1: AMD A8-5500B APU with Radeon(tm) HD Graphics, 3194.05 MHz, 15-10-01
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1,IBPB
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: disabling user TSC (skew=129)
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 18 (application processor)
cpu2: AMD A8-5500B APU with Radeon(tm) HD Graphics, 3194.05 MHz, 15-10-01
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1,IBPB
cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache
cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu2: disabling user TSC (skew=186)
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 19 (application processor)
cpu3: AMD A8-5500B APU with Radeon(tm) HD Graphics, 3194.05 MHz, 15-10-01
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1,IBPB
cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache
cpu3: ITLB 48 4KB entries fully associativ

Re: hostnames in syslogd

2022-04-25 Thread Daniel Jakots
On Mon, 25 Apr 2022 14:27:19 -0400, "Sven F." 
wrote:

> Moreover just like -h send the hostname , in a SSL setup it would be
> useful to log the CN of the client certificat , with -i maybe,
> since it is a strong ID sorting logs with that feels more reliable
> than ip, or modified hostnames.
> 
> I may miss some important legacy behavior but a `-i` option that logs
> the CN after the hostname in a similar manner looks non breaking and
> useful.

Ah that reminds me an issue I have. On my central logging machine, I
filter logs by hostname. However, it appears sometimes my dns fails so
it doesn't get a hostname and the logs with the IP address escape the
filter. If I could filter based on the client's certificate
hostname, that would be much more reliable!

Cheers,
Daniel



Re: Sysctl settings for transmission bittorrent (udp receive buffer size)

2022-04-25 Thread Stuart Henderson
On 2022-04-25, Daniel Schuermann  wrote:
> I can't get transmission (bittorrent client) to work properly.  
>
> From the logs: 
> transmission-daemon: UDP Failed to set receive buffer: 
> requested 4194304, got 41600
>
> On Linux I would do: 
> sysctl net.core.rmem_max=4194304
> I couldn't figure out the correct settings for OpenBSD. 
>
> net.inet.udp.recvspace sets the default, not the max buffer size, 
> e.g. sysctl net.inet.udp.recvspace=4194304 causes errors:
> nslookup openbsd.org
> nslookup: isc_socket_create: not enough free resources

That is the right sysctl, the alternative is to set per-socket with
setsockopt() (SO_SNDBUF, SO_RCVBUF).

The max is 256K (262144).



-- 
Please keep replies on the mailing list.



hostnames in syslogd

2022-04-25 Thread Sven F.
Dear readers,

After modifying the hostname as device.project with
`hostname device.project` and in  /etc/myname
and starting a syslogd debug instance with -h , i see the hostname
logged is only 'device' not 'device.project'

This could be a feature, as a hostname is not a FQDN
but it looks inconsistent with hostname displaying
device.project and the log using only the first part.

Would a diff to syslogd; logging the name found in the configuration
or (kern.hostname) instead of a modified one be a bug breaking
some auto configuration with DHCP or a feature ?

Moreover just like -h send the hostname , in a SSL setup it would be
useful to log the CN of the client certificat , with -i maybe,
since it is a strong ID sorting logs with that feels more reliable than ip,
or modified hostnames.

I may miss some important legacy behavior but a `-i` option that logs the
CN after the hostname in a similar manner looks non breaking and useful.

Thanks for reading, I Look forward to having opinions on that.

-- 
--
-
Knowing is not enough; we must apply. Willing is not enough; we must do



clang 13 space issues with KARL

2022-04-25 Thread Peter J. Philipp
Hi,

I have an openbsd amsterdam vps and KARL is using up so much RAM that it
causes the system to swap.  I recently upgraded it to 7.1 and it's the first
time I had a problem with this (that I noticed).  I have tried to put KARL 
into a login.conf'ed (32 MB data limit) user but ld doesn't like that at all 
and exits with a memory allocation failure.

What can I do to make KARL reorder_kernel use less memory without buying more
RAM?  I've turned KARL off for now but that's not a real solution and I hate
it.

Is there no option in the clang 13.0.0 linker to store what it would normally
store in memory to disk?  I know it would be slow but KARL doesn't need to
be fast if it's backgrounded.

I've done some homework googling and found this:
https://stackoverflow.com/questions/25197570/llvm-clang-compile-error-with-memory-exhausted

in the checked solution, 1 and 2 are sorta out of the question, but question is
whether we're using a Debug build of clang?  Does anyone know off hand?

While I'm here thinking about possible solutions it would be cool if I could
allocate a 128 MB vmm inside this vmm (cascaded vmm's?) with a stripped down
KARL building kernel and lots of swap, then it can swap all it wants to while
linking and it leaves the system in reasonable memory without swapping in
the main vm.  Perhaps I'm thinking in over-engineering terms here?  

Best Regards,
-peter



Re: Framework laptop fails to enter sleep/suspend/hibernate

2022-04-25 Thread Dave Voutila


Andrew W  writes:

> Not sure what else to try but I can't seem to get sleep/suspend to work on
> my frame.work laptop. I've tried OpenBSD 7.0 and 7.1 now, running off a 1TB
> USB drive.

S4/Hibernation is not supported when swap is on a USB disk. I haven't
read the suspend code paths lately, but I wouldn't be susprised if this
is a problem as well.

>
> Running apm -S or apm -z the screen goes blank and the keyboard remains
> backlit, eventually the fan starts spinning faster. I need to long press
> the power button to force shutdown the machine. Hibernate says it's not
> supported, which is a bit less of a concern to me but having one of them
> working would be very helpful.
>
> I've tried w/o X running, same results. I don't see any failures related to
> the TPM in dmesg but also I've tried w/ it set to "hidden" in the bios,
> same result.
>
> I'm new to OpenBSD so maybe I'm missing something important to get this
> working but I haven't seen much in the way of configuration related to this
> functionality?

Can you try with your root and swap partitions on your nvme disk and not
on USB? Barring that, capturing all your machine details with sendbug(1)
would be helpful.

-dv



Re: How to Get the kernel-specific source or configuration of the distribution without installation

2022-04-25 Thread Ingo Schwarze
Hi,

Parodper wrote on Mon, Apr 25, 2022 at 08:47:20AM +0200:
> O 24/04/22 ás 10:13, sunying escribiu:

>> We are studying on the default value of Kernel Configuration items
>> in each Linux mainstream distribution.
>> 
>> May I ask if your distribution has the open kernel source website url
>> (eg. git://git.launchpad.net/~ubuntu-kernel-test/ ... 

The official website is https://cvsweb.openbsd.org/src/sys/ .

This is an unofficial clone, usually having the same content (no
guarantee, though):  https://github.com/openbsd

>> Or directly the url of kernel configuration files
>> (eg. https://github.com/KaOSx/core/blob/master/linux/config)?

> OpenBSD's kernel configs are under 
> http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/arch/(machine 
> arch)/conf/GENERIC(.MP) and 
> http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/conf/GENERIC(.MP). See 
> also https://man.openbsd.org/config.8.

These URIs are correct.

>> Or some other public way to get your distribution's kernel-specific
>> configuration files

Alternatively, you can use anonymous CVS:

  https://www.openbsd.org/anoncvs.html

>> on different kernel versions without installation?

OpenBSD does not support different kernel versions.
The only officially supported version of the kernel is GENERIC{,MP}.
All users are advised to run GENERIC or GENERIC.MP.

The various RAMDISK* kernel configs you will find in the above
directories are installation kernels and unfit for use in production.

Yours,
  Ingo

-- 
Ingo Schwarze 
http://www.openbsd.org/   
http://mandoc.bsd.lv/ 



Lenovo Ideapad 330 sound problems

2022-04-25 Thread Matvei Akhmetov
Hello.

I have Lenovo Ideapad 330-15ARR laptop with OpenBSD 
7.1-current installed (build date Sat Apr 23 05:33:19 MDT 2022).

Everything except audio and RTL8821CE works fine.

When I connect my headphones, speakers won't get muted fully.
They had some sound I can hear and make it louder or quiter
together with headphones.

Headphones are working correctly.

Also, I had some problems with speakers (they didn't worked)
in FreeBSD but one good guy helped me and wrote a patch. Maybe
it can help: 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259640

mixerctl with hp connected:
inputs.dac-2:3=72,72
inputs.dac-0:1=72,72
record.adc-0:1_mute=off
record.adc-0:1=124,124
record.adc-2:3_mute=off
record.adc-2:3=124,124
record.adc-4:5_mute=off
record.adc-4:5=124,124
inputs.mic=85,85
outputs.spkr_source=dac-2:3
outputs.spkr_mute=on
outputs.spkr_eapd=on
inputs.mic2=85,85
outputs.mic2_dir=input-vr80
outputs.hp_source=dac-0:1
outputs.hp_mute=off
outputs.hp_boost=off
outputs.hp_eapd=on
record.adc-4:5_source=mic2
record.adc-2:3_source=mic2,mic
record.adc-0:1_source=mic
outputs.mic2_sense=plugged
outputs.hp_sense=plugged
outputs.spkr_muters=hp
outputs.master=72,72
outputs.master.mute=off
outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp
record.volume=124,124
record.volume.mute=off
record.volume.slaves=adc-0:1,adc-2:3,adc-4:5
record.enable=sysctl

mixerctl when hp disconnected:
inputs.dac-2:3=72,72
inputs.dac-0:1=72,72
record.adc-0:1_mute=off
record.adc-0:1=124,124
record.adc-2:3_mute=off
record.adc-2:3=124,124
record.adc-4:5_mute=off
record.adc-4:5=124,124
inputs.mic=85,85
outputs.spkr_source=dac-2:3
outputs.spkr_mute=off
outputs.spkr_eapd=on
inputs.mic2=85,85
outputs.mic2_dir=input-vr80
outputs.hp_source=dac-0:1
outputs.hp_mute=off
outputs.hp_boost=off
outputs.hp_eapd=on
record.adc-4:5_source=mic2
record.adc-2:3_source=mic2,mic
record.adc-0:1_source=mic
outputs.mic2_sense=unplugged
outputs.hp_sense=unplugged
outputs.spkr_muters=hp
outputs.master=72,72
outputs.master.mute=off
outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp
record.volume=124,124
record.volume.mute=off
record.volume.slaves=adc-0:1,adc-2:3,adc-4:5
record.enable=sysctl

dmesg:
OpenBSD 7.1-current (GENERIC.MP) #483: Sat Apr 23 05:33:19 MDT 2022
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 12387831808 (11813MB)
avail mem = 11995070464 (11439MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.1 @ 0xb6bc3000 (50 entries)
bios0: vendor LENOVO version "7VCN48WW" date 09/26/2019
bios0: LENOVO 81D2
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI SSDT MSDM ASF! BOOT HPET APIC MCFG SSDT CRAT CDIT 
UEFI VFCT IVRS SSDT SSDT SSDT FPDT BGRT
acpi0: wakeup devices GPP0(S3) GPP1(S3) GPP2(S3) GPP3(S3) GPP4(S3) GPP5(S3) 
GPP6(S3) GP17(S3) XHC0(S3) XHC1(S3) GP18(S3)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Ryzen 3 2200U with Radeon Vega Mobile Gfx, 2495.77 MHz, 17-11-00
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
8-way L2 cache
cpu0: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Ryzen 3 2200U with Radeon Vega Mobile Gfx, 2495.28 MHz, 17-11-00
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu1: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
8-way L2 cache
cpu1: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD Ryzen 3 2200U with Radeon Vega Mobile Gfx, 2495.28 MHz, 17-11-00
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8

Re: Firefox or Xenocara? key bindings

2022-04-25 Thread Omar Polo
Derek  wrote:
> Could someone knowledgable with Firefox or Xenocara help explain this?
> 
> OpenBSD (amd64) has been my primary desktop OS for 20 years now. Always 
> -RELEASE.
> 
> In Firefox, to select the contents of the current form field, you used to hit
> Ctrl-a.
> 
> Last year, it became Alt-a. I don't know if this was a Xenocara or Firefox 
> change.
> 
> This week, with 7.1, neither Ctrl-a nor Alt-a works for selecting the contents
> of the current form field.  I can't figure out any key combination that does 
> it.
> 
> I always do a fresh OS install and fresh Firefox install with default 
> settings,
> keeping no old configs.  So I'm talking about default behavior.
> 
> Is this key mapping inside Firefox? Where does it get assigned? Can I change 
> it?

maybe it's the gtk "key themes"?  The default on OpenBSD is "emacs",
that's why C-a on some applications move the cursor at the start instead
of selecting everything.

you can change it with (untested, just found on the internetz)

$ gsettings set org.gnome.desktop.interface gtk-key-theme 'Default'

but the emacs "key theme" was the default for a long time...

> Thank you, and sorry for the basic boring user question.
> 
> - Derek