Re: [gentoo-user] How to stop X

2009-07-07 Thread Dale
David Relson wrote:
 On Mon, 6 Jul 2009 15:21:43 -0700
 Kevin O'Gorman wrote:

   
 On Mon, Jul 6, 2009 at 2:17 PM, Paul
 Hartmanpaul.hartman+gen...@gmail.com wrote:
 
 On Mon, Jul 6, 2009 at 2:33 PM, Kevin O'Gormankogor...@gmail.com
 wrote:
   
 I'm having trouble configuring X, and to save time I'd like to be
 able to shut it down, edit some stuff, and start it up again.

 What is the gentoo way to do that?
 
 It depends on how you started X in the first place. If you did a
 startx (or similar), logging out should be all you need to do to
 get out of X. If you use a login manager, XDM/GDM/KDM then it'll
 restart itself so you'll need to switch to a VT (ctrl-alt-F1) and
 then sudo /etc/init.d/xdm stop to shut down XDM (and therefore X).
 You can then rmmod your video drivers or do whatever changes you
 want to do. sudo /etc/init.d/xdm start to bring it back up.


   
 Several of you suggested /etc/init.d/xdm start or so to get it
 (re)started.  It doesn't work.  Instead the start-stop daemon
 complains of not being able to stat /usr/bin/xdm which doesn't
 exist.  And no I didn't mispell it.  I've never seen this before an
 I'm baffled.

 ++ kevin
 

 Hi Kevin,

 This weekend I needed to stop and start X a lot because I was
 experimenting with running dosemu from a tty command line and the
 DOS application I'm running under dosemu hangs the command line.

 Using an ssh session (from another machine) I found that
 /etc/init.d/xdm stop works to stop X. However,
 restarting is a bit tricky since /etc/init.d/xdm start fails because
 of files in /var/lib/init.d/*/xdm.  If one runs rm -rf 
 /var/lib/init.d/*/xdm
 then runs /etc/init.d/xdm start one is good to go.

 HTH,

 David


   

Then /etc/init.d/xdm zap may be easier and cleaner.

Dale

:-)  :-) 



Re: [gentoo-user] How to stop X

2009-07-07 Thread Neil Bothwick
On Mon, 6 Jul 2009 15:21:43 -0700, Kevin O'Gorman wrote:

 Several of you suggested /etc/init.d/xdm start or so to get it
 (re)started.  It doesn't work.  Instead the start-stop daemon
 complains of not being able to stat /usr/bin/xdm which doesn't
 exist.  And no I didn't mispell it.  I've never seen this before an
 I'm baffled.

/etc/init.d/xdm runs either xdm, gdm or kdm, depending on the setting
in /etc/conf.d/xdm. I suspect you may have inadvertently overwritten this
with etc-update or similar after an update, setting it back to the
default of xdm.


-- 
Neil Bothwick

Things are more like they are today than they ever have been before.


signature.asc
Description: PGP signature


Re: [gentoo-user] How to stop X

2009-07-07 Thread David Relson
On Tue, 07 Jul 2009 02:22:26 -0500
Dale wrote:

 David Relson wrote:
  On Mon, 6 Jul 2009 15:21:43 -0700
  Kevin O'Gorman wrote:
 

  On Mon, Jul 6, 2009 at 2:17 PM, Paul
  Hartmanpaul.hartman+gen...@gmail.com wrote:
  
  On Mon, Jul 6, 2009 at 2:33 PM, Kevin O'Gormankogor...@gmail.com
  wrote:

  I'm having trouble configuring X, and to save time I'd like to be
  able to shut it down, edit some stuff, and start it up again.
 
  What is the gentoo way to do that?
  
  It depends on how you started X in the first place. If you did a
  startx (or similar), logging out should be all you need to do to
  get out of X. If you use a login manager, XDM/GDM/KDM then it'll
  restart itself so you'll need to switch to a VT (ctrl-alt-F1) and
  then sudo /etc/init.d/xdm stop to shut down XDM (and therefore X).
  You can then rmmod your video drivers or do whatever changes you
  want to do. sudo /etc/init.d/xdm start to bring it back up.
 
 

  Several of you suggested /etc/init.d/xdm start or so to get it
  (re)started.  It doesn't work.  Instead the start-stop daemon
  complains of not being able to stat /usr/bin/xdm which doesn't
  exist.  And no I didn't mispell it.  I've never seen this before an
  I'm baffled.
 
  ++ kevin
  
 
  Hi Kevin,
 
  This weekend I needed to stop and start X a lot because I was
  experimenting with running dosemu from a tty command line and the
  DOS application I'm running under dosemu hangs the command line.
 
  Using an ssh session (from another machine) I found that
  /etc/init.d/xdm stop works to stop X. However,
  restarting is a bit tricky since /etc/init.d/xdm start fails
  because of files in /var/lib/init.d/*/xdm.  If one runs rm
  -rf /var/lib/init.d/*/xdm then runs /etc/init.d/xdm start one is
  good to go.
 
  HTH,
 
  David
 
 

 
 Then /etc/init.d/xdm zap may be easier and cleaner.
 
 Dale

