View previous topic :: View next topic |
Author |
Message |
tianqingfei n00b
Joined: 11 Sep 2011 Posts: 14
|
Posted: Sun Sep 25, 2011 2:55 pm Post subject: Thinkpad T420 Cannot startx |
|
|
Hi, all
I use nvidia-config to generate my xorg.conf file,
and I have disabled dri and dri2.
Then, there is following errors:
No devices found.
I have checked my PCI device, it seems using PCI:*(0:0:2:0)
and there is the other PCI (0:1:0:0)
Is that reason? What should I do? |
|
Back to top |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Sun Sep 25, 2011 2:59 pm Post subject: |
|
|
You highly likely have an Optimus machine. Which means your main graphic card will be intel. So install xf86-video-intel and remove xorg.conf. Then, for the Nvidia card, inform yourself about Bumblebee. |
|
Back to top |
|
|
tianqingfei n00b
Joined: 11 Sep 2011 Posts: 14
|
Posted: Mon Sep 26, 2011 2:07 pm Post subject: |
|
|
Gusar wrote: | You highly likely have an Optimus machine. Which means your main graphic card will be intel. So install xf86-video-intel and remove xorg.conf. Then, for the Nvidia card, inform yourself about Bumblebee. |
Thank you firstly. But it seems not work.
I have done following steps:
emerge -C nvidia-drivers
emerge xf86-video-intel
Xorg -configure
and after using the new generated xorg.conf.new, the display turned to black.
I use ctrl_alt_backspace, no response
I use Alt_F1-7 and ctrl_alt_F1-7, no response. |
|
Back to top |
|
|
DirtyHairy l33t
Joined: 03 Jul 2006 Posts: 608 Location: Würzburg, Deutschland
|
Posted: Mon Sep 26, 2011 2:10 pm Post subject: |
|
|
Have you activated the intel framebuffer driver with KMS in the kernel config? I am pretty sure the X11 driver won't work without it on sandybridge. Also, you should try without a xorg.conf first and only create one if you need to change the default for some items (keyboard and touchpad are good candidates). |
|
Back to top |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Mon Sep 26, 2011 2:23 pm Post subject: |
|
|
Don't *ever* use Xorg -configure. Also, don't *ever* use nvidia-xconfig. Instead, do what DirtyHairy says: Make sure KMS is activated in the kernel and remove xorg.conf. If it still doesn't work, use pastebin to show us your /var/log/Xorg.0.log |
|
Back to top |
|
|
DirtyHairy l33t
Joined: 03 Jul 2006 Posts: 608 Location: Würzburg, Deutschland
|
Posted: Mon Sep 26, 2011 2:48 pm Post subject: |
|
|
For the record, what you are looking for in your kernel configuration is Code: | CONFIG_DRM_I915=y
CONFIG_DRM_I915_KMS=y |
|
|
Back to top |
|
|
tianqingfei n00b
Joined: 11 Sep 2011 Posts: 14
|
Posted: Mon Sep 26, 2011 3:47 pm Post subject: |
|
|
DirtyHairy wrote: | For the record, what you are looking for in your kernel configuration is Code: | CONFIG_DRM_I915=y
CONFIG_DRM_I915_KMS=y |
|
I'm pretty sure the configure file is right: I have set the two flags.
I think I have to rebuild the whole system.
Last time, I used wrong set in bios: Optimus.
This time, I will set to use intel graphic card only.
Hope this time could work.
Thank you |
|
Back to top |
|
|
DirtyHairy l33t
Joined: 03 Jul 2006 Posts: 608 Location: Würzburg, Deutschland
|
Posted: Mon Sep 26, 2011 4:28 pm Post subject: |
|
|
I don't want to keep you from doing it, but rebuilding your system is a unnecessary waste of time and will not fix your problem Does the intel KMS driver work, i.e., do you get the high-res framebuffer? What does return? |
|
Back to top |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Mon Sep 26, 2011 4:50 pm Post subject: |
|
|
tianqingfei wrote: | Last time, I used wrong set in bios: Optimus.
This time, I will set to use intel graphic card only. |
You have a bios setting? Can you set it to Nvidia, or is it only Intel/Optimus? |
|
Back to top |
|
|
tianqingfei n00b
Joined: 11 Sep 2011 Posts: 14
|
Posted: Tue Sep 27, 2011 12:40 pm Post subject: |
|
|
To DirtyHairy,
I can see a graphic login UI, but my keyboard and mouse( touch pad) doesn't work.
So,
I will have a try again: Using nvidia graphic card only, setting in bios
emerge -C gnome-light
make sure setting in make.conf
VIDEO_CARDS="nvidia"
and
emerge --update --deep --newuse world
emerge gnome
To Gusar
Bios setting has
Nvidia,
Intel
Optimus
Three choice. I have set it to Nvidia. |
|
Back to top |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Tue Sep 27, 2011 1:04 pm Post subject: |
|
|
tianqingfei wrote: | To Gusar
Bios setting has
Nvidia,
Intel
Optimus
Three choice. I have set it to Nvidia. |
Lucky you. A lot of people wished they had such options, but they don't.
Anyway, as for your mouse and keyboard trouble... Do you have evdev support in your kernel? And is xf86-input-evdev installed? |
|
Back to top |
|
|
DirtyHairy l33t
Joined: 03 Jul 2006 Posts: 608 Location: Würzburg, Deutschland
|
Posted: Tue Sep 27, 2011 1:25 pm Post subject: |
|
|
The mouse and keyboard problem is unrelated to video. Can you post your Xorg.0.log? |
|
Back to top |
|
|
tianqingfei n00b
Joined: 11 Sep 2011 Posts: 14
|
Posted: Tue Sep 27, 2011 2:00 pm Post subject: |
|
|
DirtyHairy wrote: | The mouse and keyboard problem is unrelated to video. Can you post your Xorg.0.log? |
I think it's a impossible mission
Whenever I startx or reboot, the keyboard and mouse always don't work. So I have to switch the video card in bios to the other card, then I can log in console.
Then the xrog.0.log record the error no driver.
It would be useless. |
|
Back to top |
|
|
tianqingfei n00b
Joined: 11 Sep 2011 Posts: 14
|
Posted: Tue Sep 27, 2011 2:03 pm Post subject: |
|
|
And I find some interesting thing that
1 the right Alt button could not be used.
2 the windows button could be used to switch between different console but the ctrl_alt_f1--7 doesn't work as I expected.
I don't know why. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
DirtyHairy l33t
Joined: 03 Jul 2006 Posts: 608 Location: Würzburg, Deutschland
|
Posted: Tue Sep 27, 2011 2:19 pm Post subject: |
|
|
Are you saying that, even on a plain terminal, using ctrl-alt-fx does not switch VTs? If you can neither log on remotely not switch VTs once X has started, as a last resort you can restart and then, when init starts, press i to activate interactive boot and skip over the xdm service. If you have disabled interactive boot, you can reenable it in /etc/rc. |
|
Back to top |
|
|
tianqingfei n00b
Joined: 11 Sep 2011 Posts: 14
|
Posted: Tue Sep 27, 2011 2:20 pm Post subject: |
|
|
And do you ever mean that I do not need to generate xorg.conf to startx?
If I installed Xorg and gnome, and configure them as gentoo.org said. ( Do not generate xorg.config)
I could startx directly? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
tianqingfei n00b
Joined: 11 Sep 2011 Posts: 14
|
Posted: Tue Sep 27, 2011 10:54 pm Post subject: |
|
|
Yesterday night, I
1 set bois using nvidia card only
2 emerge nvidia-drivers
4 modify make.conf: VIDEO_CARDS="nouveau"
5 emerge -C gnome-light
6 emerge gnome
When I login, system said
cannot load dri, vesa and fbdev modules.
It seems I didn't emerge nvidia-drivers.
When I use the xorg.conf.new which is generated by Xorg -configure,
my laptop splashed a nvidia logo and then change to black screen.
No response to keyboard and mouse.
I have check the xorg.conf.new before apply it.
It configured with nvidia card driver. Keyboard and mouse driver use the default.
Did I need to rebuild xorg?
How could I do?
And I don't know how to configure ssh server, anyone could help me to give me a guide doc or a webpage about that? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Tue Sep 27, 2011 11:04 pm Post subject: |
|
|
2. OK, but you should have set VIDEO_CARDS="nvidia" and the driver would have been installed for you. If you emerge without --oneshot the package will be recorded in world file as an user application, which is not recommended nor desirable.
3. See (2)
4. You set nouveau if you want nouveau friver and nvidia if you want nVidia proprietary drivers.
Quote: | cannot load dri, vesa and fbdev modules |
This is normal, nvidia driver has it's own dri. You do not need vesa and fbdev to run nvidia.
It is likely you haven't configured your input devices properly, black screen is normal if Xorg is running but no application or DE or WM is started.
As of SSH just emerge -av ssh (if it's not installed already), then /etc/init.d/sshd start. After that you should be able to log on from another computer using your username and su to root if needed. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Wed Sep 28, 2011 12:33 am Post subject: |
|
|
X -configure never works with KMS, don't use it. For Intel you don't need xorg.conf anyway. Just start gdm or whatever login manager you want to use.
Most Lenovo notebooks have a BIOS option to turn off Optimus and use only discrete graphics. |
|
Back to top |
|
|
DirtyHairy l33t
Joined: 03 Jul 2006 Posts: 608 Location: Würzburg, Deutschland
|
Posted: Wed Sep 28, 2011 8:19 am Post subject: |
|
|
Also, you can add the SSH server to your default runlevel by doing "eselect rc add sshd default". This way, it will start up every time you boot the machine. |
|
Back to top |
|
|
tianqingfei n00b
Joined: 11 Sep 2011 Posts: 14
|
Posted: Wed Sep 28, 2011 1:19 pm Post subject: |
|
|
Hi, all.
Thank you for you attention.
I have setup the sshd in my T420.
following is my make.conf
Quote: |
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=core2 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="-qt3 -qt4 -kde gtk gnome dvd alsa cdr mmx sse sse2 xvmc hal dbus sqlite"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="nvidia"
EMERGE_DEFAULT_OPTS="--autounmask=n"
|
This is my xorg.0.log with no xorg.conf in /etc/X11 folder
Quote: |
X.Org X Server 1.10.4
Release Date: 2011-08-19
[ 18.283] X Protocol Version 11, Revision 0
[ 18.283] Build Operating System: Linux 2.6.39-gentoo-r3 x86_64 Gentoo
[ 18.283] Current Operating System: Linux Tian-T420 2.6.39-gentoo-r3 #5 SMP Sat Sep 24 18:33:41 CST 2011 x86_64
[ 18.283] Kernel command line: root=/dev/sda5
[ 18.283] Build Date: 24 September 2011 10:43:52PM
[ 18.283]
[ 18.283] Current version of pixman: 0.22.2
[ 18.283] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 18.283] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 18.283] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Sep 28 21:03:19 2011
[ 18.283] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 18.283] (==) No Layout section. Using the first Screen section.
[ 18.283] (==) No screen section available. Using defaults.
[ 18.283] (**) |-->Screen "Default Screen Section" (0)
[ 18.283] (**) | |-->Monitor "<default monitor>"
[ 18.283] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 18.283] (==) Automatically adding devices
[ 18.283] (==) Automatically enabling devices
[ 18.283] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[ 18.283] Entry deleted from font path.
[ 18.283] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 18.283] Entry deleted from font path.
[ 18.283] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 18.283] Entry deleted from font path.
[ 18.283] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 18.283] Entry deleted from font path.
[ 18.283] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[ 18.283] Entry deleted from font path.
[ 18.283] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[ 18.283] Entry deleted from font path.
[ 18.283] (==) FontPath set to:
[ 18.283] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 18.283] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 18.283] (II) Loader magic: 0x7d7160
[ 18.283] (II) Module ABI versions:
[ 18.283] X.Org ANSI C Emulation: 0.4
[ 18.283] X.Org Video Driver: 10.0
[ 18.283] X.Org XInput driver : 12.2
[ 18.283] X.Org Server Extension : 5.0
[ 18.284] (--) PCI:*(0:1:0:0) 10de:1057:17aa:21ce rev 161, Mem @ 0xf2000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x00005000/128, BIOS @ 0x????????/524288
[ 18.284] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 18.284] (II) LoadModule: "extmod"
[ 18.284] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
[ 18.284] (II) Module extmod: vendor="X.Org Foundation"
[ 18.284] compiled for 1.10.4, module version = 1.0.0
[ 18.284] Module class: X.Org Server Extension
[ 18.284] ABI class: X.Org Server Extension, version 5.0
[ 18.284] (II) Loading extension MIT-SCREEN-SAVER
[ 18.284] (II) Loading extension XFree86-VidModeExtension
[ 18.284] (II) Loading extension XFree86-DGA
[ 18.284] (II) Loading extension DPMS
[ 18.284] (II) Loading extension XVideo
[ 18.284] (II) Loading extension XVideo-MotionCompensation
[ 18.284] (II) Loading extension X-Resource
[ 18.284] (II) LoadModule: "dbe"
[ 18.284] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
[ 18.284] (II) Module dbe: vendor="X.Org Foundation"
[ 18.284] compiled for 1.10.4, module version = 1.0.0
[ 18.284] Module class: X.Org Server Extension
[ 18.284] ABI class: X.Org Server Extension, version 5.0
[ 18.284] (II) Loading extension DOUBLE-BUFFER
[ 18.284] (II) LoadModule: "glx"
[ 18.284] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 18.290] (II) Module glx: vendor="NVIDIA Corporation"
[ 18.290] compiled for 4.0.2, module version = 1.0.0
[ 18.290] Module class: X.Org Server Extension
[ 18.290] (II) NVIDIA GLX Module 275.09.07 Wed Jun 8 14:34:43 PDT 2011
[ 18.290] (II) Loading extension GLX
[ 18.290] (II) LoadModule: "record"
[ 18.290] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
[ 18.290] (II) Module record: vendor="X.Org Foundation"
[ 18.290] compiled for 1.10.4, module version = 1.13.0
[ 18.290] Module class: X.Org Server Extension
[ 18.290] ABI class: X.Org Server Extension, version 5.0
[ 18.290] (II) Loading extension RECORD
[ 18.290] (II) LoadModule: "dri"
[ 18.290] (WW) Warning, couldn't open module dri
[ 18.290] (II) UnloadModule: "dri"
[ 18.290] (II) Unloading dri
[ 18.290] (EE) Failed to load module "dri" (module does not exist, 0)
[ 18.290] (II) LoadModule: "dri2"
[ 18.291] (WW) Warning, couldn't open module dri2
[ 18.291] (II) UnloadModule: "dri2"
[ 18.291] (II) Unloading dri2
[ 18.291] (EE) Failed to load module "dri2" (module does not exist, 0)
[ 18.291] (==) Matched nouveau as autoconfigured driver 0
[ 18.291] (==) Matched vesa as autoconfigured driver 1
[ 18.291] (==) Matched fbdev as autoconfigured driver 2
[ 18.291] (==) Assigned the driver to the xf86ConfigLayout
[ 18.291] (II) LoadModule: "nouveau"
[ 18.291] (WW) Warning, couldn't open module nouveau
[ 18.291] (II) UnloadModule: "nouveau"
[ 18.291] (II) Unloading nouveau
[ 18.291] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 18.291] (II) LoadModule: "vesa"
[ 18.291] (WW) Warning, couldn't open module vesa
[ 18.291] (II) UnloadModule: "vesa"
[ 18.291] (II) Unloading vesa
[ 18.291] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 18.291] (II) LoadModule: "fbdev"
[ 18.291] (WW) Warning, couldn't open module fbdev
[ 18.291] (II) UnloadModule: "fbdev"
[ 18.291] (II) Unloading fbdev
[ 18.291] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 18.291] (EE) No drivers available.
[ 18.291]
Fatal server error:
[ 18.291] no screens found
[ 18.291]
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 18.291] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 18.291]
|
And this is my xorg.conf.new which is generated by Xorg -configure.
After apply this configure file, my screen turn black and keyboard has no response any more.
Quote: |
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib64/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "extmod"
Load "dbe"
Load "record"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
|
|
|
Back to top |
|
|
RazielFMX l33t
Joined: 23 Apr 2005 Posts: 835 Location: NY, USA
|
Posted: Wed Sep 28, 2011 1:49 pm Post subject: |
|
|
As has been stated several times, get rid of your Xorg.conf file. You do not need it. Do not use Xorg -configure, it will break your system with modern xorg.
In your make.conf, replace your input devices with this:
Code: | INPUT_DEVICES="evdev" |
You need to emerge x11-drivers/xf86-input-evdev.
Make sure you have EVDEV support in your kernel.
Code: | nightshade ~ $ grep -i evdev /usr/src/linux/.config
CONFIG_INPUT_EVDEV=m
nightshade ~ $ |
And make sure its loaded on boot (assuming you are using openrc):
Code: | nightshade ~ $ grep evdev /etc/conf.d/modules
modules_2_6="${modules_2_6} evdev"
module_evdev_args_2_6=""
nightshade ~ $ |
Also, please make sure your kernel is set up like described here:
http://www.gentoo.org/doc/en/xorg-config.xml
Last edited by RazielFMX on Wed Sep 28, 2011 1:53 pm; edited 1 time in total |
|
Back to top |
|
|
tianqingfei n00b
Joined: 11 Sep 2011 Posts: 14
|
Posted: Wed Sep 28, 2011 1:50 pm Post subject: |
|
|
Thank you for your great help!
But there is still a few problem about ssh.
[quote=Jaglover] /etc/init.d/sshd start. After that you should be able to log on from another computer using your username and su to root if needed.[/quote]
I can not su root.
Firstly I use a user in adm group, the su command was denied.
Then, I use usrmod -g root xx to add the user to root group, the su - command still is denied. |
|
Back to top |
|
|
|