Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]xorg does not run properly in some kenerls
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Wed Jul 30, 2014 11:53 pm    Post subject: [solved]xorg does not run properly in some kenerls Reply with quote

I have desktop with dual screen, the file /etc/X/xorg.conf.d/xorg.conf seems to be working properly. However, it is found that the x server can only be running on the kernel 3.12.13-gentoo, not on others that I have installed (e.g., linux-3.12.21-gentoo-r1 linux-3.10.25-gentoo)

Here is the information on the successful boot:

Code:

ae429-1105 chenming # journalctl -b |grep "nvidia"
Jul 31 09:30:38 localhost kernel: nvidia: module license 'NVIDIA' taints kernel.
Jul 31 09:30:38 localhost kernel: nvidia: module license 'NVIDIA' taints kernel.
Jul 31 09:30:38 localhost kernel: nvidia 0000:04:00.0: enabling device (0002 -> 0003)
Jul 31 09:30:38 localhost kernel: [drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:03:00.0 on minor 0
Jul 31 09:30:38 localhost kernel: [drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:04:00.0 on minor 1
Jul 31 09:30:38 localhost kernel: nvidia 0000:03:00.0: irq 92 for MSI/MSI-X
Jul 31 09:30:38 localhost kernel: nvidia 0000:04:00.0: irq 93 for MSI/MSI-X
Jul 31 09:30:38 localhost kernel: nvidia-smi (2035) used greatest stack depth: 4392 bytes left
Jul 31 09:30:52 localhost kernel: nvidia 0000:04:00.0: irq 92 for MSI/MSI-X
Jul 31 09:30:53 localhost kernel: nvidia 0000:03:00.0: irq 93 for MSI/MSI-X


and the /var/log/Xorg.0.log

Code:


d
[    35.144] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1:1.1/input/input7/event4"
[    35.144] (II) XINPUT: Adding extended input device "Dell Dell Multimedia Pro Keyboard" (type: KEYBOARD, id 9)
[    35.144] (**) Option "xkb_rules" "evdev"
[    35.144] (**) Option "xkb_model" "pc104"
[    35.144] (**) Option "xkb_layout" "us"
[    35.144] (II) evdev: Dell Dell Multimedia Pro Keyboard: initialized for absolute axes.
[    35.144] (**) Dell Dell Multimedia Pro Keyboard: (accel) keeping acceleration scheme 1
[    35.144] (**) Dell Dell Multimedia Pro Keyboard: (accel) acceleration profile 0
[    35.144] (**) Dell Dell Multimedia Pro Keyboard: (accel) acceleration factor: 2.000
[    35.144] (**) Dell Dell Multimedia Pro Keyboard: (accel) acceleration threshold: 4
[    35.144] (II) config/udev: Adding input device USB Optical Mouse (/dev/input/event2)
[    35.144] (**) USB Optical Mouse: Applying InputClass "evdev pointer catchall"
[    35.144] (II) Using input driver 'evdev' for 'USB Optical Mouse'
[    35.144] (**) USB Optical Mouse: always reports core events
[    35.144] (**) evdev: USB Optical Mouse: Device: "/dev/input/event2"
[    35.144] (--) evdev: USB Optical Mouse: Vendor 0x461 Product 0x4d81
[    35.144] (--) evdev: USB Optical Mouse: Found 3 mouse buttons
[    35.144] (--) evdev: USB Optical Mouse: Found scroll wheel(s)
[    35.144] (--) evdev: USB Optical Mouse: Found relative axes
[    35.144] (--) evdev: USB Optical Mouse: Found x and y relative axes
[    35.144] (II) evdev: USB Optical Mouse: Configuring as mouse
[    35.144] (II) evdev: USB Optical Mouse: Adding scrollwheel support
[    35.144] (**) evdev: USB Optical Mouse: YAxisMapping: buttons 4 and 5
[    35.144] (**) evdev: USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    35.144] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3/2-3.4/2-3.4:1.0/input/input5/event2"
[    35.144] (II) XINPUT: Adding extended input device "USB Optical Mouse" (type: MOUSE, id 10)
[    35.144] (II) evdev: USB Optical Mouse: initialized for relative axes.
[    35.144] (**) USB Optical Mouse: (accel) keeping acceleration scheme 1
[    35.144] (**) USB Optical Mouse: (accel) acceleration profile 0
[    35.144] (**) USB Optical Mouse: (accel) acceleration factor: 2.000
[    35.144] (**) USB Optical Mouse: (accel) acceleration threshold: 4
[    35.145] (II) config/udev: Adding input device USB Optical Mouse (/dev/input/mouse0)
[    35.145] (II) No input driver specified, ignoring this device.
[    35.145] (II) This device may have been added with another device file.





this part is the failed run:

Code:

nitializing built-in extension SYNC
[    63.747] Initializing built-in extension SYNC
[    63.747] Initializing built-in extension XKEYBOARD
[    63.747] Initializing built-in extension XC-MISC
[    63.747] Initializing built-in extension XINERAMA
[    63.747] Initializing built-in extension XFIXES
[    63.748] Initializing built-in extension RENDER
[    63.748] Initializing built-in extension RANDR
[    63.748] Initializing built-in extension COMPOSITE
[    63.748] Initializing built-in extension DAMAGE
[    63.748] Initializing built-in extension MIT-SCREEN-SAVER
[    63.748] Initializing built-in extension DOUBLE-BUFFER
[    63.748] Initializing built-in extension RECORD
[    63.749] Initializing built-in extension DPMS
[    63.749] Initializing built-in extension Present
[    63.749] Initializing built-in extension DRI3
[    63.749] Initializing built-in extension X-Resource
[    63.749] Initializing built-in extension XVideo
[    63.749] Initializing built-in extension XVideo-MotionCompensation
[    63.750] Initializing built-in extension XFree86-VidModeExtension
[    63.750] Initializing built-in extension XFree86-DGA
[    63.750] Initializing built-in extension XFree86-DRI
[    63.750] Initializing built-in extension DRI2
[    63.750] (II) LoadModule: "glx"
[    63.846] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    64.833] (II) Module glx: vendor="NVIDIA Corporation"
[    64.833]    compiled for 4.0.2, module version = 1.0.0
[    64.833]    Module class: X.Org Server Extension
[    64.841] (II) NVIDIA GLX Module  340.24  Wed Jul  2 15:04:31 PDT 2014
[    64.856] Loading extension GLX
[    64.856] (II) LoadModule: "nvidia"
[    64.873] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[    64.955] (II) Module nvidia: vendor="NVIDIA Corporation"
[    64.955]    compiled for 4.0.2, module version = 1.0.0
[    64.955]    Module class: X.Org Video Driver
[    64.966] (II) NVIDIA dlloader X Driver  340.24  Wed Jul  2 14:42:23 PDT 2014
[    64.966] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    64.967] (--) using VT number 2

