View previous topic :: View next topic |
Author |
Message |
tckosvic Tux's lil' helper
Joined: 18 Apr 2023 Posts: 141
|
Posted: Wed Nov 20, 2024 2:45 pm Post subject: add uinput module to kernel |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22717
|
Posted: Wed Nov 20, 2024 3:06 pm Post subject: |
|
|
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 |
|
|
tckosvic Tux's lil' helper
Joined: 18 Apr 2023 Posts: 141
|
Posted: Wed Nov 20, 2024 4:16 pm Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22717
|
Posted: Wed Nov 20, 2024 4:35 pm Post subject: |
|
|
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 |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2452
|
Posted: Wed Nov 20, 2024 5:21 pm Post subject: |
|
|
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 |
|
|
tckosvic Tux's lil' helper
Joined: 18 Apr 2023 Posts: 141
|
Posted: Wed Nov 20, 2024 5:25 pm Post subject: |
|
|
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 |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2452
|
Posted: Wed Nov 20, 2024 5:29 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5147 Location: Bavaria
|
|
Back to top |
|
|
|