Page 1 of 1

xvkbd 4.1 - virtual keyboard

Posted: Mon Jul 15, 2024 9:35 am
by Caramel

(Following the message viewtopic.php?p=125960#p125960)

The virtual keyboard xvkbd version 3.8 is installed by default in EasyOS

There is a problem with the french layout :

capture7581.png
capture7581.png (14.25 KiB) Viewed 2022 times

With the last version (4.1) the layout is more accurate :

capture31615.png
capture31615.png (13.44 KiB) Viewed 2022 times

The current site for xvkbd is http://t-sato.in.coocan.jp/xvkbd/

I have compiled the version 4.1 (very quickly) :
(with ./configure, make and new2dir make install)

xvkbd-4.1-amd64.pet
(292.19 KiB) Downloaded 43 times

The displayed layout is correct but there are probably still problems with composed keys because this error message is displayed when xvkbd is launched in terminal :

Code: Select all

xvkbd: Mode_switch not available as a modifier
xvkbd: although ISO_Level3_Shift is used instead, AltGr may not work correctly

NB :
The files of the pet are placed in /usr/local.
I just added the xvkbd.desktop to the result of the compilation


Re: xvkbd 4.1

Posted: Mon Jul 15, 2024 2:24 pm
by FeodorF

Hi, @Caramel

They https://unix.stackexchange.com/question ... difier-for have an answer.

Mode_switch.png
Mode_switch.png (44.48 KiB) Viewed 1987 times

Re: xvkbd 4.1

Posted: Mon Jul 15, 2024 4:42 pm
by Caramel

Thanks @FeodorF , your link opens a new direction for the search of a solution.

An observation:
xmodmap in EasyOS

shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_L (0xcc), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3 ISO_Level5_Shift (0xcb)
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c)

xmodmap in MX Linux (where xvkb works without apparent problem)

shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)


Re: xvkbd 4.1

Posted: Tue Jul 16, 2024 2:46 pm
by Vverve
Caramel wrote: Mon Jul 15, 2024 9:35 am

