Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-10 Thread Anders Damsgaard

* Stefan Hagen  [2020-12-10 10:14:35 +0100]:


Bodie wrote:



On 9.12.2020 20:43, Stefan Hagen wrote:

Hello Zachary,

Zachary Campbell wrote:

Any luck with this? I am also struggling to get the internal
mic to work on the X1 Carbon 7th Gen. Have gone through
everything discussed here, but still no luck.

My dmesg and mixerctl match those already shared in thread.
Happy to share anything else that might be helpful, but after
reading through the multimedia FAQ and this thread I am
not quite sure where to go next.


No progress here.

I think all needed information is in here.
https://bbs.archlinux.org/viewtopic.php?id=249900



That part on SST remind me my problem with audio on T590 under Windows.
For at least two patch builds Windows had issue to picking up wrong
driver for audio. Instead of regular HD Audio they were setting
up SST HD Audio and then output/input were not working.

So maybe it is something wrong inside that HW like reporting wrong
capabilities?


Not unlikely as "microphone not working on x1 carbon gen 7" complaints
are all over the place. The solution for ms windows is upgrade + use
newest drivers. So yes, I assume there's something off that has been
fixed in software.

I've seen similar complaints about Dell Laptops that are also using
the Realtek ALC285 chip.

If it's just this one chip, then fine, let's ignore it.

Can someone with a X1 Carbon Gen 8 report it working?

Best Regards,
Stefan



The same issue persists on 8th generation, also reported to dmesg@.

azalia0 at pci0 dev 31 function 3 "Intel 400 Series HD Audio" rev 0x00: msi
azalia0: codecs: Realtek ALC285, Intel/0x280b, using Realtek ALC285
audio0 at azalia0

Also, the mic is enabled in BIOS and kern.audio.record=1.

Cheers, Anders



Re: Internal microphone not working

2020-10-28 Thread Anders Damsgaard

* Ashton Fagg  [2020-10-27 20:31:29 -0400]:


I'm running a ThinkPad T14s. There's been some recent additions to the
azalia driver to help make audio work a little better on this machine
(it now works and seems to get configured correctly).

However, I'm having problems getting my internal microphone to work.

I compiled my kernel with AZALIA_DEBUG (output attached), and it seems
as though the microphone is being picked up (also reflected in mixerctl
and audioctl). If I run something like Audacity to try and record audio,
it just flat-lines which makes me think it is attaching to the mic-jack,
not the internal microphone itself, but mixerctl doesn't seem to offer a
suggestion of what to change.

Audio recording is enabled in sysctl, and the device is configured as
accessible in the BIOS.

Any suggestions appreciated.


I also encounter this issue on a Thinkpad X1 8th gen.  I set
kern.audio.record=1.  Recording through an external microphone
through the combined headphone/mic minijack works fine, but the
built-in mic does not.
OpenBSD 6.8 (GENERIC.MP) #98: Sun Oct  4 18:13:26 MDT 2020
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 16325971968 (15569MB)
avail mem = 15816130560 (15083MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x766ac000 (71 entries)
bios0: vendor LENOVO version "N2WET19W (1.09 )" date 07/01/2020
bios0: LENOVO 20UAS5PC00
acpi0 at bios0: ACPI 6.1
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT SSDT SSDT SSDT SSDT HPET APIC MCFG ECDT SSDT SSDT 
SSDT NHLT BOOT SSDT LPIT WSMT SSDT DBGP DBG2 MSDM BATB DMAR UEFI FPDT
acpi0: wakeup devices GLAN(S4) XHC_(S3) XDCI(S4) HDAS(S4) RP01(S4) PXSX(S4) 
RP02(S4) PXSX(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) 
PXSX(S4) RP07(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) i7-10510U CPU @ 1.80GHz, 7087.96 MHz, 06-8e-0c
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,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
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) i7-10510U CPU @ 1.80GHz, 1696.05 MHz, 06-8e-0c
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,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
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) i7-10510U CPU @ 1.80GHz, 1696.05 MHz, 06-8e-0c
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,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
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) i7-10510U CPU @ 1.80GHz, 1696.05 MHz, 06-8e-0c
cpu3: 
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,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0: apid 1 (application processor)
cpu4: Intel(R) Core(TM) i7-10510U CPU 

Re: How to open new window/pane in the current working directory in tmux?

2019-12-19 Thread Anders Damsgaard

* openbsd-misc-nos...@riseup.net  [2019-12-13 
18:47:52 +0500]:


I have next options in tmux.conf:

bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"

But it doesn't work anymore. And I can't find working options in Google. I tried
all suggestions from stackexchange and it doesn't work either. What working 
options
for OpenBSD 6.6?

Thanks!



Please see this thread:
https://marc.info/?l=openbsd-misc=157478284909079=2

Best regards, Anders



Re: tmux: How to create a new window with the same path (from the current pane)

2019-11-26 Thread Anders Damsgaard

* Atanas Vladimirov  [2019-11-26 17:10:14 +0200]:

So, if I understand your example right, I need to do something like 
`bind c new-window -c "$PWD"` in my .tmux.conf.
The problem is that it works partially - if I'm in 
`/home//` and start tmux there,
the $PWD is correct, but when I change the directory and create a new 
window with `C-b c` it moves me to the initial $PWD (when the tmux was 
started)

instead of the current directory.


I don't bind in .tmux.conf, but you could do:

bind c send-keys "tmux new-window -c \"$(pwd)\"" C-m
bind C send-keys "tmux split-pane -c \"$(pwd)\"" C-m

but it needs a shell prompt in the currently active pane.

Cheers, Anders



Re: tmux: How to create a new window with the same path (from the current pane)

2019-11-26 Thread Anders Damsgaard

* Atanas Vladimirov  [2019-11-26 14:27:33 +0200]:


Hello,

The following works on Linux:

```
bind c new-window -c "#{pane_current_path}"

```

but the `pane_current_path` variable does not exists on OpenBSD.
Does anyone now how can I achieve the same behavior on OpenBSD?


Hi Atanas,

I recently asked Nicolas Marriott the same question on Freenode/#tmux. The
pane_current_path functionality is disabled on OpenBSD because of
security reasons.

For that reason I added the following function to my ~/.profile.  However,
it does not enable splitting without sending current processes to
background:

tsplit() {
if [ -z "$TMUX" ]; then
echo "error: not in tmux session" >&2
return 1
fi
if [ $# -gt 0 ]; then
if [ "$1" = "v" ]; then
tmux split-pane -v -c "$PWD"
elif [ "$1" = "h" ]; then
tmux split-pane -h -c "$PWD"
elif [ "$1" = "w" ]; then
tmux new-window -c "$PWD"
else
echo "error: split direction not understood" >&2
    return 2
fi
else
tmux split-pane -h -c $PWD
fi
}

Best, Anders
--
Anders Damsgaard
https://adamsgaard.dk