I hadn't known of zap.  Indeed it's an easier way to do the cleanup.
However, use it _after_ stop.  

I tried it instead of stop.  What it does is remove the 
/var/init.d/*/xdm files.  With them gone,  /etc/init.d/xdm status
can't tell that xdm has been started and /etc/init.d/xdm stop doesn't
do anything.  I had to frog around to fix the problem.

Be careful !!

David



Re: [gentoo-user] How to stop X

2009-07-07 Thread Dale
David Relson wrote:
 On Tue, 07 Jul 2009 02:22:26 -0500
 Dale wrote:

   
 David Relson wrote:
 
 On Mon, 6 Jul 2009 15:21:43 -0700
 Kevin O'Gorman wrote:

   
   
 On Mon, Jul 6, 2009 at 2:17 PM, Paul
 Hartmanpaul.hartman+gen...@gmail.com wrote:
 
 
 On Mon, Jul 6, 2009 at 2:33 PM, Kevin O'Gormankogor...@gmail.com
 wrote:
   
   
 I'm having trouble configuring X, and to save time I'd like to be
 able to shut it down, edit some stuff, and start it up again.

 What is the gentoo way to do that?
 
 
 It depends on how you started X in the first place. If you did a
 startx (or similar), logging out should be all you need to do to
 get out of X. If you use a login manager, XDM/GDM/KDM then it'll
 restart itself so you'll need to switch to a VT (ctrl-alt-F1) and
 then sudo /etc/init.d/xdm stop to shut down XDM (and therefore X).
 You can then rmmod your video drivers or do whatever changes you
 want to do. sudo /etc/init.d/xdm start to bring it back up.


   
   
 Several of you suggested /etc/init.d/xdm start or so to get it
 (re)started.  It doesn't work.  Instead the start-stop daemon
 complains of not being able to stat /usr/bin/xdm which doesn't
 exist.  And no I didn't mispell it.  I've never seen this before an
 I'm baffled.

 ++ kevin
 
 
 Hi Kevin,

 This weekend I needed to stop and start X a lot because I was
 experimenting with running dosemu from a tty command line and the
 DOS application I'm running under dosemu hangs the command line.

 Using an ssh session (from another machine) I found that
 /etc/init.d/xdm stop works to stop X. However,
 restarting is a bit tricky since /etc/init.d/xdm start fails
 because of files in /var/lib/init.d/*/xdm.  If one runs rm
 -rf /var/lib/init.d/*/xdm then runs /etc/init.d/xdm start one is
 good to go.

 HTH,

 David


   
   
 Then /etc/init.d/xdm zap may be easier and cleaner.

 Dale
 

 I hadn't known of zap.  Indeed it's an easier way to do the cleanup.
 However, use it _after_ stop.  

 I tried it instead of stop.  What it does is remove the 
 /var/init.d/*/xdm files.  With them gone,  /etc/init.d/xdm status
 can't tell that xdm has been started and /etc/init.d/xdm stop doesn't
 do anything.  I had to frog around to fix the problem.

 Be careful !!

 David


   

True, you do have to use it after stop.  It is supposed to reset
everything to a stopped state.  I think it also kills running processes
but I have not tested that to see if it does for sure.  I just know that
it works and does so cleanly.  It's certainly a better option than
trying to do it manually.

Dale

:-)  :-) 



Re: [gentoo-user] How to stop X

2009-07-06 Thread Dirk Heinrichs
Am Montag 06 Juli 2009 21:33:36 schrieb Kevin O'Gorman:

 I'm having trouble configuring X, and to save time I'd like to be able
 to shut it down, edit some stuff, and start it up again.

 What is the gentoo way to do that?

