You are not logged in.

#1 2014-03-16 18:20:03

IMBJR
Member
From: INDCMPLX
Registered: 2014-03-16
Posts: 88

Alt+SysReq REISUB not working

Despite the fact that /etc/sysctl.d/99-sysctl.conf contains:

kernel.sysrq=1

and cat /proc/sys/kernel/sysrq confirms this is set by displaying:

1

The magic key combo merely appears to kill the X server and I go back to lightdm greeter for logging back into my XFCE session.

Is there something about XFCE/lightdm I'm not aware of? There does not appear to be any keyboard shortcut overrides.

Offline

#2 2014-03-16 18:49:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Alt+SysReq REISUB not working

What keys exactly are you pressing / holding?

Offline

#3 2014-03-16 21:01:37

IMBJR
Member
From: INDCMPLX
Registered: 2014-03-16
Posts: 88

Re: Alt+SysReq REISUB not working

Holding down Alt+SysRq, I then press REISUB in that order and its the E key combo that appears to restart the X Server.

Looking on-line, I see the following:

E: Send the SIGTERM signal to all processes except init

and then looking in the journal I see:

Mar 16 20:19:34 pc kernel: SysRq : Keyboard mode set to system default
Mar 16 20:19:35 pc kernel: SysRq : Terminate All Tasks
Mar 16 20:19:35 pc systemd-journal[141]: Journal stopped
Mar 16 20:19:36 pc systemd-journal[6946]: Permanent journal is using 327.2M (max allowed 4.0G, trying to leave 4.0G
Mar 16 20:19:36 pc systemd-journald[141]: Received SIGTERM.
Mar 16 20:19:36 pc systemd-udevd[6913]: starting version 210
Mar 16 20:19:36 pc systemd[1]: dhcpcd.service: control process exited, code=exited status=1
Mar 16 20:19:36 pc systemd[1]: Unit dhcpcd.service entered failed state.
Mar 16 20:19:36 pc systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 16 20:19:36 pc systemd[1]: lightdm.service holdoff time over, scheduling restart.
Mar 16 20:19:36 pc systemd[1]: Unit lightdm.service entered failed state.
Mar 16 20:19:36 pc systemd[1]: systemd-journald.service has no holdoff time, scheduling restart.
Mar 16 20:19:36 pc systemd[1]: Stopping Journal Service...
Mar 16 20:19:36 pc systemd[1]: Starting Journal Service...
Mar 16 20:19:36 pc systemd[1]: Started Journal Service.
Mar 16 20:19:36 pc systemd-journal[6946]: Journal started
Mar 16 20:19:35 pc dhcpcd[337]: received SIGTERM from PID 0, stopping
Mar 16 20:19:35 pc dhcpcd[337]: enp3s0: removing interface
Mar 16 20:19:35 pc dhcpcd[337]: exited
Mar 16 20:19:35 pc dhcpcd[6921]: dhcpcd not running
Mar 16 20:19:35 pc dbus[6938]: [system] Successfully activated service 'org.freedesktop.systemd1'
Mar 16 20:19:35 pc lightdm[474]: pam_unix(lightdm:session): session closed for user imbjr
Mar 16 20:19:35 pc systemd[1]: Failed to send out specific PropertiesChanged signal for systemd-journald.service: C
Mar 16 20:19:35 pc systemd[1]: Failed to send out specific PropertiesChanged signal for systemd-udevd.service: Tran
Mar 16 20:19:35 pc systemd[1]: Failed to send out specific PropertiesChanged signal for systemd-udevd-kernel.socket
Mar 16 20:19:35 pc systemd[1]: Failed to send out specific PropertiesChanged signal for systemd-udevd-control.socke
Mar 16 20:19:35 pc systemd[1]: systemd-udevd.service has no holdoff time, scheduling restart.
Mar 16 20:19:35 pc systemd[1]: Stopping udev Kernel Device Manager...
Mar 16 20:19:35 pc systemd[1]: Starting udev Kernel Device Manager...
Mar 16 20:19:35 pc systemd[1]: Started udev Kernel Device Manager.
Mar 16 20:19:35 pc systemd[1]: lightdm.service: main process exited, code=exited, status=1/FAILURE
Mar 16 20:19:35 pc systemd[1]: Unit lightdm.service entered failed state.
Mar 16 20:19:35 pc systemd[1]: dhcpcd.service: main process exited, code=exited, status=1/FAILURE
Mar 16 20:19:36 pc systemd[514]: Stopping Default.
Mar 16 20:19:36 pc systemd[454]: Stopping Default.
Mar 16 20:19:36 pc systemd[514]: Stopped target Default.
Mar 16 20:19:36 pc systemd[514]: Stopping Basic System.
Mar 16 20:19:36 pc systemd[454]: Stopped target Default.
Mar 16 20:19:36 pc systemd[514]: Stopped target Basic System.
Mar 16 20:19:36 pc systemd[454]: Stopping Basic System.
Mar 16 20:19:36 pc systemd[454]: Stopped target Basic System.
Mar 16 20:19:36 pc systemd[454]: Stopping Paths.
Mar 16 20:19:36 pc systemd[454]: Stopped target Paths.
Mar 16 20:19:36 pc systemd[454]: Stopping Timers.

some of which might me when I am forced to use the machine's power button.

Offline

#4 2014-03-16 21:09:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Alt+SysReq REISUB not working

When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.

Offline

#5 2014-05-13 13:02:33

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: Alt+SysReq REISUB not working

@IMBJR - I am struggling with the same issue. I've created /etc/sysctl.d/99-sysctl.conf with the appropriate contents. This activates the SysRq key (cat /proc/sys/kernel/sysrq gives me output of 1).

However, when I try using Alt+SysRq+REISUB, when I get to Alt+SysRq+E X restarts and I get put right back at my Desktop. I'm using LightDM and MATE. LightDM seems to be the part of the problem, as stopping it first (# systemctl stop lightdm) before trying the magic key sequence causes Alt+SysRq+E to work as expected. With LightDM stopped the entire sequence works until I get to Alt+SysRq+B, which fails to reboot.

The two problems I'd like to solve, therefore, are:

1. Which LightDM setting to change so that Alt+SysRq+E works as expected (terminate all processes without restarting DE)
2. How to get Alt+SysRq+B to work as expected (reboot)

Thanks!

Offline

#6 2014-05-13 13:08:57

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,020

Re: Alt+SysReq REISUB not working

There's "Restart=Always" in /usr/lib/systemd/system/lightdm.service, so the only process left running, systemd, restarts lightdm.

Rebooting works here.

Offline

#7 2014-05-13 13:15:46

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: Alt+SysReq REISUB not working

Thank you, lucke. I commented out "Restart=always" and now Alt+SysRq+E works as expected. Alt+SysRq+B still does nothing for me.

Offline

#8 2014-05-13 13:18:44

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,020

Re: Alt+SysReq REISUB not working

What output do you get in vc1 when you press Alt+SysRq+B? Does Alt+SysRq+O (shutdown) work?

-edit-

Does "echo b > /proc/sysrq-trigger" work?

Last edited by lucke (2014-05-13 13:24:15)

Offline

#9 2014-05-13 13:35:06

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: Alt+SysReq REISUB not working

YES, everything works now!!

I was using the SysRq + RIGHT Alt key, which activates r-e-i-s-u but not b for some very strange reason (!?).  SysRq + LEFT Alt key gets me through the whole sequence. What a relief--this problem was driving me nuts!

P.S. Yes, I tried "echo b > /proc/sysrq-trigger" and it worked. It was at that point that I decided to try different key combinations. Thanks a lot, lucke.

Last edited by bdantas (2014-05-13 13:41:39)

Offline

#10 2014-05-13 16:05:57

IMBJR
Member
From: INDCMPLX
Registered: 2014-03-16
Posts: 88

Re: Alt+SysReq REISUB not working

With the /usr/lib/systemd/system/lightdm.service mod in place, I've made progress, but have to issue an Alt+Ctrl+Del to activate the reboot.

Offline

#11 2014-05-13 16:18:01

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: Alt+SysReq REISUB not working

IMBJR,
What happens if you do this from terminal as root?
echo b > /proc/sysrq-trigger

Edit:
What do you mean by "made progress"? What's working and what's not working?

Last edited by bdantas (2014-05-13 16:18:58)

Offline

#12 2014-05-13 16:21:49

IMBJR
Member
From: INDCMPLX
Registered: 2014-03-16
Posts: 88

Re: Alt+SysReq REISUB not working

echoing b to /proc/srq-trigger works.

By progress, I mean that LightDM does not restart, but reboot does not occur  until I issue Ctrl+Alt+Del

Offline

#13 2014-05-13 16:38:16

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: Alt+SysReq REISUB not working

So you are saying that Alt + SysRq + r, e, i, s, and u work but not Alt + SysRq +b? If so, that's the same issue I was having. The kernel's reboot keyboard shortcut seems to be more finicky about how exactly the key combination is being generated.

I use a laptop. PrtSc and SysRq are on the same key. Even though the color coding on that key indicates that I need to press Fn in order to use SysRq, the combinations work just fine without using the Fn key (i.e., I just press and hold PrtSc and left Alt, then each of r e i s u b in turn separated by a few seconds, then release PrtSc and Alt).

Have you tried Alt + SysRq + b both with and without the Fn key (if present on your keyboard)? Have you tried both left and right Alt keys?

Offline

#14 2014-05-13 16:51:21

IMBJR
Member
From: INDCMPLX
Registered: 2014-03-16
Posts: 88

Re: Alt+SysReq REISUB not working

I've tried combining the sequence with the Ctrl and then the Shift key (there's no Function key on this keyboard and PrtScn and SysRq are on the 1 key, so I thought I'd try those 2), but with no results - except of course that Crl+Alt+Del finalises the progress of the reboot. Due to having quite small hands I kept hitting the O key - that powers down the machine immediately.

Offline

#15 2014-05-13 17:12:27

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: Alt+SysReq REISUB not working

I'm stumped--I am not sure why all combinations are working for you except Alt+SysRq+b. At least you can use Ctrl+Alt+Del as a functional workaround for the last step. Hopefully someone more experienced will be able to help you solve this. If I run across or can think of anything that might help, I'll make sure to post it here.

Offline

Board footer

Powered by FluxBB