Install latest package without prompts on OpenBSD 7.0

2022-01-09 Thread Jeffrey Walton
Hi Everyone,

I am working on OpenBSD 7.0, x86_64. I'm trying to script an install
of developer tools I use, like GCC and Git. When I attempt to install
GCC I am prompted:

$ sudo pkg_add gcc g++
quirks-4.54 signed on 2022-01-09T19:08:35Z
Ambiguous: choose package for gcc
a0: 
1: gcc-8.4.0p9
2: gcc-11.2.0p0

I've looked over the man page at https://man.openbsd.org/pkg_add, but
I don't see an option to tell pkg_add to install the latest version of
the package.

How do I tell pkg_add to install the latest version without prompting me?

Thanks in advance.



HP Probook audio only playing on left speaker

2022-01-09 Thread Jordan Geoghegan

Hello,

I have an HP Probook (dmesg below) that is only playing audio from the 
left headphone speaker. No matter how I try I cannot get any audio to 
play over the right side speaker. I have very little experience 
debugging audio issues on OpenBSD as everything has largely "just 
worked" for me over the years in that regard. Any insight or advice 
would be greatly appreciated!


Here is the output from mixerctl:

inputs.dac-0:1_mute=off
inputs.dac-0:1=207,207
inputs.dac-2:3_mute=off
inputs.dac-2:3=207,207
inputs.beep=108
record.adc-2:3_source=mic
record.adc-2:3_mute=off
record.adc-2:3=240,240
record.adc-0:1_source=mic2
record.adc-0:1_mute=off
record.adc-0:1=240,240
outputs.spkr_source=dac-2:3
outputs.spkr_eapd=on
inputs.mic=85,85
outputs.mic_dir=input-vr80
inputs.mic2=85,85
outputs.hp_source=dac-0:1
inputs.hp=85,85
outputs.hp_dir=output
outputs.hp_boost=off
outputs.hp_eapd=on
outputs.mic_sense=unplugged
outputs.hp_sense=unplugged
outputs.spkr_muters=hp
outputs.master=207,207
outputs.master.mute=off
outputs.master.slaves=dac-0:1,dac-2:3
record.volume=255,255
record.volume.mute=off
record.volume.slaves=adc-2:3,adc-0:1
record.enable=sysctl

dmesg:

OpenBSD 7.0 (GENERIC.MP) #2: Wed Nov 24 00:54:11 MST 2021
r...@syspatch-70-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8409149440 (8019MB)
avail mem = 8138280960 (7761MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.1 @ 0xcf764000 (33 entries)
bios0: vendor HP version "Q83 Ver. 01.07.00" date 04/17/2019
bios0: HP HP ProBook 640 G4
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT SSDT RTMA SSDT SSDT UEFI SSDT TPM2 SSDT 
MSDM SLIC WSMT HPET APIC MCFG SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT 
SSDT SSDT DBGP DBG2 DMAR NHLT SSDT SSDT SSDT ASF! FPDT BGRT SSDT
acpi0: wakeup devices GLAN(S4) XHC_(S3) XDCI(S4) HDAS(S4) RP01(S4) 
PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) 
PXSX(S4) RP06(S4) PXSX(S4) [...]

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz, 1496.52 MHz, 06-8e-0a
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN

cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz, 1496.52 MHz, 06-8e-0a
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN

cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz, 1496.52 MHz, 06-8e-0a
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN

cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz, 1496.52 MHz, 06-8e-0a
cpu3: 

Re: Interrupts hover above 40% when idle on Dell Latitude E7450

2022-01-09 Thread Crystal Kolipe
On Sun, Jan 09, 2022 at 11:24:43AM -0500, Ryan Kavanagh wrote:
> Yes. Looking at top, I see that CPU0 is spending roughly the same amount
> of time processing interrupts, while CPU1 is free to do other stuff.

Currently, _hardware_ interrupts are always handled on CPU0.



Re: Interrupts hover above 40% when idle on Dell Latitude E7450

2022-01-09 Thread Crystal Kolipe
On Sun, Jan 09, 2022 at 03:12:06PM -, Stuart Henderson wrote:
> On 2022-01-09, Crystal Kolipe  wrote:
> > On Sat, Jan 08, 2022 at 09:57:05PM -0500, Ryan Kavanagh wrote:
> >> I installed OpenBSD 7.0-current on a Dell Latitude E7450 and interrupts
> >> hover above 40%-45% when idle. I can reproduce this with OpenBSD 7.0 as
> >> well. The laptop runs hot (I'm guessing as a result). How should I go
> >> about debugging this issue?
> >
> > What does systat report about the interrupts?
> 
> That's shown after the dmesg, though "vmstat -i" would probably be better
> as it has the totals as well.

Well I didn't scroll down and look at it, because he said:

> I'm including a copy of dmesg output and a representative snapshot of
> systctl vm.

  ^^^

I assumed that 'systctl' was some obscure program from ports that I was not
familiar with.



Re: Interrupts hover above 40% when idle on Dell Latitude E7450

2022-01-09 Thread Stuart Henderson
On 2022-01-09, Crystal Kolipe  wrote:
> On Sat, Jan 08, 2022 at 09:57:05PM -0500, Ryan Kavanagh wrote:
>> I installed OpenBSD 7.0-current on a Dell Latitude E7450 and interrupts
>> hover above 40%-45% when idle. I can reproduce this with OpenBSD 7.0 as
>> well. The laptop runs hot (I'm guessing as a result). How should I go
>> about debugging this issue?
>
> What does systat report about the interrupts?

That's shown after the dmesg, though "vmstat -i" would probably be better
as it has the totals as well.

Ryan, any difference if you use GENERIC.MP rather than GENERIC?

 
-- 
Please keep replies on the mailing list.



Re: What password manager do you recommend?

2022-01-09 Thread Rob Schmersel
On Fri, 7 Jan 2022 14:53:33 -0500
fo...@dnmx.org wrote:

> Hello. I hope this these types of questions are okay for an mailing
> list.. I completely understand if they are not..
> 
> There's password-store, but it does need some shitty dependencies..
> Then there's opm, but since it doesn't seem to be popular
> fuck-knows-who if it's secure(ish)..
> 
> If I were to use password-store, I'd have dmenu pipe in the query,
> then just pipe the password to `xclip -i -selection clipboard` which
> is a decent setup I guess..
> 

I use bitwarden, plays nice with all devices used in my family (bought
the premium service for backup, but you can run that yourself)



Re: Interrupts hover above 40% when idle on Dell Latitude E7450

2022-01-09 Thread Crystal Kolipe
On Sat, Jan 08, 2022 at 09:57:05PM -0500, Ryan Kavanagh wrote:
> I installed OpenBSD 7.0-current on a Dell Latitude E7450 and interrupts
> hover above 40%-45% when idle. I can reproduce this with OpenBSD 7.0 as
> well. The laptop runs hot (I'm guessing as a result). How should I go
> about debugging this issue?

What does systat report about the interrupts?