r/Gentoo • u/krumpfwylg • 2d ago
Discussion About NTSYNC
Hi all, I have a question about NTSYNC.
As a gentoo-sources user, I'm configuring & building the kernel myself, and I choose to setup ntsync as builtin CONFIG_NTSYNC=y (if built as module, Wine and Steam's Proton cannot load the module, it needs to be done through a config file in modules-load.d).
My question is, how is it setup in other kernel versions, gentoo-kernel & gentoo-kernel-bin ? People who use those kernels are welcome to answer, thanks.
grep NTSYNC /boot/config-$(uname -r)
And for the people using it as module, do you have a specific way to load it ?
EDIT : still hoping for entries about pre-built kernels, thanks !
5
u/unhappy-ending 2d ago
/etc/modules-load.d/ntsync.conf
add a single line
ntsync
3
u/krumpfwylg 2d ago
Bonus question for you : what's the module size in KB/KiB ? Trying to estimate how much memory it does eat.
2
u/unhappy-ending 2d ago
ls /lib/modules/*12*/kernel/drivers/misc total 24K drwxr-xr-x 2 root root 23 Aug 29 00:31 eeprom/ drwxr-xr-x 5 root root 130 Aug 29 00:31 mei/ -rw-r--r-- 1 root root 22K Aug 29 00:30 ntsync.ko3
u/krumpfwylg 2d ago
Thanks.
Kernel 6.12 ? Was ntsync backported, or did you patch it yourself ?
1
u/unhappy-ending 2d ago
7.1.12, gentoo-kernel. It's been in our kernel for a while now, one of the reasons I left xanmod. Wasn't offering much over ours and one less overlay to deal with.
1
9
u/purplebrewer185 2d ago
The config file to load modules on startup is `/etc/conf.d/modules` , at runtime its `modprobe ntsync`
I'd highly recommend to config ntsync as a module, because ntsync seems to break anything that needs dotnet at runtime. by using it as a module, you can unload ntsync support at runtime with `rmmod ntsync` and thus hopefully unbreak the dotnet breakage.
I read somewhere that >=wine-11.14 will automatically load the module if its present, but I haven't tested this yet.