Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Does anybody here use the "Gentoo" Linux Distribution?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Mon Mar 22, 2010 2:53 am    Post subject: Does anybody here use the "Gentoo" Linux Distribut Reply with quote

I don't know if you have heard of this awesome new program called "xorg-x11". It's in portage, if you want to give it a try.

My question is to those who are already acquainted with this very helpful program:

Can you zap (ctrl-alt-backspace) your X-Server? How?



The relevant part of my xorg.conf:
Code:
...
Section "ServerFlags"
...
    Option    "DontZap"    "False"
...
EndSection
...


This stopped working probably a year ago, after Ubuntu got the devs to change the default behavior and never got it to work since.
Back to top
View user's profile Send private message
RedSquirrel
Guru
Guru


Joined: 22 Apr 2008
Posts: 336

PostPosted: Mon Mar 22, 2010 3:05 am    Post subject: Reply with quote

Section 2 of the following might help:

xorg-server-1.6-upgrade-guide

I use the very last line in that guide.
Back to top
View user's profile Send private message
savalas
n00b
n00b


Joined: 10 Dec 2009
Posts: 40

PostPosted: Mon Mar 22, 2010 3:57 am    Post subject: Reply with quote

And by the way, for those using KDE you have to enable it in System Settings > Regional & Language > Keyboard Layout > Advanced > Key sequence to kill the X server.

Takes me at least 5 minutes everytime I'm looking for that setting on a new install.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Mon Mar 22, 2010 5:50 am    Post subject: Reply with quote

I never actually got zapping to work. I just use Alt+SysRq+K if X is borked.
Back to top
View user's profile Send private message
nikaya
Veteran
Veteran


Joined: 13 May 2006
Posts: 1471
Location: Germany

PostPosted: Mon Mar 22, 2010 3:02 pm    Post subject: Reply with quote

I managed it like it is described in the The X Server Configuration HOWTO

Quote:
(Open the file in your preferred editor)
# nano -w /etc/hal/fdi/policy/10-x11-input.fdi
(Find the "input.keys" section)

<match key="info.capabilities" contains="input.keys">
(Add the "terminate" merge string as shown)
<match key="info.capabilities" contains="input.keys">
<merge key="input.x11_driver" type="string">keyboard</merge>
<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.x11_driver" type="string">evdev<merge>
</match>
</match>


Once you're done, run /etc/init.d/hald restart so that HAL picks up your changes.

_________________
Notes on Dhamma
How to waste your time: look for an explanation of consciousness, ask to know what feeling is. (Nanavira Thera)
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon Mar 22, 2010 5:51 pm    Post subject: Reply with quote

nikaya wrote:
I managed it like it is described in the The X Server Configuration HOWTO

[snip]



this

got it working for me too :)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Mon Mar 22, 2010 6:49 pm    Post subject: Reply with quote

Unless you run hal-free, in which case that doesn't work...
Back to top
View user's profile Send private message
M
Guru
Guru


Joined: 12 Dec 2006
Posts: 432

PostPosted: Mon Mar 22, 2010 7:04 pm    Post subject: Reply with quote

Gnome and KDE now requires to configure "Key sequence to kill the X server", at least they call it the same name ;) I did have "setxkbmap -option terminate:ctrl_alt_bksp" in startup (gnome) and also had .fdi file but that didn't help until I found that option. How did those ubuntu guys convinced xorg people to change this anyway?
Back to top
View user's profile Send private message
RedSquirrel
Guru
Guru


Joined: 22 Apr 2008
Posts: 336

PostPosted: Mon Mar 22, 2010 8:35 pm    Post subject: Reply with quote

AM088 wrote:
Unless you run hal-free, in which case that doesn't work...

Does the following line work for you? From the guide I linked to above:

Quote:
If you still use xorg.conf to manage your input devices, just add the following to your keyboard's InputDevice section :
Option "XkbOptions" "terminate:ctrl_alt_bksp".


I run hal-free and that works for me (with xorg-server-1.6.5-r1).
Back to top
View user's profile Send private message
nick_already_taken
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jan 2005
Posts: 137

PostPosted: Mon Mar 22, 2010 9:19 pm    Post subject: Reply with quote

Funny, that no one here wrote about the subject of the post... What a nice teaser.

No, nobody reading this post does use the "gentoo linux distribution" :)
Back to top
View user's profile Send private message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Tue Mar 23, 2010 12:54 am    Post subject: Reply with quote

RedSquirrel wrote:
AM088 wrote:
Unless you run hal-free, in which case that doesn't work...

Does the following line work for you? From the guide I linked to above:

Quote:
If you still use xorg.conf to manage your input devices, just add the following to your keyboard's InputDevice section :
Option "XkbOptions" "terminate:ctrl_alt_bksp".


I run hal-free and that works for me (with xorg-server-1.6.5-r1).
Does not work for me.
Whatever anybody says, writing XML config files by hand can only be the very VERY very last resort. I would therefor like to avoid using hal.

The only thing that works for now is to enable the option via setxkbmap.

Oh ... I'm not using GNOME or KDE either, just Openbox.

Btw, that's not the only thing that stopped working. I can also no longer light the keyboard leds with xset. Happened at the same time.

Until yesterday I only had xorg-server installed. Because I read that some functionality of the server was migrated to some other package I installed the xorg-x11 meta package today, which didn't change a thing either.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Tue Mar 23, 2010 2:44 am    Post subject: Reply with quote

Doesn't work for me either... gave up on it a long time ago.
Back to top
View user's profile Send private message
RedSquirrel
Guru
Guru


Joined: 22 Apr 2008
Posts: 336

PostPosted: Tue Mar 23, 2010 3:40 am    Post subject: Reply with quote

AM088 wrote:
Doesn't work for me either... gave up on it a long time ago.

It should work if you set your XkbOptions in the following manner:

Code:
Option      "XkbOptions" "compose:ralt,terminate:ctrl_alt_bksp"
Back to top
View user's profile Send private message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Tue Mar 23, 2010 7:02 pm    Post subject: Reply with quote

RedSquirrel wrote:
AM088 wrote:
Doesn't work for me either... gave up on it a long time ago.

It should work if you set your XkbOptions in the following manner:

Code:
Option      "XkbOptions" "compose:ralt,terminate:ctrl_alt_bksp"
It doesn't for me. You know, the suggestions here are becoming more and more what Feynman would have called a cargo cult ;-)


Does anybody use a minimal desktop (just X, a WM and maybe a panel) not a complete DE and got this working without hald? Or maybe somebody knows someone who knows someone who ...?

I'm getting the feeling I'm missing some package here, even if X doesn't complain. Because the options do nothing at all.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Tue Mar 23, 2010 7:07 pm    Post subject: Reply with quote

RedSquirrel wrote:
AM088 wrote:
Doesn't work for me either... gave up on it a long time ago.

It should work if you set your XkbOptions in the following manner:

Code:
Option      "XkbOptions" "compose:ralt,terminate:ctrl_alt_bksp"


Thanks! That worked :)
(And compose keys still work too ☺)
Back to top
View user's profile Send private message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Tue Mar 23, 2010 7:36 pm    Post subject: Reply with quote

edit: forget it. I had another XkbOptions-line in there.


All "XkbOptions"-options in one line, separated by commas and it works.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum