How to troubleshoot Xorg on FreeBSD 8?

Ok, so I have been in Tech Support for most of my career and troubleshooting has become a skill I use without thinking about it.

Recently, I have been reading some posts on the FreeBSD forums about Xorg problems. I thought I would write a post about “How to troubleshoot Xorg.

Step 1 – Document the problem clearly

  1. Reproduce the issue and store any output errors or screenshot them (if possible) as needed.
  2. Reproduce the issue again but this time while doing so, document each step you took to reproduce the issue.

Note: You wouldn’t believe how many issues are solved during the process of documenting the steps to reproduce an issue.

Step 2 – Gather Hardware Details
Lets make sure we know what is in your system. Gather the output of this command to get the AGP, PCI, or PCI-Express devices in your system.

# pciconfig -lv

Step 3 – Gather Installed Software Details
We are going to run some commands here. The output of every command you run should be stored into a text file. If you are getting help from a forum, a mailing list or you are paying for support for a company, they are going to want as much information as possible.

Note: I assume you have sshd enabled and that you can both ssh to your machine and sftp to your machine. A windows ssh tools is PuTTY. A windows sftp tool is WinSCP.

  1. Get the basics about the installed FreeBSD system.# uname -a
  2. Make sure Xorg is installed and that any other required software or add-on software such as the Windows Manager (KDE, GNOME, Fluxbox) is installed.# pkg_info
  3. It is often good to just get the list of Xorg packages:# pkg_info |grep xorg
  4. Look in the package list to make sure that if you are using an NVidia or Intel driver that requires the installation of a binary package (as they are not open source) that you have installed the driver.

Step 4 – Gather Software Configuration Details

  1. Gather the Xorg configuration file. Now one does not always exists, but if it exists, it usually located at /etc/X11/xorg.conf
  2. Gather the /etc/rc.conf file so you can see what it is configured to enable.
  3. Gather the /boot/loader/loader.conf file so you can see what it is configured to enable.
  4. Gather the ~/.xinitrc or /home/username/.xinitrc file.

Step 5 – Gather logs and examine logs for errors

Gathering Logs

One process for making it easier to view logs and find the cause of errors. It is an obvious procedure to some.

  1. Backup all logs.
  2. Delete logs once backed up.
  3. Duplicate the issue.
  4. Gather the logs (both backed up and new logs).

The key is to limit the amount of data to go through. So by deleting the logs and duplicating the issue as fast as possible, your logs will be as small as possible and easier to go through.

  1. Gather the /var/log/Xorg.0.log file.
  2. You might want the /var/log/messages file.

Examine the logs for errors

Now that you have the smallest amount of data possible, it may be easier to search the logs for errors.

  1. Start out by greping or searching for words like fail, error, etc…
  2. If you didn’t find anything, then visually scan down the logs.

A nice way to watch a log file live as you duplicate the error is to use tail.

  1. Open two shells, maybe one directly on the system and one through ssh.
  2. In one shell, run this command to watch a specific log file, such as Xorg.0.log. (For this use the ssh shell if you have sshd enabled and opened on through ssh)# tail -f -n 50 /var/log/xorg.0.log
  3. Duplicate the issue in the other shell. (This would be the shell directory on the system.)
  4. Watch the dynamic log live and try to find the line where the error occurs.

Tip #1 – Enable sshd when testing

Sometimes running Xorg may result in a black screen and you can’t switch between ttys either using Alt+F# so you may be tempted to hard power off. Most the time if you have enabled sshd, you can ssh in and kill Xorg or reboot gracefully, saving you a hard power off.

Tip #2 – Try running Xorg with and without an xorg.conf

Supposedly you don’t need and xorg.conf always but there are times when you would want one. I have seen forum posts where the solution goes both ways. One user’s issue was resolved by not using an xorg.conf and letting Xorg just start and automatically handle everything. Another users issue was resolved by using an xorg.conf. So try it both ways.

Tip #3 – Use the FreeBSD forums correctly

If you have all of the above data and you still have an issue, if you go to Xorg section of the FreeBSD Forums, and make a post, you will be able to provide an educated, detailed question.

There is fine line between posting too much data or too little data and posting the perfect amount so a reader can have enough data to resolve your issue. I would say it is rare should post all configs and logs, but it also should be rare that you post a question alone without any details.

Ok, so this may not be complete. If you have anything to add please comment.

One Comment

  1. Tungznc says:

    They continue so far other males until a relationship is established. Dating overly possessive or insecure males could lead to a dangerous scenario and sad relationship. Some courting apps like Bumble, resolve this downside for you (if you're searching for a heterosexual relationship), only letting women send the first message. Ask him about issues you are both involved in, like Spanish class or math club. Instead, put your English class expertise to good use and ask questions that require more thorough answers. He's far more likely to assume you're cool since you elevate goats for 4-H than for faking an understanding of the UEFA Champions League rankings. Massive feelings feel scary whether you're a kid or an adult, and generally the one option to deflate them down into a more manageable dimension is to poke some fun at them. So, don't take it personally if you're having a tough time getting him to say greater than "yeah" or "uh-huh" on the telephone. There are more than a hundred million unmarried American adults -- which is more than forty five percent of all adults within the U.S. When enthusiastic about getting intimate with someone, you need to verify to solely do things that each you and your date are comfortable with.

    And something that can make you are feeling about one million instances higher is remembering that he is in all probability nervous, too. Remember the fact that women can learn signs! I checked my telephone a couple of times at the table, requested plenty of sure or no questions and definitely monologued no less than thrice whereas sharing my unhinged five-year plan I normally keep tucked away in my notes app. These are just a few of the possibilities that keep us from hitting that last digit of his telephone number. There are a couple of things you can do to try to get him speaking. Plus, if your folks get a little bit boisterous with both their language or subject of conversation, you may give her hand or knee a bit squeeze. It’s a bit bit simpler to do on-line with the winks and those kinds of issues. Sports, drama club, the varsity paper, no matter it is -- they're all little clues to the sorts of stuff he's all for. Regularly these little operations begin out with good motives but don't possess the resources to make use of essentially the most advanced site instruments.

    For one factor, these kinds of little white lies will probably come back to bite you sooner quite than later. The last thing you want is a buddy or two knocking again beers and telling war tales about your checkered previous. Crucial factor is that you plan the group's meeting in advance. Leaving a bad marriage is a positive factor (just ask Nicole Kidman), but going by means of a divorce is one thing most people wish to avoid. Or they like her means an excessive amount of? There are things you can do to make this expertise a lot easier for the both of you. Let's reduce to the chase: How a lot time must you wait earlier than introducing your girlfriend to your buddies? Whereas we're not suggesting you ship something express to your date, a text reminding them that you just can't wait to see them again can go a long way. Whereas the following tips are certainly not in any manner inclusive, they might surely assist and information you straight into securing an appropriate companion of your dreams. As soon as you do a completely free registration you could probably then are capable of flick through some member pages and particulars.

    You generally is a member of a paid courting service and also register with a free courting site at the same time to limit prices. Your partner can clarify to them that it's utterly regular and anticipated for them to have blended emotions about you being of their lives- and that it's also normal for them to have a laser-focused burning desire to get you out of their lives. While he might let you know that have to be vital to keep it informal so your accomplice feels right at dwelling and there's pressure to rush things up, he may also let you know that ladies need to their an opportunity to resolve if they should get essential. Whereas it could also be tempting to obscure your strains and wrinkles by using a filter or by posting [url=https://hotvietgirls.weebly.com/charmdate-review.html]charmdate review[/url] an antique image or far-off picture, there are loads of individuals on the market keen to this point individuals who look like you-just the way in which you're at the moment. Some guys (like some ladies) are simply not chatty. There are plenty of online dating tips out there in just a few websites. If you are bored out of your thoughts at the local bar on Saturday night, you're probably not going to satisfy anyone there who's going to liven up your night.

Leave a Reply

How to post code in comments?