Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

:?: udev to define keyboard layout

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
dmitrio
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 115
Joined: Tue Dec 10, 2002 7:44 am
Location: Pago Pago
Contact:
Contact dmitrio
Website

:?: udev to define keyboard layout

  • Quote

Post by dmitrio » Sun Jul 29, 2012 5:57 pm

Since udev starts at sysinit level and is a part of system set,
would it be reasonable to implement udev rules to define keyboard language layout
for console (instead of /etc/init.d/consolefonts and keymaps),
and for Xorg (instead of /etc/X11/xorg.conf.d/10-keyboard.conf)?
so once rules defined - keyboard will behave the same in console and Xorg.

... Leaving ground, destination is unknown,
into the darkness and far away from home,
Will your dream come true and what will you find,
when fate is your guide ...
Top
dmitrio
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 115
Joined: Tue Dec 10, 2002 7:44 am
Location: Pago Pago
Contact:
Contact dmitrio
Website

  • Quote

Post by dmitrio » Tue Jul 31, 2012 2:05 am

need to translate

Code: Select all

Section "InputClass"
   Identifier "Keyboard Defaults"
   MatchIsKeyboard "yes"
   Option "XkbLayout" "us,ru(winkeys)"
   Option "XkbOptions" "terminate:ctrl_alt_bksp,grp:alt_shift_toggle,compose:rwin,grp_led:scroll"
   Option "XkbModel" "pc105"
   Option "GrabDevice" "True"
EndSection
to

Code: Select all

/etc/udev/rules.d/111-kbd.ru.rules:
## via Xorg
ACTION=="add", KERNEL=="event?", SUBSYSTEMS=="usb",ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="8081",RUN+="/usr/bin/setxkbmap -model pc104 -layout us,ru -variant ,winkeys,winkeys"
ACTION=="remove", KERNEL=="event?", SUBSYSTEMS=="usb", ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="8081", RUN+="/usr/bin/setxkbmap -model 102 -layout us_intl"
but seems here should be better solution

... Leaving ground, destination is unknown,
into the darkness and far away from home,
Will your dream come true and what will you find,
when fate is your guide ...
Top
Post Reply

2 posts • Page 1 of 1

Return to “Other Things Gentoo”

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