LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-30-2006, 08:55 AM   #1
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Rep: Reputation: 15
runlevel 3/4 issues


I prefer to start directly in X windows (initlevel 4), but my mouse doesn't work then because the gpm server is not started. There are also other scripts, deamons not started which are started in runlevel 3 (e.g. syslogd, rc.hotplug). Instead of copying the line that starts the mouse server I would like know if there is a more elegant solution to solve my mouse problem and could someone clariy the difference between both runlevels if X windows is used (usually).
 
Old 10-30-2006, 09:31 AM   #2
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
The only difference between runlevels 3 and 4 is that 4 starts an X display manager. That's it.

gpm is started in /etc/rc.d/rc.M which is run in both 3 and 4, and if syslog & hotplug aren't being started, then something is screwed.
 
Old 10-30-2006, 09:33 AM   #3
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
If you change the default run level to 4 in /etc/inittab, the run level 3 scripts are still executed. Run level 3 is console sessions (no GUI), but you can start a GUI session buy typing "startx" at the command line. Run level 4 takes you right into GUI.

The /etc/rc.d/rc.gpm mouse server is used during console sessions (great for copy and paste between virtual consoles), The X server handles mouse movement during GUI sessions. Since your mouse is not functional during GUI sessions, your xorg.conf may need to be corrected.
 
Old 10-30-2006, 12:07 PM   #4
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
When I start X in runlevel 3 (by startx), my mouse works without problem. Nothing seems to be the problem in my xorg.conf, the mouse section is properly set, but when I directly start in runlevel 4 my mouse stays fixed on the screen.
At the moment I can only access my Linux section by booting from the cd-rom. When I use the standard boot kernel, I get a series of '9A' characters on the screen. I don't know yet whether there is a connection between these two problems.

Last edited by Kristian2; 10-30-2006 at 12:10 PM.
 
Old 10-30-2006, 03:15 PM   #5
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
but my mouse doesn't work then because the gpm server is not started.
gpm is for using a mouse within a console, and is not related to the mouse in X.

Quote:
There are also other scripts, daemons not started which are started in runlevel 3 (e.g. syslogd, rc.hotplug).
This should not be the case, but is possible if you are starting runlevel 4 in an obscure manner.

Quote:
Instead of copying the line that starts the mouse server I would like know if there is a more elegant solution to solve my mouse problem and could someone clarify the difference between both runlevels if X windows is used (usually).
Perhaps the following will help:

Configuring Slackware for a GUI Startup—Part I
Configuring Slackware for a GUI Startup—Part II
Configuring Slackware for a GUI and a Command Line Startup
Configuring xorg.conf for Mice with Scroll Wheels
 
Old 10-30-2006, 03:54 PM   #6
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
I changed in inittab '3' in '4' in the default runlevel (as usual), nothing obscure I should think. I will have a look at your manual and build a new kernel with 2.6 as well (as soon as I manage to get a decent xterm in kde or other windowmanager, I sadly miss Gnome). Thanks for the links.

Last edited by Kristian2; 10-30-2006 at 04:00 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the difference between runlevel 2 and runlevel 5 in Debian? davidas Linux - Newbie 2 01-05-2012 01:10 PM
runlevel 5 - Do I need it? zivota Red Hat 5 04-03-2006 01:28 PM
Soun Mixer absent in Runlevel 3 but present in Runlevel 5 debloxie SUSE / openSUSE 1 01-18-2006 09:15 AM
Runlevel? bluethundr Linux - Newbie 7 09-29-2005 05:27 AM
X does not start in Runlevel 4, but i Runlevel 3 Rabon Linux - General 3 11-18-2003 06:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration