Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Oct 2018, 07:53
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
Why X.org isn't compiled with xkb support?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Wed 08 Feb 2006, 18:04    Post subject:  Why X.org isn't compiled with xkb support?  

Why do we need to get dirty with xmodmap? xkb has been a standard for years and comes with every distro, what is it about xkb that puppy (or Barry) doesn't like?
xkb will make things much simpler and would be a great improvement if added to puppy2.
Now, to write in hebrew I have to press the right Alt button... wtf? Confused
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 8702
Location: Perth, Western Australia

PostPosted: Thu 09 Feb 2006, 18:40    Post subject:  

Xorg is not compiled by us, it was just pulled out of Vector 5.0STD.
I left out /etc/X11/xkbd/, thinking to save space.
...um, actually, I think I downloaded the Slackware 10.1 binary packages,
the same as used in Vector 5.0/5.1STD.

There's an awful lot of stuff in /etc/X11/xkbd/, and we could bring it into
Puppy, but we could sift through, just bring in what is necessary.
...that's the hard part, figuring out what is not necessary.
Back to top
View user's profile Send private message Visit poster's website 
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Thu 09 Feb 2006, 20:53    Post subject:  

I've added Xkb on my machine, it's damn great! I can switch languages the right way for the first time on Puppy! I have to say that my Puppy experience has just got one level up...

I'm not sure how much the files I moved weigh, but i think it's more than 3MB... that's pretty big... I'll look into a .pup later...
Back to top
View user's profile Send private message Visit poster's website 
pakt


Joined: 04 Jun 2005
Posts: 1156
Location: Sweden

PostPosted: Fri 10 Feb 2006, 09:23    Post subject:  

lior2b wrote:
I've added Xkb on my machine, it's damn great! I can switch languages the right way for the first time on Puppy! I have to say that my Puppy experience has just got one level up...

I'm not sure how much the files I moved weigh, but i think it's more than 3MB... that's pretty big... I'll look into a .pup later...

I am one of the Puppy users with an international (Swedish) keyboard. I figured out some time ago that Xmodmap is really meant to be used for modifying single keys. Unfortunately I haven't understood until now that Xkb should be used instead for configuring international keyboards.

I find the Xorg system rather overwhelming and difficult to understand, so it would be great if you could either make an Xkb package for Puppy or explain in a short "howto" how to install Xkb.

Paul
Back to top
View user's profile Send private message 
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Fri 10 Feb 2006, 10:37    Post subject:  

Xkb is such a relief... I'll guide you how to get it working, if anyone is kind enough to turn it into a dotpup and/or add it to LanguageSupport in the wiki, it will be great!

Basically, I took some files out of Ubuntu and copied them into Puppy, than changed the X.org configuration and it worked like a charm Smile

Instructions:
1) Download xkb.tar.gz (attached) to your home directory (or any other directory, just remember where).
2) In rxvt (console), after changing to the above directory type:
Code:

tar -xzf xkb.tar.gz && cd xkb/ && cp X11/ /etc/ -r && cp lib/xkb/ /usr/X11R6/lib/X11/ -r && cp bin/* /usr/bin/

3) ~/.Xmodmap (if you have one) isn't needed anymore:
Code:

mv ~/.Xmodmap ~/.Xmodmap.bak

4) Backup your old xorg.conf, open up Beaver, and change your keyboard configuration:
Code:

cd /etc/X11/ && cp xorg.conf xorg.conf.backup && beaver xorg.conf

These are mine, they configure alt+shift to change mode (like in windows) and light up the scroll lock led while using the second mode:
(don't forget to change "il" to your language code)
Code:

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
   Option "XkbRules"   "xorg"
   Option "XkbModel"   "pc105"
   Option "XkbLayout"   "us,il" ### CHANGE il TO YOUR LANGUAGE CODE ###
   Option "XkbOptions"   "grp:alt_shift_toggle,grp_led:scroll,caps:shift,altwin:menu"
EndSection

Anyway, you can find lots of tutorials on the net on xorg.conf+xkb...
5) Restart X (alt+ctrl+backspace)

Arrow That's it!
Back to top
View user's profile Send private message Visit poster's website 
pakt


Joined: 04 Jun 2005
Posts: 1156
Location: Sweden

PostPosted: Sat 11 Feb 2006, 14:40    Post subject:  

Thanks lior2b, your instructions were clear and easy to follow. The only problem I had was when I chose "sv" for my layout because it didn't work. Looking through the xkb files, I found /etc/X11/xkb/rules/xorg.lst which lists the allowed keyboard layout codes. For Swedish it is "se" not "sv". Now my Swedish keyboard works perfectly in Puppy 1.0.7!

Here is what I put in /etc/X11/xorg.conf

Code:

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
   Option      "XkbRules"   "xorg"
   Option      "XkbModel"   "pc105"
   Option      "XkbLayout"  "se"
   # The two options below will configure alt+shift to toggle between "us" & "se" layouts
   # with the scroll lock LED turned on when the second layout is active (info from lior2b)
   #Option      "XkbLayout"  "us,se"  # for example, a US and a Swedish keyboard
   #Option      "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll,caps:shift,altwin:menu"
EndSection

I don't need to shift between US & Swedish layouts, but I left the commented-out options in as a reminder.

As you say, Xkb makes Xmodmap unnecessary and it should be reserved for use in e.g. swapping two keys.

I highly recommend other Puppy users with international keyboards to use Xkb instead of Xmodmap to map the keys correctly.

Thanks again for your help. I will be using Xkb from now on.

Paul
Back to top
View user's profile Send private message 
eMeRy


Joined: 22 Jan 2006
Posts: 86
Location: Hungary,Europe

PostPosted: Tue 14 Feb 2006, 18:41    Post subject: A feedback from another user  

The instruction that lior2b gave us works fine me too.
Though with xvesa I haven't got any problem, with xorg I couldn't find solution to fix the Hungarian keyboard layout so far. After I installed xkb the way as it is written above my keyboard issue solved. Thanks lior2b.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0621s ][ Queries: 12 (0.0247s) ][ GZIP on ]