unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* dell laptop cannot access super-key.
@ 2022-03-11 21:11 goncholden via Users list for the GNU Emacs text editor
  2022-03-12  0:19 ` Po Lu
  0 siblings, 1 reply; 20+ messages in thread
From: goncholden via Users list for the GNU Emacs text editor @ 2022-03-11 21:11 UTC (permalink / raw)
  To: goncholden via Users list for the GNU Emacs text editor

Have been using a dell laptop and found out that I cannot access the Super-Key. Wanted to do a key remapping
so that I set the position of the Super-Key as tho Alt-Key (Meta-Key).

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-11 21:11 dell laptop cannot access super-key goncholden via Users list for the GNU Emacs text editor
@ 2022-03-12  0:19 ` Po Lu
  2022-03-12  0:26   ` goncholden
  0 siblings, 1 reply; 20+ messages in thread
From: Po Lu @ 2022-03-12  0:19 UTC (permalink / raw)
  To: goncholden via Users list for the GNU Emacs text editor; +Cc: goncholden

goncholden via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> Have been using a dell laptop and found out that I cannot access the
> Super-Key. Wanted to do a key remapping so that I set the position of
> the Super-Key as tho Alt-Key (Meta-Key).

Please show the output of the command `xmodmap' run without any
arguments.  Thanks.



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-12  0:19 ` Po Lu
@ 2022-03-12  0:26   ` goncholden
  2022-03-12  0:49     ` Po Lu
  0 siblings, 1 reply; 20+ messages in thread
From: goncholden @ 2022-03-12  0:26 UTC (permalink / raw)
  To: Po Lu; +Cc: goncholden via Users list for the GNU Emacs text editor

------- Original Message -------
On Saturday, March 12th, 2022 at 12:19 AM, Po Lu <luangruo@yahoo.com> wrote:

> goncholden via Users list for the GNU Emacs text editor
> help-gnu-emacs@gnu.org writes:
>
> > Have been using a dell laptop and found out that I cannot access the
> > Super-Key. Wanted to do a key remapping so that I set the position of
> > the Super-Key as tho Alt-Key (Meta-Key).
>
> Please show the output of the command `xmodmap' run without any
> arguments. Thanks.

This is what I get

xmodmap
xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  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)




^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-12  0:26   ` goncholden
@ 2022-03-12  0:49     ` Po Lu
  2022-03-12 11:22       ` goncholden
  0 siblings, 1 reply; 20+ messages in thread
From: Po Lu @ 2022-03-12  0:49 UTC (permalink / raw)
  To: goncholden; +Cc: goncholden via Users list for the GNU Emacs text editor

goncholden <goncholden@protonmail.com> writes:

> shift       Shift_L (0x32),  Shift_R (0x3e)
> lock        Caps_Lock (0x42)
> control     Control_L (0x25),  Control_R (0x69)
> mod1        Alt_L (0x40),  Alt_R (0x6c),  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)

Hmm, this seems normal to me.  What happens when you type something with
a super key held down in Emacs?



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-12  0:49     ` Po Lu
@ 2022-03-12 11:22       ` goncholden
  2022-03-12 16:56         ` goncholden
  0 siblings, 1 reply; 20+ messages in thread
From: goncholden @ 2022-03-12 11:22 UTC (permalink / raw)
  To: Po Lu; +Cc: goncholden via Users list for the GNU Emacs text editor

------- Original Message -------
On Saturday, March 12th, 2022 at 12:49 AM, Po Lu <luangruo@yahoo.com> wrote:

> goncholden goncholden@protonmail.com writes:
>
> > shift Shift_L (0x32), Shift_R (0x3e)
> > lock Caps_Lock (0x42)
> > control Control_L (0x25), Control_R (0x69)
> > mod1 Alt_L (0x40), Alt_R (0x6c), 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)
>
> Hmm, this seems normal to me. What happens when you type something with
> a super key held down in Emacs?

I just get the letter printed on the emacs window buffer

s-x prints the letter x
s-b prints the letter b
s-m prints the letter m





^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-12 11:22       ` goncholden
@ 2022-03-12 16:56         ` goncholden
  2022-03-12 17:23           ` goncholden
  2022-03-13  0:16           ` Po Lu
  0 siblings, 2 replies; 20+ messages in thread
From: goncholden @ 2022-03-12 16:56 UTC (permalink / raw)
  To: goncholden; +Cc: Po Lu, goncholden via Users list for the GNU Emacs text editor

------- Original Message -------
On Saturday, March 12th, 2022 at 11:22 AM, goncholden <goncholden@protonmail.com> wrote:
> ------- Original Message -------
> On Saturday, March 12th, 2022 at 12:49 AM, Po Lu luangruo@yahoo.com wrote:
> > goncholden goncholden@protonmail.com writes:
> >
> > > shift Shift_L (0x32), Shift_R (0x3e)
> > > lock Caps_Lock (0x42)
> > > control Control_L (0x25), Control_R (0x69)
> > > mod1 Alt_L (0x40), Alt_R (0x6c), 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)

> > Hmm, this seems normal to me. What happens when you type something with
> > a super key held down in Emacs?

> I just get the letter printed on the emacs window buffer

> s-x prints the letter x
> s-b prints the letter b
> s-m prints the letter m

Has anybody else encountered this problem?  Have also installed Trisquel 8,
and the problem persists.




^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-12 16:56         ` goncholden
@ 2022-03-12 17:23           ` goncholden
  2022-03-13  0:16           ` Po Lu
  1 sibling, 0 replies; 20+ messages in thread
From: goncholden @ 2022-03-12 17:23 UTC (permalink / raw)
  To: goncholden; +Cc: Po Lu, goncholden via Users list for the GNU Emacs text editor



Sent with ProtonMail secure email.

------- Original Message -------

On Saturday, March 12th, 2022 at 4:56 PM, goncholden <goncholden@protonmail.com> wrote:

> ------- Original Message -------
>
> On Saturday, March 12th, 2022 at 11:22 AM, goncholden goncholden@protonmail.com wrote:
>
> > ------- Original Message -------
> >
> > On Saturday, March 12th, 2022 at 12:49 AM, Po Lu luangruo@yahoo.com wrote:
> >
> > > goncholden goncholden@protonmail.com writes:
> > >
> > > > shift Shift_L (0x32), Shift_R (0x3e)
> > > >
> > > > lock Caps_Lock (0x42)
> > > >
> > > > control Control_L (0x25), Control_R (0x69)
> > > >
> > > > mod1 Alt_L (0x40), Alt_R (0x6c), 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)
>
> > > Hmm, this seems normal to me. What happens when you type something with
> > >
> > > a super key held down in Emacs?
>
> > I just get the letter printed on the emacs window buffer
>
> > s-x prints the letter x
> > s-b prints the letter b
> > s-m prints the letter m

> Has anybody else encountered this problem? Have also installed Trisquel 8,
> and the problem persists.

Have gone to System >> Preferences >> Keyboard.  Then Layouts tab. Then Layout Options to bring up a dialog box.
In the list of options, there is an item marked Alt/Win key behaviour.  But could not change the value from
“Default” to “Super is mapped to the Win-keys”.  “Super is mapped to the Win-keys” does not exist.







^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-12 16:56         ` goncholden
  2022-03-12 17:23           ` goncholden
@ 2022-03-13  0:16           ` Po Lu
  2022-03-13  0:47             ` goncholden
  1 sibling, 1 reply; 20+ messages in thread
From: Po Lu @ 2022-03-13  0:16 UTC (permalink / raw)
  To: goncholden; +Cc: goncholden via Users list for the GNU Emacs text editor

goncholden <goncholden@protonmail.com> writes:

> Has anybody else encountered this problem?  Have also installed Trisquel 8,
> and the problem persists.

Then it's likely not a problem with Emacs.  Does the super key work in
other programs?



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-13  0:16           ` Po Lu
@ 2022-03-13  0:47             ` goncholden
  2022-03-13  2:18               ` Po Lu
  2022-03-13 11:58               ` Eric S Fraga
  0 siblings, 2 replies; 20+ messages in thread
From: goncholden @ 2022-03-13  0:47 UTC (permalink / raw)
  To: Po Lu; +Cc: goncholden via Users list for the GNU Emacs text editor

------- Original Message -------
On Sunday, March 13th, 2022 at 12:16 AM, Po Lu <luangruo@yahoo.com> wrote:
> goncholden goncholden@protonmail.com writes:
>
> > Has anybody else encountered this problem? Have also installed Trisquel 8,
> > and the problem persists.
>
> Then it's likely not a problem with Emacs. Does the super key work in
> other programs?

I do not know how to test it.  Have tried xev, but it is not returning me any
information.

Now, I have decided to swap the Alt(Meta)-Key with the Ctrl-Key.  And use
the Caps-Lock for the Hyper.  But having problems.

This is the information I have

xmodmap -pke | grep "Control\|Alt\|Meta\|Hyper\|Super"
keycode  37 = Control_L NoSymbol Control_L
keycode  64 = Alt_L Meta_L Alt_L Meta_L
keycode 105 = Control_R NoSymbol Control_R
keycode 108 = Alt_R Meta_R Alt_R Meta_R
keycode 133 = Hyper_L NoSymbol Hyper_L
keycode 134 = Hyper_R NoSymbol Hyper_R
keycode 204 = NoSymbol Alt_L NoSymbol Alt_L
keycode 205 = NoSymbol Meta_L NoSymbol Meta_L
keycode 206 = NoSymbol Super_L NoSymbol Super_L
keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L

xmodmap -pm
xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

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


And here is what I have written

clear mod4

keycode 37 = Alt_L Meta_L Alt_R Meta_R
keycode 105 = Alt_L Meta_L Alt_R Meta_R

add mod4 = Alt_L Meta_L Alt_R Meta_R

!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Set Ctrl-Key to position of Alt(Meta)-Key

keycode 64 = Control_L NoSymbol Control_L
keycode 108 = Control_R NoSymbol Control_R











^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-13  0:47             ` goncholden
@ 2022-03-13  2:18               ` Po Lu
  2022-03-13 11:58               ` Eric S Fraga
  1 sibling, 0 replies; 20+ messages in thread
