LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Right Control is acting as a forward slash / (https://www.linuxquestions.org/questions/slackware-14/right-control-is-acting-as-a-forward-slash-4175676165/)

tdmsoares 05-29-2020 05:06 PM

Right Control is acting as a forward slash /
 
I'm using Slackware 14.2 running XFCE in my computer. I've noticed that my right control key is behaving as a forward slash /
I tried:
  • Login as root and tried: KDE/XFCE/FluxBox, and so on, no problem (Right control works as a normal Control Key, as expected)
  • Login as my user and tried: KDE/FluxBox/BlackBox: no problem, except when I run XFCE

So, I suspect this is a problem in some XFCE config related to my user, but I don't know what is going on or even what place I can go to fix this problem.

bassmadrigal 05-29-2020 05:07 PM

Have you tried a different keyboard? A lot of times, these types of issues are hardware and not software.

tdmsoares 05-29-2020 05:10 PM

Quote:

Originally Posted by bassmadrigal (Post 6128852)
Have you tried a different keyboard? A lot of times, these types of issues are hardware and not software.

No, it's the keyboard of the laptop.
IMHO, I don't think is a hardware issue, since in other users no problem and even in my user, only in XFCE the problem occurs

frankbell 05-29-2020 07:57 PM

Maybe running xev in the different DEs/WMs will reveal what's going on differently amongst them.

See man xev for more.

tdmsoares 05-30-2020 10:17 AM

Quote:

Originally Posted by bassmadrigal (Post 6128852)
Have you tried a different keyboard? A lot of times, these types of issues are hardware and not software.

Quote:

Originally Posted by frankbell (Post 6128892)
Maybe running xev in the different DEs/WMs will reveal what's going on differently amongst them.

See man xev for more.

In xev I could see the difference
  • XFCE
Code:

keycode 105 (keysym 0x2f, slash)
  • Fluxbox
Code:

keycode 105 (keysym 0xffe4, CONTROL_R)

shruggy 05-30-2020 12:56 PM

Have you looked into Settings>Keyboard>Layout?

tdmsoares 05-30-2020 07:04 PM

Quote:

Originally Posted by shruggy (Post 6129064)
Have you looked into Settings>Keyboard>Layout?

Yes:
- Use System Defaults: False
- Keyboard Model: Generic 105-key (Intl) PC
- Change Layout option: Win Key + Space
- Compose Key: -
- Keyboard Layout: English (US) French (Azerty) Portuguese Brazil

moesasji 05-31-2020 08:24 AM

I have also seen this happen occasionally on my Slackware current system that uses xcb to remap the keyboard that runs XFCE; it disappears when I restart the GUI, which appears to be the only way to get rid of it once it appears.

The good news is that I'm pretty sure that it is not an hardware issue.

tdmsoares 05-31-2020 07:09 PM

Quote:

Originally Posted by moesasji (Post 6129302)
I have also seen this happen occasionally on my Slackware current system that uses xcb to remap the keyboard that runs XFCE; it disappears when I restart the GUI, which appears to be the only way to get rid of it once it appears.

The good news is that I'm pretty sure that it is not an hardware issue.

Searching and reading man pages, I used xmodmap to change the Control_R key (keycode 105) from Slash to Control_R. It works fine. But only for a moment.
After a while my CTRL_R key behaves again as Slash

moesasji 06-01-2020 03:55 AM

Quote:

Originally Posted by tdmsoares (Post 6129439)
Searching and reading man pages, I used xmodmap to change the Control_R key (keycode 105) from Slash to Control_R. It works fine. But only for a moment.
After a while my CTRL_R key behaves again as Slash

I suspect that you have a mistake in your xmodmap or config files somewhere, which is a pain to debug. Trying with a fresh user account (not root!) would be something I would try as a sanity check first as you might just have a left-over config that is conflicting.

btw) the way I could trigger the behavior is by remapping my keyboard twice with a different configuration (i noticed it when playing with a mirrored layout). It likely is a bug deep down in how xcb works which is painful. I now know how not to trigger it, which works for me.


All times are GMT -5. The time now is 08:01 PM.