LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Two More Crazy 12.2 Problems (https://www.linuxquestions.org/questions/slackware-14/two-more-crazy-12-2-problems-691118/)

newtodebian 12-19-2008 10:43 PM

I've searched high and low, but I'm not too experienced with configuring xorg by hand. But, I only have one issue with Slackware and that's the keyboard. I'm using a laptop of course, a Toshiba Satellite P105-S6187. The issue I have is that although the keymapping is correct, the functions on my numeric keypad only function as numbers regardless if NumLock is on or off. But, some of the numbers have double functions. 7 is supposed to double as HOME, 9 as PageUp, 3 as PageDown, 1 as END. So, when NumLock is off the 1 is supposed to function as END and 7 as HOME. Instead, they only function as numbers regardless. Here is my keyboard section from xorg.conf.

Quote:

Section "InputDevice"

Identifier "Keyboard1"
Driver "kbd"

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" "pc105"
# 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 Xorg
# Option "XkbRules" "xorg"
# Option "XkbModel" "pc105"
# Option "XkbLayout" "us"
# Option "XkbVariant" ""
# Option "XkbOptions" ""

# Option "XkbDisable"

Option "XkbRules" "xorg"
Option "XkbModel" "microsoft"
Option "XkbLayout" "us"
Option "XkbVariant" "us"

EndSection



Drakeo 12-19-2008 11:17 PM

if it was the num lock code then there was still a active file in the /tmp/ this has been a big issue with me running the gnome and kde together on 12.1. for some reason the start up scrpts were not removing the old session in tmp drove me nuts took me a while to figure this out. and as you know there was some bizarre things that were in my logs. radio the esd stuff if you really want some good trouble shooting put the gnome with the kde in slakware and have fun with a seahorse . I am glad you got it.
thats what it is all about.

newtodebian 12-20-2008 09:12 AM

Solved! Here's the new code for my Xorg that fixes the numerical keypad issue, and apparently even my VT Switching now works too. I had a problem where, no matter what runlevel I booted into, the second I started X I lost VT Switching. But now, it works, and all I had to do was comment out THIS line.

Before:
Quote:

Section "InputDevice"

Identifier "Keyboard1"
Driver "kbd"

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" "pc105"
# 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 Xorg
# Option "XkbRules" "xorg"
# Option "XkbModel" "pc105"
# Option "XkbLayout" "us"
# Option "XkbVariant" ""
# Option "XkbOptions" ""

# Option "XkbDisable"

Option "XkbRules" "xorg"
Option "XkbModel" "microsoft"
Option "XkbLayout" "us"
Option "XkbVariant" "us"

EndSection


After:
Quote:

Section "InputDevice"

Identifier "Keyboard1"
Driver "kbd"

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" "pc105"
# 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 Xorg
# Option "XkbRules" "xorg"
# Option "XkbModel" "pc105"
# Option "XkbLayout" "us"
# Option "XkbVariant" ""
# Option "XkbOptions" ""

# Option "XkbDisable"

Option "XkbRules" "xorg"
Option "XkbModel" "microsoft"
Option "XkbLayout" "us"
# Option "XkbVariant" "us"

EndSection

And that fixed the issue.

shadowsnipes 12-20-2008 12:27 PM

Quote:

Originally Posted by Woodsman (Post 3380772)
Mystery Solved But No Solution

(EE) Error compiling keymap (server-0)
(EE) XKB: Couldn't compile keymap


[...]

I ran across a blurb that using NumLockX in KDE was unnecessary because the KDE code essentially was the NumLockX code.

The NumLockX homepage says this on them main page.
Quote:

Originally Posted by http://ktown.kde.org/~seli/numlockx/
Note that KDE and many distributions already use NumLockX (or its older version), so you most probably don't need to care.

Quote:

Originally Posted by Woodsman (Post 3380772)
The only method that seems to eliminate the error messages was not using Num Lock in any manner.

[...]

There is no solution to eliminate the error messages if a user wants to use Num Lock in KDE.

Well, mystery solved although there is no cure.

How about just pushing the numlock button when you want to use it? I grep'd my logs and have never seen your errors, but my numlock is not on by default.

Either that, or you can just ignore the errors as I mentioned earlier since they are apparently just useless noise in this case.

Woodsman 12-20-2008 01:33 PM

Quote:

How about just pushing the numlock button when you want to use it? I grep'd my logs and have never seen your errors, but my numlock is not on by default.
Yes, that would be one solution. :)

As I mentioned, the errors do not appear if in KDE Num Lock is set to Off or Leave unchanged. For people who do not use Num Lock they never will see the errors.

Quote:

Either that, or you can just ignore the errors as I mentioned earlier since they are apparently just useless noise in this case.
That was implied in my final statement. ;)

Still is sloppy programming, however. :)

garyg007 12-20-2008 07:42 PM

For what its worth, With 12.1 installed numlockx running from /.kde/autostart, worked quit well every time; Since installing 12.2, I thought it did not work, until I found and read this thread; Then I realized that even though the light was not on, numlock was enabled


All times are GMT -5. The time now is 08:56 PM.