From: Po Lu @ 2022-03-13  2:18 UTC (permalink / raw)
  To: goncholden; +Cc: goncholden via Users list for the GNU Emacs text editor

goncholden <goncholden@protonmail.com> writes:

> Now, I have decided to swap the Alt(Meta)-Key with the Ctrl-Key.  And use
> the Caps-Lock for the Hyper.  But having problems.

Please explain exactly what the problems are, otherwise it's very
difficult to help you.  Thanks.



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-13  0:47             ` goncholden
  2022-03-13  2:18               ` Po Lu
@ 2022-03-13 11:58               ` Eric S Fraga
  2022-03-13 12:24                 ` goncholden
  1 sibling, 1 reply; 20+ messages in thread
From: Eric S Fraga @ 2022-03-13 11:58 UTC (permalink / raw)
  To: help-gnu-emacs

On Sunday, 13 Mar 2022 at 00:47, goncholden wrote:
> I do not know how to test it.  Have tried xev, but it is not returning me any
> information.

Strange.  Maybe checkout setxkbmap to change the "layout" of the
keyboard?  "man xkeyboard-config" may be helpful for this.

-- 
Eric S Fraga with org 9.5.2 in Emacs 29.0.50 on Debian 11.2




^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-13 11:58               ` Eric S Fraga
@ 2022-03-13 12:24                 ` goncholden
  2022-03-13 18:58                   ` Christopher Dimech
  0 siblings, 1 reply; 20+ messages in thread
From: goncholden @ 2022-03-13 12:24 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: help-gnu-emacs

------- Original Message -------
On Sunday, March 13th, 2022 at 11:58 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> On Sunday, 13 Mar 2022 at 00:47, goncholden wrote:
>
> > I do not know how to test it. Have tried xev, but it is not returning me any
> > information.
>
> Strange. Maybe checkout setxkbmap to change the "layout" of the
> keyboard? "man xkeyboard-config" may be helpful for this.

Have used the following setxkbmap command to change the layout

 setxkbmap -layout us -variant dvorak

But do not know how to change the different dvorak variants.

E.g.
English US (dvorak, Alt, Intl)
English US (dvorak, Intl with dead keys)

At any rate, the Super-Key should be between Ctrl-Key and Alt-Key.









^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-13 12:24                 ` goncholden
@ 2022-03-13 18:58                   ` Christopher Dimech
  2022-03-13 19:02                     ` Fw: " Christopher Dimech
  2022-03-13 21:55                     ` Christopher Dimech
  0 siblings, 2 replies; 20+ messages in thread
From: Christopher Dimech @ 2022-03-13 18:58 UTC (permalink / raw)
  To: goncholden; +Cc: help-gnu-emacs, Eric S Fraga

T have set up a dvorak-classic using

setxkbmap -layout us -variant dvorak-classic

This gives

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  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)


keycode  37 = Alt_L Meta_L Alt_R Meta_R
keycode  64 = Control_L NoSymbol Control_L
keycode 105 = Alt_L Meta_L Alt_R Meta_R
keycode 108 = Control_L NoSymbol Control_L
keycode 133 = Super_L NoSymbol Super_L
keycode 134 = Super_R NoSymbol Super_R
keycode 204 = NoSymbol Alt_L NoSymbol Alt_L
keycode 205 = NoSymbol Meta_L NoSymbol Meta_L
keycode 206 = NoSymbol Super_L NoSymbol Super_L
keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L

Calling xmodmap with the following, gets xev to return the correct keys

clear control
clear mod1

keycode  37 = Control_L NoSymbol Control_L
keycode 105 = Control_L NoSymbol Control_L

keycode  64 = Alt_L Meta_L Alt_R Meta_R
keycode 108 = Alt_L Meta_L Alt_R Meta_R

add control = Alt_L Alt_R Meta_L
add mod1    = Control_L Control_R

But whilst Emacs-27.2 recognises the control modifier on mod1, it fails to recognise
the meta modifier on control.




^ permalink raw reply	[flat|nested] 20+ messages in thread

* Fw: Re: dell laptop cannot access super-key.
  2022-03-13 18:58                   ` Christopher Dimech
