-
markmcb
using a mlx5en card for the first time with freebsd. it's negotiating a 1G connection instead of 10G. is there something i'd need to tweak to make it negotiate the higher speed by default?
-
markmcb
i noticed if i set my switch to 10G instead of autonegotiate it goes to 10G. i guess that's fine, but still curious why it'd go for the lower rate. is that indicative of a problem?
-
concrete_houses
-
VimDiesel
Title: dpaste/miCk (Plain Text)
-
concrete_houses
not sure whats goin on here
-
concrete_houses
similar thing to ungoogled-chromium works fine... is there some alias to egrep buried somewhere? not my doing I think
-
meena
concrete_houses: the link was removed some time ago
-
meena
at least from GNU grep. pretty sure our grep still has it
-
RhodiumToad
you have 'g' defined as an alias or shell function
-
RhodiumToad
what shell are you using?
-
shdw
hi, my server (freebsd 13.2) logged 6 times "kernel: ." in /var/log/messages and then booted. never seen this before, anybody knows what this message means?
-
meena
shdw: booted? or rebooted?
-
RhodiumToad
the . is probably spurious.
-
RhodiumToad
was any message shown when it rebooted?
-
shdw
these were the messages:
pastebin.com/YKdNi1T5
-
VimDiesel
Title: Jul 14 10:09:58 XXXXX kernel: .Jul 14 10:09:58 XXXXX syslogd: last message rep - Pastebin.com
-
RhodiumToad
something triggered a clean shutdown
-
shdw
strange
-
RhodiumToad
does last | head show a recent shutdown time?
-
RhodiumToad
(or just a boot time?)
-
uuidNuniq
uptime shows boot time
-
shdw
ist shows a shutdown time
-
RhodiumToad
something executed a shutdown command then, I think
-
shdw
its a vm, perhaps someone accidantly pressed the shutdown button
-
shdw
didn't thought of this, thanks
-
RhodiumToad
checking, something caused init to run rc.shutdown
-
RhodiumToad
if the hypervisor signalled an ACPI shutdown event (i.e. simulating pushing the power button) that would explain it
-
RhodiumToad
yeah, if there's no "shutdown by ... at ..." line in the logs, the most likely cause is shutdown being triggered by the kernel in response to an ACPI signal
-
RhodiumToad
ACPI power button event causes the kernel to do shutdown_nice without needing userland intervention
-
RhodiumToad
shutdown_nice in turn signals init to run rc.shutdown
-
debdrup
there's a flag to avoid signaling init, but i don't know of anyone who uses it
-
yuripv
AllanJude: might be working by coincidence, as readonly check uses vdev_prop_table[-1].pd_attr, so whatever is there in the memory before vdev_prop_table[] array...
openzfs/zfs #15062
-
VimDiesel
Title: Don't do a readonly check for vdev user properties by yuripv · Pull Request #15062 · openzfs/zfs · GitHub
-
RhodiumToad
fascinating, a classic array-out-of-bounds even in these days of clever tooling
-
martinrame
Hi, anyone with a ThinkPad x270?, I'm struggling with audio
-
martinrame
cat /dev/sndstat shows 3 devices, pcm0: <Realtek ALC298 (Analog 2.0+HP/2.0)> (play/rec), pcm1: <Realtek ALC298 (Internal Analog Mic)> (rec) default and pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> (play)
-
martinrame
hw.snd.default_unit: 1
-
martinrame
when default_unit is 1 I can record with mic, but cannot play audio. The other way around I can play audio but cannot record...
-
VVD
Can you pick different /dev/dsp* in software?
-
martinrame
VVD: the software is Firefox
-
RhodiumToad
it might be possible to rewire the associations to put the devices you want to use together on the same dsp*
-
martinrame
RhodiumToad: yes, I think so, but I don't know how...
-
RhodiumToad
what's the sysctl dev.hdaa output?
-
RhodiumToad
oh, hold on
-
martinrame
What was the command to generate a pastebin from console?
-
martinrame
RhodiumToad: ok
-
RhodiumToad
you can play audio with which unit? 0?
-
RhodiumToad
sysctl dev.hdaa dev.hdac | nc termbin.com 9999
-
martinrame
RhodiumToad: yes, with 0 I can play audio
-
RhodiumToad
if pcm0 and pcm1 are on the same hdac chip, it's probably fixable
-
RhodiumToad
(pcm2 is obviously a separate chip, but that's just the digital outputs to HDMI)
-
martinrame
-
yuripv
lies
-
martinrame
yuripv: sorry
-
martinrame
-
yuripv
oh, i just liked the url it gave you
-
RhodiumToad
martinrame: and sysctl dev.pcm and cat /dev/sndstat please
-
RhodiumToad
also, have you put anything in loader.conf or sysctl.conf about hdaa?
-
RhodiumToad
ok, I think i can see how to fix it
-
» RhodiumToad waits...
-
RhodiumToad
meh, don't ask the question if you're not going to stick around for the answer
-
martinrame
RhodiumToad: sorry, I'm here
-
martinrame
sysctl dev.pcm -->
termbin.com/3936
-
martinrame
cat /dev/sndstat -->
termbin.com/hobc
-
martinrame
In /boot/loader.conf I don't see anything related to audio
-
martinrame
In sysctl.conf I added hw.snd.default_unit=0
-
RhodiumToad
if you do sysctl dev.hdac.0.pindump=1 it should dump some stuff to the console, which you can see with dmesg
-
RhodiumToad
can you paste that too
-
martinrame
let me see
-
martinrame
dev.hdac.0.pindump: 0 -> 0
-
martinrame
Or do you ask for the output of dmesg?
-
RhodiumToad
the output of dmesg, yes - at least the part with hdaa:
-
martinrame
-
RhodiumToad
ok, try this: sysctl dev.hdaa.0.nid18_config="as=4" dev.hdaa.0.nid24_config="as=3"
-
RhodiumToad
then sysctl dev.hdaa.0.reconfig=1
-
RhodiumToad
then sysctl hw.snd.default_unit=0
-
RhodiumToad
then see if playback and mic work
-
RhodiumToad
if it does, you can put hint.hdaa.0.nid18_config="as=4" and hint.hdaa.0.nid24_config="as=3" in /boot/loader.conf
-
martinrame
RhodiumToad: playback works, but recording not.
-
RhodiumToad
hm.
-
RhodiumToad
does recording still work with hw.snd.default_unit=1 ?
-
RhodiumToad
and can you do the pindump / dmesg thing again
-
martinrame
after service sndiod restart recording works with hw.snd.default_unit=1
-
martinrame
-
RhodiumToad
oh sorry, I think I got them backwards
-
RhodiumToad
sysctl dev.hdaa.0.nid18_config="as=3" dev.hdaa.0.nid24_config="as=4"
-
RhodiumToad
sysctl dev.hdaa.0.reconfig=1
-
RhodiumToad
then try again with default_unit=0
-
martinrame
YEEEESSSS!!!!
-
RhodiumToad
ok. so put hint.hdaa.0.nid18_config="as=3" and hint.hdaa.0.nid24_config="as=4" in /boot/loader.conf
-
RhodiumToad
and then it should still work after a reboot
-
martinrame
RhodiumToad: nothing else in /etc/sysctl.conf or /etc/rc.conf?
-
RhodiumToad
shouldn't need to
-
martinrame
Ok, this is the last /boot/loader.conf
termbin.com/mkf2
-
RhodiumToad
those need to be two separate lines at the end there
-
martinrame
ok
-
RhodiumToad
and they need to be hint.* not dev.*
-
martinrame
-
RhodiumToad
that's better
-
martinrame
Great, let's reboot.
-
RhodiumToad
the idea here is that the as= parameters tell the driver how to wire up the various audio components
-
martinrame
RhodiumToad: I'm back. Sadly dind't work after rebot
-
martinrame
reboot
-
RhodiumToad
oh jeez, whoever wrote these options should be shot
-
RhodiumToad
in loader.conf, change the nidNN_config to nidNN.config
-
martinrame
RhodiumToad: replace the _ with a . ?
-
RhodiumToad
(the sysctls have _ there, the hints have . instead)
-
martinrame
RhodiumToad: ok, changed, let's reboot again.
-
RhodiumToad
yes, replace the _ with .
-
martinrame
RhodiumToad: yes!, now it works. Thank you very much!
-
RhodiumToad
excellent
-
RhodiumToad
what we basically did is swap the order in which the mic jack and the internal mic are assigned
-
RhodiumToad
(I assume there's a mic jack somewhere, the hardware thinks there is one)
-
RhodiumToad
previously it had the mic jack on pcm0 and the mic on pcm1, now it has them the other way
-
martinrame
RhodiumToad: Mmm, a couple of weeks ago I connected some Bluetooth headphones
-
martinrame
But I don't remember if before that playing/recording worked as expected.
-
martinrame
This isn't my main machine.
-
martinrame
RhodiumToad: do you have the same laptop?
-
RhodiumToad
nope
-
martinrame
Hopefully someone here has one, to see if it works without tweaking anything.
-
RhodiumToad
bluetooth needs virtual_oss, as I recall, so it'll be a separate pcm device
-
skered
freebsd repos are building under 13.2 now?
-
skered
oh nm.. misread something
-
la_mettrie
that's the current version
-
skered
13.1 is
-
debdrup
13.1 is the oldest supported version, which is what packages are built on.
-
debdrup
huh, an ircII user.
-
» kenrap looks up what the ircII client is
-
kenrap
I love how lurking here sometimes gives me exposure to past-time Unix and technology