using power/sleep/wakeup buttons for macros
by babag from LinuxQuestions.org on (#4WT91)
this may be more kubuntu than ubuntu but i'm not sure. i'm using a second keyboard with tools like evdev, evtest, xev, and xte to assign macros to its various keys. ran into a snag, though, with the power, sleep, and wakeup keys which seem to correspond to print screen, scroll lock, and pause.
these keys work as advertised, powering down the computer, sleeping it, waking it. i can't seem to find a way to assign them to what i want, though. i have to disable the power, sleep, wake assignments but when i do this, the buttons themselves seem to become disabled rather than just their relation to the power functions. they cease to be visible in something like xev, making them unassignable.
is there a way to break their tie to the power functions and still retain the buttons as simple buttons?
the way i turned them off was through the gui for 'system settings--->shortcuts--->global shortcuts--->power management.'
thanks,
babag


these keys work as advertised, powering down the computer, sleeping it, waking it. i can't seem to find a way to assign them to what i want, though. i have to disable the power, sleep, wake assignments but when i do this, the buttons themselves seem to become disabled rather than just their relation to the power functions. they cease to be visible in something like xev, making them unassignable.
is there a way to break their tie to the power functions and still retain the buttons as simple buttons?
the way i turned them off was through the gui for 'system settings--->shortcuts--->global shortcuts--->power management.'
thanks,
babag