REISUB question

Hello there Linux community!

Let me explain this as plainly as possible; I’ve been running into a good amount of times where the system is barely hanging on while playing games, the system usually does not freeze up entirely but it’s basically inoperable.

I’ve read in on the REISUB subject and wanted to figure out how to use this, only to find out I don’t have a printscreen or sysrq key (The keyboard has 82 keys/75% of a normal keyboard).
I’ve been trying to find people with similar problems or workarounds to either remap the sysrq/make a shortcut for this but I’m stumped on where to go from here.

*Update 1: Swap problem fixed, problem up above is still relevant for future usage.

I want to thank you in advance for reading/helping and hope you have a wonderful day!

Kind Regards,
Damwab

As stated before, my keyboard does not have the button. The buttons that are there are as followed: del, pgup, pgdn and home.

A make and model for the keyboard would probably help. If it is a laptop, give the make and model of the laptop. Otherwise people are just guessing.

For the swap problem, if the partition is not in /etc/fstab then maybe try re-adding it. If you are having problems with commands you have tried, copying the command and exact output is more likely to get responses.

There are steps here: Swap - Manjaro

1 Like

Thanks for your response, I’ll give the details right below:

Keyboard is a Keychron V1 and here is it’s link, it should show the layout of the keyboard on the page it loads up to: Keychron V1 Custom Keyboard 

For the swap problem I have just remade the swap and enabled it, it is now showing up when using ‘swapon’. Thanks for the recommendation to the possible fix of this problem.

My original problem of not being able to use the REISUB still remains however, this would just be a helpful thing to have if I ever do run into freezes again etc.

I’m not familiar with it. There seems to be a Keychron-specific app called VIA which lets you map a macro of key codes to a key press combination, but I have no clue if it will work for your situation. You may have already tried this.

There are key codes listed here (e.g. for KC_SYSTEM_REQUEST) and some info on VIA here.

2 Likes

I would start learning with two ARCH wiki pages, General Troubleshooting and Keyboard Shortcuts.. The keyboard shortcuts has info on what each of the keypress combos does. Please don’t just blindly poke away at those, depending on what process you are interacting with, you could cause some serious damage to your system.

1 Like

… but:
which key on this keyboard is the SysRq key needed for any step of this process
is what he is asking, I guess.

As far as I can tell from the available documentation there isn’t one :person_shrugging: Which is why I suggested looking at the manufacturer’s app which lets you set a macro for a key sequence. The macros do seem to be able to generate the correct key code, but since I’ve never used this type of keyboard have no way of telling if it works.

My comment was directed at @sweasyf

1 Like

That’s a userspace thing. The System Requests are a kernel-level implementation — the idea is to bypass userspace altogether.

SysRqR explicitly switches the keyboard to “unraw mode”, which means that the kernel itself will be interpreting the keypresses, as opposed to forwarding them to userspace.

There are various alternative ways of invoking a System Request, but I don’t know whether they might work for the OP, depending on the keyboard’s internal logic…:

  • ^- (normally only used on mainframe console keyboards)
  • AltVolumeUp or AltF10 (Chromebooks)
  • AltFnS, followed ny releasing Fn and S while still holding Alt (Thinkpad)

You can also trigger a System Request by — in a root terminal — entering the following command… :point_down:

echo s > /proc/sysrq-trigger
3 Likes

Thank you very much for your response, I’ll definitely check this out and hope that I can figure it out from there on! For now it seems that the swap not being assigned was the problem of the freezes, so I’ll embark on the journey of learning some more!

Kind regards!

1 Like

The only free key to map is the volume knob. But as stated above, it has to be through keyboard firmware flashing, not user space.

You should be able to map a specific scancode of your keyboard to the sysrq keycode. I do this for my keyboard to be able to use reisub.

See here: Map scancodes to keycodes - ArchWiki

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.