1d459
![]() |
|
|
|
|
|||||||
| X.Org X.Org on FreeBSD installation & configuration. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Just a warning to those who may be inclined to follow the line in the handbook that reads:
Code:
As of version 7.3, Xorg can often work without any configuration file by simply typing at prompt: startx Knowing my old /etc/X11/xorg.conf wouldn't work because the onboard video was based on a radeon chipset, I deleted the file. Then I foolishly decided to see if I could bypass the X11 configuration that I went through last time by simply typing startx from a user account, figuring the worst that could happen was that X/KDE would fail to start and that I'd have to break out from a different console. How wrong I was! I got a fast clicking/buzzing noise from my speakers after the screen went black. I knew something had gone wrong, but figured it was no big deal - I'll just Control-Alt-F1 to get to the root shell I had open on the first console and kill the process from there. No such luck. Nothing I did was able to get the screen to do anything but stay black (not no signal, but black) and nothing aside from unplugging the speaker would stop that annoying buzz. Tried switching to different consoles, tried using control-alt-delete to reboot, tried accessing over the network (before realizing I hadn't set that up yet ), and still couldn't get any response. Tapping scroll lock twice to switch to another machine on my KVM didn't even work. I let it sit for about 20 minutes in the hope it'd eventually respond. It never did and I ended up having to hold down the power button 4 seconds to get it to shut off.Powered back on and what a surprise - the file system check complained that / wasn't properly dismounted and started a check. After the file system check completed (with the below lines resulting), it continued booting. Unfortunately, it went extremely slowly and eventually stalled out, refusing to boot any farther. Again the keyboard was frozen and I had to do a hard power-off. Code:
INCORRECT BLOCK COUNT I=1885000 (4 should be 0) (CORRECTED) INCORRECT BLOCK COUNT I=2802692 (4 should be 0) (CORRECTED) INCORRECT BLOCK COUNT I=2826427 (4 should be 0) (CORRECTED) I can get into single user mode, but because the boot process doesn't stop/lock up in any consistent way, don't really know what to do in order to repair whatever damage was done. The file system check completes at boot time, so I don't see where that would help. Since the mirror was active at the time this happened, all 3 copies of my system were taken down. (Already made a mental note to have one drive be a static backup that is not in the mirror; I'll write something that will mirror the root file system once a week or so if/when the system gets back up & running.) I thought that disabling one or more startup daemons might help, but it doesn't seem to. At this point, I'm about ready to wipe it and start over, which I REALLY hate to do after putting so much time & work in on it, but I really don't see what other option I have. I guess the point of this post is to not believe what it says in the handbook about startx working without configuration first. This is exactly what I did as a normal user and it nuked the system somehow. If anybody has ideas of how I could troubleshoot or isolate or repair what was screwed up, I'd appreciate them. If a developer reads this, you might want to look at how something that a normal user does makes a system unbootable. (I'm willing to provide any information you ask in the way of log files and such, but unless I figure something out, the system's getting wiped and reinstalled so it can compile over the weekend.)
__________________
This message is made up of not less than 90% recycled electrons. |
|
#2
|
||||
|
||||
|
I've had no trouble running X without a config on multiple machines. I also don't know whether I'd blame X for the system being unbootable. It sounds like you ran into an issue specific to your setup, and your filesystem got hosed by the hard reboot.
Sucks
|
|
#3
|
|||
|
|||
|
I been running XOrg without an XOrg config file and haven't had issues. I really doubt starting X without a config file hosed your system... but could have attributed to the original lock up though when it was trying to probe and load the correct video driver and monitor settings.
The error you posted looks like something was probably writing to your filesystem and the hard reboot hosed it. For the slowness experienced during start up, I have noticed that FreeBSD actually runs a filesystem check while the system is still starting up (someone correct my if I am wrong). For example, after hard rebooting my system, it will normally boot up and run slow for a few minutes (with the HDD light showing activity) and /usr being scan/checked. Maybe this is what is happening to you? I would try booting into single user mode, check the filesystem and then proceed and see if it locks up. |
|
#4
|
||||
|
||||
|
Quote:
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#5
|
|||
|
|||
|
Quote:
Your system is broken somewhere, X has nothing to do with it. The X crash was unrecoverable because Xorg directly accesses hardware. It's a hardware problem. X autoconfiguration is a pretty normal thing; uses PCI IDs to autoload graphics driver, EDID for display configuration, etc. It's not running "without configuration", it's compiling configuration on the fly. It's what we used to do with X -configure, just done in run-time. You'd have same configuration if you executed # X -configure and then copied the file to /etc/X11/xorg.conf. People who used to autodetect settings and then ran X, can run X without generating the static configuration file. People who used 3rd party drivers or tweaks/stuff, won't. Simple as that. Last edited by DutchDaemon; October 7th, 2011 at 18:01. |
|
#6
|
|||
|
|||
|
I think that the timeline of your apocalypse is:
Quote:
Quote:
When the kernel panics you have 15 seconds to hit a key to stop the countdown - otherwise the system reboots. But you have stopped the countdown by trying to get into a console, so now you are in a deadlock: you are waiting your system, and your system is waiting you. The only way out is a reset. Quote:
You should let the system boot and check the filesystems - it may take some time. When this happens to me I usually login at the console, run top(1) and wait for fsck to finish his work. Next, you could try to remove the pci card and use only the onboard one, with VESA drivers. Hope this helps.
__________________
O quam contempta res est homo, nisi supra humana surrexerit. (Seneca) |
|
#7
|
||||
|
||||
|
Quote:
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#8
|
||||
|
||||
|
Quote:
|
|
#9
|
|||||||||||
|
|||||||||||
|
Thanks for all the input guys.
Quote:
I did notice that journalling isn't even available from the menu without going into the newfs options and manually adding -J there... Isn't journalling what saves you in the event of a power loss/unexpected reboot? (UPDATE: The system complains about a journal provider not being found on reboot with this config.) Quote:
Quote:
Quote:
Quote:
The onboard video is quite slow and I was hoping that a standalone video card would eliminate the KDE screen saver crashing, the bug report about which was linked in my original post on the subject. (Obviously not everybody with KDE 3.5.10 has the problem...) Quote:
Quote:
Quote:
If X were to have just crashed and returned me to a prompt, it wouldn't have been a problem. Being stuck at a black screen and unable to do anything to affect the system is ridiculous IMO. (Out of curiosity, do the Num Lock, Caps Lock, and Scroll Lock lights flash on a kernel panic in FreeBSD like they do in Linux? Never had a kernel panic in BSD before... I ask because the lights were not flashing, but neither did the associated keys toggle the on/off status of the light.) Quote:
Quote:
You obviously know more about X than I probably ever will (or care to ), so I'm not going to argue the point. However, while I understand that a hard reset without having soft updates/journalling enabled is what was most likely the ultimate cause of the system dying, the auto-config of X causing a hard lockup is what precipitated the whole mess.We'll never know if going through the configuration steps would have prevented the hard lockup X caused because the system wouldn't boot and is now wiped, but I know I would appreciate somebody posting a warning to not bypass those steps if this had happened to them, so this is exactly what I did. Quote:
I'll post back once the system is installed and X/KDE compiled/installed with the results.
__________________
This message is made up of not less than 90% recycled electrons. |
|
#10
|
||||
|
||||
|
Quote:
__________________
This message is made up of not less than 90% recycled electrons. |
|
#11
|
|||
|
|||
|
Quote:
We are not talking of the crash of a simple app, but of the system itself. When a kernel panics you have two choices: let the system reboot automatically after 15 seconds, or stop the countdown. If you stop the countdown and your kernel is compiled with Code:
options DDB You are in a critical situation, beyond the point of no return, but despite that the kernel will give you the opportunity to investigate the problem. Compare this with the (in)famous BSOD of Windows ![]() For more info, see here and ddb(4)
__________________
O quam contempta res est homo, nisi supra humana surrexerit. (Seneca) |
|
#12
|
|||
|
|||
|
Probably too late now as you reinstalled, but I had a problem where I tried to start Xorg after an unclean exit that also left me with a blank screen. This was solved by removing the .Xauthority* files in my home directory.
|
|
#13
|
|||
|
|||
|
Something to consider... The "open source" nv driver is actually highly obfuscated. It was written by developers at nvidia, and they even announced a while back that they were going to stop development on it. So you essentially left your computer in the hands of a nearly closed-source "nv" driver that, frankly, doesn't get the attention from nvidia as their actual closed source "nvidia" drivers, and doesn't get the peer review that actual open source drivers receive.
BTW, you may want to confirm that the BIOS really did disable the on-board GPU by checking the output of 'pciconf'. Adam |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Free BSD killed my hd...? | JPS | Mobile Computing | 4 | August 11th, 2011 00:26 |
| Disturbing security bug in XScreenSaver or careless system administration? | jrm | Installation and Maintenance of FreeBSD Ports or Packages | 2 | July 10th, 2011 21:28 |
| x11 problem and stop in /usr/ports/x11/xorg | jammer488 | Installation and Maintenance of FreeBSD Ports or Packages | 4 | October 6th, 2010 02:31 |
| USB and cam system bug? | Seeker | Peripheral Hardware | 37 | February 16th, 2010 00:10 |
| gnome-system-monitor's bug. | fender0107401 | GNOME | 1 | March 9th, 2009 04:25 |