LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-19-2011, 07:57 AM   #1
vhite
LQ Newbie
 
Registered: Aug 2011
Location: Slovakia
Distribution: Mint
Posts: 5

Rep: Reputation: Disabled
My xorg.conf doesn't look right...


Hello. I am rather newbish with Linux so it wouldn't take a long time for me to end up here. I was trying to install nvidia drivers so I could run Tibia. However whenever I install them my GUI (Gnome,X server or whatever is responsible for it) want show up even if I reboot. I have to replace new xorg.conf with the old one so it can run. What I don't get is that old (working) file looks like this:
Code:
Section "Device"
	Identifier	"Default Device"
	Option	"NoLogo"	"True"
EndSection
While one that is modified when installing a driver looks like this:
Code:
`# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 280.13  (buildmeister@swio-display-x86-rhel47-03.nvidia.com)  Wed Jul 27 17:15:58 PDT 2011

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Could you please tell me what to do so it runs properly even with drivers installed? I should also mention at least that I use Linux Mint 11.
Thanks for any future help.
 
Old 08-19-2011, 10:04 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello vhite, welcome to LQ,

it would be good to know which Graphics-adapter you have, please post the output of
Code:
lspci -k | grep -iA5 vga
Normally the nvidia-installer will create a new xorg.conf file and then it should all run properly.

Otherwise on modern systems one needs no xorg.conf at all, at least as long as there are no proprietary drivers installed. You should blacklist the nvidia driver and rename your xorg.conf so that it can't be read, try X then and tell us what happened.

What happens if you don't have the nvidia-driver installed and run X without an xorg.conf?

Please describe the problem with the nvidia-installation in more detail. That you'll have to reboot is normal since the nvidia-installer builds a new kernelmodule and this is loaded after a reboot.
 
Old 08-19-2011, 01:47 PM   #3
vhite
LQ Newbie
 
Registered: Aug 2011
Location: Slovakia
Distribution: Mint
Posts: 5

Original Poster
Rep: Reputation: Disabled
Here is an output of that command.
Code:
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
	Subsystem: ASUSTeK Computer Inc. Device 16f2
	Kernel driver in use: i915
	Kernel modules: i915
00:16.0 Communication controller: Intel Corporation 6 Series Chipset Family MEI Controller #1 (rev 04)
	Subsystem: ASUSTeK Computer Inc. Device 1147
--
01:00.0 VGA compatible controller: nVidia Corporation Device 1050 (rev a1)
	Subsystem: ASUSTeK Computer Inc. Device 16f2
	Kernel driver in use: nvidia
	Kernel modules: nvidia, nvidia-173, nvidia-current, nouveau, nvidiafb
04:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
	Subsystem: AzureWave Device 2c37
Which has also reminded me that I have 2 graphic cards. But ATI one is integrated so I expected (rather foolishly) that the better will be active, maybe it is. I couldn't find it anywhere on Linux and I don't remember which one it was before I uninstalled Windows if that even matters. Also what got me to believe that I need nvidia driver is this error I got when I tried to run that Tibia game:
Code:
Xlib:  extension "GLX" missing on display ":0".
Tibia Error

X Server has no OpenGL extension. (Error Code 31)

Please ensure your X Server features an OpenGL extension.
I have googled somewhere that it may be caused by lack of nvidia drivers. What I got from X when I renamed xorg.conf and (hopefully correctly) blacklisted nvidia is:
Code:
Fatal server error:
Server is already active for display 0
	If this server is no longer running, remove /tmp/.X0-lock
	and start again.


Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 

 ddxSigGiveUp: Closing log
No surprise really if it booted up after I restarted my PC.
What I did when I was installing that driver is that first I stoped X because it had to be turned off for driver to intall. Then I just ran driver installation and when it was done and I wanted to start X again (xinit and maybe some others that I tried as well) it showed some kind of error even after reboot until I replaced the xorg.conf with the old one (however now I see that it would probably work even if it was just removed). Probably I have screwed up on several places like maybe misunderstanding error and having no idea what hardware I am actually using.
 
Old 08-19-2011, 03:47 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hi,

I suspect that you are experiencing a conflict between the two graphics-adapters. I would recommend that you blacklist the driver of the builtin Intel card (there is no ATI) which is the i915. You could as well check with the lsmod command if both module are loaded, but be sure that only the module for one of them is loaded before starting X again.

Did you try your system with the Intel-adapter only? I would recommend to try that out as well.

Markus
 
Old 08-20-2011, 01:01 AM   #5
vhite
LQ Newbie
 
Registered: Aug 2011
Location: Slovakia
Distribution: Mint
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by markush View Post
Hi,

I suspect that you are experiencing a conflict between the two graphics-adapters. I would recommend that you blacklist the driver of the builtin Intel card (there is no ATI) which is the i915. You could as well check with the lsmod command if both module are loaded, but be sure that only the module for one of them is loaded before starting X again.

Did you try your system with the Intel-adapter only? I would recommend to try that out as well.

Markus
For some reason I sometimes confuse name of ATI with Intel. No idea why. Ok here is lsmod.
Code:
Module                  Size  Used by
binfmt_misc            17565  1 
sco                    18131  2 
bnep                   18308  2 
l2cap                  53570  3 bnep
parport_pc             36959  0 
ppdev                  17113  0 
dm_crypt               22993  0 
nvidia              10709116  0 
joydev                 17606  0 
snd_hda_codec_realtek   336693  1 
usbhid                 46956  0 
arc4                   12529  2 
hid                    91020  1 usbhid
snd_hda_intel          33211  2 
snd_hda_codec         103804  2 snd_hda_codec_realtek,snd_hda_intel
psmouse                73535  0 
snd_hwdep              13604  1 snd_hda_codec
ath9k                 118238  0 
serio_raw              13166  0 
snd_pcm                96625  2 snd_hda_intel,snd_hda_codec
snd_seq_midi           13324  0 
mac80211              294370  1 ath9k
snd_rawmidi            30486  1 snd_seq_midi
snd_seq_midi_event     14899  1 snd_seq_midi
snd_seq                61621  2 snd_seq_midi,snd_seq_midi_event
ath9k_common           13851  1 ath9k
ath9k_hw              323077  2 ath9k,ath9k_common
snd_timer              29602  2 snd_pcm,snd_seq
ath                    23773  2 ath9k,ath9k_hw
snd_seq_device         14462  3 snd_seq_midi,snd_rawmidi,snd_seq
cfg80211              178528  3 ath9k,mac80211,ath
snd                    67382  13 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
uvcvideo               72195  0 
btusb                  18600  1 
sparse_keymap          13898  0 
videodev               82052  1 uvcvideo
bluetooth              72448  8 sco,bnep,l2cap,btusb
v4l2_compat_ioctl32    17078  1 videodev
soundcore              12680  1 snd
snd_page_alloc         18529  2 snd_hda_intel,snd_pcm
lp                     17825  0 
parport                46458  3 parport_pc,ppdev,lp
dm_raid45              77827  0 
xor                    12890  1 dm_raid45
btrfs                 550402  0 
zlib_deflate           27074  1 btrfs
libcrc32c              12644  1 btrfs
i915                  514985  2 
ahci                   25951  2 
libahci                26642  1 ahci
drm_kms_helper         42136  1 i915
atl1c                  41171  0 
drm                   227495  3 i915,drm_kms_helper
i2c_algo_bit           13400  1 i915
video                  19438  1 i915
So does that mean that Intel one is loaded? How do I switch them? Just blacklist the other one? And does it help me with my problem with X?
 
Old 08-20-2011, 02:33 AM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Well, referring to the output of lsmod the modules for both graphics-adapters are loaded, nvidia for the Nvidia-Card and i915 for the builtin Intel adapter.

I don't really know in how far this leads to conflicts. I would at first do the following:

1) read in the documentation of your distribution about how to blacklist a module (this means that the module will not anymore be loaded automatically.
2) blacklist the nvidia-module and rename the xorg.conf with
Code:
mv /etc/X11/xorg.conf /etc/X11/xorg.conf_bkp
I mean the xorg.conf which was created by the nvidia-installer.
3) reboot and look what happens, the system should automatically start with the Intel-builtin adapter (when X runs)
4) Read the documentation for the nvidia-installer carefully! I don't have any experience with those Nvidia-cards, but with my ATI after running the installer one has to run aticonfig and this tool not only creates a new xorg.conf but also blacklists other drivers "radeon" in this case. Find out if there is anything that you must do after running the installer.
5) reinstall the Nvidia-card and be sure to blacklist the Intel-module (i915).
6) reboot and look what happens when X runs, do not manually change the xorg.conf which the nvidia-installer created.
7) post what you've experienced.

And if you don't understand what I wrote here, please read the manpage for modprobe
Code:
man modprobe
Good luck

Markus

Last edited by markush; 08-20-2011 at 02:35 AM.
 
Old 08-21-2011, 04:03 AM   #7
vhite
LQ Newbie
 
Registered: Aug 2011
Location: Slovakia
Distribution: Mint
Posts: 5

Original Poster
Rep: Reputation: Disabled
Well, first I tried to blacklist each graphic card. When I blacklisted nvidia everything went ok but when I blacklisted i915, removed nvidia from blacklist and rebooted it kinda ignored me because there still was i915 on when I used lsmod. (also by this time, neither of them seems to need xorg.conf file)
Code:
#This is with i915 blacklisted
Module                  Size  Used by
binfmt_misc            17565  1 
sco                    18131  2 
bnep                   18308  2 
l2cap                  53570  3 bnep
parport_pc             36959  0 
ppdev                  17113  0 
dm_crypt               22993  0 
nvidia              10709116  0 
joydev                 17606  0 
snd_hda_codec_realtek   336693  1 
arc4                   12529  2 
snd_hda_intel          33211  2 
snd_hda_codec         103804  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13604  1 snd_hda_codec
snd_pcm                96625  2 snd_hda_intel,snd_hda_codec
snd_seq_midi           13324  0 
snd_rawmidi            30486  1 snd_seq_midi
ath9k                 118238  0 
psmouse                73535  0 
serio_raw              13166  0 
snd_seq_midi_event     14899  1 snd_seq_midi
snd_seq                61621  2 snd_seq_midi,snd_seq_midi_event
mac80211              294370  1 ath9k
snd_timer              29602  2 snd_pcm,snd_seq
snd_seq_device         14462  3 snd_seq_midi,snd_rawmidi,snd_seq
snd                    67382  13 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
ath9k_common           13851  1 ath9k
ath9k_hw              323077  2 ath9k,ath9k_common
ath                    23773  2 ath9k,ath9k_hw
sparse_keymap          13898  0 
cfg80211              178528  3 ath9k,mac80211,ath
uvcvideo               72195  0 
soundcore              12680  1 snd
videodev               82052  1 uvcvideo
v4l2_compat_ioctl32    17078  1 videodev
btusb                  18600  1 
snd_page_alloc         18529  2 snd_hda_intel,snd_pcm
bluetooth              72448  8 sco,bnep,l2cap,btusb
lp                     17825  0 
parport                46458  3 parport_pc,ppdev,lp
usbhid                 46956  0 
hid                    91020  1 usbhid
dm_raid45              77827  0 
xor                    12890  1 dm_raid45
btrfs                 550402  0 
zlib_deflate           27074  1 btrfs
libcrc32c              12644  1 btrfs
i915                  514985  2 
drm_kms_helper         42136  1 i915
drm                   227495  3 i915,drm_kms_helper
ahci                   25951  2 
libahci                26642  1 ahci
atl1c                  41171  0 
i2c_algo_bit           13400  1 i915
video                  19438  1 i915
And from what I read about the driver I downloaded, native distribution drivers should work better than the one I was trying to install so I haven't even tried to install it again.
However I think I have wandered far away from my real problem with X and it may just have nothing to do with graphic cards. I was checking some xserver packages I have seen that many of them needed update however even after update I still get error (that I posted earlier) when I tried to run that game (it really isn't that important but I'm afraid that same thing may happen in future)
Code:
Xlib:  extension "GLX" missing on display ":0".
Tibia Error

X Server has no OpenGL extension. (Error Code 31)

Please ensure your X Server features an OpenGL extension.
PS: Also I forgot to mention that sometimes (mostly when i915 was blacklisted) everything was extremly lagging for about a minute after Mint booted up.
 
Old 08-21-2011, 05:43 AM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello vhite,

unfortunately I can't help you with this, I'm not a gamer and therefore not very experienced with this settings. You may read here: http://www.opengl.org/wiki/Getting_started for an overview. Hopefully it will point you in the right direction.

Markus
 
Old 08-21-2011, 11:13 AM   #9
vhite
LQ Newbie
 
Registered: Aug 2011
Location: Slovakia
Distribution: Mint
Posts: 5

Original Poster
Rep: Reputation: Disabled
No matter, thank you either way. At least I have learned something from this and I probably wouldn't play that game now anyway.
 
Old 08-21-2011, 03:40 PM   #10
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
hybrid graphics is not supported by nvidia on Linux unless there is an option in the computers BIOS to disable the integrated GPU, which is becoming increasingly rare. There is a project called bumblebee that you can look into which aims to provide support for those configurations. If you can't get it working, however, you will be stuck using the intel GPU.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No Touchpad scrolling - xorg.conf edit doesn't work. spoovy Slackware 6 11-24-2010 06:42 AM
[SOLVED] Slackware 13 x64 doesn't see xorg.conf brooky9999 Slackware 22 04-09-2010 01:11 PM
3 keyboard layouts in xorg.conf doesn't work VMM Linux - Newbie 3 11-10-2009 06:43 PM
mouse doesn't show up in /etc/x11/xorg.conf ~zoey~ Linux - Newbie 1 01-19-2009 03:01 PM
xorg.conf doesn't load new changes SirJinX Linux - Desktop 1 12-20-2006 03:20 PM


All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration