Page 1 of 1

Keyboard layout variant resets after reboot [work-arounded]

Posted: Fri 20 Mar 2015, 12:42
by dustedwax
This problem occurs in all Puppy distros I've tried.

Description:
1. I got fresh Puppy frugal installation (in this case Tahr 6.0)
2. Open XKB Configuration Manager
3. Add Bulgarian layout (it adds Bulgarian BDS layout variant as default)
4. Change layout variant to phonetic (instead of default BDS)
5. Setup alt+shift keyboard shortcut to switch groups
6. Everything works perfectly
7. Shutdown, saving to a pup-save file.

After the system boots I got again Bulgarian BDS layout variant instead of Bulgarian phonetic I picked and saved last time.

Work-around:
After system boots, I go to XKB Configuration Manager and hit the layout variants button (it says the current layout variant is "phonetic bg: Phonetic", but actually it's the default Bulgarian BDS). I remove the phonetic layout variant, then add it again and everything runs properly.

keyboard layout variant

Posted: Fri 20 Mar 2015, 17:07
by L18L
Maybe this might help you: Keyboard issues and solutions ?

Re: keyboard layout variant

Posted: Fri 20 Mar 2015, 22:37
by dustedwax
L18L wrote:Maybe this might help you: Keyboard issues and solutions ?
I already tried to work it around with xorg.conf, but unfortunately, it didn't help. After rebooting the system or restarting the X, xorg.conf keeps the settings (see below), but the Bulgarian phonetic variant is not activated.

Code: Select all

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option      "XkbRules" "xorg"
	Option      "XkbModel" "pc102" #xkbmodel0
	Option      "XkbLayout" "us,bg" #xkeymap0
	#Option      "XkbVariant" ",phonetic" #xkbvariant0
	Option      "XkbOptions"   "grp:alt_shift_toggle"
EndSection
So I decided to make an experiment: I started XKB Configuration Manager, made no changes, but just pressed "Apply" button and everything ran perfectly!! Oh, guys! I think we do have a friggin' bug here!!!

Posted: Sat 21 Mar 2015, 05:12
by bigpup
I got fresh Puppy frugal installation (in this case Tahr 6.0)
Have you done the Tahrpup update?
Quickpet->Info->Tahrpup updates

Is this a frugal install on a partition Windows also uses?
If yes, this can cause the save file to be fragmented and it will have problems.

Defrag using Windows defrag program.

Make a new save file.

Posted: Sat 21 Mar 2015, 09:01
by dustedwax
bigpup wrote: Have you done the Tahrpup update?
Quickpet->Info->Tahrpup updates

Is this a frugal install on a partition Windows also uses?
If yes, this can cause the save file to be fragmented and it will have problems.

Defrag using Windows defrag program.

Make a new save file.
Puppy installed on the primary ext2 partition (only for Puppy Tahr), all bugfixes installed + Tahr 6.0 to Tahr 6.0.2 service pack. This problem occurs in all Puppy distros I've tried (Slacko Puppy, Precise Puppy). Same happens if I install Puppy on a flash stick, so I guess it's kind of bug.

Whatever... I made a work-around, adding following line:

Code: Select all

exec /usr/local/apps/XkbConfigurationManager/XkbApplyNow
in a bash script in ~/Startup directory. Now everything works perfectly.

Posted: Sat 21 Mar 2015, 23:37
by bigpup
Good to see you fixed it.

I am going to report this in the Tahrpup bug topic for the developer to see.

Posted: Mon 30 Mar 2015, 11:32
by 666philb
thanks dustedwax

i've added your fix to tahrpup

Posted: Tue 31 Mar 2015, 12:27
by dustedwax
666philb wrote:thanks dustedwax

i've added your fix to tahrpup
Massive thanks, Phil! :) I've installed the Tahr updates and saw keyboardlayoutfix in "~/Startup" folder. I restarted X and everything works perfectly.

Posted: Wed 08 Apr 2015, 06:05
by dustedwax
Okey, I'm curious... Normally what script reads the xorg.conf during the Puppy boot and applies the keyboard layout settings?

Same problem wit Xenial

Posted: Sat 24 Mar 2018, 08:57
by DuMar
I have exactely the same problem with my Xenial 32 install on USB. @Phil666 please the same repair for Xenial too?

Posted: Sat 24 Mar 2018, 12:26
by bigpup
Here is the script file from Tahrpup.

Remove the .gz from the name
(had to add that to the name to get it to post in the forum)
Place it in /root/startup

Reboot

Does it work for you?

Posted: Sat 24 Mar 2018, 13:08
by DuMar
That works indeed, thank you bigpup

Posted: Sat 24 Mar 2018, 15:41
by DuMar
I just found that the script is already included but in the folder disabled in the folder /startup. Just drag it out there and done.