(Following the message viewtopic.php?p=125960#p125960)

The virtual keyboard xvkbd version 3.8 is installed by default in EasyOS

There is a problem with the french layout :

Arrrgghh....post that observation months ago...
This is the belgium layout(or an unknowed one i never saw..) of xvkbd ,your second picture as always been the french(1) , since 6-7 years now...
anyhow ,
i can confirm having back a working kirkstone , with my xvkvb pet , i dont have the weird mixup problem i have now in scarthgap series ,
the blank , accents key mixup , the composed keys not working , testing some layout seem to break x too ,i'll have to dig what happend , it did occurred a few time.
Obseved the same :
xvkbd: Mode_switch not available as a modifier
xvkbd: although ISO_Level3_Shift is used instead, AltGr may not work correctly .

It's a small glitche , everything else, here , seems all fine with that new serie .


Re: xvkbd 4.1

Posted: Tue Jul 16, 2024 3:32 pm
by Caramel
Vverve wrote: Tue Jul 16, 2024 2:46 pm

i can confirm having back a working kirkstone , with my xvkvb pet , i dont have the weird mixup problem i have now in scarthgap series ,
the blank , accents key mixup , the composed keys not working , testing some layout seem to break x too ,i'll have to dig what happend , it did occurred a few time.
Obseved the same :
xvkbd: Mode_switch not available as a modifier
xvkbd: although ISO_Level3_Shift is used instead, AltGr may not work correctly .

It's a small glitche , everything else, here , seems all fine with that new serie .

Could you test in terminal

Code: Select all

xmodmap -e 'keycode 203=Mode_switch'

before

Code: Select all

xvkbd

or

Code: Select all

xvkbd-wrapper

It seems work today(Not worked yesterday, I make so many changes that I lose track)


Re: xvkbd 4.1

Posted: Tue Jul 16, 2024 3:41 pm
by Vverve
Caramel wrote: Tue Jul 16, 2024 3:32 pm

xmodmap -e 'keycode 203=Mode_switch'

That did it for composed key ,work .
oh it fixed the blank too..hmm fixed it all finally !!
good find !!!
Thanks Caramel


Re: xvkbd 4.1

Posted: Tue Jul 16, 2024 3:50 pm
by Vverve
Caramel wrote: Tue Jul 16, 2024 3:32 pm

make so many changes that I lose track

That was the reason it took me so long to report...

Thanks again !!!!!!!!!!


Re: xvkbd 4.1

Posted: Tue Jul 16, 2024 4:59 pm
by Caramel
Vverve wrote: Tue Jul 16, 2024 3:41 pm
Caramel wrote: Tue Jul 16, 2024 3:32 pm

xmodmap -e 'keycode 203=Mode_switch'

That did it for composed key ,work .
oh it fixed the blank too..hmm fixed it all finally !!

If the xmodmap command has no unexpected effects outside xvkbd, we can make it permanent by creating the file .Xmodmap in /root with the content :

Code: Select all

keycode 203=Mode_switch

Re: xvkbd 4.1

Posted: Wed Jul 17, 2024 10:34 am
by Vverve
Caramel wrote: Tue Jul 16, 2024 4:59 pm

ÊÀàèéúçêû not a real quote....Applauses....seems simple , once you find the solution...in my searches,even friendly gg were no help !!!

Yes , one solution that work , i already got tweaking modprobe scripts in init.d , i just added xmodmap -e 'keycode 203=Mode_switch' to it.
edited , your solution work , mine is not

Xvkbd may not be the ''bling blingest'' of virtual keyboard available ,but it sure is , here , a trusty configurable one .

More sweet claps ..can write crème brûlé now , no headache....


Caractères accentués avec un clavier azerty / Accented characters with azerty keyboard

Posted: Thu Jul 18, 2024 2:19 pm
by Caramel

Pour obtenir des majuscules accentuées ou des symboles æ œ «» ≤≥ avec un clavier (physique) azerty, il faut choisir la variante occitan
/
To obtain accented capital letters or symbols æ œ «» ≤≥ with a (physical) azerty keyboard, you could choose French layout with the Occitan variant

// ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓
// │ ³ ¸ │ 1 ̨ │ 2 É │ 3 ˘ │ 4 — │ 5 – │ 6 ‑ │ 7 È │ 8 ™ │ 9 Ç │ 0 À │ ° ≠ │ + ± ┃ ⌫ Retour┃
// │ ² ¹ │ & ˇ │ é ~ │ " # │ ' { │ ( [ │ - | │ è ` │ _ \ │ ç ^ │ à @ │ ) ] │ = } ┃ arrière┃
// ┢━━━━━┷━┱───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┺━┳━━━━━━━┫
// ┃ ┃ A Á │ Z Æ │ E ¢ │ R Ê │ T Ë │ Y Û │ U Ú │ I Í │ O Ó │ P Ò │ ¨ Œ │ £ Ø ┃Entrée ┃
// ┃Tab ↹ ┃ a á │ z æ │ e € │ r ê │ t ë │ y û │ u ú │ i í │ o ó │ p ò │ ^ œ │ $ ø ┃ ⏎ ┃
// ┣━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓ ┃
// ┃ ┃ Q Ä │ S „ │ D Â │ F ‚ │ G ¥ │ H Ü │ J Î │ K Ï │ L Ô │ M Ö │ % Ù │ µ ̄ ┃ ┃
// ┃Maj ⇬ ┃ q ä │ s ß │ d â │ f ‘ │ g ’ │ h ü │ j î │ k ï │ l ô │ m ö │ ù ' │ * ` ┃ ┃
// ┣━━━━━━━┳┹────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┲┷━━━━━┻━━━━━━┫
// ┃ ┃ > ≥ │ W “ │ X ” │ C ® │ V ← │ B ↑ │ N Ñ │ ? … │ . . │ / ∕ │ § − ┃ ┃
// ┃Shift ⇧┃ < ≤ │ w « │ x » │ c © │ v → │ b ↓ │ n ñ │ , ¿ │ ; × │ : ÷ │ ! ¡ ┃Shift ⇧ ┃
// ┣━━━━━━━╋━━━━━┷━┳━━━┷━━━┱─┴─────┴─────┴─────┴─────┴─────┴───┲━┷━━━━━╈━━━━━┻━┳━━━━━━━┳━━━┛
// ┃ ┃ ┃ ┃ ␣ Espace fine insécable ⍽ ┃ ┃ ┃ ┃
// ┃Ctrl ┃Meta ┃Alt ┃ ␣ Espace Espace insécable ⍽ ┃AltGr ⇮┃Menu ┃Ctrl ┃
// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛


Re: xvkbd 4.1

Posted: Thu Jul 18, 2024 10:18 pm
by FeodorF

Hello @Caramel , thank you very much for fixing the xvkbd problem!

I just checked how my physical DE-keyboard with 105 keys is going to create none DE characters. It is as easy as easy can be.

Touch the accent aigu key and a letter key to create for example é.
Touch the accent aigu key and shift+letter key to create f.e. É.
Touch the accent circonflexe key and a letter to create f.e. û.
Touch the accent circonflexe key and shift+letter key to create f.e. Û.
Accent grave is the shifted accent aigu key and creates f.e. è.
Same method plus shift+letter creates f.e. È.

Demo-DE-keyboard.png
Demo-DE-keyboard.png (18.43 KiB) Viewed 1749 times
Keyboard_105_keys.png
Keyboard_105_keys.png (27.46 KiB) Viewed 1747 times

I have created a file called 'Mode_switch' and put it in /root/Startup/ (for easy access).

#!/bin/sh
# replace the default KeyCodeValue 203 0xfe11 (ISO_Level5_Shift)
# with KeyCodeValua 203 0xff7e (Mode_switch)
# this change is needed for 'xvkbd'
# viewtopic.php?t=12167
# 07162024 user Caramel
xmodmap -e 'keycode 203=Mode_switch'


Re: xvkbd 4.1

Posted: Fri Jul 19, 2024 8:32 am
by FeodorF

Job well done @Caramel !

This morning I tested the compose-key to create none DE characters using xvkbd. Success!
All I had to do: "Touch the compose key before the accent key."

DE-xvkbd-compose-key-test.png
DE-xvkbd-compose-key-test.png (14.56 KiB) Viewed 1714 times

Re: xvkbd 4.1

Posted: Tue Jul 23, 2024 3:03 am
by BarryK

I have just now read through this thread.

So, is that all that is needed?:

Code: Select all

# xmodmap -e 'keycode 203=Mode_switch'

And no need to bump xvkbd from 3.8 to 4.1?

Any reason why cannot put that xmodmap operation for everyone, English-US keyboard also?


Re: xvkbd 4.1

Posted: Tue Jul 23, 2024 5:21 am
by Caramel
BarryK wrote: Tue Jul 23, 2024 3:03 am

I have just now read through this thread.

So, is that all that is needed?:

Code: Select all

# xmodmap -e 'keycode 203=Mode_switch'

And no need to bump xvkbd from 3.8 to 4.1?

The french layout in 3.08 is wrong , not in 4.1.
But, as said by @FeodorF, I can use the german layout instead with 3.8

BarryK wrote: Tue Jul 23, 2024 3:03 am

Any reason why cannot put that xmodmap operation for everyone, English-US keyboard also?

We need to try to know


Re: xvkbd 4.1

Posted: Tue Jul 23, 2024 10:38 am
by BarryK

OK, I have bumped xvkbd to 4.1, see blog announcement:

https://bkhome.org/news/202407/xvkbd-41 ... in-oe.html


Re: xvkbd 4.1

Posted: Tue Jul 23, 2024 10:50 am
by BarryK

OK, I have created /root/.Xmodmap, with this content:

keycode 203=Mode_switch

/root/.xinitrc will see that file exists and apply "xmodmap 'keycode 203=Mode_switch'"


Re: xvkbd 4.1

Posted: Thu Jul 25, 2024 7:16 pm
by FeodorF

@Caramel
I knew something was missing.
"Touch the compose key before the comma key to create the 'ç '."

Garcon.png
Garcon.png (11.58 KiB) Viewed 1582 times

Re: xvkbd 4.1

Posted: Tue Jul 30, 2024 4:05 pm
by Vverve

Qui sait si ce french layout modifié pourrait plaîre(plus ,plaire...tellement heureux d'avoir accès aux accents , j'en foût partoût ) à qui que ce soit ?
click here pour télécharger ;french layout mod

Download/copy/replace/remame to /etc/X11/app-defaults/XVkbd-french ...
of course , depending on your install style ,saving style, it may not survive an OS update !!!

It's got the À Ê the ê the ¤ (i should replace , never used that...same for the § , not true ,it look good as in ,me suis sacré un §¤!?!! de coup de marteau sur le pouce ,¤ bang it hurt ¤, remplace bien un patois québécois )
Anybody can modify layout to their taste , in any word processor ,editing is a little confusing .

Thank you Mr Sato and X


Re: xvkbd 4.1

Posted: Thu Aug 29, 2024 3:51 pm
by Vverve

Forgot to share , in 6.2 , BK let his xmodmap tweak in root , but , buzzer... dont ask me why ,

i got to add xmodmap -e 'keycode 203=Mode_switch' in one of my startup script !!!
works fine now .


Re: xvkbd 4.1

Posted: Thu Aug 29, 2024 9:57 pm
by FeodorF
Vverve wrote: Thu Aug 29, 2024 3:51 pm

Forgot to share , in 6.2 , BK let his xmodmap tweak in root , but , buzzer... dont ask me why ,

i got to add xmodmap -e 'keycode 203=Mode_switch' in one of my startup script !!!
works fine now .

Hi @BarryK. He is right, it doesn't work. The last line in /root/.xinitrc should be:
(Kirkstone 5.8.4 and Scarthgap 6.2)

Code: Select all

#20240726 Caramel: ref: https://forum.puppylinux.com/viewtopic.php?t=12241
#XkbModel="$(grep '#xkbmodel0' /etc/X11/xorg.conf.d/10-evdev-puppy.conf | cut -f 4 -d '"')"
#XkbLayout="$(grep '#xkeymap0' /etc/X11/xorg.conf.d/10-evdev-puppy.conf | cut -f 4 -d '"')"
#XkbVariant="$(grep '#xkbvariant0' /etc/X11/xorg.conf.d/10-evdev-puppy.conf | grep -v '#Option' | cut -f 4 -d '"')"
#if [ -z "${XkbVariant}" ];then
# VARIANT=''
#else
# VARIANT="-variant ${XkbVariant}"
#fi
#setxkbmap -model "${XkbModel}" -layout "${XkbLayout}" ${VARIANT}
#hmmm, seems only need to do this to get jwm to recognize layout...
#setxkbmap
xmodmap -e 'keycode 203=Mode_switch'

Regards,
Feodor


Re: xvkbd 4.1

Posted: Thu Aug 29, 2024 11:55 pm
by BarryK
FeodorF wrote: Thu Aug 29, 2024 9:57 pm
Vverve wrote: Thu Aug 29, 2024 3:51 pm

Forgot to share , in 6.2 , BK let his xmodmap tweak in root , but , buzzer... dont ask me why ,

i got to add xmodmap -e 'keycode 203=Mode_switch' in one of my startup script !!!
works fine now .

Hi @BarryK. He is right, it doesn't work. The last line in /root/.xinitrc should be:
(Kirkstone 5.8.4 and Scarthgap 6.2)

Code: Select all

#20240726 Caramel: ref: https://forum.puppylinux.com/viewtopic.php?t=12241
#XkbModel="$(grep '#xkbmodel0' /etc/X11/xorg.conf.d/10-evdev-puppy.conf | cut -f 4 -d '"')"
#XkbLayout="$(grep '#xkeymap0' /etc/X11/xorg.conf.d/10-evdev-puppy.conf | cut -f 4 -d '"')"
#XkbVariant="$(grep '#xkbvariant0' /etc/X11/xorg.conf.d/10-evdev-puppy.conf | grep -v '#Option' | cut -f 4 -d '"')"
#if [ -z "${XkbVariant}" ];then
# VARIANT=''
#else
# VARIANT="-variant ${XkbVariant}"
#fi
#setxkbmap -model "${XkbModel}" -layout "${XkbLayout}" ${VARIANT}
#hmmm, seems only need to do this to get jwm to recognize layout...
#setxkbmap
xmodmap -e 'keycode 203=Mode_switch'

Regards,
Feodor

@Vverve @FeodorF
This is supposed to have been fixed in 6.2, as /root/.Xmodmap has this content:

Code: Select all

keycode 203=Mode_switch

And /root/.xinitrc reads that and runs xmodmap.

Does your /root/.Xmodmap have this content?


Re: xvkbd 4.1

Posted: Fri Aug 30, 2024 11:41 am
by Vverve
BarryK wrote: Thu Aug 29, 2024 11:55 pm

keycode 203=Mode_switch[/code]
Does your /root/.Xmodmap have this content?

Yes , it still there ,
+ mine in a /root/Startup at the end of one my bash script(inluded in ''my pet'') including(modified aftet install of that pet);
xmodmap -e 'keycode 203=Mode_switch'
work here .

If revelant ;
-i do use my old ''this device'' pet which include xvkbd 4.1(*not your's oe compiled but an extracted debian binary pkg one from 2023) + modified french-layout + all of them in /etc/X11/app-defaults.
-6.2 is setup for french ,all default keyboard are US
only xvkdb is set to use french layout .

As i am prone to those ''one user'' glitches ,
and nobody else report any about it ,
here we are !!!

If any test i can or detail wanted ,i'll try it and share .

Does @FeodorF got some of his own xvkbd4.1 thing ''injected'' somewhere too?


Re: xvkbd 4.1

Posted: Fri Aug 30, 2024 2:32 pm
by Caramel
BarryK wrote: Thu Aug 29, 2024 11:55 pm

This is supposed to have been fixed in 6.2, as /root/.Xmodmap has this content:

Code: Select all

keycode 203=Mode_switch

And /root/.xinitrc reads that and runs xmodmap.

Does your /root/.Xmodmap have this content?

After the boot, :

Code: Select all

xmodmap -pke | grep 203
keycode 203 = ISO_Level5_Shift NoSymbol ISO_Level5_Shift

The command "setxkbmap" recently added for the JWM keyboard fix seems to counteract xmodmap


Re: xvkbd 4.1 - virtual keyboard

Posted: Fri Aug 30, 2024 9:07 pm
by FeodorF

Hi @Caramel ,
I had a look over there: https://wiki.archlinux.org/title/Xmodmap
Tried to 'clear' and tried to 'remove' ISO_Level5_Shift in order to bring up Mode_switch - no, no luck for me!


Re: xvkbd 4.1 - virtual keyboard

Posted: Fri Aug 30, 2024 11:57 pm
by BarryK

OK, it looks like setxkbmap has to run before xmodmap.

I have moved it up to line 130 in /root/.xinitrc:

Code: Select all

#180409 easyos, check containerized-apps still on desktop...
#note, created in /usr/local/easy_containers/easy-containers, but session-wipe may remove desktop icons.
[ -x /usr/local/easy_containers/ec-fix-desktop ] && /usr/local/easy_containers/ec-fix-desktop

setxkbmap #20240831 moved before run xmodmap.

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/lib/X11/xinit/Xresources
sysmodmap=/usr/lib/X11/xinit/.Xmodmap

EDIT:
Tested, looks like now fixed.

Code: Select all

# xmodmap -pke | grep 203
keycode 203 = Mode_switch NoSymbol Mode_switch

Re: xvkbd 4.1 - virtual keyboard

Posted: Sat Aug 31, 2024 3:34 am
by Caramel
BarryK wrote: Fri Aug 30, 2024 11:57 pm

OK, it looks like setxkbmap has to run before xmodmap.

I have moved it up to line 130 in /root/.xinitrc:

Code: Select all

#180409 easyos, check containerized-apps still on desktop...
#note, created in /usr/local/easy_containers/easy-containers, but session-wipe may remove desktop icons.
[ -x /usr/local/easy_containers/ec-fix-desktop ] && /usr/local/easy_containers/ec-fix-desktop

setxkbmap #20240831 moved before run xmodmap.

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/lib/X11/xinit/Xresources
sysmodmap=/usr/lib/X11/xinit/.Xmodmap

EDIT:
Tested, looks like now fixed.

Code: Select all

# xmodmap -pke | grep 203
keycode 203 = Mode_switch NoSymbol Mode_switch

It works , my customized shortcut for jwm too.