Gentoo or not, make your changes to /etc/X11/xorg.conf, logout from your X 
session, change to a virtual console and restart the display manager 
(/etc/init.d/xdm restart), which also restarts X as a side effect.

HTH...

Dirk


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] How to stop X

2009-07-06 Thread Alexander
On Monday 06 July 2009, Dirk Heinrichs wrote:
 Am Montag 06 Juli 2009 21:33:36 schrieb Kevin O'Gorman:
 
  I'm having trouble configuring X, and to save time I'd like to be able
  to shut it down, edit some stuff, and start it up again.
 
  What is the gentoo way to do that?
 
 Gentoo or not, make your changes to /etc/X11/xorg.conf, logout from your X 
 session, change to a virtual console and restart the display manager 
 (/etc/init.d/xdm restart), which also restarts X as a side effect.
 
 HTH...
 
   Dirk
 

It is simpler to use ALT+CTL+BKSPACE to restart the display manager



Re: [gentoo-user] How to stop X

2009-07-06 Thread Alan McKinnon
On Monday 06 July 2009 22:49:38 Alexander wrote:
 On Monday 06 July 2009, Dirk Heinrichs wrote:
  Am Montag 06 Juli 2009 21:33:36 schrieb Kevin O'Gorman:
   I'm having trouble configuring X, and to save time I'd like to be able
   to shut it down, edit some stuff, and start it up again.
  
   What is the gentoo way to do that?
 
  Gentoo or not, make your changes to /etc/X11/xorg.conf, logout from your
  X session, change to a virtual console and restart the display manager
  (/etc/init.d/xdm restart), which also restarts X as a side effect.
 
  HTH...
 
  Dirk

 It is simpler to use ALT+CTL+BKSPACE to restart the display manager

There's this thing that RedHat gave us called DontZap that gets in the way of 
that

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] How to stop X

2009-07-06 Thread Paul Hartman
On Mon, Jul 6, 2009 at 2:33 PM, Kevin O'Gormankogor...@gmail.com wrote:
 I'm having trouble configuring X, and to save time I'd like to be able
 to shut it down, edit some stuff, and start it up again.

 What is the gentoo way to do that?

It depends on how you started X in the first place. If you did a
startx (or similar), logging out should be all you need to do to get
out of X. If you use a login manager, XDM/GDM/KDM then it'll restart
itself so you'll need to switch to a VT (ctrl-alt-F1) and then sudo
/etc/init.d/xdm stop to shut down XDM (and therefore X). You can then
rmmod your video drivers or do whatever changes you want to do. sudo
/etc/init.d/xdm start to bring it back up.



Re: [gentoo-user] How to stop X

2009-07-06 Thread Kevin O'Gorman
On Mon, Jul 6, 2009 at 2:17 PM, Paul
Hartmanpaul.hartman+gen...@gmail.com wrote:
 On Mon, Jul 6, 2009 at 2:33 PM, Kevin O'Gormankogor...@gmail.com wrote:
 I'm having trouble configuring X, and to save time I'd like to be able
 to shut it down, edit some stuff, and start it up again.

 What is the gentoo way to do that?

 It depends on how you started X in the first place. If you did a
 startx (or similar), logging out should be all you need to do to get
 out of X. If you use a login manager, XDM/GDM/KDM then it'll restart
 itself so you'll need to switch to a VT (ctrl-alt-F1) and then sudo
 /etc/init.d/xdm stop to shut down XDM (and therefore X). You can then
 rmmod your video drivers or do whatever changes you want to do. sudo
 /etc/init.d/xdm start to bring it back up.



Several of you suggested /etc/init.d/xdm start or so to get it
(re)started.  It doesn't work.  Instead the start-stop daemon
complains of not being able to stat /usr/bin/xdm which doesn't
exist.  And no I didn't mispell it.  I've never seen this before an
I'm baffled.

++ kevin

-- 
Kevin O'Gorman, PhD



Re: [gentoo-user] How to stop X

2009-07-06 Thread Paul Hartman
On Mon, Jul 6, 2009 at 5:21 PM, Kevin O'Gormankogor...@gmail.com wrote:
 On Mon, Jul 6, 2009 at 2:17 PM, Paul
 Hartmanpaul.hartman+gen...@gmail.com wrote:
 On Mon, Jul 6, 2009 at 2:33 PM, Kevin O'Gormankogor...@gmail.com wrote:
 I'm having trouble configuring X, and to save time I'd like to be able
 to shut it down, edit some stuff, and start it up again.

 What is the gentoo way to do that?

 It depends on how you started X in the first place. If you did a
 startx (or similar), logging out should be all you need to do to get
 out of X. If you use a login manager, XDM/GDM/KDM then it'll restart
 itself so you'll need to switch to a VT (ctrl-alt-F1) and then sudo
 /etc/init.d/xdm stop to shut down XDM (and therefore X). You can then
 rmmod your video drivers or do whatever changes you want to do. sudo
 /etc/init.d/xdm start to bring it back up.



 Several of you suggested /etc/init.d/xdm start or so to get it
 (re)started.  It doesn't work.  Instead the start-stop daemon
 complains of not being able to stat /usr/bin/xdm which doesn't
 exist.  And no I didn't mispell it.  I've never seen this before an
 I'm baffled.

Hi,

You haven't told us how you start X, which I think would make it
easier to determine how to stop it. Maybe you don't use XDM at all, in
which case the above suggestion wouldn't have any relevance to your
situation.



Re: [gentoo-user] How to stop X

2009-07-06 Thread Kevin O'Gorman
On Mon, Jul 6, 2009 at 3:31 PM, Paul
Hartmanpaul.hartman+gen...@gmail.com wrote:
 On Mon, Jul 6, 2009 at 5:21 PM, Kevin O'Gormankogor...@gmail.com wrote:
 On Mon, Jul 6, 2009 at 2:17 PM, Paul
 Hartmanpaul.hartman+gen...@gmail.com wrote:
 On Mon, Jul 6, 2009 at 2:33 PM, Kevin O'Gormankogor...@gmail.com wrote:
 I'm having trouble configuring X, and to save time I'd like to be able
 to shut it down, edit some stuff, and start it up again.

 What is the gentoo way to do that?

 It depends on how you started X in the first place. If you did a
 startx (or similar), logging out should be all you need to do to get
 out of X. If you use a login manager, XDM/GDM/KDM then it'll restart
 itself so you'll need to switch to a VT (ctrl-alt-F1) and then sudo
 /etc/init.d/xdm stop to shut down XDM (and therefore X). You can then
 rmmod your video drivers or do whatever changes you want to do. sudo
 /etc/init.d/xdm start to bring it back up.



 Several of you suggested /etc/init.d/xdm start or so to get it
 (re)started.  It doesn't work.  Instead the start-stop daemon
 complains of not being able to stat /usr/bin/xdm which doesn't
 exist.  And no I didn't mispell it.  I've never seen this before an
 I'm baffled.

 Hi,

 You haven't told us how you start X, which I think would make it
 easier to determine how to stop it. Maybe you don't use XDM at all, in
 which case the above suggestion wouldn't have any relevance to your
 situation.



I haven't told you because I don't know.  I do know that I was using
KDE when I still had X.  But I set that up over 5 years ago and I've
forgotten all the details.  But there's no sign of *dm in /etc/init.d,
other than xdm, which acts pretty normal outside of the fact that it
fails.  It goes through motions, says some things work by putting [OK]
in the right margin, and all that.

If you tell me how to find out, I'll answer any questions.

++ kevin

-- 
Kevin O'Gorman, PhD



Re: [gentoo-user] How to stop X

2009-07-06 Thread Jacob Todd
On Mon, Jul 06, 2009 at 11:08:09PM +0200, Alan McKinnon wrote:
 On Monday 06 July 2009 22:49:38 Alexander wrote:
  On Monday 06 July 2009, Dirk Heinrichs wrote:
   Am Montag 06 Juli 2009 21:33:36 schrieb Kevin O'Gorman:
I'm having trouble configuring X, and to save time I'd like to be able
to shut it down, edit some stuff, and start it up again.
   
What is the gentoo way to do that?
  
   Gentoo or not, make your changes to /etc/X11/xorg.conf, logout from your
   X session, change to a virtual console and restart the display manager
   (/etc/init.d/xdm restart), which also restarts X as a side effect.
  
   HTH...
  
 Dirk
 
  It is simpler to use ALT+CTL+BKSPACE to restart the display manager
 
 There's this thing that RedHat gave us called DontZap that gets in the way of 
 that
 
 -- 
 alan dot mckinnon at gmail dot com
 

This isn't RedHat.

-- 
Jake Todd
// If it isn't broke, tweak it!


pgpaJXpm7R3kN.pgp
Description: PGP signature


Re: [gentoo-user] How to stop X

2009-07-06 Thread Kevin O'Gorman
On Mon, Jul 6, 2009 at 1:49 PM, Alexanderb3n...@yandex.ru wrote:
 On Monday 06 July 2009, Dirk Heinrichs wrote:
 Am Montag 06 Juli 2009 21:33:36 schrieb Kevin O'Gorman:

  I'm having trouble configuring X, and to save time I'd like to be able
  to shut it down, edit some stuff, and start it up again.
 
  What is the gentoo way to do that?

 Gentoo or not, make your changes to /etc/X11/xorg.conf, logout from your X
 session, change to a virtual console and restart the display manager
 (/etc/init.d/xdm restart), which also restarts X as a side effect.

 HTH...

       Dirk


 It is simpler to use ALT+CTL+BKSPACE to restart the display manager


Except that it doesn't work at all when your X is as hosed as mine.



-- 
Kevin O'Gorman, PhD



Re: [gentoo-user] How to stop X

2009-07-06 Thread Dale
Jacob Todd wrote:
 On Mon, Jul 06, 2009 at 11:08:09PM +0200, Alan McKinnon wrote:
   
 On Monday 06 July 2009 22:49:38 Alexander wrote:
 
 On Monday 06 July 2009, Dirk Heinrichs wrote:
   
 Am Montag 06 Juli 2009 21:33:36 schrieb Kevin O'Gorman:
 
 I'm having trouble configuring X, and to save time I'd like to be able
 to shut it down, edit some stuff, and start it up again.

 What is the gentoo way to do that?
   
 Gentoo or not, make your changes to /etc/X11/xorg.conf, logout from your
 X session, change to a virtual console and restart the display manager
 (/etc/init.d/xdm restart), which also restarts X as a side effect.

 HTH...

Dirk
 
 It is simpler to use ALT+CTL+BKSPACE to restart the display manager
   
 There's this thing that RedHat gave us called DontZap that gets in the way 
 of 
 that

 -- 
 alan dot mckinnon at gmail dot com

 

 This isn't RedHat.

   

But it applies to Gentoo as well.  From my xorg.conf.example on Gentoo.

# Uncomment this to disable the CrtlAltBS server abort sequence
# This allows clients to receive this key event.

#OptionDontZap

It's a valid option on every Linux I have ever played with.

Dale

:-)  :-) 



Re: [gentoo-user] How to stop X

2009-07-06 Thread Mick
On Monday 06 July 2009, Kevin O'Gorman wrote:
 On Mon, Jul 6, 2009 at 3:31 PM, Paul

 Hartmanpaul.hartman+gen...@gmail.com wrote:
  On Mon, Jul 6, 2009 at 5:21 PM, Kevin O'Gormankogor...@gmail.com wrote:
  On Mon, Jul 6, 2009 at 2:17 PM, Paul
 
  Hartmanpaul.hartman+gen...@gmail.com wrote:
  On Mon, Jul 6, 2009 at 2:33 PM, Kevin O'Gormankogor...@gmail.com 
wrote:
  I'm having trouble configuring X, and to save time I'd like to be able
  to shut it down, edit some stuff, and start it up again.
 
  What is the gentoo way to do that?
 
  It depends on how you started X in the first place. If you did a
  startx (or similar), logging out should be all you need to do to get
  out of X. If you use a login manager, XDM/GDM/KDM then it'll restart
  itself so you'll need to switch to a VT (ctrl-alt-F1) and then sudo
  /etc/init.d/xdm stop to shut down XDM (and therefore X). You can then
  rmmod your video drivers or do whatever changes you want to do. sudo
  /etc/init.d/xdm start to bring it back up.
 
  Several of you suggested /etc/init.d/xdm start or so to get it
  (re)started.  It doesn't work.  Instead the start-stop daemon
  complains of not being able to stat /usr/bin/xdm which doesn't
  exist.  And no I didn't mispell it.  I've never seen this before an
  I'm baffled.
 
  Hi,
 
  You haven't told us how you start X, which I think would make it
  easier to determine how to stop it. Maybe you don't use XDM at all, in
  which case the above suggestion wouldn't have any relevance to your
  situation.

 I haven't told you because I don't know.  I do know that I was using
 KDE when I still had X.  But I set that up over 5 years ago and I've
 forgotten all the details.  But there's no sign of *dm in /etc/init.d,
 other than xdm, which acts pretty normal outside of the fact that it
 fails.  It goes through motions, says some things work by putting [OK]
 in the right margin, and all that.

 If you tell me how to find out, I'll answer any questions.

 ++ kevin

