Forums

Skip to content

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

[SOLVED]xorg 1.9, keyboard layouts missing/conf file moved?

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
18 posts • Page 1 of 1
Author
Message
KrossFIN
n00b
n00b
User avatar
Posts: 63
Joined: Sat May 08, 2010 12:35 pm
Location: Finland, Oulu

[SOLVED]xorg 1.9, keyboard layouts missing/conf file moved?

  • Quote

Post by KrossFIN » Wed Oct 13, 2010 11:35 am

So, I cant use AltGr, and keyboard layouts don\t work any more (only US)
Running xorg-server 1.9.0.901.
And xorg-x11 7.4-r1

/etc/make.conf

Code: Select all

# Welcome to /etc/make.conf!
# WARNING: DO NOT change your chost unless it is really required and you know what you're doing!
#
# [ System specific ]
CFLAGS="-O2 -pipe -march=k8"
CXXFLAGS="-O2 -pipe -march=k8"
MAKEOPTS="-j5"
CHOST="x86_64-pc-linux-gnu"
USE="mmx sse sse2 3dnow multilib alsa bluetooth bzip2 cdda cddb cdr cups dri dvb dvd dvdr dbus encode emerald extras ffmpeg flac ftp gif gzip gtk gconf gnome gnome-keyring gnutls java jpeg javascript kvm lm-sensors lzma mysql matroska mpeg mp3 mp4 nsplugin nls ogg opengl png pulseaudio raw rss smp svg taglib tiff theora udev unicode vorbis x264 xvid X -minimal -debug -thunar -kde -hal -qt4"
LINGUAS="fi en"
ACCEPT_KEYWORDS="~amd64"

# [ Download settings ]
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/"
SYNC="rsync://rsync.fi.gentoo.org/gentoo-portage"

# [ Application specific ]
VIDEO_CARDS="radeon"
INPUT_DEVICES="evdev"
USE flags that I think are important, -hal udev.

I have done

Code: Select all

emerge -DuvaN world
and

Code: Select all

revdep-rebuild
Any ideas?
Last edited by KrossFIN on Fri Oct 15, 2010 1:02 pm, edited 2 times in total.
Gentoo Linux user
~amd64 user
no-multilib user
KDE user
Top
bbgermany
Veteran
Veteran
User avatar
Posts: 1844
Joined: Mon Feb 21, 2005 8:19 am
Location: Oranienburg/Germany

  • Quote

Post by bbgermany » Wed Oct 13, 2010 6:02 pm

Hi,

i had a similiar problem with my german keyboard. I recognized in the logfile of xorg, they use a special config dir. I found a config for a keyboard there but incomplete. So I added my german config there. Maybe this helps you a bit. Since im not in Linux Im not able to check for correct path.

bb

EDIT: I booted into my gentoo install and checked the conf dir: /usr/share/X11/xorg.conf.d

check this directory for an additional config for your keyboard :)
Desktop: Ryzen 7 5800X, 32GB, 2TB, RX7700XT
Noebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB
Top
KrossFIN
n00b
n00b
User avatar
Posts: 63
Joined: Sat May 08, 2010 12:35 pm
Location: Finland, Oulu

  • Quote

Post by KrossFIN » Wed Oct 13, 2010 8:09 pm

Does your keymap conf file have a name_ (I hate when my keyboard doesn\type right)

/usr/share/X11/xorg.conf.d/ has only one file, 10-evdev.conf

By intensively looking at xorg log, I only noticed that it loaded us keymap(no dirs shown)
Gentoo Linux user
~amd64 user
no-multilib user
KDE user
Top
Gusar
Advocate
Advocate
Posts: 2665
Joined: Sat Apr 09, 2005 10:19 pm
Location: Slovenia

  • Quote

Post by Gusar » Wed Oct 13, 2010 8:21 pm

http://fedoraproject.org/wiki/Input_dev ... figuration

Why doesn't Gentoo have a similar document yet? xorg-server-1.8 has been in the tree for quite some time now, there should be a document explaining the new post-hal method of configuring input devices.
Top
KrossFIN
n00b
n00b
User avatar
Posts: 63
Joined: Sat May 08, 2010 12:35 pm
Location: Finland, Oulu

  • Quote

Post by KrossFIN » Thu Oct 14, 2010 3:35 pm

Gentoo don\t do documents on unstable stuff for some reason. (has caused some problems that I have to bloat this forum with)
Sadly that document didn\t help much.
/etc/X11/ doesn\t have a xorg.conf.d file. (nor did it have xorg.conf or anything like that..)
Gentoo Linux user
~amd64 user
no-multilib user
KDE user
Top
TequilaTR
n00b
n00b
Posts: 68
Joined: Tue Feb 01, 2005 8:39 pm

  • Quote

Post by TequilaTR » Thu Oct 14, 2010 5:38 pm

Hi,

you do not search for that file, but for that directory.

in /usr/share/X11/xorg.conf.d/10-evdev.conf

I changed:

Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
+ Option "xkb_layout" "de"
EndSection

Hope that helps. However i also wonder if one could plug the thing to xorg.conf or equal... did not try yet.
Top
Gusar
Advocate
Advocate
Posts: 2665
Joined: Sat Apr 09, 2005 10:19 pm
Location: Slovenia

  • Quote

Post by Gusar » Thu Oct 14, 2010 5:48 pm

KrossFIN wrote:Gentoo don\t do documents on unstable stuff for some reason. (has caused some problems that I have to bloat this forum with)
Yeah, it seems that's a policy of Gentoo. But in certain cases (like this one) it brings problems.
KrossFIN wrote:/etc/X11/ doesn\t have a xorg.conf.d file. (nor did it have xorg.conf or anything like that..)
One of the first rules I learned when starting with Linux is this: If a configuration file a piece of documentation mentions doesn't exist, create it.
You can create /etc/X11/xorg.conf and write stuff in there. Or you create a random .conf file (or more of them) in the /etc/X11/xorg.conf.d/ dir. There you write an InputClass section with MatchIsKeyboard and settings in that section will apply to all keyboards.
Same for any other type of input device, you create a section, determine a match, and the settings will apply to everything that matches.
Top
KrossFIN
n00b
n00b
User avatar
Posts: 63
Joined: Sat May 08, 2010 12:35 pm
Location: Finland, Oulu

  • Quote

Post by KrossFIN » Fri Oct 15, 2010 1:01 pm

I've noticed that it I'm not missing a conf file, it's GNOME that fails.
I changed to KDE and keyboard works perfectly.
For some odd reason GNOME implements it's own keyboard technology on top of xorg's. And it fails.
Yes, I do create conf files if one doesn't exist, but it's quite complicated file. (for me at least)
Solved, but still not solved..

Thank you for your help.
Gentoo Linux user
~amd64 user
no-multilib user
KDE user
Top
azp
Guru
Guru
Posts: 457
Joined: Sun Nov 16, 2003 5:48 pm
Location: Sweden
Contact:
Contact azp
Website

  • Quote

Post by azp » Fri Oct 15, 2010 8:28 pm

I have the same issue, will try to add the extra evdev settings and see if it helps. I did think that Gnome would handle the keyboard layouts though, since that is where I do the settings (I run dvorak for me and qwerty for my girlfriend).
Weeks of coding can save you hours of planning.
Top
Mikkl
Tux's lil' helper
Tux's lil' helper
Posts: 79
Joined: Thu Jan 12, 2006 3:54 pm

  • Quote

Post by Mikkl » Sat Oct 16, 2010 2:02 pm

me, too. and the keys in gnome-keyboard-properties -> Layouts -> Options (e.g. kill x-server by ctrl-alt-backspace or change layout) don't do anything, too. This has happened since the xorg-server-1.9.0.901 came up and now in .902, too. My xorg logfile doesn't show any differences between the working xorg-server-1.9.0-r2 and the not working xorg-server-1.9.0.90x except for these lines missing in 1.9.0.90x:

Code: Select all

 (II) Power Button: Close
 (II) UnloadModule: "evdev"
 (II) Power Button: Close
 (II) UnloadModule: "evdev"
 (II) Logitech Logitech USB Keyboard: Close
 (II) UnloadModule: "evdev"
 (II) Logitech Logitech USB Keyboard: Close
 (II) UnloadModule: "evdev"
 (II) Logitech USB Mouse: Close
 (II) UnloadModule: "evdev"
Top
Mighty_Max
n00b
n00b
User avatar
Posts: 55
Joined: Fri Sep 19, 2008 8:59 pm
Location: Thessaloniki, Greece

  • Quote

Post by Mighty_Max » Sun Oct 17, 2010 12:21 pm

I had the same issue in .901 and .902 xorg-servers, and I was messing around with it for about a day. As it seems the gnome-keyboard-properties doesn't do much for keyboard layouts. Altouth tweaking the /usr/share/X11/xorg.conf.d/10-evdev.conf like TequilaTR said does the job:

Code: Select all

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
	Option "xkb_layout" "us,el" 
	Option "XkbOptions"   "grp:alt_shift_toggle,grp_led:scroll"
Top
KrossFIN
n00b
n00b
User avatar
Posts: 63
Joined: Sat May 08, 2010 12:35 pm
Location: Finland, Oulu

  • Quote

Post by KrossFIN » Sun Oct 17, 2010 4:41 pm

Yep, it works. Thank you for your help.
EDIT: the file removes your settings when updating xorg!
Gentoo Linux user
~amd64 user
no-multilib user
KDE user
Top
Mikkl
Tux's lil' helper
Tux's lil' helper
Posts: 79
Joined: Thu Jan 12, 2006 3:54 pm

  • Quote

Post by Mikkl » Tue Oct 19, 2010 3:21 pm

Ahh, thanks, it works for me, too, and an addition made my x-server zap work again:

Code: Select all

	Option "xkb_layout" "us, de"
	Option "XkbOptions" "grp:alt_shift_toggle, terminate:ctrl_alt_bksp"
Top
TequilaTR
n00b
n00b
Posts: 68
Joined: Tue Feb 01, 2005 8:39 pm

  • Quote

Post by TequilaTR » Wed Oct 20, 2010 4:57 am

KrossFIN wrote:Yep, it works. Thank you for your help.
EDIT: the file removes your settings when updating xorg!
Hi,

indeed it is removed. However you can just simply copy the whole folder
/usr/share/X11/xorg.conf.d to /etc/X11 and have the file
modified there. Then it should not get overwritten
on update. /usr/share/X11 files seem to be some sort of template for
the default configuration.
Top
blutregens
n00b
n00b
User avatar
Posts: 15
Joined: Sat Dec 29, 2007 8:02 pm

  • Quote

Post by blutregens » Tue Oct 26, 2010 3:29 am

Any tips as to why the policy files on /etc/hal/fdi/policy are being ignored? I used to configure my keyboard with a fdi file and it doesn't work anymore. Changing the /etc/X11/xorg.conf.d/10-evdev.conf file worked, though.

My policy file:

Code: Select all

<deviceinfo version="0.2">
<device>
   <match key="info.capabilities" contains="input.keyboard">[/quote]
      <merge key="input.x11_options.AutoRepeat" type="string">500 300</merge>
      <merge key="input.x11_options.XkbRules" type="string">xorg</merge>
      <merge key="input.x11_options.XkbModel" type="string">abnt2</merge>
      <merge key="input.x11_options.XkbLayout" type="string">br</merge>
      <merge key="input.x11_options.XkbOptions" type="string">terminate:ctrl_alt_bksp</merge>
   </match>
   </device>
</deviceinfo>
Top
TequilaTR
n00b
n00b
Posts: 68
Joined: Tue Feb 01, 2005 8:39 pm

  • Quote

Post by TequilaTR » Tue Oct 26, 2010 7:12 am

I think the idea is to discontinue hal. Evdev does not seem to use it anymore.
Top
azp
Guru
Guru
Posts: 457
Joined: Sun Nov 16, 2003 5:48 pm
Location: Sweden
Contact:
Contact azp
Website

  • Quote

Post by azp » Sat Nov 06, 2010 2:03 pm

TequilaTR wrote:I think the idea is to discontinue hal. Evdev does not seem to use it anymore.
Yep, everybody hates HAL =)
Weeks of coding can save you hours of planning.
Top
CodAv
Apprentice
Apprentice
Posts: 171
Joined: Sun May 09, 2004 2:52 pm
Location: Essen, Germany
Contact:
Contact CodAv
Website

  • Quote

Post by CodAv » Sun Nov 21, 2010 9:34 pm

Instead of editing files in /usr/share/X11/xorg.conf.d, use the proper method, and create a folder /etc/X11/xorg.conf.d and place your edited files there. To switch to a german keyboard layout for example, put a file "10-keymap.conf" there with the following contents:

Code: Select all

Section "InputClass"
    Identifier "German Keyboard"
    MatchIsKeyboard "on"
    Option "XkbModel" "evdev"
    Option "XkbLayout" "de"
EndSection
After restarting XOrg, you should have your german layout working, and it doesn't get erased after the next XOrg upgrade.
Debian is available in three different versions: rusty, stale and broken.
Top
Post Reply

18 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