r/Gentoo 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 !

12 Upvotes

10 comments sorted by

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.

2

u/krumpfwylg 2d ago

Weird, I got a prefix using dotnet (for Skyrim's ModOrganizer) and never had any trouble with it. But I suppose that doesn't use dotnet intensively.

About wine11.14+ autoloading ntsync, that'd be nice (I guess it can be done through a udev rule), but it doesn't appear in Wine release log. Also, it would take quite some time for that feature to come to Proton for Steam users.

2

u/hoodoocat 2d ago

Does it exists some reported issues at dotnet/runtime? For me it is bit hard to imagine why it ever might happens.

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.ko

3

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

u/gbrlsnchs 2d ago

In gentoo-kernel it's set as a module.

CONFIG_NTSYNC=m

1

u/krumpfwylg 1d ago

Thanks