CTRL + ALT + F1 not working on Gnome 3.28.2 with GTX1060
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Does your keyboard have an "fn" key? Try Ctrl + Alt + fn + f4.
Yes it has but it's used to turn on the LEDs, reduce the polling rate etc... (It's a CMStorm Quickfire pro).
However when I'm at home I'll try it out, thanks for the suggestion.
cat /etc/systemd/logind.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%
It seems regular, isn't it?
I've been investigating about this fact with a couple of friends and they suggested me that it could be a shortcut issue.
However I've tried using Gnome Shortcut to add CTRL + ALT + F1 to execute the command
Code:
sudo chvt 1
to boot into the CLI, but it obviously requires super user password, so it doesn't work.
In addition, when I try to add the "CTRL + ALT + F1" shortcut it doesn't accept those 3 keys simultaneously, I could only type in "CTRL + F1" or "ALT + F1" and even so it doesn't work.
It's the X-server that's responsible for trapping the key combination for changing VT, so I can only think that the keyboard codes differ from what is expected with somehow
What keyboard hardware do you have?
Code:
xinput
Look for the keyboard device and get the info eg for device 11 do
Code:
xinput list-props 11
You can use evtest to examine the input data for a given device...
Code:
evtest
For example, when I press CTRL+ALT+F3, I get
Code:
Event: time 1534361241.002042, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1d
Event: time 1534361241.002042, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1
Event: time 1534361241.002042, -------------- SYN_REPORT ------------
Event: time 1534361241.133983, type 4 (EV_MSC), code 4 (MSC_SCAN), value 38
Event: time 1534361241.133983, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 1
Event: time 1534361241.133983, -------------- SYN_REPORT ------------
Event: time 1534361241.208006, type 4 (EV_MSC), code 4 (MSC_SCAN), value 3d
Event: time 1534361241.208006, type 1 (EV_KEY), code 61 (KEY_F3), value 1
Not sure that I can really help further with this though. A bug report might be needed.
I also wanted to share this Ubuntu thread I turned up while searching online. It happens to describe similar behaviour when the vesa video driver was in use, so you might want to check that your graphics is working as expected perhaps. You can examine the Xorg log, or if inxi is installed, run
It's the X-server that's responsible for trapping the key combination for changing VT, so I can only think that the keyboard codes differ from what is expected with somehow
What keyboard hardware do you have?
Code:
xinput
Look for the keyboard device and get the info eg for device 11 do
Code:
xinput list-props 11
You can use evtest to examine the input data for a given device...
Code:
evtest
For example, when I press CTRL+ALT+F3, I get
Code:
Event: time 1534361241.002042, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1d
Event: time 1534361241.002042, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1
Event: time 1534361241.002042, -------------- SYN_REPORT ------------
Event: time 1534361241.133983, type 4 (EV_MSC), code 4 (MSC_SCAN), value 38
Event: time 1534361241.133983, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 1
Event: time 1534361241.133983, -------------- SYN_REPORT ------------
Event: time 1534361241.208006, type 4 (EV_MSC), code 4 (MSC_SCAN), value 3d
Event: time 1534361241.208006, type 1 (EV_KEY), code 61 (KEY_F3), value 1
Not sure that I can really help further with this though. A bug report might be needed.
This is what I get running
Code:
evtest
Code:
Event: time 1534402115.654538, -------------- SYN_REPORT ------------
Event: time 1534402119.440532, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0
Event: time 1534402119.440532, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1
Event: time 1534402119.440532, -------------- SYN_REPORT ------------
Event: time 1534402119.490600, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2
Event: time 1534402119.490600, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 1
Event: time 1534402119.490600, -------------- SYN_REPORT ------------
Event: time 1534402119.750075, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 2
Event: time 1534402119.750075, -------------- SYN_REPORT ------------
Event: time 1534402119.753575, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0
Event: time 1534402119.753575, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 0
Event: time 1534402119.753575, -------------- SYN_REPORT ------------
Event: time 1534402119.764557, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2
Event: time 1534402119.764557, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 0
Event: time 1534402119.764557, -------------- SYN_REPORT ------------
^[OR^[OREvent: time 1534402158.258993, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e1
I've noticed that it doesn't recognize F1 and F2 keys when the program runs, because it doesn't print anything, whereas pressing F3-F7 seems to return me the ASCII value of those keys eg. ^[OS for F4.
Code:
xiput
Code:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ USB Gaming Mouse id=9 [slave pointer (2)]
⎜ ↳ USB Gaming Mouse id=11 [slave pointer (2)]
⎜ ↳ CM Storm Quickfire Pro Ultimate N key id=13 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ USB Gaming Mouse id=10 [slave keyboard (3)]
↳ CM Storm Quickfire Pro Ultimate N key id=12 [slave keyboard (3)]
↳ UVC Camera (046d:0825) id=14 [slave keyboard (3)]
↳ USB Gaming Mouse id=15 [slave keyboard (3)]
↳ CM Storm Quickfire Pro Ultimate N key id=16 [slave keyboard (3)]
I also wanted to share this Ubuntu thread I turned up while searching online. It happens to describe similar behaviour when the vesa video driver was in use, so you might want to check that your graphics is working as expected perhaps. You can examine the Xorg log, or if inxi is installed, run
I also wanted to share this Ubuntu thread I turned up while searching online. It happens to describe similar behaviour when the vesa video driver was in use, so you might want to check that your graphics is working as expected perhaps. You can examine the Xorg log, or if inxi is installed, run
Code:
inxi -Gxx
I've also checked all the Xorg logs but it seems it doesn't use Vesa Driver (I've seeked with CTRL + F).
That graphics output confirms the nvidia driver is in use, so we can discard that idea.
Quote:
I've noticed that it doesn't recognize F1 and F2 keys when the program runs, because it doesn't print anything, whereas pressing F3-F7 seems to return me the ASCII value of those keys eg. ^[OS for F4.
Unfortunately, the output snippet you shared didn't show the F4 key code explicitly, but I assume it reports something like
Code:
Event: time 1534407914.709106, type 4 (EV_MSC), code 4 (MSC_SCAN), value 3e
Event: time 1534407914.709106, type 1 (EV_KEY), code 62 (KEY_F4), value 1
Your xinput data shows us that you're using a 'CM Storm Quickfire Pro Ultimate N key' keyboard. I'm not familiar with this hardware, but from a quick online search I did turn up a couple of threads reporting function key behaviour that might also be relevant to you perhaps...
After a long time I did a reinstallation of Debian and Arch Linux and now all works really fine, so I guess it was an issue with graphics driver or something.
Thank you really much for helping me!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.