LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-12-2006, 11:53 PM   #1
artofluke
Member
 
Registered: Sep 2003
Posts: 37

Rep: Reputation: 15
How to write a bootscript?


I have just installed FC4 on an Acer 1690 notebook, and have just done some tweaking on xorg.conf to try to get my resolution to display at the proper resolution 1280x800. I am doing this using a program called 915resolution, and the program needs to be run before the x server starts. I would like to put this in a bootscript, but don't know how to create a bootscript in FC4. Thank you for your help!
 
Old 01-13-2006, 01:56 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You could have simply tweaked your resolution manually in /etc/X11/xorg.conf or using system-gonfig-display. There is no need to use a 3rd party app especially one that has to run at bootup.
 
Old 01-13-2006, 02:06 AM   #3
artofluke
Member
 
Registered: Sep 2003
Posts: 37

Original Poster
Rep: Reputation: 15
I've tried that, it doesn't work. My xorg.conf is configured for 1280x800 right now, but it's simply not supported.

I know it's in /etc/init.d/, but I don't know what file to modify, or if I should create a new one...

From 915resolution's website:

915resolution is a tool to modify the video BIOS of the 800 and 900 series Intel graphics chipsets. This includes the 845G, 855G, and 865G chipsets, as well as 915G, 915GM, and 945G chipsets. This modification is neccessary to allow the display of certain graphics resolutions for an Xorg or XFree86 graphics server.

915resolution's modifications of the BIOS are transient. There is no risk of permanent modification of the BIOS. This also means that 915resolution must be run every time the computer boots inorder for it's changes to take effect.
 
Old 01-13-2006, 04:35 AM   #4
Dowski02
LQ Newbie
 
Registered: Dec 2004
Location: Holland
Distribution: FC2,FC4_64
Posts: 10

Rep: Reputation: 0
I had a simular problem, but I managed to get it working like this:

(be sure to make a backup of xorg.conf, just in case)
In xorg.conf, delete the line that says: "Load DRI"
Than add your resolution at the appropriate place.
Reboot, or restart X
Done.

No need for third party apps.

Somewhere out there is web page explaining this problem (that's where I got this info) but I forgot to add it to my bookmarks and now I can't find it anymore
 
Old 01-13-2006, 05:26 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
I'm not sure if Fedora differs much from RH8.

What is started at boottime, depends on the runlevel. In RH8, the gui is started if the runlevel in /etc/inittab is set to 5.
There is an associated directory /etc/rc5.d (similar for runlevel 3, there's a directory /etc/rc3.d).

In that directory you will find files starting with S and with K. Those are symbolic links to scripts in /etc/init.d. Anything with a K will be killed when the runlevel is entered, anything with an S will be started.
The programs will be killed/started in alpha-numerical order, so S99webmin will be started after S98wine.

The official way to start something is to create a script in /etc/init.d that starts the required program with its parameters and create the symbolic link Snnname in the runlevel at which you want it to be started. If it's just a simple thing without parameters, you can create a symlink to the program directly (this should work, but I've never used it).
I think (but I'm not sure) that x is only started after all other stuff in rc5.d is done, so a link called S99setup915 can be used.

Last edited by Wim Sturkenboom; 01-13-2006 at 05:31 AM.
 
  


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
grip : no write access to write encoded file bidouilleur Linux - Software 5 10-09-2010 09:23 PM
Creating bootscript rael_kid Linux - Newbie 6 03-26-2005 01:47 PM
Can't WRITE to USB stick, Mount OK NO WRITE! ClericPreston Linux - Newbie 4 12-04-2004 10:43 AM
LVM Bootscript Problems kvanblijderveen Mandriva 0 07-07-2004 06:04 AM
Err if I tray Write Date To CD-Write Sn4s Linux - Newbie 2 07-23-2003 08:53 PM

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

All times are GMT -5. The time now is 10:54 AM.

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