LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 09-20-2011, 03:06 PM   #1
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 299

Rep: Reputation: 80
Multiple X displays and keymap problem


Hello. For a while now i have wondered why this happens...

I heard that running a fullscreen application in its own display tends to increase frames per second (games for example) as the desktop environment is backgrounded, so i created a tiny script to launch the sauerbraten first-person-shooter like this:

Code:
#!/bin/bash

DISPLAY=:1.0
xinit /usr/bin/sauerbraten-client $* -- :1
This works nicely, the game starts on a new display (ctrl+alt+f8) and i do see the speed improvement, however my keymap changes (or rather, falls back) to the american layout.

My system is set to use british english layout. Which is [gb] in X, and called [uk] within ArchLinux system settings.

This is on ArchLinux, /etc/rc.conf contains these:
Code:
KEYMAP="uk"
LOCALE="en_GB.UTF-8"
Everything such as KDE, gettys, all default to the gb layout. Obviously not when launching a seperate xorg display.

How can i force X to use a specific keymap, or make it default to gb/uk english when starting a new display? I have tried adding lines into the script before `xinit' such as `setxkbmap gb &'... but nothing happens.

 
Old 09-20-2011, 03:26 PM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 299

Original Poster
Rep: Reputation: 80
[Solved] Multiple X displays and keymap problem

Nevermind, i found a way:

/etc/X11/xorg.conf.d/keyboard.conf
Code:
Section "InputClass"
    Identifier             "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option                 "XkbLayout" "gb"
EndSection
It works!
 
  


Reply

Tags
display, fullscreen, games, keymap, xorg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple displays problem - OpenSuSE 11.1 thomas_r Linux - Newbie 1 01-06-2009 10:03 AM
Multiple displays with the cli cwwilson721 Slackware 15 09-07-2008 01:35 PM
Framebuffer + multiple displays piercey Linux - Software 4 10-04-2007 04:09 AM
programs on multiple displays andy753421 Linux - Software 0 01-16-2005 04:21 PM
Multiple displays within one monitor natalinasmpf Linux - General 3 01-08-2004 04:24 PM


All times are GMT -5. The time now is 03:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration