regolith-linux / regolith-desktop

Meta package for the Regolith Desktop Environment
1.51k stars 31 forks source link

deadkeys not working on sway #1025

Open cfsmp3 opened 4 months ago

cfsmp3 commented 4 months ago

I've been troubleshooting this with @SoumyaRanjanPatnaik but wanted to leave it here as well.

For some reason, after upgrading from Ubuntu 23.10 to 24.04 and regolith from 3.1 to 3.2 beta, I can't type accented letters on my Spanish keyboard. This only happens on sway. GNOME and i3 are OK.

I played a lot with the different kbd config files, but was unable to figure it out.

What I know for sure is that this file /usr/share/X11/xkb/symbols/es

is loaded. I could trivially verify it by replacing this line:

key { [dead_acute, dead_diaeresis, braceleft, dead_caron ] };

with

key { [J, dead_diaeresis, braceleft, dead_caron ] };

That of course types a J when I press the key that should instead issue dead_acute.

So that part works.

Then this file: locale/en_US.UTF-8/Compose

: "á" aacute # LATIN SMALL LETTER A WITH ACUTE : "é" eacute # LATIN SMALL LETTER E WITH ACUTE : "í" iacute # LATIN SMALL LETTER I WITH ACUTE Contains the next step, but I'm not sure it's loaded at all. I've also tried reinstalling the packages that provide those files, just in case ( libx11-data and xkb-data). More info: ✦ ❯ localectl System Locale: LANG=en_US.UTF-8 VC Keymap: (unset) X11 Layout: es X11 Model: pc105 ✦ ❯ swaymsg -t get_inputs Input device: Dell Dell Wired Multimedia Keyboard System Control Type: Keyboard Identifier: 16700:8464:Dell_Dell_Wired_Multimedia_Keyboard_System_Control Product ID: 8464 Vendor ID: 16700 Active Keyboard Layout: Spanish Libinput Send Events: enabled Input device: Dell Dell Wired Multimedia Keyboard Type: Keyboard Identifier: 16700:8464:Dell_Dell_Wired_Multimedia_Keyboard Product ID: 8464 Vendor ID: 16700 Active Keyboard Layout: Spanish Libinput Send Events: enabled Input device: Dell Dell Wired Multimedia Keyboard Consumer Control Type: Keyboard Identifier: 16700:8464:Dell_Dell_Wired_Multimedia_Keyboard_Consumer_Control Product ID: 8464 Vendor ID: 16700 Active Keyboard Layout: Spanish Libinput Send Events: enabled Input device: Dell Dell Wired Multimedia Keyboard Mouse Type: Mouse Identifier: 16700:8464:Dell_Dell_Wired_Multimedia_Keyboard_Mouse Product ID: 8464 Vendor ID: 16700 Libinput Send Events: enabled Input device: HID 0c45:7403 Type: Mouse Identifier: 3141:29699:HID_0c45:7403 Product ID: 29699 Vendor ID: 3141 Libinput Send Events: enabled Input device: HID 0c45:7403 Type: Keyboard Identifier: 3141:29699:HID_0c45:7403 Product ID: 29699 Vendor ID: 3141 Active Keyboard Layout: Spanish Libinput Send Events: enabled Input device: AT Translated Set 2 keyboard Type: Keyboard Identifier: 1:1:AT_Translated_Set_2_keyboard Product ID: 1 Vendor ID: 1 Active Keyboard Layout: Spanish Libinput Send Events: enabled Input device: PIXA3854:00 093A:0274 Touchpad Type: Touchpad Identifier: 2362:628:PIXA3854:00_093A:0274_Touchpad Product ID: 628 Vendor ID: 2362 Libinput Send Events: enabled Input device: PIXA3854:00 093A:0274 Mouse Type: Mouse Identifier: 2362:628:PIXA3854:00_093A:0274_Mouse Product ID: 628 Vendor ID: 2362 Libinput Send Events: enabled Input device: FRMW0004:00 32AC:0006 Consumer Control Type: Mouse Identifier: 12972:6:FRMW0004:00_32AC:0006_Consumer_Control Product ID: 6 Vendor ID: 12972 Libinput Send Events: enabled Input device: FRMW0004:00 32AC:0006 Consumer Control Type: Keyboard Identifier: 12972:6:FRMW0004:00_32AC:0006_Consumer_Control Product ID: 6 Vendor ID: 12972 Active Keyboard Layout: Spanish Libinput Send Events: enabled Input device: FRMW0004:00 32AC:0006 Wireless Radio Control Type: Keyboard Identifier: 12972:6:FRMW0004:00_32AC:0006_Wireless_Radio_Control Product ID: 6 Vendor ID: 12972 Active Keyboard Layout: Spanish Libinput Send Events: enabled Input device: DP-2 Type: Mouse Identifier: 0:0:DP-2 Product ID: 0 Vendor ID: 0 Libinput Send Events: enabled Input device: DP-2 Type: Keyboard Identifier: 0:0:DP-2 Product ID: 0 Vendor ID: 0 Active Keyboard Layout: Spanish Libinput Send Events: enabled Input device: Power Button Type: Keyboard Identifier: 0:1:Power_Button Product ID: 1 Vendor ID: 0 Active Keyboard Layout: Spanish Libinput Send Events: enabled Input device: Lid Switch Type: Switch Identifier: 0:5:Lid_Switch Product ID: 5 Vendor ID: 0 Libinput Send Events: enabled Input device: Video Bus Type: Keyboard Identifier: 0:6:Video_Bus Product ID: 6 Vendor ID: 0 Active Keyboard Layout: Spanish Libinput Send Events: enabled
fhchl commented 1 month ago

Possibly related, I also updated from 22.04 to 24.04 and in a Sway session, the compose key doesn't seem to work either, even though it is set via the gnome settings manager.

cfsmp3 commented 1 month ago

Possibly related, I also updated from 22.04 to 24.04 and in a Sway session, the compose key doesn't seem to work either, even though it is set via the gnome settings manager.

I troubleshooted all I could without success. I'm hoping the next sway version (current rc3 I believe) will fix it, assuming it's a sway bug.

cfsmp3 commented 1 month ago

Possibly related, I also updated from 22.04 to 24.04 and in a Sway session, the compose key doesn't seem to work either, even though it is set via the gnome settings manager.

I troubleshooted all I could without success. I'm hoping the next sway version (currently rc3 I believe) will fix it, assuming it's a sway bug.

khannurien commented 2 weeks ago

I'm having the same issue with a fresh Ubuntu 24.04 + Regolith 3.2 install. Dead keys work as expected under GNOME/Wayland; they do not work at all under Regolith/Wayland (sway).

They do work with the same keyboard layout under Regolith/X11 (but then there are other issues, such as the touchpad's pinch to zoom not working).

karlsebal commented 2 weeks ago

Same here. Neither dead keys are working with sway nor compose key. The latter is clearly caught, though, for when using the menu key as compose key the menu is no longer displayed when the key has been pressed. This is a fresh install and in ubuntu/gnome compose key and dead keys are working as well as in the i3/xorg session of regolith. I remember all running well with sway in the former install.

I can‘t say for sure if this is an upstream bug. Apparently it is, though.

karlsebal commented 2 weeks ago

@fhchl

Possibly related, I also updated from 22.04 to 24.04 and in a Sway session, the compose key doesn't seem to work either, even though it is set via the gnome settings manager.

I always have to swaymsg 'input * xkb_options compose:menu' as described here, for me gnome settings never took any effect in sway.