Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Swedish Keyboard, X, irssi, etc..
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
dev-null-devil
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2003
Posts: 93

PostPosted: Mon May 12, 2003 2:13 pm    Post subject: Swedish Keyboard, X, irssi, etc.. Reply with quote

I dont have a clue how to fix this, this has never been any problem untli i installed gentoo, you see, åäö works, and all the other keys that normally works, but not the following. they are totally dead, or, how should i say, they wont respond (i've got a 106keys keyboard);

1. The key located on the right side of the "å"-key, and on top of the "*"-key.

2. The key between the "?+\"-button and "[backspace]"-button.

Those are the keys i really would like to use.. this is my currently X configuration for my keyboard:
Code:

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "XkbRules" "xfree86"
        Option      "XkbModel" "pc106"
        Option      "XkbLayout" "se"
EndSection

Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Mon May 12, 2003 6:07 pm    Post subject: Re: Swedish Keyboard, X, irssi, etc.. Reply with quote

dev-null-devil wrote:
Code:
        Option      "XkbModel" "pc106"

There is no XkbModel named "pc106" if you haven't created it yourself. Try "pc105" instead.
Back to top
View user's profile Send private message
dev-null-devil
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2003
Posts: 93

PostPosted: Mon May 12, 2003 7:12 pm    Post subject: Reply with quote

Nope, i changed that, and tried pc102, pc103, and pc104, but none of them works.. maybe another setting?
Back to top
View user's profile Send private message
bos_mindwarp
Apprentice
Apprentice


Joined: 19 Oct 2002
Posts: 275
Location: stockholm, sweden

PostPosted: Mon May 12, 2003 9:50 pm    Post subject: Reply with quote

I have the same problems, especially on my laptop. I got tired of BS advices and SUCKY xfree keymaps, so I emerged kde and activated kde-keyboard tool.

Keymaps have been working for me since xfree 3.x days, until 4.2.99 and later came around.
Back to top
View user's profile Send private message
dev-null-devil
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2003
Posts: 93

PostPosted: Tue May 13, 2003 5:53 am    Post subject: Hmm.. strange Reply with quote

Strange.. but i'm sure there is a solution to everything.. right? :cry:
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Tue May 13, 2003 6:52 am    Post subject: Reply with quote

I'm not sure what keys you are talking about, but you could try
Code:
    Option      "XkbVariant"  "nodeadkeys"

Also, there are keyboard layouts named "se_SE", "se_NO" and "se_FI".
Back to top
View user's profile Send private message
dev-null-devil
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2003
Posts: 93

PostPosted: Tue May 13, 2003 9:39 pm    Post subject: Reply with quote

Nodeadkeys was exactly what i needed. What does this option do technically?
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Wed May 14, 2003 6:44 am    Post subject: Reply with quote

dev-null-devil wrote:
Nodeadkeys was exactly what i needed. What does this option do technically?

It makes accents their own characters. Without it you can combine them with other characters, e.g. type <~> + <n> to get <ñ>. Then you need to type <~> + <space> to get just a tilde.
Back to top
View user's profile Send private message
jonashg
n00b
n00b


Joined: 19 May 2003
Posts: 6

PostPosted: Mon May 19, 2003 2:01 pm    Post subject: Reply with quote

I have the exact same problem with a swedish keyboard. nodeadkeys makes everything work except "tilde" (I just get a space). Does anybody know how to make tilde work?

/Jonas
Back to top
View user's profile Send private message
Nylle
Guru
Guru


Joined: 05 May 2002
Posts: 308
Location: Uppsala, Sweden

PostPosted: Mon May 19, 2003 4:19 pm    Post subject: Reply with quote

I don't think you need the "nodeadkeys" option. I'm using this in my XF86config:

Code:

Option "XkbRules"  "xfree86"
Option "XkbModel"  "pc105"
Option "XkbLayout" "se"


I have swedish characters working and can type tilde characters. I'm running xfree 4.3.

~Andreas~
Back to top
View user's profile Send private message
jonashg
n00b
n00b


Joined: 19 May 2003
Posts: 6

PostPosted: Tue May 20, 2003 7:36 am    Post subject: Reply with quote

That doesn't work for me :(
Can I have your entire XF86Config, I would like to diff yours and mine?

/Jonas
Back to top
View user's profile Send private message
Nylle
Guru
Guru


Joined: 05 May 2002
Posts: 308
Location: Uppsala, Sweden

PostPosted: Tue May 20, 2003 9:19 am    Post subject: Reply with quote

My XF86Config, darn long...

Code:

# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"

# This loads the DBE extension module.

    Load        "dbe"     # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the Type1 and FreeType font modules
    Load        "type1"
    Load        "freetype"

# This loads the GLX module
    Load       "glx"

EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath   "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
#
# If you don't have a floating point coprocessor and emacs, Mosaic or other
# programs take long to start up, try moving the Type1 and Speedo directory
# to the end of this list (or comment them out).
#

    FontPath   "/usr/share/fonts/monotype/TrueType"
    FontPath   "/usr/X11R6/lib/X11/fonts/TTF/"
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

# The module search path.  The default path is shown here.

#    ModulePath "/usr/X11R6/lib/modules"
    ModulePath "/opt/nvidia/modules"
    ModulePath "/usr/X11R6/lib/modules"


EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is
# received.  This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging

#    Option "NoTrapSignals"

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.

#    Option "DontZap"

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
# sequences.  This allows clients to receive these key events.

#    Option "Dont Zoom"

# Uncomment this to disable tuning with the xvidtune client. With
# it the client can still run and fetch card and monitor attributes,
# but it will not be allowed to change them. If it tries it will
# receive a protocol error.

#    Option "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client.

#    Option "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings.

#    Option "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

#    Option "AllowNonLocalModInDev"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

    Identifier   "Keyboard1"
    Driver   "Keyboard"
# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.

#    Option     "Protocol"      "Xqueue"

    Option "AutoRepeat" "500 30"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#    Option   "Xleds"      "1 2 3"

#    Option "LeftAlt"     "Meta"
#    Option "RightAlt"    "ModeShift"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#    Option "XkbModel"    "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#    Option "XkbModel"    "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#    Option "XkbLayout"   "de"
# or:
#    Option "XkbLayout"   "de"
#    Option "XkbVariant"  "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#    Option "XkbOptions"  "ctrl:swapcaps"

# These are the default XKB settings for XFree86
#    Option "XkbRules"    "xfree86"
#    Option "XkbModel"    "pc101"
#    Option "XkbLayout"   "us"
#    Option "XkbVariant"  ""
#    Option "XkbOptions"  ""

#    Option "XkbDisable"

    Option "XkbRules"   "xfree86"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"   "se"

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

    Identifier   "Mouse1"
    Driver   "mouse"
    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/input/mouse0"
    Option "ZAxisMapping"   "4 5"

# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

#    Option "Protocol"   "Xqueue"

# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.

#    Option "BaudRate"   "9600"
#    Option "SampleRate"   "150"

# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

#    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"

# ChordMiddle is an option for some 3-button Logitech mice

#    Option "ChordMiddle"

EndSection



# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"

    Identifier  "Mymonitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    HorizSync   31-96

#    HorizSync   30-64         # multisync
#    HorizSync   31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync   15-25, 30-50  # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    VertRefresh 50-150

EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

# Standard VGA Device:

Section "Device"
    Identifier   "Standard VGA"
    VendorName   "Unknown"
    BoardName   "Unknown"

# The chipset line is optional in most cases.  It can be used to override
# the driver's chipset detection, and should not normally be specified.

#    Chipset   "generic"

# The Driver line must be present.  When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module.  Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.

    Driver     "vga"
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for.  When this line isn't present, a device
# section can only match up with the primary video device.  For PCI
# devices a line like the following could be used.  This line should not
# normally be included unless there is more than one video device
# intalled.

#    BusID      "PCI:0:10:0"

#    VideoRam   256

#    Clocks   25.2 28.3

EndSection

# Device configured by xf86config:

Section "Device"
    Identifier  "GF3"
    Driver      "nvidia"
    #VideoRam    65536
    # Insert Clocks lines here if appropriate
EndSection


# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present.  Each describes
# the configuration of a single screen.  A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
    Identifier  "Screen 1"
    Device      "GF3"
    Monitor     "Mymonitor"
    DefaultDepth 16

    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

# Any number of ServerLayout sections may be present.  Each describes
# the way multiple screens are organised.  A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option.  In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"

# The Identifier line must be present
    Identifier  "Simple Layout"

# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens.  The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen.  In this example, screen 2 is located to the
# right of screen 1.

    Screen "Screen 1"

# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used.  Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".

    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection
Back to top
View user's profile Send private message
jonashg
n00b
n00b


Joined: 19 May 2003
Posts: 6

PostPosted: Tue May 20, 2003 10:07 am    Post subject: Reply with quote

Thanks,
I couldn't find any important diff. But I found out that using nodeadkeys and feeding
"xmodmap -" with the following line helps:

keycode 35 = dead_diaeresis asciicircum asciitilde dead_caron

/Jonas
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Thu May 22, 2003 12:54 am    Post subject: Reply with quote

This seems to be a bug in xfree. To fix it, replace
Code:
    key <AD12> {   [       diaeresis,     asciicircum        ]   };

with
Code:
    key <AD12> {   [       diaeresis,     asciicircum        ],
         [      asciitilde,           caron        ]   };

near the end of /usr/X11R6/lib/X11/xkb/symbols/se .
Back to top
View user's profile Send private message
jonashg
n00b
n00b


Joined: 19 May 2003
Posts: 6

PostPosted: Thu May 22, 2003 8:59 am    Post subject: Reply with quote

That works when using "nodeadkeys", thanks a lot!
Do you have any idea of how to make it work with dead keys also?

/Jonas
Back to top
View user's profile Send private message
Nylle
Guru
Guru


Joined: 05 May 2002
Posts: 308
Location: Uppsala, Sweden

PostPosted: Thu May 22, 2003 9:37 am    Post subject: Reply with quote

This is really odd, which version of xfree are you running? For me everything works correctly without using the "nodeadkeys" option, and I have a swedish keyboard.

//andreas
Back to top
View user's profile Send private message
jonashg
n00b
n00b


Joined: 19 May 2003
Posts: 6

PostPosted: Thu May 22, 2003 9:42 am    Post subject: Reply with quote

$ emerge -s xfree
Searching...
[ Results for search key : xfree ]
[ Applications found : 2 ]

* x11-base/xfree
Latest version available: 4.3.0-r2
Latest version installed: 4.3.0-r2
Size of downloaded files: 70,846 kB
Homepage: http://www.xfree.org
Description: Based on the gcc eclass

* x11-base/xfree-drm
Latest version available: 4.3.0
Latest version installed: [ Not Installed ]
Size of downloaded files: 196 kB
Homepage: http://www.xfree.org
Description: Xfree86 Kernel DRM modules

/Jonas
Back to top
View user's profile Send private message
Nylle
Guru
Guru


Joined: 05 May 2002
Posts: 308
Location: Uppsala, Sweden

PostPosted: Thu May 22, 2003 9:51 am    Post subject: Reply with quote

Exactly the same as mine. Very odd, I also had the problem with the dead tilde key, but that started working again when I started using the pc105 XkbModel.
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Thu May 22, 2003 11:54 am    Post subject: Reply with quote

jonashg wrote:
Do you have any idea of how to make it work with dead keys also?

Dead keys are not working without / with wrong locale. I do not know details, but I saw threads about it.
Back to top
View user's profile Send private message
Nylle
Guru
Guru


Joined: 05 May 2002
Posts: 308
Location: Uppsala, Sweden

PostPosted: Thu May 22, 2003 1:08 pm    Post subject: Reply with quote

Maybe thats the difference. What have you your locale settings to? I have LC_CTYPE=sv_SE, which gives me swedish characters in console. I don't think this should affect X, but on the other hand Gnome seems to decide which language to use based on the LANG variable.
Back to top
View user's profile Send private message
jonashg
n00b
n00b


Joined: 19 May 2003
Posts: 6

PostPosted: Thu May 22, 2003 3:38 pm    Post subject: Reply with quote

Yep, setting LC_CTYPE=sv_SE helps, even for xterm.
Thanks a lot guys!

/Jonas
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