You are not logged in.

#1 2020-05-05 08:09:47

NullRoute
Member
Registered: 2018-05-26
Posts: 22

[SOLVED] Can't Assign XF86Sleep Shortcut

For some reason XF86Sleep button on my keyboard cannot be assigned to something else. I've already tried disabling sleep mode with "xset s 0 0" and "xset -dpms" but this did not help. Any ideas how to fix this? Thank you!

Last edited by NullRoute (2020-05-08 14:15:07)

Offline

#2 2020-05-05 11:26:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,048

Re: [SOLVED] Can't Assign XF86Sleep Shortcut

"…assigned to something else"… other than what?
In which environment?
Assigned how?
What happens instead?
Do you read the key in "xev -events keyboard"?

Offline

#3 2020-05-08 14:11:44

NullRoute
Member
Registered: 2018-05-26
Posts: 22

Re: [SOLVED] Can't Assign XF86Sleep Shortcut

@seth;
Q: other than what?
A. other than XF86Sleep :-)

Q: In which environment?
A: XFCE4

Q: Assigned how?
A: That what I was asking.

Q: What happens instead?
A: When sleep key pressed on keyboard it suspends the system.

Q: Do you read the key in "xev -events keyboard"?
A: No longer needed.



I found workaround myself. Simply edit this following config:

# nano /etc/systemd/sleep.conf
AllowSuspend=No

Reload systemd config:

# systemctl daemon-reload

And now I can re-asign my XF86Sleep key to anything I want.

By simply going to XFCE-Menu => Settings => Keyboard.

Now when I press sleep button on my keyboard nothing happens. Just what I needed ^_^

Last edited by NullRoute (2020-05-08 14:15:33)

Offline

Board footer

Powered by FluxBB