You are not logged in.

#1 2013-07-31 09:06:39

Cronanius
Member
From: Alberta Canada
Registered: 2006-07-31
Posts: 15

Dealing with X crashes

Hey all,
I play a lot of games via PoL/WINE, and I was curious about something: how do you guys deal with X when it crashes? In the past, I would always just CTRL+ALT+F1 into a TTY and kill the process. But since HAL has been depreciated and keyboard/mouse control now belongs to X, I'm basically forced to reboot the whole machine. Being the control-freak and rageaholic that I am, a kitten dies every time I have to reboot my computer just to reset X. Are there any good systems out there that take input handling away from X?
Cheers,
~Cronanius


Perpetually an Arch Newbie. I'm here for the operating system, not the philosophy.

Offline

#2 2013-07-31 10:12:54

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Dealing with X crashes

Try enabling SysRq fully, or enable unRaw and Kill (default is to only allow Sync)

That should allow you to take control of the keyboard away from X, and then kill the X server (you may not need unRaw to use Kill).


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2013-07-31 13:45:14

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Dealing with X crashes

This makes little sense. If X has crashed, why does it need to be killed? It will be dead already.

HAL was deprecated (note that word, it's not "depreciated") aons ago - how is that relevant?

In my experience, a naughty wine game doesn't prevent Ctrl-Alt-F1.

Offline

#4 2013-07-31 14:10:59

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

Re: Dealing with X crashes

brebs wrote:

This makes little sense. If X has crashed, why does it need to be killed? It will be dead already.

HAL was deprecated (note that word, it's not "depreciated") aons ago - how is that relevant?

In my experience, a naughty wine game doesn't prevent Ctrl-Alt-F1.

+1

I run wine in a separate X and I can go back to my regular X session and kill the rogue one. It's useful when I run into some display problems - the monitor turns itself off and I often can't kill the game blind. If X running wine had already crashed, I'm back in the console.

Offline

#5 2013-07-31 15:17:08

Cronanius
Member
From: Alberta Canada
Registered: 2006-07-31
Posts: 15

Re: Dealing with X crashes

brebs wrote:

This makes little sense. If X has crashed, why does it need to be killed? It will be dead already.

HAL was deprecated (note that word, it's not "depreciated") aons ago - how is that relevant?

In my experience, a naughty wine game doesn't prevent Ctrl-Alt-F1.

I apologize for not using the correct terminology - I meant that X "hangs", and, obviously, I wouldn't be asking this question if I *could* get into a terminal.

Last edited by Cronanius (2013-07-31 15:32:38)


Perpetually an Arch Newbie. I'm here for the operating system, not the philosophy.

Offline

#6 2013-07-31 15:27:24

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Dealing with X crashes

If you're using Nvidia's kernel driver, then try disabling "flipping", because flipping can hang the kernel for me.

Other than that, it's not a common issue. You've not provided much detail.

Offline

#7 2013-08-01 00:01:34

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Dealing with X crashes


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB