You are not logged in.

#1 2024-08-28 14:20:40

blacksheepshelterthessaly
Member
From: Greece,Thessalia
Registered: 2024-08-21
Posts: 3
Website

change keyboard language

Hello to the community and I hope we can find a solution to the problem my PC has,
every time I change the language from English to Greek my computer freezes and does nothing,
I have the OS: Arch Linux x86_64
with DE: GNOME 46.4
I'm new to arch linux I had Ubuntu,
any help would be appreciated..
Thanks and congratulations to the team that created the Arch

                   -`                    george@blacksheep
                  .o+`                   -----------------
                 `ooo/                   OS: Arch Linux x86_64
                `+oooo:                  Host: HP 290 G1 MT
               `+oooooo:                 Kernel: 6.10.6-arch1-1
               -+oooooo+:                Uptime: 5 mins
             `/:-:++oooo+:               Packages: 1310 (pacman), 17 (flatpak)
            `/++++/+++++++:              Shell: bash 5.2.32
           `/++++++++++++++:             Resolution: 1024x768, 1920x1080
          `/+++ooooooooooooo/`           DE: GNOME 46.4
         ./ooosssso++osssssso+`          WM: Mutter
        .oossssso-````/ossssss+`         WM Theme: Adwaita
       -osssssso.      :ssssssso.        Theme: Adwaita-dark [GTK2/3]
      :osssssss/        osssso+++.       Icons: Adwaita [GTK2/3]
     /ossssssss/        +ssssooo/-       Terminal: gnome-terminal
   `/ossssso+/:-        -:/+osssso+-     CPU: Intel i3-6100 (4) @ 3.700GHz
  `+sso+:-`                 `.-/+oso:    GPU: Intel HD Graphics 530
`++:.                           `-/+/   Memory: 2040MiB / 11824MiB

Offline

#2 2024-08-28 14:46:06

seth
Member
Registered: 2012-09-03
Posts: 60,378

Re: change keyboard language

my computer freezes and does nothing

Can you still
a) move the mouse cursor
b) switch the VT (ctrl+alt+F3)
c) ssh into the system?

You're running gnome on wayland? Or X11?

Offline

#3 2024-08-28 17:19:14

blacksheepshelterthessaly
Member
From: Greece,Thessalia
Registered: 2024-08-21
Posts: 3
Website

Re: change keyboard language

my cursor is move
i have gnome classic xorg
ctrl+alt+F3 is working and open terminal and ctrl+alt+F2 is back but only cursor work,
i have ssh Gigolo for my Raspberry pi and my old server,

Last edited by blacksheepshelterthessaly (2024-08-28 17:44:28)

Offline

#4 2024-08-28 20:20:08

seth
Member
Registered: 2012-09-03
Posts: 60,378

Re: change keyboard language

ctrl+alt+F3 is working and open terminal and ctrl+alt+F2 is back but only cursor work,

Great.
1. how exactly do you switch the kayboard layout?
2. what's  the output of "setxkbmap -print -query"?
3. do you run GDM on Xorg as well? https://wiki.archlinux.org/title/GDM#Use_Xorg_backend

A way X11 sessions can get locked is via a stale grab.
Install xdotool and run

sleep 30; xdotool key "XF86LogGrabInfo"

You then have 30s to "freeze" the system w/ the keyboard layout change.
Afterwards the grabs are logged in the Xorg log that you can post from the terminal.
Eg. "cat /var/log/Xorg.0.log | curl -F 'file=@-' 0x0.st" (nb. that the path of the log isn't necessarily correct, check https://wiki.archlinux.org/title/Xorg#General )

Other than this, try /etc/X11/xorg.conf.d/10-server.conf

Section "ServerFlags"
       Option             "AllowDeactivateGrabs" "true" # also run setxkbmap -option grab:break_actions
#       Option             "AllowClosedownGrabs" "true"
EndSection

After restarting the X11 server and executing "setxkbmap -option grab:break_actions" you can break any active grab w/ the "Ctrl+Alt+Keypad-Divide" shortcut.
NOTICE: that this is a debug feature, and a security breach and YOU NEED TO REMOVE THAT AFTER THIS IS SORTED OUT!

Offline

#5 2024-08-28 21:46:30

blacksheepshelterthessaly
Member
From: Greece,Thessalia
Registered: 2024-08-21
Posts: 3
Website

Re: change keyboard language

george@blacksheep ~ $ setxkbmap -print -query
xkb_keymap {
    xkb_keycodes  { include "evdev+aliases(qwerty)"    };
    xkb_types     { include "complete"    };
    xkb_compat    { include "complete"    };
    xkb_symbols   { include "pc+us+gr:2+gr:3+inet(evdev)+level3(ralt_switch)+terminate(ctrl_alt_bksp)"    };
    xkb_geometry  { include "pc(pc104)"    };
};
rules:      evdev
model:      pc105+inet
layout:     us,gr,gr
variant:    ,,
options:    terminate:ctrl_alt_bksp,lv3:ralt_switch



and this is resort from command,  cat /var/log/Xorg.0.log | curl -F 'file=@-' 0x0.st

[    55.121] (--) Log file renamed from "/var/log/Xorg.pid-989.log" to "/var/log/Xorg.0.log"
[    55.121]
X.Org X Server 1.21.1.13




Thank you for the help you gave me, everything is fine now. Alt and Space , change language. Be well and a big Thanks again.

Last edited by blacksheepshelterthessaly (2024-08-28 22:09:36)

Offline

#6 2024-08-28 21:55:58

seth
Member
Registered: 2012-09-03
Posts: 60,378

Re: change keyboard language

Please use [code][/code] tags. Edit your post in this regard.
You could also just have posted the 0x0.st link, there's no reason to copy the internet.

There were no grabs logged to that xorg log - the server only ran for 5 minutes? Was xdotool not executed? Or installed?
And nothing you did here would have the capacity to fix anything.

There're actually three laouts (us, gr and gr again) but notably no switch is configured.

setxkbmap -option grp:alt_space_toggle

will add that toggle

Offline

#7 2024-09-01 15:13:48

seth
Member
Registered: 2012-09-03
Posts: 60,378

Re: change keyboard language

Please don't DM me for attention, posting updates here will generally get me a notice.
I know that whatever you did before in response to #4 cannot have actually fixed the problem.

Please answer the questions in #6 and try to add a toggle and also assess whether this is maybe a stale grab (and you can break it)

Offline

Board footer

Powered by FluxBB