Look at your ps axf.  If it is running via xdm you will see something like:

6403 ?Ss 0:00 /usr/bin/xdm 
6417 tty7 Ss+   28:54  \_ /usr/bin/X :0 -nolisten tcp -br 
vt7 -auth /etc/X11/xdm/authdir/authfiles/A:0-bvk4xxF


-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] How to stop X

2009-07-06 Thread Jacob Todd
On Mon, Jul 06, 2009 at 06:23:23PM -0500, Dale wrote:
 Jacob Todd wrote:
 
  This isn't RedHat.
 

 
 But it applies to Gentoo as well.  From my xorg.conf.example on Gentoo.
 
 # Uncomment this to disable the CrtlAltBS server abort sequence
 # This allows clients to receive this key event.
 
 #OptionDontZap
 
 It's a valid option on every Linux I have ever played with.
 
 Dale
 
 :-)  :-) 
 

Never noticed that. Thanks for the info, Dale.

-- 
Jake Todd
// If it isn't broke, tweak it!


pgpN8hckhs7aG.pgp
Description: PGP signature


Re: [gentoo-user] How to stop X

2009-07-06 Thread Stroller


On 6 Jul 2009, at 23:41, Kevin O'Gorman wrote:

...
You haven't told us how you start X, which I think would make it
easier to determine how to stop it


I haven't told you because I don't know.  I do know that I was using
KDE when I still had X.  But I set that up over 5 years ago and I've
forgotten all the details.  But there's no sign of *dm in /etc/init.d,
other than xdm, which acts pretty normal outside of the fact that it
fails. ...


Suggest you review your current configuration against this document:

http://www.gentoo.org/doc/en/xorg-config.xml

Stroller.




Re: [gentoo-user] How to stop X

2009-07-06 Thread Mick
On Tuesday 07 July 2009, Dale wrote:
 Jacob Todd wrote:
  On Mon, Jul 06, 2009 at 11:08:09PM +0200, Alan McKinnon wrote:
  On Monday 06 July 2009 22:49:38 Alexander wrote:
  On Monday 06 July 2009, Dirk Heinrichs wrote:
  Am Montag 06 Juli 2009 21:33:36 schrieb Kevin O'Gorman:
  I'm having trouble configuring X, and to save time I'd like to be
  able to shut it down, edit some stuff, and start it up again.
 
  What is the gentoo way to do that?
 
  Gentoo or not, make your changes to /etc/X11/xorg.conf, logout from
  your X session, change to a virtual console and restart the display
  manager (/etc/init.d/xdm restart), which also restarts X as a side
  effect.
 
  HTH...
 
   Dirk
 
  It is simpler to use ALT+CTL+BKSPACE to restart the display manager
 
  There's this thing that RedHat gave us called DontZap that gets in the
  way of that
 
  --
  alan dot mckinnon at gmail dot com
 
  This isn't RedHat.

 But it applies to Gentoo as well.  From my xorg.conf.example on Gentoo.

Right, but the latest flavor of xorg works without the requirement for a 
xorg.conf and therefore there's nowhere to define CrtlAltBS in the .fdi 
files from what I recall.  Retaining a xorg.conf would be the alternative - 
thus keeping the old Gentoo (and every other Linux) way.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] How to stop X

2009-07-06 Thread Dale
Mick wrote:
 On Tuesday 07 July 2009, Dale wrote:
   
 Jacob Todd wrote:
 
 On Mon, Jul 06, 2009 at 11:08:09PM +0200, Alan McKinnon wrote:
   
 On Monday 06 July 2009 22:49:38 Alexander wrote:
 
 On Monday 06 July 2009, Dirk Heinrichs wrote:
   
 Am Montag 06 Juli 2009 21:33:36 schrieb Kevin O'Gorman:
 
 I'm having trouble configuring X, and to save time I'd like to be
 able to shut it down, edit some stuff, and start it up again.

 What is the gentoo way to do that?
   
 Gentoo or not, make your changes to /etc/X11/xorg.conf, logout from
 your X session, change to a virtual console and restart the display
 manager (/etc/init.d/xdm restart), which also restarts X as a side
 effect.

 HTH...

  Dirk
 
 It is simpler to use ALT+CTL+BKSPACE to restart the display manager
   
 There's this thing that RedHat gave us called DontZap that gets in the
 way of that

 --
 alan dot mckinnon at gmail dot com
 
 This isn't RedHat.
   
 But it applies to Gentoo as well.  From my xorg.conf.example on Gentoo.
 

 Right, but the latest flavor of xorg works without the requirement for a 
 xorg.conf and therefore there's nowhere to define CrtlAltBS in the .fdi 
 files from what I recall.  Retaining a xorg.conf would be the alternative - 
 thus keeping the old Gentoo (and every other Linux) way.
   

True, but how many people have actually did the upgrade?  I haven't yet. 

Also, you can have a xorg.conf still to specify the option.  That may be
the only thing in the file but it would still work.

Dale

:-)  :-) 



Re: [gentoo-user] How to stop X

2009-07-06 Thread David Relson
On Mon, 6 Jul 2009 15:21:43 -0700
Kevin O'Gorman wrote:

 On Mon, Jul 6, 2009 at 2:17 PM, Paul
 Hartmanpaul.hartman+gen...@gmail.com wrote:
  On Mon, Jul 6, 2009 at 2:33 PM, Kevin O'Gormankogor...@gmail.com
  wrote:
  I'm having trouble configuring X, and to save time I'd like to be
  able to shut it down, edit some stuff, and start it up again.
 
  What is the gentoo way to do that?
 
  It depends on how you started X in the first place. If you did a
  startx (or similar), logging out should be all you need to do to
  get out of X. If you use a login manager, XDM/GDM/KDM then it'll
  restart itself so you'll need to switch to a VT (ctrl-alt-F1) and
  then sudo /etc/init.d/xdm stop to shut down XDM (and therefore X).
  You can then rmmod your video drivers or do whatever changes you
  want to do. sudo /etc/init.d/xdm start to bring it back up.
 
 
 
 Several of you suggested /etc/init.d/xdm start or so to get it
 (re)started.  It doesn't work.  Instead the start-stop daemon
 complains of not being able to stat /usr/bin/xdm which doesn't
 exist.  And no I didn't mispell it.  I've never seen this before an
 I'm baffled.
 
 ++ kevin

Hi Kevin,

This weekend I needed to stop and start X a lot because I was
experimenting with running dosemu from a tty command line and the
DOS application I'm running under dosemu hangs the command line.

Using an ssh session (from another machine) I found that
/etc/init.d/xdm stop works to stop X. However,
restarting is a bit tricky since /etc/init.d/xdm start fails because
of files in /var/lib/init.d/*/xdm.  If one runs rm -rf /var/lib/init.d/*/xdm
then runs /etc/init.d/xdm start one is good to go.

HTH,

David



Re: [gentoo-user] How to stop X

2009-07-06 Thread Kevin O'Gorman
Synopsis:
This host is running kdm.


On Mon, Jul 6, 2009 at 4:30 PM, Mickmichaelkintz...@gmail.com wrote:
 On Monday 06 July 2009, Kevin O'Gorman wrote:
 On Mon, Jul 6, 2009 at 3:31 PM, Paul

 Hartmanpaul.hartman+gen...@gmail.com wrote:

[ snip snip ]

  Hi,
 
  You haven't told us how you start X, which I think would make it
  easier to determine how to stop it. Maybe you don't use XDM at all, in
  which case the above suggestion wouldn't have any relevance to your
  situation.

 I haven't told you because I don't know.  I do know that I was using
 KDE when I still had X.  But I set that up over 5 years ago and I've
 forgotten all the details.  But there's no sign of *dm in /etc/init.d,
 other than xdm, which acts pretty normal outside of the fact that it
 fails.  It goes through motions, says some things work by putting [OK]
 in the right margin, and all that.

 If you tell me how to find out, I'll answer any questions.

 ++ kevin

 Look at your ps axf.  If it is running via xdm you will see something like:

 6403 ?        Ss     0:00 /usr/bin/xdm
 6417 tty7     Ss+   28:54  \_ /usr/bin/X :0 -nolisten tcp -br
 vt7 -auth /etc/X11/xdm/authdir/authfiles/A:0-bvk4xxF



What I get is not much, but it appears I'm still running kdm and it's
a child of init.

ke...@treat ~ $ ps axf | grep dm
  725 pts/6S+ 0:00  \_ grep --colour=auto dm
15372 ?Ss 0:00 kdm
ke...@treat ~ $


-- 
Kevin O'Gorman, PhD