WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Xorg7.7 locales missing (solved)  (Read 3267 times)

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 192
Xorg7.7 locales missing (solved)
« on: September 09, 2014, 03:37:55 PM »
Locales wont work anymore:

/etc/X11/xorg.conf
-----------------------------------
Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbLayout" "fi"
    Option "XkbModel" "pc105"
EndSection
-----------------------------------

extlinux.conf

APPEND lang=fi_FI@euro

Is something changed (should be a question mark here ,but not found at this moment!)

Edit:

Xorg7.7 Docs says:
-------------------------------------------------------------------------------------------
Configuration File

The Xorg server uses a configuration file as the primary mechanism for providing configuration and run-time parameters. The configuration file format is described in detail in the xorg.conf(5) manual page.

Note that this release features significant improvements for running the server without a configuration file, so many users may find that that they don't need a configuration file, or may rely on just snippets of configuration placed in the xorg.conf.d directory.
------------------------------------------------------------------------------------------

Should conf file be at /etc/xorg.conf.d? (I did found "?"!)
« Last Edit: September 10, 2014, 02:41:21 PM by Yleisajattelija »

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Xorg7.7 locales missing
« Reply #1 on: September 09, 2014, 10:33:11 PM »
A little more buried:
Code: [Select]
/usr/local/share/X11/xorg.conf.d/your-snippet.conf

My  10-keyboard.conf  which I got off the webs since it didn't work when I just copy/pasted the keyboard part out of my  xorg.conf  which I used before:
Code: [Select]
Section "InputClass"
Identifier       "Keyboard Defaults"
MatchIsKeyboard  "yes"
Option           "XkbLayout"   "de"
#Option           "XkbVariant"  "nodeadkeys"
Option           "XkbOptions"  "terminate:ctrl_alt_bksp"
EndSection

Download a copy and keep it handy: Core book ;)

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 192
Re: Xorg7.7 locales missing
« Reply #2 on: September 10, 2014, 01:52:01 AM »
I did read Xorg7.7 docs and /etc/X11/xorg.conf should still be supported with 7.7.

But I will try that "/usr/local/share/X11/xorg.conf.d/your-snippet.conf", too.

Thanks!

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 192
Re: Xorg7.7 locales missing
« Reply #3 on: September 10, 2014, 08:33:39 AM »
xorg staff made it again:

--------------------------------------------------------------------------------------------------------
Configuration file locations have changed

All of the configuration files and scripts in Xorg-6.8 were stored in /etc/X11, which was not standard. In modular Xorg, all of the configuration files are in the same place but configuration scripts and default files have moved to /usr/lib/X11/ and /usr/share/X11.

When upgrading, since /etc is config-protected, your old configuration files would not have been removed -- this means you'll have some extra files in there that look right but don't do anything.

Also, these new locations are NOT config-protected, so when making changes to say, app-defaults/XTerm-color, be sure to add CONFIG_PROTECT="/usr/share/X11/app-defaults" to /etc/make.conf. Or when updating the init for xdm, it would be a good idea to copy that file from /usr/lib/X11/xdm/Xsetup_0 to /etc/X11/xdm/ and update /etc/X11/xdm/xdm-config accordingly.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 839
Re: Xorg7.7 locales missing
« Reply #4 on: September 10, 2014, 08:58:46 AM »
hi, please have a look at my old post
http://forum.tinycorelinux.net/index.php/topic,15640.msg91652.html#msg91652

in summary : The priorities for new X(Xorg server) configurations are like
/etc/X11/xorg.conf (if exist) "overides" /etc/X11/xorg.conf.d/*.conf files,
 which they will "overide" /usr/[local]/share/X11/xorg.conf;d/*.conf

look under the hood to see what X did:
[    16.024] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 17 00:10:18 2013  :P
[    16.027] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    16.027] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"


still there is some old info in wiki about Xorg input classes in Xorg.conf
Section "InputDevice" is ignored, now is "InputClass" for synaptics and keyboards when edev is used, which IS, by default.

Reading from http://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml
"If hotplugging (evdev) is enabled, InputDevice sections using the mouse, kbd and vmmouse driver will be ignored"
the new X server 1.4 uses udev input device discovery and xorg.conf Section "InputClass" configuration.
Setting keyboard layout without hot-plugging (deprecated) has used Section "InputDevice"

The X server essentially treats the collection of configuration files /etc/X11/xorg.conf.d/*.conf as one big file, with entries from /etc/X11/xorg.conf at the end. sample 10-evdev.conf should be in the likely /etc/X11/xorg.conf.d directory, which manages the keyboard, the mouse, the touchpad and the touchscreen.
« Last Edit: September 10, 2014, 09:06:40 AM by nick65go »

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 192
Re: Xorg7.7 locales missing
« Reply #5 on: September 10, 2014, 02:11:47 PM »
Thanks for nick65go for good information.

Unfortunately this is typical situation with linux applications, continuous updating without cleanups makes that ineffective configuration files are scattered everywhere. It impossible to follow documentation to find out concurrent Xorg configuration.


Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 192
Re: Xorg7.7 locales missing (solved)
« Reply #6 on: September 10, 2014, 02:45:56 PM »
/usr/local/share/X11/xorg.conf.d/10-keyboard.conf

Section "InputClass"
    Identifier "Keyboard0"
    Driver "evdev"
    Option "XkbLayout" "fi"
    Option "XkbModel" "pc105"
EndSection

----------------------------------------------
Above works for finnish keyboard.

Thanks for nick65go and Misalf!