Solved

xinit locks up when .xinitrc specified

Posted on 1998-12-07
6
264 Views
Last Modified: 2013-12-15
Hi -            
I'm setting up XF86_SVGA on Redhat 5.2 and find that
"xinit" runs OK, as long as there is NO .xinitrc
file available.
 
If there IS an .xinitrc file in my home directory
(even if it is an empty file: 0 bytes in it),
when I start xinit my monitor says
"invalid sync frequency" and there is no
way out.  Ctrl-Alt-Bsp and Ctrl-Alt-Del don't work, and
I have to reboot.  AAAaaarrrgh.
 
How can I fix this?
I'm running a generic multisync monitor (works with
AcceleratedX) and a Diamond Stealth 3D 3000
which, according to SuperProbe, is S3 ViRGE/VX.
I used xf86config to set it up, and xf86config recommends
using XF86_SVGA.

Less important, but if you have a hint I'd be grateful ...
How can I get ctrl-alt-del to work?
 
Many many thanks!
Steve
 
0
Comment
Question by:ssullivan
6 Comments
 
LVL 1

Expert Comment

by:iNFaMouS
Comment Utility
You have to overtake the setting from the default xinit file to your personal .xinitrc file.
Or specify the default settings in /etc/XF86Config (there are several tools to set this up)
0
 

Expert Comment

by:olvo
Comment Utility
There is a specific X server for the S3 Virge chip, XF86S3V, the file is  XF33S3V.tgz.
You can copy /usr/X11R6/lib/X11/xinit/xinitrc, which is the default, to your ~/.xinitrc, and adapt it.
0
 

Author Comment

by:ssullivan
Comment Utility
Thank you, but your answer doesn't answer my question.
The problem is that only when I **DO** have a .xinitrc
file in my home directory does it crash.

If you have the answer, please let me know what specific
changes are needed to fix this.  Instead of saying "there
are tools to do this..." maybe you could specify a tool
and exactly what needs changing.

Many thanks!
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 1

Expert Comment

by:mart010897
Comment Utility
I'm not definitely sure what the problem is, but here are some things you can do to possibly pin it down:

Copy the system's XF86Config file to your home directory and remove from it everything you're not using.  You should end up with 20 lines or so.  Does xinit still run OK when it uses ~/XF86Config instead of the one in /etc?

Create a one-liner .xinitrc file in your home directory that just runs fvwm.  Make sure it's readable and executable... OK, I probably don't have to tell you that, but it can't hurt...

Oh, here's something... when you run xinit... you can redirect X's console output to a file so you can examine what went wrong. From bash:

xinit > stuff 2>&1

The 2>&1 is necessary because most of X's output on startup goes to stderr.  I think if you make two files, one where xinit worked and one where it failed, then compare them, you'll be able to track down the problem.

Let me know how it's working out for you...

-Mart

0
 

Author Comment

by:ssullivan
Comment Utility
Many thanks Olvo and Mart!
Through a combination of using the S3V driver and
hacking on the XF86Config file, I got it running.
The speed I'm getting is now better than I ever got
using commercial X servers .... it's excellent!

If you're interested in points, how can I send them to you?
If not, again, thanks for your good advice.

Steve

0
 
LVL 1

Accepted Solution

by:
mart010897 earned 200 total points
Comment Utility

Glad it worked out for you.  XFree86 is cool :)

You can give me points by grading this answer.  You can give olvo points by posting another question, letting them answer it and grading it.

Cheers,

Mart
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now