[ SOLVED ] Wrong Keyboard Layout - Alt+Shift+2 to print "@" sign

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
hope
White ninja
White ninja
Posts: 8
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0 desktop

[ SOLVED ] Wrong Keyboard Layout - Alt+Shift+2 to print "@" sign

Post#1 by hope » 04 Jul 2020, 12:19

Hi, I am using the latest porteus 5.1.5 version. I used cheatcode to make my keyboard layout to Turkish layout. I can use Turkish keys except special signs such as @,#$... since I can print them only by pressing Alt+Shift+X (x=2 for @ sign , 3 for # and 4 for $ sing etc. ). I am using openbox theme. What is the problem?

Edited: 4 July 2020
I try to fix it(! :Search: ) by changing the gxkb's config file under /root/.config folder and now my application starting button at the top left of the screen which open programs and other menus does not work anymore with left mouse click ! How can I solve these new problems ? ( I SOLVED THIS PROBLEM SINCE IT IS DUE TO TR LANGUAGE LOCALE MODULE WHICH GIVES ERROR WITH START MENU ITEMS - PROBABLY DUE TO LANGUAGE CONVERSION TO TURKISH CHARACTERS - THEREFORE IF YOU HAVE SUCH PROBLEM LOCALE IS THE CAUSE OF THE PROBLEM, UNLOAD THE LOCALE MODULE FROM STARTUP AND IT WORKS AGAIN :Yahoo!: )

How can I correctly print @,# and other signs with my keyboard
Thanks for everybody and STAY healthy.
Last edited by hope on 05 Jul 2020, 12:18, edited 1 time in total.
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

hope
White ninja
White ninja
Posts: 8
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0 desktop

Wrong Keyboard Layout - Alt+Shift+2 to print "@" sign

Post#2 by hope » 04 Jul 2020, 17:35

Ok, I am searching the cause myself. What I did is "setxkbmap tr" command from console to change us(default) keyboard layout to Turkish one. Howoever, no successs.
Do I need to create my own Turkish keyboard layout or keyboard map ? What I need is matching symbols shown on my keyboard with mapped code to printout the shown on my keyboard! Do anybody knows a source of already prepared keyboard map files ? Porteus has lots of keyboard maps already defined in

Code: Select all

/usr/share/kbd/keymaps/i386/qwerty
However, although I load them by using

Code: Select all

loadkeys trq

etc. (all keyboard maps starting with "tr") but no success. None of them correctly prints "at" & other signs. I am continuing to my search...
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

User avatar
fanthom
Site Admin
Site Admin
Posts: 5292
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Wrong Keyboard Layout - Alt+Shift+2 to print "@" sign

Post#3 by fanthom » 04 Jul 2020, 19:29

Hello hope,

Are you using Kiosk or Porteus Desktop version?

Thanks
Please add [Solved] to your thread title if the solution was found.

hope
White ninja
White ninja
Posts: 8
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0 desktop

Wrong Keyboard Layout - Alt+Shift+2 to print "@" sign

Post#4 by hope » 04 Jul 2020, 19:55

Desktop version.
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

User avatar
Ed_P
Contributor
Contributor
Posts: 5539
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Wrong Keyboard Layout - Alt+Shift+2 to print "@" sign

Post#5 by Ed_P » 04 Jul 2020, 20:09

hope wrote:
04 Jul 2020, 12:19
Hi, I am using the latest porteus 5.1.5 version.
And your Distribution shows "porteus 5.1.5" which is not regular/desktop Porteus 4.0 or 5.0rc1 hope.
Ed

hope
White ninja
White ninja
Posts: 8
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0 desktop

Wrong Keyboard Layout - Alt+Shift+2 to print "@" sign

Post#6 by hope » 04 Jul 2020, 20:25

I posted uname -a command below :

Linux porteus.example.net 5.1.5-porteus #1 SMP PREEMPT Sun May 26 17:25:39 Local time zone must be set-- x86_64...
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

User avatar
Ed_P
Contributor
Contributor
Posts: 5539
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Wrong Keyboard Layout - Alt+Shift+2 to print "@" sign

Post#7 by Ed_P » 04 Jul 2020, 20:35

My error hope. :oops: 5.1.5 is Porteus 5.0rc1
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2550
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Wrong Keyboard Layout - Alt+Shift+2 to print "@" sign

Post#8 by ncmprhnsbl » 04 Jul 2020, 23:20

check this topic and see if there is any relavence : OpenBox and keyboard/font/codepage bug
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

hope
White ninja
White ninja
Posts: 8
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0 desktop

Wrong Keyboard Layout - Alt+Shift+2 to print "@" sign

Post#9 by hope » 05 Jul 2020, 12:06

ncmprhnsbl wrote:
04 Jul 2020, 23:20
check this topic and see if there is any relavence : OpenBox and keyboard/font/codepage bug


No my fault, i gave kernel version as porteus version! As a newbie please accept my sorry.

Thank you very much ! If you did not send this link, I could never imagene that gxkb is the problem itself ! Exactly this was the same error !
Stay healty everybody.

Solved!
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

hope
White ninja
White ninja
Posts: 8
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0 desktop

[ SOLVED ] Wrong Keyboard Layout - Alt+Shift+2 to print "@" sign

Post#10 by hope » 06 Jul 2020, 22:46

Hi, I actually try to write a shell script to make automatic to removing gxkb from file inside /etc/xdg/openbox/autostart file etc... and create a "autostart2" file and changing its permissions to make it executable under /porteus folder(which saves changes and remains in the next boot). autostart2 file contains:

Code: Select all

spacefm --desktop &
#fbpanel &
tint2 &
#nm-applet &
volumeicon &
and created my own startingScript to correct my keyboard to Turkish with script file includes this code which also includes reducing the screen brightness to nearly half :

Code: Select all

# !bin/sh
echo 400 > /sys/class/backlight/intel_backlight/brightness
sudo cp -v /mnt/sdb2/porteus/p/myLinuxCodes/autostart2 /etc/xdg/openbox/
sudo chmod 777 /etc/xdg/openbox/autostart2
sudo mv -v -f /etc/xdg/openbox/autostart2 /etc/xdg/openbox/autostart
# I changed my keyboard layout to Turkish, you can change line below 
sudo setxkbmap tr
sudo logout
sudo login -p guest guest
actually I expected logout screen to come and ask me password but not! It works !
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

Post Reply