@ 2022-03-13 19:02                     ` Christopher Dimech
  2022-03-13 21:55                     ` Christopher Dimech
  1 sibling, 0 replies; 20+ messages in thread
From: Christopher Dimech @ 2022-03-13 19:02 UTC (permalink / raw)
  To: Help Gnu Emacs

Have seen that dvorak-classic changes the numeric row so numbers are not consecutive.
Thus, I have now changed to just dvorak.

Have also noticed that on Trisquel 9 and Trisquel 10, there are no ducky keyboards defined.


> Have set up a dvorak using
>
> setxkbmap -layout us -variant dvorak
>
> This gives
>
> shift       Shift_L (0x32),  Shift_R (0x3e)
> lock        Caps_Lock (0x42)
> control     Control_L (0x25),  Control_R (0x69)
> mod1        Alt_L (0x40),  Alt_R (0x6c),  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)
>
>
> keycode  37 = Alt_L Meta_L Alt_R Meta_R
> keycode  64 = Control_L NoSymbol Control_L
> keycode 105 = Alt_L Meta_L Alt_R Meta_R
> keycode 108 = Control_L NoSymbol Control_L
> keycode 133 = Super_L NoSymbol Super_L
> keycode 134 = Super_R NoSymbol Super_R
> keycode 204 = NoSymbol Alt_L NoSymbol Alt_L
> keycode 205 = NoSymbol Meta_L NoSymbol Meta_L
> keycode 206 = NoSymbol Super_L NoSymbol Super_L
> keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L
>
> Calling xmodmap with the following, gets xev to return the correct keys
>
> clear control
> clear mod1
>
> keycode  37 = Control_L NoSymbol Control_L
> keycode 105 = Control_L NoSymbol Control_L
>
> keycode  64 = Alt_L Meta_L Alt_R Meta_R
> keycode 108 = Alt_L Meta_L Alt_R Meta_R
>
> add control = Alt_L Alt_R Meta_L
> add mod1    = Control_L Control_R
>
> But whilst Emacs-27.2 recognises the control modifier on mod1, it fails to recognise
> the meta modifier on control.
>



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-13 18:58                   ` Christopher Dimech
  2022-03-13 19:02                     ` Fw: " Christopher Dimech
@ 2022-03-13 21:55                     ` Christopher Dimech
  2022-03-14  0:59                       ` goncholden
  1 sibling, 1 reply; 20+ messages in thread
From: Christopher Dimech @ 2022-03-13 21:55 UTC (permalink / raw)
  To: Christopher Dimech; +Cc: help-gnu-emacs, goncholden, Eric S Fraga

The easiest thing you can do is swap the Alt(Meta) with Ctrl,
and use Cops-Lock as your Hyper.  You can do this with Trisquel.

System -> Preferences -> Hardware -> Keyboard

Then click on Layouts -> Options


> Sent: Monday, March 14, 2022 at 6:58 AM
> From: "Christopher Dimech" <dimech@gmx.com>
> To: goncholden@protonmail.com
> Cc: help-gnu-emacs@gnu.org, "Eric S Fraga" <e.fraga@ucl.ac.uk>
> Subject: Re: dell laptop cannot access super-key.
>
> T have set up a dvorak-classic using
>
> setxkbmap -layout us -variant dvorak-classic
>
> This gives
>
> shift       Shift_L (0x32),  Shift_R (0x3e)
> lock        Caps_Lock (0x42)
> control     Control_L (0x25),  Control_R (0x69)
> mod1        Alt_L (0x40),  Alt_R (0x6c),  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)
>
>
> keycode  37 = Alt_L Meta_L Alt_R Meta_R
> keycode  64 = Control_L NoSymbol Control_L
> keycode 105 = Alt_L Meta_L Alt_R Meta_R
> keycode 108 = Control_L NoSymbol Control_L
> keycode 133 = Super_L NoSymbol Super_L
> keycode 134 = Super_R NoSymbol Super_R
> keycode 204 = NoSymbol Alt_L NoSymbol Alt_L
> keycode 205 = NoSymbol Meta_L NoSymbol Meta_L
> keycode 206 = NoSymbol Super_L NoSymbol Super_L
> keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L
>
> Calling xmodmap with the following, gets xev to return the correct keys
>
> clear control
> clear mod1
>
> keycode  37 = Control_L NoSymbol Control_L
> keycode 105 = Control_L NoSymbol Control_L
>
> keycode  64 = Alt_L Meta_L Alt_R Meta_R
> keycode 108 = Alt_L Meta_L Alt_R Meta_R
>
> add control = Alt_L Alt_R Meta_L
> add mod1    = Control_L Control_R
>
> But whilst Emacs-27.2 recognises the control modifier on mod1, it fails to recognise
> the meta modifier on control.
>
>
>



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-13 21:55                     ` Christopher Dimech
@ 2022-03-14  0:59                       ` goncholden
  2022-03-14  5:19                         ` hw
  0 siblings, 1 reply; 20+ messages in thread
From: goncholden @ 2022-03-14  0:59 UTC (permalink / raw)
  To: Christopher Dimech; +Cc: help-gnu-emacs, Eric S Fraga

------- Original Message -------
On Sunday, March 13th, 2022 at 9:55 PM, Christopher Dimech <dimech@gmx.com> wrote:

> The easiest thing you can do is swap the Alt(Meta) with Ctrl,
> and use Cops-Lock as your Hyper. You can do this with Trisquel.
> System -> Preferences -> Hardware -> Keyboard
>
> Then click on Layouts -> Options

For the moment I am doing as you suggest


> > Sent: Monday, March 14, 2022 at 6:58 AM
> >
> > From: "Christopher Dimech" dimech@gmx.com
> >
> > To: goncholden@protonmail.com
> >
> > Cc: help-gnu-emacs@gnu.org, "Eric S Fraga" e.fraga@ucl.ac.uk
> >
> > Subject: Re: dell laptop cannot access super-key.
> >
> > T have set up a dvorak-classic using
> >
> > setxkbmap -layout us -variant dvorak-classic
> >
> > This gives
> >
> > shift Shift_L (0x32), Shift_R (0x3e)
> >
> > lock Caps_Lock (0x42)
> >
> > control Control_L (0x25), Control_R (0x69)
> >
> > mod1 Alt_L (0x40), Alt_R (0x6c), 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)
> >
> > keycode 37 = Alt_L Meta_L Alt_R Meta_R
> >
> > keycode 64 = Control_L NoSymbol Control_L
> >
> > keycode 105 = Alt_L Meta_L Alt_R Meta_R
> >
> > keycode 108 = Control_L NoSymbol Control_L
> >
> > keycode 133 = Super_L NoSymbol Super_L
> >
> > keycode 134 = Super_R NoSymbol Super_R
> >
> > keycode 204 = NoSymbol Alt_L NoSymbol Alt_L
> >
> > keycode 205 = NoSymbol Meta_L NoSymbol Meta_L
> >
> > keycode 206 = NoSymbol Super_L NoSymbol Super_L
> >
> > keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L
> >
> > Calling xmodmap with the following, gets xev to return the correct keys
> >
> > clear control
> >
> > clear mod1
> >
> > keycode 37 = Control_L NoSymbol Control_L
> >
> > keycode 105 = Control_L NoSymbol Control_L
> >
> > keycode 64 = Alt_L Meta_L Alt_R Meta_R
> >
> > keycode 108 = Alt_L Meta_L Alt_R Meta_R
> >
> > add control = Alt_L Alt_R Meta_L
> >
> > add mod1 = Control_L Control_R
> >
> > But whilst Emacs-27.2 recognises the control modifier on mod1, it fails to recognise
> >
> > the meta modifier on control.



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-14  0:59                       ` goncholden
@ 2022-03-14  5:19                         ` hw
  2022-03-14 15:04                           ` Christopher Dimech
  0 siblings, 1 reply; 20+ messages in thread
From: hw @ 2022-03-14  5:19 UTC (permalink / raw)
  To: help-gnu-emacs


Maybe this is a BIOS setting which makes it so that the key
you are trying to use is used for a FN key like some laptops
have, or disabled for some reason.

Another issue could be that the keyboard isn't set up correctly
for the console.  A possible symptom for such a condition can be
that you can not switch with between X11 and a console.  In that
case, it is advisable to fix the keyboard setup for the console
first.

With Linux, setting a keyboard provides you with a lot of
inherent flexibility.


On Mon, 2022-03-14 at 00:59 +0000, goncholden wrote:
> ------- Original Message -------
> On Sunday, March 13th, 2022 at 9:55 PM, Christopher Dimech <dimech@gmx.com> wrote:
> 
> > The easiest thing you can do is swap the Alt(Meta) with Ctrl,
> > and use Cops-Lock as your Hyper. You can do this with Trisquel.
> > System -> Preferences -> Hardware -> Keyboard
> > 
> > Then click on Layouts -> Options
> 
> For the moment I am doing as you suggest
> 
> 
> > > Sent: Monday, March 14, 2022 at 6:58 AM
> > > 
> > > From: "Christopher Dimech" dimech@gmx.com
> > > 
> > > To: goncholden@protonmail.com
> > > 
> > > Cc: help-gnu-emacs@gnu.org, "Eric S Fraga" e.fraga@ucl.ac.uk
> > > 
> > > Subject: Re: dell laptop cannot access super-key.
> > > 
> > > T have set up a dvorak-classic using
> > > 
> > > setxkbmap -layout us -variant dvorak-classic
> > > 
> > > This gives
> > > 
> > > shift Shift_L (0x32), Shift_R (0x3e)
> > > 
> > > lock Caps_Lock (0x42)
> > > 
> > > control Control_L (0x25), Control_R (0x69)
> > > 
> > > mod1 Alt_L (0x40), Alt_R (0x6c), 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)
> > > 
> > > keycode 37 = Alt_L Meta_L Alt_R Meta_R
> > > 
> > > keycode 64 = Control_L NoSymbol Control_L
> > > 
> > > keycode 105 = Alt_L Meta_L Alt_R Meta_R
> > > 
> > > keycode 108 = Control_L NoSymbol Control_L
> > > 
> > > keycode 133 = Super_L NoSymbol Super_L
> > > 
> > > keycode 134 = Super_R NoSymbol Super_R
> > > 
> > > keycode 204 = NoSymbol Alt_L NoSymbol Alt_L
> > > 
> > > keycode 205 = NoSymbol Meta_L NoSymbol Meta_L
> > > 
> > > keycode 206 = NoSymbol Super_L NoSymbol Super_L
> > > 
> > > keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L
> > > 
> > > Calling xmodmap with the following, gets xev to return the correct keys
> > > 
> > > clear control
> > > 
> > > clear mod1
> > > 
> > > keycode 37 = Control_L NoSymbol Control_L
> > > 
> > > keycode 105 = Control_L NoSymbol Control_L
> > > 
> > > keycode 64 = Alt_L Meta_L Alt_R Meta_R
> > > 
> > > keycode 108 = Alt_L Meta_L Alt_R Meta_R
> > > 
> > > add control = Alt_L Alt_R Meta_L
> > > 
> > > add mod1 = Control_L Control_R
> > > 
> > > But whilst Emacs-27.2 recognises the control modifier on mod1, it fails to recognise
> > > 
> > > the meta modifier on control.
> 