[    64.971] (II) Loading sub module "fb"
[    64.971] (II) LoadModule: "fb"
[    64.971] (II) Loading /usr/lib64/xorg/modules/libfb.so
[    64.986] (II) Module fb: vendor="X.Org Foundation"
[    64.986]    compiled for 1.15.0, module version = 1.0.0
[    64.986]    ABI class: X.Org ANSI C Emulation, version 0.4
[    64.986] (WW) Unresolved symbol: fbGetGCPrivateKey
[    64.986] (II) Loading sub module "wfb"
[    64.986] (II) LoadModule: "wfb"
[    64.986] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[    64.998] (II) Module wfb: vendor="X.Org Foundation"
[    64.998]    compiled for 1.15.0, module version = 1.0.0
[    64.998]    ABI class: X.Org ANSI C Emulation, version 0.4
[    64.998] (II) Loading sub module "ramdac"
[    64.998] (II) LoadModule: "ramdac"
[    64.998] (II) Module "ramdac" already built-in
[    65.018] (WW) NVIDIA: Xinerama is enabled, so RandR has likely been disabled by the
[    65.018] (WW) NVIDIA:     X server.
[    65.018] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[    65.018] (EE) NVIDIA:     system's kernel log for additional error messages and
[    65.018] (EE) NVIDIA:     consult the NVIDIA README for details.
[    65.018] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[    65.018] (EE) NVIDIA:     system's kernel log for additional error messages and
[    65.018] (EE) NVIDIA:     consult the NVIDIA README for details.
[    65.018] (EE) No devices detected.
[    65.018] (EE)
Fatal server error:
[    65.018] (EE) no screens found(EE)
[    65.018] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[    65.018] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    65.018] (EE)


nothing comes out when running journalctl -b |grep "nvidia"


Code:

ae429-1105 chenming # systemctl status dev-dri-card0.device
â dev-dri-card0.device
   Loaded: loaded
   Active: inactive (dead)


Some update:

It seems that during booting the kernel that can not run X server properly, the nvidia module were not loaded properly before the login prompt. I have searched on this page https://bbs.archlinux.org/viewtopic.php?id=176320 which suggestes me to load the nvidia driver in initramfs. But I don't how to do that. Can any one shed some light on this issue?

Thank you very much!


Last edited by diablo465 on Thu Jul 31, 2014 12:56 am; edited 1 time in total
Back to top
View user's profile Send private message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 630

PostPosted: Thu Jul 31, 2014 12:34 am    Post subject: Reply with quote

did you emerge the nvidia-drivers package for each kernel? You have to do it after eselect-ing a new kernel for the first time.

Try this:

Code:
find /lib/modules -type f -name "nvidia.ko" -print
/lib/modules/3.9.9-gentoo/video/nvidia.ko
/lib/modules/3.12.13-gentoo-bak/video/nvidia.ko
/lib/modules/3.7.9-gentoo/video/nvidia.ko
/lib/modules/3.8.13-gentoo/video/nvidia.ko
/lib/modules/3.10.7-gentoo/video/nvidia.ko
/lib/modules/3.10.25-gentoo/video/nvidia.ko
/lib/modules/3.7.10-gentoo/video/nvidia.ko
/lib/modules/3.4.9-gentoo/video/nvidia.ko
/lib/modules/3.10.17-gentoo/video/nvidia.ko
/lib/modules/3.2.1-gentoo-r2/video/nvidia.ko
/lib/modules/3.10.7-gentoo-r1/video/nvidia.ko
/lib/modules/3.12.13-gentoo/video/nvidia.ko
/lib/modules/3.7.10-gentoo-r1/video/nvidia.ko
/lib/modules/3.1.6-gentoo/video/nvidia.ko
/lib/modules/3.3.8-gentoo/video/nvidia.ko
/lib/modules/3.5.7-gentoo/video/nvidia.ko
/lib/modules/3.12.21-gentoo-r1/video/nvidia.ko


I've been using this box for a while. You should see the nvidia.ko file for each kernel that you want to use.
After 'eselect kernel set <n>', you should emerge nvidia-drivers.

HTH
Back to top
View user's profile Send private message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Thu Jul 31, 2014 12:51 am    Post subject: Reply with quote

russK wrote:
did you emerge the nvidia-drivers package for each kernel? You have to do it after eselect-ing a new kernel for the first time.

I've been using this box for a while. You should see the nvidia.ko file for each kernel that you want to use.
After 'eselect kernel set <n>', you should emerge nvidia-drivers.

HTH


Thank you so much for your help, you have solved this problem that stuck me from updating gentoo for months!

But it is quite funny that I do not need to do this for updating my home desktop which also uses nvidia graphic card (i don't have access now. but probably that machine uses nouveau driver?)

Same thing happens for my current using laptop which uses a radeon graphic card!!!!
Code:

ae429-3176 chenming # find /lib/modules -type f -name "radeon.ko" -print                         
/lib/modules/3.10.7-gentoo/kernel/drivers/gpu/drm/radeon/radeon.ko
/lib/modules/3.12.13-gentoo/kernel/drivers/gpu/drm/radeon/radeon.ko
/lib/modules/3.10.25-gentoo/kernel/drivers/gpu/drm/radeon/radeon.ko
ae429-3176 chenming # eselect kernel list
Available kernel symlink targets:
  [1]   linux-3.10.7-gentoo
  [2]   linux-3.10.7-gentoo-r1
  [3]   linux-3.10.17-gentoo
  [4]   linux-3.10.25-gentoo
  [5]   linux-3.12.13-gentoo
  [6]   linux-3.12.20-gentoo
  [7]   linux-3.12.21-gentoo-r1 *


How to explain that?
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Thu Jul 31, 2014 8:16 am    Post subject: Reply with quote

radeon is an in-kernel driver. Unlike ati-drivers(fglrx) it is necessary to enable CONFIG_DRM_RADEON in your kernel, no building of external packages is required.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum