Solved

xinit locks up when .xinitrc specified

Posted on 1998-12-07
6
268 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
ID: 1631824
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
ID: 1631825
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
ID: 1631826
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 1

Expert Comment

by:mart010897
ID: 1631827
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
ID: 1631828
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
ID: 1631829

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole cut and paste issue 3 95
AWS ELB 5 95
Linux server had an unexpected freeze. How to find out cause (sys logs)? 13 47
000webhost.com default error log 1 40
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

861 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