^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-14  5:19                         ` hw
@ 2022-03-14 15:04                           ` Christopher Dimech
  2022-03-14 15:52                             ` tomas
  0 siblings, 1 reply; 20+ messages in thread
From: Christopher Dimech @ 2022-03-14 15:04 UTC (permalink / raw)
  To: hw; +Cc: help-gnu-emacs

> Sent: Monday, March 14, 2022 at 5:19 PM
> From: "hw" <hw@adminart.net>
> To: help-gnu-emacs@gnu.org
> Subject: Re: dell laptop cannot access super-key.
>
>
> Maybe this is a BIOS setting which makes it so that the key
> you are trying to use is used for a FN key like some laptops
> have, or disabled for some reason.

It could well be.  Dell could have done this from reading

https://www.dell.com/support/kbdoc/en-us/000116152/how-to-enable-the-ubuntu-super-key-on-dell-oem-ubuntu-installations

One can set the Keyboard Model to "Generic 104-key PC" using "Keyboard Preferences".
This has the Super-Key in place of the Win-Key. But the Win-Key does not seen to
communicate the presses when using xev.

The Fn-Key is on another key, next to the Win-Key, making me unlikely to think
that it is being used as FN.





> Another issue could be that the keyboard isn't set up correctly
> for the console.  A possible symptom for such a condition can be
> that you can not switch with between X11 and a console.  In that
> case, it is advisable to fix the keyboard setup for the console
> first.
>
> With Linux, setting a keyboard provides you with a lot of
> inherent flexibility.
>
>
> On Mon, 2022-03-14 at 00:59 +0000, goncholden wrote:
> > ------- Original Message -------
> > On Sunday, March 13th, 2022 at 9:55 PM, Christopher Dimech <dimech@gmx.com> wrote:
> >
> > > The easiest thing you can do is swap the Alt(Meta) with Ctrl,
> > > and use Cops-Lock as your Hyper. You can do this with Trisquel.
> > > System -> Preferences -> Hardware -> Keyboard
> > >
> > > Then click on Layouts -> Options
> >
> > For the moment I am doing as you suggest
> >
> >
> > > > Sent: Monday, March 14, 2022 at 6:58 AM
> > > >
> > > > From: "Christopher Dimech" dimech@gmx.com
> > > >
> > > > To: goncholden@protonmail.com
> > > >
> > > > Cc: help-gnu-emacs@gnu.org, "Eric S Fraga" e.fraga@ucl.ac.uk
> > > >
> > > > Subject: Re: dell laptop cannot access super-key.
> > > >
> > > > T have set up a dvorak-classic using
> > > >
> > > > setxkbmap -layout us -variant dvorak-classic
> > > >
> > > > This gives
> > > >
> > > > shift Shift_L (0x32), Shift_R (0x3e)
> > > >
> > > > lock Caps_Lock (0x42)
> > > >
> > > > control Control_L (0x25), Control_R (0x69)
> > > >
> > > > mod1 Alt_L (0x40), Alt_R (0x6c), 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)
> > > >
> > > > keycode 37 = Alt_L Meta_L Alt_R Meta_R
> > > >
> > > > keycode 64 = Control_L NoSymbol Control_L
> > > >
> > > > keycode 105 = Alt_L Meta_L Alt_R Meta_R
> > > >
> > > > keycode 108 = Control_L NoSymbol Control_L
> > > >
> > > > keycode 133 = Super_L NoSymbol Super_L
> > > >
> > > > keycode 134 = Super_R NoSymbol Super_R
> > > >
> > > > keycode 204 = NoSymbol Alt_L NoSymbol Alt_L
> > > >
> > > > keycode 205 = NoSymbol Meta_L NoSymbol Meta_L
> > > >
> > > > keycode 206 = NoSymbol Super_L NoSymbol Super_L
> > > >
> > > > keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L
> > > >
> > > > Calling xmodmap with the following, gets xev to return the correct keys
> > > >
> > > > clear control
> > > >
> > > > clear mod1
> > > >
> > > > keycode 37 = Control_L NoSymbol Control_L
> > > >
> > > > keycode 105 = Control_L NoSymbol Control_L
> > > >
> > > > keycode 64 = Alt_L Meta_L Alt_R Meta_R
> > > >
> > > > keycode 108 = Alt_L Meta_L Alt_R Meta_R
> > > >
> > > > add control = Alt_L Alt_R Meta_L
> > > >
> > > > add mod1 = Control_L Control_R
> > > >
> > > > But whilst Emacs-27.2 recognises the control modifier on mod1, it fails to recognise
> > > >
> > > > the meta modifier on control.
> >
>
>
>



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-14 15:04                           ` Christopher Dimech
@ 2022-03-14 15:52                             ` tomas
  2022-03-14 17:14                               ` angelomolina--- via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 20+ messages in thread
From: tomas @ 2022-03-14 15:52 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1651 bytes --]

On Mon, Mar 14, 2022 at 04:04:49PM +0100, Christopher Dimech wrote:
> > Sent: Monday, March 14, 2022 at 5:19 PM
> > From: "hw" <hw@adminart.net>
> > To: help-gnu-emacs@gnu.org
> > Subject: Re: dell laptop cannot access super-key.
> >
> >
> > Maybe this is a BIOS setting which makes it so that the key
> > you are trying to use is used for a FN key like some laptops
> > have, or disabled for some reason.
> 
> It could well be.  Dell could have done this from reading
> 
> https://www.dell.com/support/kbdoc/en-us/000116152/how-to-enable-the-ubuntu-super-key-on-dell-oem-ubuntu-installations
> 
> One can set the Keyboard Model to "Generic 104-key PC" using "Keyboard Preferences".
> This has the Super-Key in place of the Win-Key. But the Win-Key does not seen to
> communicate the presses when using xev.
> 
> The Fn-Key is on another key, next to the Win-Key, making me unlikely to think
> that it is being used as FN.

FWIW, my installation generates X events also for the Fn key:

  KeyPress event, serial 36, synthetic NO, window 0x2600001,
      root 0x167, subw 0x0, time 18886981, (-13,41), root:(437,157),
      state 0x0, keycode 151 (keysym 0x1008ff2b, XF86WakeUp), same_screen YES,
      XLookupString gives 0 bytes: 
      XmbLookupString gives 0 bytes: 
      XFilterEvent returns: False
  
  KeyRelease event, serial 36, synthetic NO, window 0x2600001,
      root 0x167, subw 0x0, time 18886991, (-13,41), root:(437,157),
      state 0x0, keycode 151 (keysym 0x1008ff2b, XF86WakeUp), same_screen YES,
      XLookupString gives 0 bytes: 
      XFilterEvent returns: False

YMMV.

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: dell laptop cannot access super-key.
  2022-03-14 15:52                             ` tomas
@ 2022-03-14 17:14                               ` angelomolina--- via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 20+ messages in thread
From: angelomolina--- via Users list for the GNU Emacs text editor @ 2022-03-14 17:14 UTC (permalink / raw)
  To: tomas; +Cc: Help Gnu Emacs


Mar 14, 2022, 15:52 by tomas@tuxteam.de:

> On Mon, Mar 14, 2022 at 04:04:49PM +0100, Christopher Dimech wrote:
>
>> > Sent: Monday, March 14, 2022 at 5:19 PM
>> > From: "hw" <hw@adminart.net>
>> > To: help-gnu-emacs@gnu.org
>> > Subject: Re: dell laptop cannot access super-key.
>> >
>> >
>> > Maybe this is a BIOS setting which makes it so that the key
>> > you are trying to use is used for a FN key like some laptops
>> > have, or disabled for some reason.
>>
>> It could well be.  Dell could have done this from reading
>>
>> https://www.dell.com/support/kbdoc/en-us/000116152/how-to-enable-the-ubuntu-super-key-on-dell-oem-ubuntu-installations
>>
>> One can set the Keyboard Model to "Generic 104-key PC" using "Keyboard Preferences".
>> This has the Super-Key in place of the Win-Key. But the Win-Key does not seen to
>> communicate the presses when using xev.
>>
>> The Fn-Key is on another key, next to the Win-Key, making me unlikely to think
>> that it is being used as FN.
>>
>
> FWIW, my installation generates X events also for the Fn key:
>

I do not get X events for Fn-Key either.  Am starting to think it is a restriction from Dell.
Could anybody confirm?



>  KeyPress event, serial 36, synthetic NO, window 0x2600001,
>  root 0x167, subw 0x0, time 18886981, (-13,41), root:(437,157),
>  state 0x0, keycode 151 (keysym 0x1008ff2b, XF86WakeUp), same_screen YES,
>  XLookupString gives 0 bytes: 
>  XmbLookupString gives 0 bytes: 
>  XFilterEvent returns: False
>  
>  KeyRelease event, serial 36, synthetic NO, window 0x2600001,
>  root 0x167, subw 0x0, time 18886991, (-13,41), root:(437,157),
>  state 0x0, keycode 151 (keysym 0x1008ff2b, XF86WakeUp), same_screen YES,
>  XLookupString gives 0 bytes: 
>  XFilterEvent returns: False
>
> YMMV.
>
> Cheers
> -- 
> t
>



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-03-14 17:14 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-11 21:11 dell laptop cannot access super-key goncholden via Users list for the GNU Emacs text editor
2022-03-12  0:19 ` Po Lu
2022-03-12  0:26   ` goncholden
2022-03-12  0:49     ` Po Lu
2022-03-12 11:22       ` goncholden
2022-03-12 16:56         ` goncholden
2022-03-12 17:23           ` goncholden
2022-03-13  0:16           ` Po Lu
2022-03-13  0:47             ` goncholden
2022-03-13  2:18               ` Po Lu
2022-03-13 11:58               ` Eric S Fraga
2022-03-13 12:24                 ` goncholden
2022-03-13 18:58                   ` Christopher Dimech
2022-03-13 19:02                     ` Fw: " Christopher Dimech
2022-03-13 21:55                     ` Christopher Dimech
2022-03-14  0:59                       ` goncholden
2022-03-14  5:19                         ` hw
2022-03-14 15:04                           ` Christopher Dimech
2022-03-14 15:52                             ` tomas
2022-03-14 17:14                               ` angelomolina--- via Users list for the GNU Emacs text editor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).