con*_*tti 5 linux keyboard keyboard-shortcuts gnome sleep
Fn我的 F1-F12 键上有几个快捷键。F12是计算器,F11让我的电脑进入睡眠状态。我因意外而混淆这些按键的数量是天文数字。
\n\n如何完全禁用挂起/睡眠键,或选择将其映射到其他键?
\n\n\n\n$ gsettings set org.gnome.settings-daemon.plugins.power button-suspend "nothing"\nNo such key \xe2\x80\x9cbutton-suspend\xe2\x80\x9d\n$ gsettings set org.gnome.settings-daemon.plugins.power button-sleep "nothing"\nNo such key \xe2\x80\x9cbutton-sleep\xe2\x80\x9d\n$ gsettings set org.gnome.settings-daemon.plugins.power button-hibernate "nothing"\nNo such key \xe2\x80\x9cbutton-hibernate\xe2\x80\x9d\nRun Code Online (Sandbox Code Playgroud)\n\n我在 arch-linux 上使用 Gnome 3.28.3。我检查了所有内容gnome-settings但gnome-tweak-tool没有成功。搜索suspendor sleepindconf-editor只会得到这个,我确定这不是我要找的:\n
我尝试使用 找出键的名称(?)xev,试图xbindkeys重新映射键,但它不适用于计算器快捷方式(在xev),所以我假设它也不适用于睡眠模式(我不想尝试)。
注意:我不想完全禁用睡眠/挂起。就是那个特殊的键盘键。
\n\n编辑:我现在使用的是最新的 gnome 版本(3.32)。问题仍然存在。
\nAccording to https://wiki.archlinux.org/index.php/GNOME GNOME 3.24 deprecated:
Try
gsettings set org.gnome.settings-daemon.plugins.power power-button-action 'action'
其中'action'可以是Nothing、suspend或hibernate
详情请见: https: //wiki.archlinux.org/index.php/GDM