• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Probleme mit X und der Taste AL

duddits

Member
Hi,

ich habe unter Gentoo einseltsammes Problem mit KDE 3.5.5 und X.
Wenn X nicht gestartet ist oder ich mich ueber SSH verbinde, funktionieren die deutschen Sondertasten und vorallem die Taste ALT bzw. ALT GR.
Doch sobalb X gestartet wird funktioniert diese nicht mehr.
Zuvor hatte ich Gnome drauf bei dem ich auch genau das gleiche Verhalten beobachten konnte.
Es kann eigentlich nur an der X Konfiguration liegen, allerdings weiss ich keinen Anhaltspunkt, da meine Kenntnisse zu X gegen Null gehen.

Dennoch habe ich hier mal meine X-Konfigurationsdatei:
Code:
Section "ServerLayout"
	Identifier	"X.Org Configured"
	Screen	0	"Screen0" 0 0
	InputDevice	"Keyboard0" "CoreKeyboard"
	InputDevice	"PS/2 Mouse" "AlwaysCore"
# Serial Mouse not detected
	InputDevice	"USB Mouse" "AlwaysCore"
	InputDevice	"Synaptics" "AlwaysCore"
EndSection

Section "ServerFlags"
	Option	"AllowMouseOpenFail" "true"
	
EndSection

Section "Files"
	FontPath	"/usr/share/fonts/util"
	FontPath	"/usr/share/fonts/encodings"
	FontPath	"/usr/share/fonts/misc"
	FontPath	"/usr/share/fonts/local"
	FontPath	"/usr/share/fonts/terminus"
	FontPath	"/usr/share/fonts/corefonts"
	FontPath	"/usr/local/share/fonts"
	FontPath	"/usr/share/fonts/default"
	FontPath	"/usr/share/fonts/TTF"
	FontPath	"/usr/share/fonts/type1"
	FontPath	"/usr/share/fonts/100dpi"
	FontPath	"/usr/share/fonts/75dpi"
	FontPath	"/usr/share/fonts/arphicfonts"
	FontPath	"/usr/share/fonts/jisx0213"
	FontPath	"/usr/share/fonts/shinonome"
	FontPath	"/usr/share/fonts/baekmuk-fonts"
	FontPath	"/usr/share/fonts/kacst-fonts"
	FontPath	"/usr/share/fonts/sgi-fonts"
	FontPath	"/usr/share/fonts/unfonts"
	FontPath	"/usr/share/fonts/default/ghostscript"
	FontPath	"/usr/share/fonts/xfonts-cronyx-100dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-75dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-misc:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-100dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-75dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-misc"
	FontPath	"/usr/share/fonts/xfonts-cronyx-cp1251-100dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-cp1251-75dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-cp1251-misc:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-cp1251-100dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-cp1251-75dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-cp1251-misc"
	FontPath	"/usr/share/fonts/xfonts-cronyx-isocyr-100dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-isocyr-75dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-isocyr-misc:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-isocyr-100dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-isocyr-75dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-isocyr-misc"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8r-100dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8r-75dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8r-misc:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8r-100dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8r-75dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8r-misc"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8u-100dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8u-75dpi:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8u-misc:unscaled"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8u-100dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8u-75dpi"
	FontPath	"/usr/share/fonts/xfonts-cronyx-koi8u-misc"
EndSection

Section "Module"
	Load	"ddc"
	Load	"vbe"
	Load	"GLcore"
	Load	"dbe"
	Load	"dri"
	Load	"extmod"
	Load	"glx"
	Load	"bitmap"
	Load	"type1"
	Load	"freetype"
	Load	"record"
EndSection

Section "InputDevice"
	Identifier	"Keyboard0"
	Driver	"kbd"
	Option	"CoreKeyboard"
	Option	"XkbRules" "xorg"
        Option  "XkbLayout" "de"
	Option	"XkbModel" "pc104"
	Option	"XkbOptions" "grp:toggle,grp_led:scroll"
	Option	"XkbVariant" "winkeys"
EndSection

Section "InputDevice"
	Identifier	"Serial Mouse"
	Driver	"mouse"
	Option	"Protocol" "Microsoft"
	Option	"Device" "/dev/ttyS0"
	Option	"Emulate3Buttons" "true"
	Option	"Emulate3Timeout" "70"
	Option	"SendCoreEvents"  "true"
EndSection

Section "InputDevice"
	Identifier	"PS/2 Mouse"
	Driver	"mouse"
	Option	"Protocol" "IMPS/2"
	Option	"Device" "/dev/misc/psaux"
	Option	"Emulate3Buttons" "true"
	Option	"Emulate3Timeout" "70"
	Option	"SendCoreEvents"  "true"
	Option	"ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
	Identifier	"USB Mouse"
	Driver	"mouse"
	Option	"Device" "/dev/input/mice"
	Option	"SendCoreEvents" "true"
	Option	"Protocol" "IMPS/2"
	Option	"ZAxisMapping" "4 5"
	Option	"Buttons" "5"
EndSection

Section "InputDevice"
	Identifier	"Synaptics"
	Driver	"synaptics"
	Option	"Protocol" "event"
	Option	"Device" "/dev/input/event1"
	Option	"LeftEdge" "1900"
	Option	"RightEdge" "5400"
	Option	"TopEdge" "1900"
	Option	"BottomEdge" "4000"
	Option	"FingerLow" "25"
	Option	"FingerHigh" "30"
	Option	"MaxTapTime" "180"
	Option	"MaxTapMove" "220"
	Option	"VertScrollDelta" "100"
	Option	"MinSpeed" "0.02"
	Option	"MaxSpeed" "0.10"
	Option	"AccelFactor" "0.0010"
	Option	"SHMConfig" "on"
EndSection

# Auto-generated by mkxf86config

Section "Monitor"
	Identifier   "Monitor0"
	HorizSync    28.0 - 96.0
	VertRefresh  50.0 - 75.0
EndSection

Section "Device"
	### Available Driver options are:-
	# sw_cursor is needed for some ati and radeon cards
Option "sw_cursor"
	#Option     "hw_cursor"
	#Option     "NoAccel"
	#Option     "ShowCache"
	#Option     "ShadowFB"
	#Option     "UseFBDev"
	#Option     "Rotate"
	Identifier  "Card0"
	# The following line is auto-generated by x11-misc/mkxf86config
	Driver      "radeon"
	VendorName  "All"
	BoardName   "All"
#	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier	"Screen0"
	Device	"Card0"
	Monitor	"Monitor0"
	DefaultColorDepth 24
	SubSection "Display"
		Depth	1
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	4
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	8
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	15
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	16
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	24
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	32
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection

Ich hoffe ihr koennt mir da weiter helfen. Letzendlich sollte ja nur die Keyboard-Sektion interessant sein.

mfg duddits
 

Bibaltik

Member
Versuche es mal so

Code:
Section "InputDevice"
   Identifier   "Keyboard0"
   Driver   "kbd"
   Option   "CoreKeyboard"
   Option   "XkbRules" "xorg"
        Option  "XkbLayout" "de"
   Option   "XkbModel" "pc105"
 #Option   "XkbOptions" "grp:toggle,grp_led:scroll"
   Option   "XkbVariant" "winkeys"
EndSection
 

Bibaltik

Member
Also mit dieser minimal Konfiguration sollte es laufen:

Code:
Section "InputDevice"
Identifier  "Keyboard0"
Driver      "kbd"
Option     "XkbModel" "pc105"
Option     "XkbLayout" "de"
Option     "XkbVariant"  "winkeys"
EndSection

Quelle: Alt-key don't work
 
OP
duddits

duddits

Member
Hi,

vielen dank für deinen Einsatz allerdings hat dein Hinweis sowie die Quelle mir nicht weiterhelfen können.

Vll. hilft es aber zu Wissen, das ich Notebook verwende genauer ein Inspiron 1501, evtl. ist da ja ein Zusammenhang mit meinem Problem zu finden.

Ich habe hier auch mal meine locale wobei ich nicht viel damit anfangen kann:
Code:
 ~ # locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=de_DE.utf8
LC_CTYPE="de_DE.utf8"
LC_NUMERIC="de_DE.utf8"
LC_TIME="de_DE.utf8"
LC_COLLATE="de_DE.utf8"
LC_MONETARY="de_DE.utf8"
LC_MESSAGES="de_DE.utf8"
LC_PAPER="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_ADDRESS="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_IDENTIFICATION="de_DE.utf8"
LC_ALL=de_DE.utf8

Meiner Meinungn nach sehen die ganz normal aus.

Nachtrag:
Es scheint so das die Taste schon funktioniert sofern ich z.B. mit ALT+F4 ein Programm beende oder mit ALT+F2 die KDE-Ausführen-Maske aufrufe.

Allerdings sobald ich sowas wie Strg+Alt+F1 versuche versagt die Taste genauso ist es mit den Sonderzeichen wie | oder % usw.

Achso kann es sein das ich den falschen locale geladen habe wenn ich genaus den deutschen Zeichensatz verwenden will?


mfg duddits :?
 
OP
duddits

duddits

Member
Hi,

erstmal sorry für den Doppelpost aber kann es sein, das der Fehler vll. garnicht an einer Fehlkonfiguration liegt, sondern, daran das ich vll. den Falsche Keymap für meine Tastatur verwende?

mfg duddits
 
OP
duddits

duddits

Member
Hi,

wie kann ich das feststellen, denn mir erscheint es nicht so.

Was noch seltsamer ist, das Zeichen wie "|" oder "}","]","[","{" auch nicht ohne X funktionieren. Wenn ich mich aber mit SSH verbinde funktioniert alles super :?
Das einzige was im TExtmodus funktioniert ist das wechseln zu den verschiedenen VTY also den verschiedenen Terminals, sobald KDE läuft es es mit STRG+ALT+F1 oder so nicht mehr möglich.
Ich verstehe es irgendwie nicht :roll:

Evtl. spielt auch das hier eine Rolle:
Code:
rsecurity ~ # cat /etc/conf.d/keymaps
# /etc/conf.d/keymaps

# Use KEYMAP to specify the default console keymap.  There is a complete tree
# of keymaps in /usr/share/keymaps to choose from.

KEYMAP="de"


# Should we first load the 'windowkeys' console keymap?  Most x86 users will
# say "yes" here.  Note that non-x86 users should leave it as "no".

SET_WINDOWKEYS="no"


# The maps to load for extended keyboards.  Most users will leave this as is.

#EXTENDED_KEYMAPS=""
EXTENDED_KEYMAPS="backspace keypad euro"


# Tell dumpkeys(1) to interpret character action codes to be
# from the specified character set.
# This only matters if you set UNICODE="yes" in /etc/rc.conf.
# For a list of valid sets, run `dumpkeys --help`

DUMPKEYS_CHARSET=""

Trozallem schonmal vielen dank.

mfg duddits
 
OP
duddits

duddits

Member
Hi,

also das Problem ist mittlerweile fast gänzlich behoben.
Einziges Problem ist das die Deutschen-Sondertasten wie ß,Ä,Ö und Ü nicht funktionieren.
Aber nur unter X bzw. KDE. Ich habe schon im Kontrolzentrum nachgesehen aber nichts sinnvolles finden können.

Der Grund wieso der Rest nicht funktionierte lag an einer falschen Keymap in /etc/rc.conf und /etc/conf.d/keymaps
nun habe ich KEYMAP="de-latin1-nodeadkeys" und es funktioniert.

Doch nun ist nur noch das Deutsche-Sonderzeichen-Problem zu beheben.

Nachtrag:
Also es liegt definitiv an KDE. Denn unter X bei KDM funktionieren die deutschen Sonderzeichen aber sobald ich mich anmelde und KDE gestartet ist, geben diese ihre Funktion auf.
Jetzt stellt sich mir die Frage wo ich solch eine Änderung machen kann das auch die dort funktionieren?

mfg duddits
 
Oben