LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-04-2004, 10:21 PM   #1
xyn
LQ Newbie
 
Registered: Sep 2004
Location: Perth, Australia
Distribution: Slackware
Posts: 12

Rep: Reputation: 0
Keyboard issues with Gnome.


I have a minor gripe with my Gnome configuration, in which my 'Home', 'End', 'Page Up' and 'Page Down' keys do not work at all.

They work fine in XFCE4 and at the console.

Running 'setxkbmap' fixes it, so I could put that line into a file that is executed after Gnome starts up, but I'd prefer to find a true fix.

I am not running a 'special' keyboard, it's some Compaq 102-key keyboard, and, as I said, it works fine in everything else.

Suggestions welcome.
 
Old 10-05-2004, 03:43 AM   #2
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
Hy, xyn.

Here's the keyboard section for my xorg.conf file. I might be wrong, but this problem sounds like this section on your computer needs to be tweaked. The stuff below works well for a Microsoft Natural keyboard.

Code:
# **********************************************************************
# 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"	"microsoft"
    Option "XkbLayout"	"us"

EndSection
Let me know if this helps.

--Dane
 
Old 10-06-2004, 04:08 AM   #3
xyn
LQ Newbie
 
Registered: Sep 2004
Location: Perth, Australia
Distribution: Slackware
Posts: 12

Original Poster
Rep: Reputation: 0
Hi Dane,

As I mentioned before, I don't think X is the problem. Every other WM/DE works fine, except Gnome...

I have tried a number of different settings for the keyboard in my xorg.conf, with no change.


Cheers.
 
Old 10-07-2004, 03:47 AM   #4
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
That makes sense

It seems to me like the solution lies with xkeyboardmap. Since most configuration tools are basically glorified frontends for BASH, sed and AWK, I suspect that all xkeyboardmap is doing is writing to a configuration file somewhere that's being overwritten everytime you log out or in. Assuming that's the case, all you need to do is figure out what file(s) that program is editing and write a script that will put things back to the way you want them when you log in again. It's also pretty likely that if the configuration file's being overwritten a lot that there's a note in that file saying what script is doing it. Also, you could try some of the other keyboard tools in Gnome. (I'd be more specific but my internet connection is on the fritz in Linux so I'm currently booted into Windows XP.)

If you can't figure it out using some more conventional methods, you can try this:

1) Load up Gnome and WITHOUT running xkeyboardmap and type into a console:
Code:
cd /
su -c "ls -lR > /tmp/sysdir.txt"
<type your root password>
2) Run xkeyboardmap and set everything to how you like it. Play with the buttons a bit to make sure that they work. Now type:
Code:
cd /
su -c "ls -lR > /tmp/newsysdir.txt"
<type your root password>
diff /tmp/sysdir.txt /tmp/newsysdir.txt
3) Compare the "diff" results. Anything with a "<" at the beginning of the line is a line from your system directory before you ran xkeyboardmap. Anything with a ">" at the beginning of the line is a line from your system directory after you ran xkeyboardmap. Look for differences in filesizes and/or any new files that were created presumably by xkeyboardmap. Check the files for things relating to your keyboard and chances are you'll find a winner! You can delete the files you just created in /tmp when you're done with them.

Sorry I couldn't be of more help (hopefully I'll get my modem working right in Linux soon...). Good luck!

--Dane

Last edited by DaneM; 10-07-2004 at 03:49 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
keyboard issues... c_olin3404 Slackware 16 07-23-2005 04:20 PM
Mouse and keyboard issues mrossm Mandriva 7 03-22-2005 02:16 PM
USB Keyboard Issues Nebetsu Linux - Hardware 2 03-07-2005 07:55 PM
Keyboard issues RockmanExe Slackware 5 12-07-2004 07:47 PM
Keyboard Issues TPupAZ Linux - Hardware 1 09-30-2004 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration