Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

No swedish keyboard in X but in console

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
undulat
n00b
n00b
Posts: 19
Joined: Sat Dec 19, 2009 1:59 pm

No swedish keyboard in X but in console

  • Quote

Post by undulat » Thu Jan 07, 2010 8:50 pm

I have run into a problem. I've got swedish keys working fine in the console but in X it seems to use an american keyboard layout.
I have no idea on how to debug this so any ideas are welcome.

In my xorg.conf I have Option "XkbLayout" "se"
Top
durian
Guru
Guru
User avatar
Posts: 312
Joined: Wed Jul 16, 2003 6:38 am
Location: Rörums Holma

  • Quote

Post by durian » Thu Jan 07, 2010 9:04 pm

Which DE/WM are you running? I had the same problem, which I could solve by setting the keyboard also to Swedish in the keyboard settings of XFCE.

Maybe something like that works in your case too,

-peter
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Thu Jan 07, 2010 9:31 pm

Hi, you should read this thread : http://forums.gentoo.org/viewtopic-t-722498.html
Top
undulat
n00b
n00b
Posts: 19
Joined: Sat Dec 19, 2009 1:59 pm

  • Quote

Post by undulat » Thu Jan 07, 2010 10:14 pm

durian wrote:Which DE/WM are you running? I had the same problem, which I could solve by setting the keyboard also to Swedish in the keyboard settings of XFCE.

Maybe something like that works in your case too,

-peter
I use twm since I have yet not installed very much, but I will look into installing another WM and see if that can solve the problem. (it might be that twm is too "stupid" to be able to handle other keyboards?)
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Thu Jan 07, 2010 10:31 pm

Do you use an xorg.conf or no?

In order to get a UK keyboard layout in X, I had to have my /etc/hal/fdi/policy/10-keymap.fdi like so:

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>

    <match key="info.capabilities" contains="input.keys">
      <merge key="input.xkb.rules" type="string">base</merge>

      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.xkb.model" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.xkb.model" type="string">evdev</merge>
      </match>

      <merge key="input.xkb.layout" type="string">gb</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>
Note the 'gb' line.

Or if using an xorg.conf and NOT using HAL (since HAL will take precedence)

Code: Select all

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option	    "XkbRules" "xorg"
	Option	    "XkbModel" "pc101"
	Option	    "XkbLayout" "gb"
EndSection
again, change 'gb' to 'se' (I think it's 'se')
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Thu Jan 07, 2010 11:03 pm

@cach0rr0:About half of you fdi file is redundant and IIRC adding an empty
XkbVariant tends to break things.
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Thu Jan 07, 2010 11:14 pm

VoidMage wrote:@cach0rr0:About half of you fdi file is redundant and IIRC adding an empty
XkbVariant tends to break things.
No clue, I just copied over one of the defauls, edited it, and well..things work now
The pipe character on a UK keyboard is to the left of the Z, and well, doing anything in a terminal without pipe was excruciating
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
undulat
n00b
n00b
Posts: 19
Joined: Sat Dec 19, 2009 1:59 pm

  • Quote

Post by undulat » Fri Jan 08, 2010 7:37 am

cach0rr0 wrote:Do you use an xorg.conf or no?

In order to get a UK keyboard layout in X, I had to have my /etc/hal/fdi/policy/10-keymap.fdi like so:

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>

    <match key="info.capabilities" contains="input.keys">
      <merge key="input.xkb.rules" type="string">base</merge>

      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.xkb.model" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.xkb.model" type="string">evdev</merge>
      </match>

      <merge key="input.xkb.layout" type="string">gb</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>
Note the 'gb' line.

Or if using an xorg.conf and NOT using HAL (since HAL will take precedence)

Code: Select all

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option	    "XkbRules" "xorg"
	Option	    "XkbModel" "pc101"
	Option	    "XkbLayout" "gb"
EndSection
again, change 'gb' to 'se' (I think it's 'se')

Well, to be honest,I have no idea if I'm using hal or not since I've tested a lot of things. Here is what I do know:

I have hal as a use flag, and hald is running. but removing /etc/X11/xorg.conf stops X from starting so I guess that file is used.
But adding your changes did not make any difference.
I should add that I've got 4 different files and I think they are all related to the keyboard

10-input-policy.fdi 10-keymap.fdi 10-x11-input.fdi 10-xinput-configuration.fdi

so I think I need some help cleaning up this mess. The first one seems to have nothing to do with keyboard but the last three all have the "se" string in them.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Desktop Environments”

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