Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No swedish kbd? bad xorg.conf? [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Wed Oct 26, 2005 5:52 pm    Post subject: No swedish kbd? bad xorg.conf? [solved] Reply with quote

My X won't give me a swedish layout on my bkd.. kinda anoying..

here's my xorg.conf

Code:
Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
   RgbPath      "/usr/lib/X11/rgb"
   ModulePath   "/usr/X11R6/lib/modules"
   FontPath     "/usr/share/fonts/misc/"
   FontPath     "/usr/share/fonts/TTF/"
   FontPath     "/usr/share/fonts/Type1/"
   FontPath     "/usr/share/fonts/CID/"
   FontPath     "/usr/share/fonts/75dpi/"
   FontPath     "/usr/share/fonts/100dpi/"
EndSection

Section "Module"
   Load  "record"
   Load  "extmod"
   Load  "dbe"
   Load  "dri"
   Load  "glx"
   Load  "xtrap"
   Load  "freetype"
   Load  "type1"
EndSection

Section "InputDevice"
   Identifier   "Keyboard0"
   Driver      "kbd"
EndSection

Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "PS/2"
   Option       "Device" "/dev/input/mouse0"
EndSection

Section "InputDevice"
   Identifier  "Keyboard1"
   Driver      "keyboard"
   Option       "XkbRules" "xorg"
   Option       "XkbModel" "pc104"
   Option       "XkbLayout" "se"
   Option      "AutoRepeat" "500 5"
EndSection

Section "Monitor"

   DisplaySize     360   270   # mm
   Identifier   "Monitor0"
   VendorName   "NOK"
   ModelName    "Nokia 446XS"
   HorizSync    31.5 - 79.0
   VertRefresh  50.0 - 150.0
   Option       "DPMS"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"               # [<bool>]
        #Option     "SWcursor"              # [<bool>]
        #Option     "ColorKey"              # <i>
        #Option     "CacheLines"            # <i>
        #Option     "Dac6Bit"               # [<bool>]
        #Option     "DRI"                   # [<bool>]
        #Option     "NoDDC"                 # [<bool>]
        #Option     "ShowCache"             # [<bool>]
        #Option     "XvMCSurfaces"          # <i>
        #Option     "PageFlip"              # [<bool>]
   Identifier  "Card0"
   Driver      "i810"
   VendorName  "Intel Corp."
   BoardName   "82815 CGC [Chipset Graphics Controller]"
   BusID       "PCI:0:2:0"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   SubSection "Display"
      Viewport   0 0
      Depth     1
      Modes      "1280x1024" "800x600"
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     4
      Modes      "1280x1024" "800x600"
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     8
      Modes      "1280x1024" "800x600"
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     15
      Modes      "1280x1024" "800x600"
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     16
      Modes      "1280x1024" "800x600"
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     24
      Modes      "1280x1024" "800x600"
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     32
      Modes      "1280x1024" "800x600"
   EndSubSection
EndSection

Section "DRI"
   Group        0
EndSection


For some reason I don't get swedish layout even though I have specified it... Help plz :)


Last edited by Sedrik on Wed Oct 26, 2005 6:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
linerminator
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2005
Posts: 78

PostPosted: Wed Oct 26, 2005 6:16 pm    Post subject: Reply with quote

try changing keyboard1 to keyboard0.
Back to top
View user's profile Send private message
ac_static
n00b
n00b


Joined: 11 Oct 2005
Posts: 45
Location: Ontario, Canada

PostPosted: Wed Oct 26, 2005 6:17 pm    Post subject: Re: Seriously bad xorg.conf... need some help.. Reply with quote

Sedrik wrote:
My X won't give me a swedish layout on my bkd.. kinda anoying..

here's my xorg.conf

Code:
Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection



From a quick look, you are specifying that to 'X' that "Keyboard0" will be your keyboard. No other keyboard is specified to 'ServerLayout', so it won't bother looking for more.

Sedrik wrote:
Code:
Section "InputDevice"
   Identifier   "Keyboard0"
   Driver      "kbd"
EndSection


No layout is specified for "Keyboard0", so, IIRC, it defaults to 'US'.

Sedrik wrote:
Code:
Section "InputDevice"
   Identifier  "Keyboard1"
   Driver      "keyboard"
   Option       "XkbRules" "xorg"
   Option       "XkbModel" "pc104"
   Option       "XkbLayout" "se"
   Option      "AutoRepeat" "500 5"
EndSection


This is, persumably, the keyboard you want to use.

I'd suggest changing the "ServerLayout" section to reference this one, or if you have more the one keyboard, add
Code:
InputDevice "Keyboard1" "SendCoreEvents"

for the other keyboard.


Last edited by ac_static on Wed Oct 26, 2005 6:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Wed Oct 26, 2005 6:17 pm    Post subject: Reply with quote

Opss ^^

why would xorgcfg do this to me? ^^

thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum