03:08:01 saltd: Intel SSDSCKKR080H6XN 03:08:12 not freebsd related, but i had some sata hard drives in another system. i put them into this new system i built with a supermicro board, but it asks for a password for the hard drives I have connected to it and i did not ever set a password, or even knew it was possible 03:08:27 there is no option in the bios to set passwords or even clear them 03:08:34 so what is going on? 03:24:24 encrypted drives? 03:36:10 How can I use ZFS headers in my C code? I have `#include ` in a test C file, but when I compile it (`cc test.c`) I get a bunch of errors: `error: unknown type name 'uintptr_t’` etc. Is there something I need to include first so that I can include system files? 03:40:39 what command line saucery can I use to display all my cpu cores usage as a total combined percentage? 03:40:50 e.g 30% 03:41:38 insead of CPU 0: 19.5%, CPU 1: 26.8% etc... 03:41:56 top -P with some cut, sed, awk 03:42:49 I'm wanting to dislay it in a statusbar script like: Cpu: 32% 03:45:46 top -Pnd1 | grep '^CPU' | awk '{ sum += 100% - $11; n++ } END { if (n > 0) print sum / n; }' 03:45:52 That's a probably horrible quick and dirty. 03:51:42 jkc: thanks, are you sure it's fairly accurate? 03:51:58 I mean, average is sum over count, right? 03:52:49 the average of all 4 cores 03:53:49 I get what you're trying to do, yes. Your question of it being fairly accurate, I found amusing, as calculating the average is simple, mathematically. 03:54:02 ok thanks 03:55:16 top -Pnd1 | grep '^CPU' | awk '{ sum += 100% - $11; n++ } END { if (n > 0) print sum / n; }' | cut -d . -f 1 (This will make it display with no decimal places?) 03:55:43 I was currently using vmstat | awk 'NR==3 {print $(NF-2)}' 03:55:49 but I find it inaccurate 03:57:25 top -Pnd1 | grep '^CPU' | awk '{ sum += 100% - $11; n++ } END { if (n > 0) printf "%d%%", (sum / n); }' 03:57:47 I believe that that will truncate the decimal, though, instead of rounding. 03:58:02 ok 04:02:59 Plasmoduck: so the old 3ware raid controller they were connected to locked the drives 04:03:16 i don't have it anymore 04:03:32 jkc: how do I remove the % from displaying also? 04:03:44 $ go build . 04:03:44 go: parsing buildID from go tool compile -V=full: unexpected output: 04:03:47 gah 04:04:01 so i may have to buy that samne controller and unlock it that way 04:04:26 if a different 9500 controller will let me unlock 04:04:31 Plasmoduck: "man awk" 04:04:36 what a load of jack 04:04:42 that's my last request 04:04:49 Plasmoduck: remove the "%%" from the printf string. 04:04:53 top -Pnd1 | grep '^CPU' | awk '{ sum += 100% - $11; n++ } END { if (n > 0) printf "%d", (sum / n); }' 04:05:40 awesome, thanks 04:14:54 how can I make my laptop run a command when the lid is closed and it hibernates? 04:17:07 in my sysctl.conf I have hw.acpi.lid_switch_state=S3 04:17:40 which works good, but I want to run a command 'slock' to lock my screen when lid is closed, so I have to type my password when I open screen again 04:20:40 I'm guessing devd 05:29:37 when i switch to virtual console the screen gets all messy, and it's not possible to go back to the graphical environment it only shows a messy screen 05:59:41 fav cli calc port? 07:28:35 polyex: bc/dc are in base :) 08:51:08 bc!! 09:13:11 service sshd enable/disable and enabled work, but are not documented 10:48:18 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266494 10:48:20 Title: 266494 – neither service(8) rc.subr(8) document enable/disable commands 11:58:25 rc(8) does and it's linked from service(8) 12:01:38 how did i miss it 12:03:02 yuripv: rc(8) and rc.subr(8) are the same man page, so i missed it completely 12:09:31 seem to be different pages here 12:15:22 i'm a novice BSD user and wish to check it out on my bare metal hardware. i'm a gentoo linux user 12:15:43 i wonder if I can get the 8852ae wifi driver to work on bsd 12:15:53 to work on FreeBSD 12:53:50 "That's a Linux driver, you cannot install Linux drivers on FreeBSD." - https://forums.freebsd.org/threads/how-can-i-get-a-realtek-driver-for-freebsd.64389/ this position may have shifted in the past four years somewhat 12:53:51 Title: How can I get a Realtek driver for FreeBSD? | The FreeBSD Forums 13:07:24 Tikosh: Bjoern is working on it: https://wiki.freebsd.org/WiFi/Rtw89 13:07:25 Title: WiFi/Rtw89 - FreeBSD Wiki 13:08:27 I think it would help him a lot if you got in touch in the freebsd wireless mailing list. 13:10:19 He is (as of now) seeking testers 13:16:38 steew: Tikosh is gone 13:16:52 more people need to learn about IRC clients you can just leave running somewhere… 13:25:04 Oh well... 13:57:07 If you're running FreeBSD in a cloud environment (VM or hardware), I'd love to see pastes from your ifconfig -a and netstat -r --libxo=json — especially if they're unusual, or "messy" 17:16:29 hello - does anyone know where i may find a plugin or conf for jailing prosody? 17:23:15 okidoki: depends on your jail manager… some have pre-baked things 17:30:06 hello all, is anybody here using pkgsrc in addition to freebsd ports tree? 17:51:57 Hello. I am a FreeBSD novice, and wonder how your guys day/night is? 17:52:59 hi, the day is pretty fine 17:53:19 thats good, la_mettrie. 19:31:34 skeemer: ports has everything i need. 19:45:30 hrm, mount -t foo,bar,baz /dev/blah /mnt/blubb doesn't actually work. It only works when /dev/blah is of type foo lol 20:32:47 why do you think it would work? 20:47:42 rtprio: i dunno… why shouldn't i think it would work? it seemed in the realm of possibilities from the man page, and when trying it out, it worked… i didn't try counter cases 21:29:15 meena: Do you know offhand how to blacklist a module (and you know which one!) from the loader prompt? 21:30:00 mason: you wouldn't blacklist it there, you'd unload it, but then it'd be loaded again by… devd? no… i forget 21:30:11 hrm 21:31:22 so is kldunload available in loader prompt? 21:31:41 it's not - there's an unload. I'm looking for a manual now. 21:32:22 https://www.freebsd.org/cgi/man.cgi?query=loader&apropos=0&sektion=0&manpath=FreeBSD+13.1-RELEASE+and+Ports&arch=default&format=html 21:32:23 Title: loader 21:33:30 there *is* a module_blacklist I can set 21:33:39 via show 21:35:04 cool! 21:35:09 * meena → bed 21:35:27 but yeah, I think devd is working against me when it starts 21:35:41 g'night 21:36:49 you could try setting devmatch_blocklist (if module_blacklist doesn't take care of that) 21:37:09 yuripv: The trick is getting through the boot to do so. 21:37:37 it's kenv variable as well as rc.conf one 21:38:13 yuripv: oh, hrm, devmatch_blocklist is settable via loader as well? hm 21:38:40 it should be if i'm reading man page correctly :) never tried it myself 21:39:38 trying it 21:40:04 hm, didn't seem to matter, but trying again without the .ko at the end 21:42:01 It continues to hang so I don't think that's having any effect. 21:43:08 mason: which release? 21:43:59 yuripv: 13.1 21:44:37 yuripv: There's a known issue with virtio_random.ko and I'm trying to boot without it hanging on a Vultr VM where I don't control a whole lot. 21:44:54 ok, looks like reading kenv is only in -CURRENT, sorry 21:45:07 ah, interesting though 21:45:56 it's not there in stable/13: https://github.com/freebsd/freebsd-src/blob/0d0c1ffcf4fc6d382887e89c5d8b0b7a270d0689/libexec/rc/rc.d/devmatch#L67 and it's there in main: https://github.com/freebsd/freebsd-src/blob/2c2ef670a79b7f8fa84796a04885a3f76c914762/libexec/rc/rc.d/devmatch#L67 21:45:57 Title: freebsd-src/devmatch at 0d0c1ffcf4fc6d382887e89c5d8b0b7a270d0689 · freebsd/freebsd-src · GitHub 21:47:13 yuripv: You know, it occurs to me that maybe I could just install from a -current ISO. 21:47:36 you could try setting device hints though? the "disabled" one 21:47:48 Oh... Yeah, just seeing that in a follow-up bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265549 21:47:51 Title: 265549 – Vultr Q35 hangs while booting during virtio-random initialization 21:47:51 trying that now 21:49:23 Yep, that works. I need to read this stuff more thoroughly. 21:51:50 nice! 21:59:29 yuripv: thank you (and thank you again, meena, when you're awake again to read this)