Xorg -configure SegFaults
I've got a Lenovo G575 laptop that I installed Debian Squeeze (stable) on. I tried to generate an xorg.conf with Xorg -configure and got a segfault. Here's a copy of Xorg.0.log.old that has the error at the end. http://pastebin.com/MMvsZkvu
I don't know how relevant this is, but I needed an xorg.conf so I could change the video driver. Usually you'd use `aticonfig --initial`, but it couldn't find my graphics card. I've got a Radeon HD6320 thats integrated in the AMD Fusion E-450 processor. Debian doesn't normally use an xorg.conf, instead Xorg detects your hardware when it starts. I'm going to make a thread for that in the hardware section, I'll link to it once I do in case these problems are more related than I think. |
at 303: (++) Using config file: "/root/xorg.conf.new"
have you tried to move/remove xorg.conf.new ? also, since you don't have /dev/fb0, could it be a module blacklisted on /etc/modprobe ? |
my laptop with HD3650 also installed Debian Squeeze, using fglrx (ccc version 11.11) driver. it seems some problems of displaying when the system recovers from suspending to memory or disk, LCD display nothing even without backing-light ,ctrl+alt+F1 switch to tty1 console,system can receive bash-shell orders like reboot\halt 0 and so on. sometimes LCD display nothing but backing-light, at this situation, switching to tty1 is normal, LCD display words, then execute "service gdm3 restart" as root, the gnome shell will restart normally with fglrx driver.
i tried to mv etc/X11/xorg.conf to xorg.conf.bkp, it means i let the x-window starting without the xorg.conf file, and the system suspends to mem or disk normally, even the system recovers at any time,but x-window can not using fglrx driver to actualize the 3D acceleraion. so i modified the xorg.conf file, as this: Code:
#Section "ServerLayout" have no idea with this. (ps: my laptop had a nvidia 8600m gt graphic card before, debian squeeze with nvidia private driver worked well on suspending to mem or disk, saddly my 8600m gt trapped in the nvidia's graphic card gate, so i used a HD3650 to instead of 8600m gt, then my laptop's problem pops up) |
Xserver-xorg is very good at setting up options, elaborate xorg.conf files are more likely to be unstable as of late. I built a Debian Live USB a few months ago, tested it in hundreds of demo laptops and desktops at major computer vendors to get it working nice on any machine. Below is the ATI xorg.conf file that works best:
Code:
Section "Device" |
Quote:
|
Quote:
I just copied the xorg.conf that Brains posted, I'm going to restart gdm after I post this. |
I tried Brains' xorg.conf, after replacing fglrx with radeon because I don't have fglrx installed. When I tried the radeon driver, I got a black screen with an underscore cursor that displayed everything I typed. I also tried the radeonhd driver, but I got the same black screen with a cursor blinking a lot faster and didn't respond to any key presses, even alt+ctrl+F1. The same thing happened when I tried the xorg.conf.new file Xorg -configure made before segfaulting. Here's the log from trying the radeon driver: http://pastebin.com/EbfLxV0V
|
The xorg.conf file should be in /etc/X11 not /root, no need to have the word "new" attached.
According to Debian packages web site search, the current fglrx-driver package version for Debian stable is # 10-9-3. The version my Debian live testing I made last year is # 11-3-1 which will not work for that graphics card device ID of yours ---->1002:9806, I recently tried it on a newer laptop at a computer vendor with device ID 1002:9647 which is not supported by fglrx-driver-11-3-1, xserver-xorg didn't even load the radeon driver, it used vesa on that machine. The current version for Debian testing is # 11-11-3, I downloaded it, took it apart to look at the amdpcsdb.default file which is usually found in /etc/ati, you can see if your card is supported by checking to see if the device ID is in that file with this command: grep -n 1002-9806 /etc/ati/amdpcsdb.default, the -n will show the line number of the file where the device ID was found. You may need to modify your /etc/apt/sources.list to include a Debian testing non-free mirror, do an update, then install fglrx-driver-11-11-3 if you are currently using the version from Debian stable mirrors. cstn should be able to guide you in that regard. After installing fglrx from testing, comment out the line for testing in the /etc/apt/sources.list and redo an update to keep your installation stable, otherwise things might get bloated and screwy. |
xorg.conf.new is what 'Xorg -configure' generates, and I was in /root when I did it. When I tried what you posted before, I put it in /etc/X11/xorg.conf. I'd rather avoid using packages from testing if I can, but I switched to the testing repos and got some errors:
Code:
$ sudo apt-get install fglrx-glx edit: now I remember, the installer for testing doesnt have drivers for my ethernet card. I'm going to see if I can find firmware for it that works with the installer, hopefully once I install it my video card will work. |
Google key words "Debian installer" to take you to testing download/installation stuff.
|
I didn't see your post before I edited mine... The new debian installer doesnt have firmware for my ethernet and wireless cards, but I just found them.
Thanks for all the help so far, by the way. |
I got testing installed, after a few tries at getting the firmware recognized I realized it was asking for firmware for the wireless card. Ethernet usually works for a while, long enough to install debian and get the wireless drivers.
Testing won't boot all the way, though. It gives really bad artifacts, like colorful static. When I do a normal boot I can see a box behind the static where the mouse arrow would be and it responds to input. There's a 'recovery' item in the GRUB menu that gives you a chance to log in as root before switching to the final runlevel where GDM and X are run. I get the static before X is supposed to start, and I never pressed ctrl+D to skip logging in as root to do system maintenance. I'm back in Squeeze again so I can get any log files that might be relevant. I didn't see any errors in the Xorg log file, but I get artifacts when X never starts, anyway. |
You can get it done from command line by booting in recovery mode. Here's how assuming you have an internet connection via the NIC, you might want to print these instructions:
Here is how your entry for /etc/apt/sources.list needs to look like: Quote:
You should do this for the security line also, but not needed at this point, you can choose to do it now or after you get a GUI desktop. Once the line(s) have the non-free added and you've hit escape and removed extra letter(s), hit the shift and semi colon : keys at the same time, a semi colon should appear at the bottom of the screen, now type without quotes "wq!" and hit enter to write an quit. Now you should be back at the prompt, run command: aptitude keep-all, and when the prompt comes back enter this command: aptitude update to update the list of available packages. From now on, you are best to use aptitude from command line instead of apt-get, but it is not imperative. When the prompt returns, enter this command to see which kernel package is installed: dpkg --get-selections | grep linux-image. Using this example return---->linux-image-3.1.0-1-amd64, the next command will be to install fglrx and kernel headers to compile the module as well as all dependencies, the word "image" in the output of the --get-selections command needs to be replaced with the word "headers", make sure to use your actual kernel, not mine in this example if it is different: aptitude -r install linux-headers-3.1.0-1-amd64 fglrx-control fglrx-driver. If the prompt comes back without error, now you need to put the xorg.conf file in place. Insert the USB key and wait for a few lines of text to flash by then hit the enter key to get the prompt back and type: fdisk -l, a list of drives should appear, if your key is /dev/sdb and only has one partition /dev/sdb1, mount the key with this command: mount /dev/sdb1 /mnt. Now copy the xorg.conf file to /etc/X11 with this command: cp /mnt/xorg.conf /etc/X11/. Reboot with this command: reboot, select normal boot and log in as your user. |
I get artifacts even when I boot into recovery mode, before it's supposed to prompt for the root password, right after loading initrd.
Quote:
|
I have found over time, it is a time saver to just reboot as many configurations do not take effect until a reboot, like the firmware-linux-nonfree package required to be installed after enabling non-free in your sources.list in order to have wireless networking.
Debian used to pride itself in the fact that the only time you needed a reboot was after a kernel upgrade. But they've gone "free, all free," now which means proprietary stuff like fglrx and firmware are not part of the official distribution. The Debian CD search will show vim-tiny is included in the daily-builds (Daily small CD builds). What exactly do you mean by "I get artifacts". EDIT: You can hit the "e" key at the grub menu, edit the long line starting with "linux /boot/vmlinuz" and ending with quiet or single. Use backspace key to remove quiet and ro, then add "single" and "vga=xxx" to use vesa driver. The xxx needs to be replaced with a number matching one of the video modes your laptop uses, a guide to the different modes here. For instance, to use 1280x1024 24-bit it would be vga=795. And for all intensive purposes, video is controlled either by an add-on video card or on the chip which is part of the motherboard, not controlled by the E-450 processor, The specs for the Lenovo G575 specify AMD Dual-core E-350 1.6GHz |
By artifacts, I mean it looks a little like the 'artifacts' I'd get when I used to overclock and pushed it a little too far. In this case, it's a black bar at the top, about an inch thick, with a bunch of static that's not just black and white, but colorful. I think it was just red, green, and blue, but I don't remember. If I let X start, I can make out a white box "behind" the static that start in the middle of the screen and moves when I move the mouse. I could take a picture of it if you want?
I got this laptop from Amazon and on the product page it said E-450. They don't have the best tech spec summaries, most of the others just said "E series," but I'm hoping they upgraded it, and didn't make a mistake in the specs. I guess I'd be able to get a partial refund if they did make a mistake... http://www.amazon.com/Lenovo-43834HU...uckduckgo-d-20 This page shows the Radeon HD 6320 as an IGP, part of the Fusion E-450. |
Base on what I read, it appears that processor has a part of it dedicated to HD video. My desktop has an Nvidia Gforce 8600 GTS or something, this add-on card has it's own Graphics processing unit (GPU) and it's own memory, it's an expensive card with a fan to keep the GPU at the right temperature. Such a card is impracticle for a laptop, traditionally laptops graphics were powered by the Central processing unit (CPU) which took away resources from other processes when you pushed it such as playing 3D games etc. making other processes slower than normal. It appears this processor has a section dedicated to HD video which the way I see it, should not affect performance in other processes when your pushing the graphics.
Anyway, if you still have testing installed somewhere, it'd probably be worth a try booting using the vesa driver to try and get fglrx happening, otherwise you may have to go the other route by adding testing to you stable sources.list and installing just fglrx stuff, of course, many other packages will need to be upgraded as dependencies for that to happen, but it's not uncommon to mix different versions of Debian. Knoppix live CD is a mix of stable, testing and sid. Look at post # 3. |
I tried vga=795 and vga=792. 792 is what my display is stuck at in Stable. Both did the same thing, showed static before giving me a chance to log in as root. It's actually getting a little farther than initrd, I saw a lot of scrolling text but I didn't recognize anything. Here's a picture of the static, I saw a lot of different colors, not just RGB:
http://i.imgur.com/yvrDQ.jpg |
All times are GMT -5. The time now is 11:20 PM. |