Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

How do I restart X?

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
Shining Arcanine
Veteran
Veteran
Posts: 1110
Joined: Thu Sep 24, 2009 9:08 pm

How do I restart X?

  • Quote

Post by Shining Arcanine » Wed Feb 10, 2010 12:17 pm

I know that Ctrl+Alt+Backspace is the way to restart X on Ubuntu (or used to be anyway). Is there a similar key combination on Gentoo for restarting X?
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Wed Feb 10, 2010 1:11 pm

Hi, for that, you need to add this inside your /etc/X11/xorg.conf

Code: Select all

Section "ServerFlags"
    Option    "DontZap"    "false"
EndSection
After that, you will be able to kill your X Server with your CTRL+ALT+BACKSPACE
Top
Shining Arcanine
Veteran
Veteran
Posts: 1110
Joined: Thu Sep 24, 2009 9:08 pm

  • Quote

Post by Shining Arcanine » Wed Feb 10, 2010 1:27 pm

KDM will not start properly when I have that in my /etc/X11/xorg.conf. I had to comment it and restart xdm to get KDM to start. :/
Top
aCOSwt
Bodhisattva
Bodhisattva
Posts: 2537
Joined: Fri Oct 19, 2007 1:48 pm
Location: Hilbert space

  • Quote

Post by aCOSwt » Wed Feb 10, 2010 1:51 pm

d2_racing inviting to do things via xorg.conf !!!
I just cannot believe that ! :wink:

Well, you should now achieve this through hal policies : :P

Edit /etc/hal/fdi/policy/10-x11-input.fdi

Within the <match key="info.capabilities" contains="input.keys"> subsection :

Add :

<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>

Warning : While this is now the correct way to achieve what you want, ctrl_alt_bksp should not be seen as the correct way to stop the X server !
Top
rivivarius
n00b
n00b
Posts: 15
Joined: Sat Apr 19, 2008 9:53 am

  • Quote

Post by rivivarius » Wed Feb 10, 2010 4:12 pm

altgr + printscreen + k doesn't work anymore?
404
Top
costel78
Guru
Guru
Posts: 416
Joined: Fri Apr 20, 2007 6:17 pm

  • Quote

Post by costel78 » Wed Feb 10, 2010 8:53 pm

It's still works.
Don't try it unless you really want to restart X :lol:
Top
darkdog8157
n00b
n00b
Posts: 8
Joined: Wed Feb 10, 2010 3:40 pm

  • Quote

Post by darkdog8157 » Wed Feb 10, 2010 9:03 pm

or...Ctrl-Alt-F1 and Ctrl-C :)
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Thu Feb 11, 2010 3:48 am

In fact, because hal and the backend of Xorg will change again, so why bother with some fdi file.

Maybe in 6 months or so, we will need to use devicekit or something else :P
Top
FishB8
l33t
l33t
User avatar
Posts: 820
Joined: Mon Mar 17, 2003 8:30 pm

  • Quote

Post by FishB8 » Thu Feb 11, 2010 4:36 am

Code: Select all

/etc/init.d/xdm restart
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin
Top
tabanus
l33t
l33t
User avatar
Posts: 638
Joined: Fri Jun 11, 2004 4:07 pm
Location: UK

  • Quote

Post by tabanus » Fri May 14, 2010 6:43 pm

Has this changed again? Because
d2_racing wrote:

Code: Select all

Section "ServerFlags"
    Option    "DontZap"    "false"
EndSection
and
aCOSwt wrote:Edit /etc/hal/fdi/policy/10-x11-input.fdi

Within the <match key="info.capabilities" contains="input.keys"> subsection :

Add :

<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
don't work for me. Whatever the rights and wrongs of using ctrl_alt_bkspace are, it is really useful when the display has locked up rather than hitting the reset button.
Things you might say if you never took Physics: "I'm overweight even though I don't overeat." - Neil deGrasse Tyson
Top
ichbinsisyphos
Guru
Guru
User avatar
Posts: 547
Joined: Fri Dec 08, 2006 7:03 pm

  • Quote

Post by ichbinsisyphos » Fri May 14, 2010 8:20 pm

tabanus wrote:
aCOSwt wrote:Edit /etc/hal/fdi/policy/10-x11-input.fdi

Within the <match key="info.capabilities" contains="input.keys"> subsection :

Add :

<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
don't work for me. Whatever the rights and wrongs of using ctrl_alt_bkspace are, it is really useful when the display has locked up rather than hitting the reset button.
Do you have other xkb.options in that file? I use xorg.conf, but I got zapping working by putting all those options in one line, separated by commas
Muso wrote:I've done a lot of LSD
BoneKracker wrote:I have an IQ in the 140s
Top
tabanus
l33t
l33t
User avatar
Posts: 638
Joined: Fri Jun 11, 2004 4:07 pm
Location: UK

  • Quote

Post by tabanus » Fri May 14, 2010 11:36 pm

Extract from my /etc/hal/fdi/policy/10-x11-input.fdi

Code: Select all

<match key="info.capabilities" contains="input.keys">
      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <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>
I use xorg.conf as well
Things you might say if you never took Physics: "I'm overweight even though I don't overeat." - Neil deGrasse Tyson
Top
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

  • Quote

Post by dE_logics » Sat May 15, 2010 5:20 am

rivivarius wrote:altgr + printscreen + k doesn't work anymore?
That's one weird combination requiring long fingers in a few setups.
My blog
Top
ichbinsisyphos
Guru
Guru
User avatar
Posts: 547
Joined: Fri Dec 08, 2006 7:03 pm

  • Quote

Post by ichbinsisyphos » Sat May 15, 2010 11:12 am

Shining Arcanine wrote:KDM will not start properly when I have that in my /etc/X11/xorg.conf. I had to comment it and restart xdm to get KDM to start. :/
KDE requires special care: http://forums.gentoo.org/viewtopic-p-62 ... ml#6214351


tabanus wrote:Extract from my /etc/hal/fdi/policy/10-x11-input.fdi

Code: Select all

<match key="info.capabilities" contains="input.keys">
      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <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>
I use xorg.conf as well
http://forums.gentoo.org/viewtopic-t-82 ... ight-.html I never used HAL for X, so I don't know. Did you remove the input sections in xorg.conf?

What kept this thing from working for me after I fixed everything else was that I had two XkbOptions-lines in there.

Code: Select all

...
Option          "XkbOptions"    "terminate:ctrl_alt_bksp"
Option          "XkbOptions"    "compose:rwin"
...
no worky

Code: Select all

...
Option          "XkbOptions"    "terminate:ctrl_alt_bksp, compose:rwin"
...
yes worky



The thread linked above also contains some links to docs.
Muso wrote:I've done a lot of LSD
BoneKracker wrote:I have an IQ in the 140s
Top
Post Reply

14 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic