| Author |
Message |
Llama
Joined: 26 Jun 2012 Posts: 8
|
Posted: Tue 26 Jun 2012, 12:18 Post subject:
[SOLVED] Keyboard layout switch (dynamic, in live mode) Subject description: Keyboard layout switch while running as Live, resident in RAM |
|
Hi,
I've been trying to use Slacko 5.3.3 as a 'long term' rescue system. By this I mean that my main system (Arch), installed on HD, is currently inoperable (kernel panics of persistent kind).
Puppy from livecd, running in RAM, looks like an almost perfect 'life support system'. I can even chroot into the main system and make upgrades in the hope of bugfixes .
My only real trouble is inability to switch keyboard layouts on demand. Researching the problem I found just a mention of setxkbmap without any in-depth look. I've tried
got Russian characters in the Seamonkey's search field indeed, while urxvt just stopped taking any input, cutting any possibility to switch back to English. Close, but no cigar.
What am I doing wrong?
Last edited by Llama on Thu 28 Jun 2012, 09:51; edited 1 time in total
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3687 Location: Charleston S.C. USA
|
Posted: Tue 26 Jun 2012, 14:11 Post subject:
|
|
Have you tried to use
menu->Setup->Mouse/keyboard Wizard?
One thing about changes made here.
Running from a live CD with no save file.
The settings will work as long as you run Puppy, but if you do not make a save file the settings will be lost on reboot with the disk..
If you burn the live Puppy CD as a multi-session disk, you can save to the disk, and retain any changes you make to Puppy.
When you shutdown you will get option to save to disk.
_________________ I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
|
|
Back to top
|
|
 |
Llama
Joined: 26 Jun 2012 Posts: 8
|
Posted: Tue 26 Jun 2012, 14:35 Post subject:
|
|
| bigpup wrote: | Have you tried to use
menu->Setup->Mouse/keyboard Wizard?
|
I've tried it, of course. It is not dynamic enough. I'd like something short of reconfiguration. While you can live comfortably in an English-only environment, you just cannot function in any other language setting without a quick switch back and forth between English and your alternative language. That's what I mean by 'dynamic'.
UPD:
Oh, I'm sorry! There are Layout Variants in XKB Configuration Manager. I've been able to add the desired ru:Winkeys, but there are too many of them. I want just us:international, ru:Winkeys and some means to switch between them, preferably a shortcut.
UPD:
But I can select the desired list of layouts! I've got now just us:international and ru:Winkeys. The last question, how can I switch between them? There are Options; especially tempting is CapsLock key behavior, but is there an option for layout switching?
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3687 Location: Charleston S.C. USA
|
Posted: Tue 26 Jun 2012, 15:53 Post subject:
|
|
| Quote: | | But I can select the desired list of layouts! I've got now just us:international and ru:Winkeys. The last question, how can I switch between them? There are Options; especially tempting is CapsLock key behavior, but is there an option for layout switching? |
In Mouse/keyboard Wizard
Select advanced Xorg keyboard configuration
Select Options Tab
Select group shift/lock behavior
See if a selection here will give you what you want.
_________________ I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
|
|
Back to top
|
|
 |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Tue 26 Jun 2012, 17:48 Post subject:
|
|
Maybe this will help http://www.murga-linux.com/puppy/viewtopic.php?p=636855#636855
_________________
- I don't know why laboratories are named a hospitals.
- The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.
|
|
Back to top
|
|
 |
Peterm321
Joined: 29 Jan 2009 Posts: 196
|
Posted: Tue 26 Jun 2012, 18:24 Post subject:
|
|
| Lama wrote: |
I've tried it, of course. It is not dynamic enough. I'd like something short of reconfiguration. While you can live comfortably in an English-only environment, you just cannot function in any other language setting without a quick switch back and forth between English and your alternative language. That's what I mean by 'dynamic'.
|
While I suspect that others in this forum would know a way of configuring ROX or JWM to assign a command to a function key, at least in the interim I would create a couple of icons on the desktop to run setxkbmap with parameters to switch to Russian and back to English.
In the example attachment Russian is assigned to CTRL+F2, English to CTRL+F3.
[img]http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=56818[/img]
| Description |
|
| Filesize |
134.16 KB |
| Viewed |
105 Time(s) |

|
|
|
Back to top
|
|
 |
Llama
Joined: 26 Jun 2012 Posts: 8
|
Posted: Tue 26 Jun 2012, 23:26 Post subject:
|
|
| bigpup wrote: |
In Mouse/keyboard Wizard
Select advanced Xorg keyboard configuration
Select Options Tab
Select group shift/lock behavior
See if a selection here will give you what you want. |
grp:caps_toggle CapsLock key changes group successfully selected in group shift/lock behavior.
In CapsLock key behavior selected none.
No effect unfortunately, CapsLock shows default behavior.
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3687 Location: Charleston S.C. USA
|
Posted: Tue 26 Jun 2012, 23:58 Post subject:
|
|
You did reboot after making this change?
_________________ I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
|
|
Back to top
|
|
 |
Llama
Joined: 26 Jun 2012 Posts: 8
|
Posted: Wed 27 Jun 2012, 12:26 Post subject:
|
|
| bigpup wrote: | | You did reboot after making this change? |
Why should I? Xkb doesn´t require reboot to take effect. Besides, I´ll have to save my system state, just as you´ve told me.
So I have to try saving state first?
|
|
Back to top
|
|
 |
Llama
Joined: 26 Jun 2012 Posts: 8
|
Posted: Wed 27 Jun 2012, 13:43 Post subject:
|
|
| Llama wrote: | | So I have to try saving state first? |
Well, it did start to behave after save state and reboot. Not in urxvt, though, but nobody ever promised me that. Or did he ?
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3687 Location: Charleston S.C. USA
|
Posted: Wed 27 Jun 2012, 16:01 Post subject:
|
|
| Llama wrote: | | bigpup wrote: | | You did reboot after making this change? |
Why should I? Xkb doesn´t require reboot to take effect. Besides, I´ll have to save my system state, just as you´ve told me.
So I have to try saving state first? |
The reboot makes sure any changes to the X server config files are being used. Xkb config probably needs to be updated to state this. This program has been in Puppy for very long time and things have changed from when program was made.
It makes changes to the X server config files, but those files have already been run.
A lot of Puppy versions have in the menu->shutdown a restart X server.
This or reboot reruns the config files for X server.
| Quote: | | Well, it did start to behave after save state and reboot. Not in urxvt |
Does it work if you do the change before running urxvt?
_________________ I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
|
|
Back to top
|
|
 |
Llama
Joined: 26 Jun 2012 Posts: 8
|
Posted: Wed 27 Jun 2012, 22:16 Post subject:
|
|
| bigpup wrote: |
Does it work if you do the change before running urxvt? |
No, it does not.
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3687 Location: Charleston S.C. USA
|
Posted: Wed 27 Jun 2012, 23:10 Post subject:
|
|
Something here may help.
http://www.murga-linux.com/puppy/viewtopic.php?t=57014
_________________ I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
|
|
Back to top
|
|
 |
Burunduk
Joined: 21 Aug 2011 Posts: 52
|
Posted: Thu 28 Jun 2012, 02:18 Post subject:
|
|
| Llama wrote: | | Well, it did start to behave after save state and reboot. Not in urxvt, though, ... |
The system's locale is en_US by default. It should be changed to either en_US.UTF-8 or ru_RU.UTF-8.
To do so open Menu -> Desktop -> Countrywizard and set the UTF-8 encoding checkbox. (It will require to restart the X server.)
By the way, it should be enough just to click the Yes button in the XKB Configuration Manager to apply the changes you've made there.
|
|
Back to top
|
|
 |
Llama
Joined: 26 Jun 2012 Posts: 8
|
Posted: Thu 28 Jun 2012, 09:48 Post subject:
|
|
Thanks to all! Burunduk, yours is the nice final touch!
|
|
Back to top
|
|
 |
|