Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
add uinput module to kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tckosvic
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2023
Posts: 141

PostPosted: Wed Nov 20, 2024 2:45 pm    Post subject: add uinput module to kernel Reply with quote

I am trying to implement copy/paste from host openSUSE to guest Gentoo VM. I have installed spice-vdagent on the host and the guest. vdagent will not start on the Gentoo guest as error messages say "uinput" kernel module is needed to start vdagent.

Cannot find detailed instructions needed to install uinput either as builtin to kernel or as a separate accessible module.

Any advice?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22740

PostPosted: Wed Nov 20, 2024 3:06 pm    Post subject: Reply with quote

Per a search of the Linux kernel source:
Code:
linux.git$ git grep uinput '*Kconfig*'
drivers/input/misc/Kconfig:517:   subsystem accessible under char device 10:223 - /dev/input/uinput.
drivers/input/misc/Kconfig:520:   module will be called uinput.
That file looks promising. Its contents show:
drivers/input/misc/Kconfig:
config INPUT_UINPUT
   tristate "User level driver support"
   help
     Say Y here if you want to support user level drivers for input
     subsystem accessible under char device 10:223 - /dev/input/uinput.

     To compile this driver as a module, choose M here: the
     module will be called uinput.
From that, I suggest you enable INPUT_UINPUT in your Gentoo kernel configuration, rebuild, reboot, and retry.
Back to top
View user's profile Send private message
tckosvic
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2023
Posts: 141

PostPosted: Wed Nov 20, 2024 4:16 pm    Post subject: Reply with quote

As a novice with configuring kernels, how do I enable INPUT_UINPUT in my Gentoo kernel configuration. Do I use "make menuconfig"? Where in kernel structure do I find INPUT_UINPUT enable option?

thanks, tom kosvic
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22740

PostPosted: Wed Nov 20, 2024 4:35 pm    Post subject: Reply with quote

Yes, make menuconfig. Then, press / to start a search by Kconfig symbol. Write INPUT_UINPUT, then hit Enter to submit the search. You will get some number of matches, probably only one since this is a fairly specific search. Press the number key corresponding to your desired match, which probably means pressing 1. This will jump you to that option. Enable it via Y or M, as usual. Save and exit. Rebuild the kernel.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2460

PostPosted: Wed Nov 20, 2024 5:21 pm    Post subject: Reply with quote

tckosvic wrote:
As a novice with configuring kernels, how do I enable INPUT_UINPUT in my Gentoo kernel configuration. Do I use "make menuconfig"? Where in kernel structure do I find INPUT_UINPUT enable option?

thanks, tom kosvic


Many people think this is common sense and don't mention it to novices but there's no reason to believe so, that's why I'll explicitly say it:

There are several steps in configuring the kernel. It' not just setting the configuration you want.

First, download the sources and then the configuration itself, but also there's the build and install. I think the Kernel/Upgrade wiki page can be a good starting point. For questions not addressed there you have the forums as well as IRC.

Good luck!

Best Regards,
Georgi
Back to top
View user's profile Send private message
tckosvic
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2023
Posts: 141

PostPosted: Wed Nov 20, 2024 5:25 pm    Post subject: Reply with quote

great info. vdagent now starting. copy/paste to gentoo vm now working.

I compile new kernels. What make kernel config option, e.g., make olddefconfig do I use to keep this change in-place in the future.

thanks, tom kosvic
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2460

PostPosted: Wed Nov 20, 2024 5:29 pm    Post subject: Reply with quote

tckosvic wrote:
great info. vdagent now starting. copy/paste to gentoo vm now working.

I compile new kernels. What make kernel config option, e.g., make olddefconfig do I use to keep this change in-place in the future.

thanks, tom kosvic


make olddefconfig will combine your existing configuration with default options for new configuration. No user input necessary. You can also use oldconfig if you want to interactively configure the new options.

Don't forget to preserve your .config's. By default portage won't delete them form /usr/src, even when unmerging old kernel sources but you should be careful not to lose them too.

Best Regards,
Georgi
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5166
Location: Bavaria

PostPosted: Wed Nov 20, 2024 6:32 pm    Post subject: Reply with quote

tckosvic wrote:
great info. vdagent now starting. copy/paste to gentoo vm now working.

I compile new kernels. What make kernel config option, e.g., make olddefconfig do I use to keep this change in-place in the future.

thanks, tom kosvic

Maybe read this (and then the whole article):
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#What_is_.22make_oldconfig.22_.3F

You surely have found it already:
Code:
Device Drivers --->
      Input device support  --->
            [*]   Miscellaneous devices  --->
                  [*]   User level driver support

This module was also necessary for a bluetooth device and therefore I added it in the wiki article for it:
https://wiki.gentoo.org/wiki/Bluetooth#Kernel
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum