Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

add uinput module to kernel

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
tckosvic
Apprentice
Apprentice
Posts: 198
Joined: Tue Apr 18, 2023 4:17 pm

add uinput module to kernel

  • Quote

Post by tckosvic » Wed Nov 20, 2024 2:45 pm

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?
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Nov 20, 2024 3:06 pm

Per a search of the Linux kernel source:

Code: Select all

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:

Code: Select all

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.
Top
tckosvic
Apprentice
Apprentice
Posts: 198
Joined: Tue Apr 18, 2023 4:17 pm

  • Quote

Post by tckosvic » Wed Nov 20, 2024 4:16 pm

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
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Nov 20, 2024 4:35 pm

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.
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3537
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Wed Nov 20, 2024 5:21 pm

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
Top
tckosvic
Apprentice
Apprentice
Posts: 198
Joined: Tue Apr 18, 2023 4:17 pm

  • Quote

Post by tckosvic » Wed Nov 20, 2024 5:25 pm

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
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3537
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Wed Nov 20, 2024 5:29 pm

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
Top
pietinger
Administrator
Administrator
Posts: 6639
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Wed Nov 20, 2024 6:32 pm

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:Pieti ... fig.22_.3F

You surely have found it already:

Code: Select all

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 --> New at Gentoo
Top
Post Reply

8 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic