Page 1 of 1

Cannot turn of Mandriva 2010.2

Posted: 07 Oct 2011, 14:20
by viking60
Lately I seem to be unable to shut down or reboot Mandriva. Even a

Code: Select all

sudo reboot
just hangs there without the desired result?
In tty1 it just says The system is going down for reboot now - a lie in this case - it never moves on.
Gurus?
Edit:
Sorry I forgot that I have activated Expressgate in Bios that is probably it sorry :oops:
I owe you an explaination: Expressgate is that small 10sec boot stuff that lets you surf read mail and use skype and that is about it. It came with the box and disturbes the Linux installation.

Re: Cannot turn of Mandriva 2010.2

Posted: 07 Oct 2011, 15:03
by rolf
I seem to have found that, as root user,

Code: Select all

init 6

to reboot or

Code: Select all

init 0

to power off are the most direct and likely to succeed commands.

Code: Select all

reboot

might be equivalent or a link, even; I just don't have the habit to use that.

As a last resort, if the kernel can hear the keyboard and respond, holding down the Alt and PrtScn/SysRq keys while pressing, in slow sequence:
r(aising) s(kinny) e(lephants) i(s) u(tterly) b(oring) for reboot or

r(aising) s(kinny) e(lephants) i(s) u(tterly) o(off) for power off is what I try before using the reset/power buttons.

I've got the Express Gate on my Asus P5Q Deluxe, too, but did not see that is was useful for how I am accustomed to operate. :berserk2

Re: Cannot turn of Mandriva 2010.2 [SOLVED]

Posted: 07 Oct 2011, 15:43
by viking60
Yes Express gate is useless for me too.
Thanks for those brilliant tips.

Re: Cannot turn of Mandriva 2010.2 [SOLVED]

Posted: 07 Oct 2011, 20:07
by R_Head
My computer with Dual Xeons does that. It will shutdown, so if needs a reboot, I shutdown and manually push the ON button.

The chances of doing that is if I have to Dual Boot or very slim if some chokes up.

If I was in MS all the time and have to do that which is quiet common and frequently I would be very pissed. :lol:

Re: Cannot turn of Mandriva 2010.2

Posted: 07 Oct 2011, 22:49
by dedanna1029
rolf wrote:As a last resort, if the kernel can hear the keyboard and respond, holding down the Alt and PrtScn/SysRq keys while pressing, in slow sequence:
r(aising) s(kinny) e(lephants) i(s) u(tterly) o(off) for power off is what I try before using the reset/power buttons.

I never seem to be able to remember this when it's needed. By the time I'm frozen up, I can't get to it to use it. I have it in gnotes, but can't ever get to it or remember it when it's needed. :(

Re: Cannot turn of Mandriva 2010.2 [SOLVED]

Posted: 14 Oct 2011, 12:40
by viking60
I ask this here because it is related:
Do you have a guru CLI command for logout? Is killing myself the only solution?

Code: Select all

sudo pkill -KILL -u viking

Re: Cannot turn of Mandriva 2010.2 [SOLVED]  Topic is solved

Posted: 14 Oct 2011, 15:06
by rolf
I don't. :( There is some keystroke I use that might accomplish quickly getting to the login screen.

I use KDE, you seem to prefer GNOME, so there might be some differences. If you can get the ear of Medo/Ahmad Samir, he seems to have a good idea of CL ways of managing the desktop, albeit I've only noticed his KDE magic.

Ctrl-Alt-BckSpc-BckSpc 'kills' the X-server, which might bring some extra not-so-good configuration but I use it quite a lot, usually when the desktop is frozen or really, really unresponsive because of some program or other going nuts.

Here, I have autologin and Ctrl-Alt-BckSpc-BckSpc restarts the desktop, bringing me to a brand-new KDE plasma, just like after re-boot, afaict.

On GF/nephew's computer, also KDE, Ctrl-Alt-BckSpc-BckSpc brings them to the login screen, as auto-login is not enabled. So, maybe this keystroke combination would do what you want, maybe not. :confused I think Ctrl-Alt-BckSpc-BckSpc is enabled by default, configurable in the X-server setup, iianm.

Re: Cannot turn of Mandriva 2010.2 [SOLVED]

Posted: 14 Oct 2011, 17:07
by viking60
Thanks!
Yes it is in Mandriva I believe. Arch is another story, but I think I can find a way to set it up! I'll report!
Often when stuff freezes up I can still acess the CLI via another computer and there the keystroke combination does work - but on the wrong computer :-D

Re: Cannot turn of Mandriva 2010.2 [SOLVED]

Posted: 14 Oct 2011, 17:20
by viking60
I found it! I had to change
/etc/X11/xorg.conf.d/10-evdev.conf
And add this entire section:

Code: Select all

Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard   "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection


It works :dance1 ( with only one backspace)
It is all in that fantastic Arch Wiki +1

From the CLI it looks like using pkill is the best solution so far.
PS
(This is kind of relevant because the Arch box could log into the Mandriva box :-D )

Re: Cannot turn of Mandriva 2010.2 [SOLVED]

Posted: 17 Oct 2011, 22:57
by dedanna1029
Linux Desktop How to shutdown, restart or logoff gnome via command / Launcher (Old, but still true)

How can you logout via the terminal?

Code: Select all

dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:1


Or:

Code: Select all

gnome-session-save --force-logout