Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Trouble starting X with GTX 680M
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
d3crypt
n00b
n00b


Joined: 15 Aug 2015
Posts: 11

PostPosted: Sat Aug 15, 2015 4:07 am    Post subject: [SOLVED] Trouble starting X with GTX 680M Reply with quote

Hi all,

I've been at this for several hours and it's becoming pretty frustrating. I have an MSI GT60 laptop with two graphics cards: a Nvidia GeForce GTX 680M, and Intel onboard graphics. The output of 'lspci -k' may be found here. I'd very much like to use the 680M. I'm attempting to use the proprietary nvidia driver, rather than nouveau. I've blacklisted nouveau in my /etc/modprobe.d/blacklist.conf file. I've also added the line
Code:
VIDEO_CARDS="nvidia"
to my /etc/portage/make.conf file.

I have already run nvidia-xconfig and generated an xorg.conf file. After some troubleshooting, I have added the line
Code:
BusID          "PCI:1:0:0"
to this default configuration. I've pasted the full contents of my xorg.conf here.

When I try to start X, I'm told that no screens have been found. Checking the log file gives more information about the error:
Code:
[  3341.665] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0.
[  3341.665] (EE) NVIDIA(0):     Set AllowEmptyInitialConfiguration if you want the server
[  3341.665] (EE) NVIDIA(0):     to start anyway
[  3341.665] (EE) NVIDIA(0): Failing initialization of X screen 0
[  3341.670] (II) NVIDIA: Freed GPU:0 (GPU-925fc51d-26c5-07e4-c6c1-36e870c4eba7) @
[  3341.670] (II) NVIDIA:     PCI:0000:01:00.0
[  3341.688] (II) UnloadModule: "nvidia"
[  3341.688] (II) UnloadSubModule: "wfb"
[  3341.688] (II) UnloadSubModule: "fb"
[  3341.688] (EE) Screen(s) found, but none have a usable configuration.
[  3341.688] (EE)
Fatal server error:
[  3341.688] (EE) no screens found(EE)


You can see my Xorg.0.log file in its entirety here. I've tried setting AllowEmptyInitialConfiguration as it suggests, but this just results in a blank screen with no cursor (and I have twm, xterm, and xclock installed). Sorry if I've made any obvious oversights, I'm new to Gentoo and would really appreciate some help from more experienced users. :)


Last edited by d3crypt on Sat Aug 15, 2015 7:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1031
Location: Massachusetts USA

PostPosted: Sat Aug 15, 2015 4:35 am    Post subject: Reply with quote

Do quick search for optimus and you will find other treads with a solution.
Back to top
View user's profile Send private message
d3crypt
n00b
n00b


Joined: 15 Aug 2015
Posts: 11

PostPosted: Sat Aug 15, 2015 4:39 am    Post subject: Reply with quote

Alright, I'm looking into it now. Will report back with more info.
Back to top
View user's profile Send private message
d3crypt
n00b
n00b


Joined: 15 Aug 2015
Posts: 11

PostPosted: Sat Aug 15, 2015 7:17 am    Post subject: Reply with quote

I'm really at my wit's end with this, I have followed all instructions and still cannot get X to start properly. Now it gives a blank backlit screen. Here is the new xorg.conf, and the associated Xorg.0.log file. The crash at the end is caused by me hitting Ctrl+C since it will not close on its own.

My .xinitrc contains only the following:
Code:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec twm


An interesting segment of the log I noticed is the following:
Code:
[  4900.082] (II) Using input driver 'evdev' for 'Power Button'
[  4900.082] (**) Power Button: always reports core events
[  4900.082] (**) evdev: Power Button: Device: "/dev/input/event2"
[  4900.082] (--) evdev: Power Button: Vendor 0 Product 0x1
[  4900.082] (--) evdev: Power Button: Found keys
[  4900.082] (II) evdev: Power Button: Configuring as keyboard
[  4900.082] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[  4900.082] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[  4900.082] (**) Option "xkb_rules" "evdev"
[  4900.082] (**) Option "xkb_model" "pc104"
[  4900.082] (**) Option "xkb_layout" "us"
[  4900.099] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[  4900.099] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[  4900.099] (II) Using input driver 'evdev' for 'Video Bus'
[  4900.099] (**) Video Bus: always reports core events
[  4900.099] (**) evdev: Video Bus: Device: "/dev/input/event4"
[  4900.099] (--) evdev: Video Bus: Vendor 0 Product 0x6
[  4900.099] (--) evdev: Video Bus: Found keys
[  4900.099] (II) evdev: Video Bus: Configuring as keyboard
[  4900.099] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input4/event4"
[  4900.099] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)


Why is evdev configuring these devices as keyboards? :?
Back to top
View user's profile Send private message
d3crypt
n00b
n00b


Joined: 15 Aug 2015
Posts: 11

PostPosted: Sat Aug 15, 2015 9:47 am    Post subject: Reply with quote

After adding
Code:
Section "ServerLayout"
        Identifier "Configured"
        Option "AutoAddDevices" "false"
EndSection

to 10-evdev.conf and merging xf86-input-keyboard and xf86-input-mouse I seem to have stopped evdev from configuring everything as a keyboard. However, it now simply does not add those devices. Do they need some extra drivers or something? Relevant log is here. Furthermore, it now throws the error 'Could not find provider with name modesetting'. Any ideas? I have xf86-input-modesetting installed and added to 'VIDEO_CARDS' in my make.conf file. Would really appreciate a nudge in the right direction.

EDIT: This also changes the result of 'startx' slightly - from a blank backlit screen to a blank backlit screen with a '_' in the top left.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Sat Aug 15, 2015 2:20 pm    Post subject: Reply with quote

It is possible your black screen with backlight is working X server with no apps running on it.
Back to top
View user's profile Send private message
d3crypt
n00b
n00b


Joined: 15 Aug 2015
Posts: 11

PostPosted: Sat Aug 15, 2015 7:24 pm    Post subject: Reply with quote

If that's the case, how can I tell? I have twm set up in my .xinitrc - is it possible that I just need to do something to get twm working?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sat Aug 15, 2015 7:28 pm    Post subject: Reply with quote

It seems thats your hardware right? than it should be an optimus one ...

http://www.notebookcheck.net/Review-MSI-GT60-i789W7H-Notebook.75615.0.html

Quote:
For this purpose, the notebook employs Nvidia’s Optimus technology to switch between the HD Graphics 4000 and the dedicated graphics card, the Nvidia GeForce GTX 670M, on-the-fly.


you may provide all related config files so we can have a look here ...

Quote:
Why is evdev configuring these devices as keyboards? :?

Many usb devices call themself usb-keyboards.
even usb mice => usb mouse + usb-keyboard (for over 10-20 types from different brandes in the last 3 years, I tested and sent back because I did not liked them)
the usb-keyboard is the easiest way for any input related device regardless of its hardware. When the hardware claims its an usb keyboard and phyically it isnt the software can not know because It tells the software I am a keyboard ...


Last edited by Roman_Gruber on Sat Aug 15, 2015 7:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
d3crypt
n00b
n00b


Joined: 15 Aug 2015
Posts: 11

PostPosted: Sat Aug 15, 2015 7:33 pm    Post subject: Reply with quote

Buffoon, thanks for the tip. I'm happy to report that X starts as it should when I use dwm instead of twm. I have no idea why twm didn't start as it should, but this problem is definitely solved.

Again, thanks so much. Glad to have Gentoo finally working on my computer. :)
Back to top
View user's profile Send private message
d3crypt
n00b
n00b


Joined: 15 Aug 2015
Posts: 11

PostPosted: Sat Aug 15, 2015 7:38 pm    Post subject: Reply with quote

tw04l124 wrote:
Many usb devices call themself usb-keyboards.
even usb mice => usb mouse + usb-keyboard (for over 10-20 types from different brandes in the last 3 years, I tested and sent back because I did not liked them)
the usb-keyboard is the easiest way for any input related device regardless of its hardware. When the hardware claims its an usb keyboard and phyically it isnt the software can not know because It tells the software I am a keyboard ...

Good to know... Thought I had a real problem on my hands! Thanks for the info.

If anyone else experiences a similar problem after following Nvidia's configuration, try simply changing your WM. :)
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Sat Aug 15, 2015 10:01 pm    Post subject: Reply with quote

Glad you got it working and happy I was able to help. :)

Your TWM probably was working, too. It is very basic VM and if you had xterm installed it would have opened an xterm or two for you after startup.
Back to top
View user's profile Send private message
d3crypt
n00b
n00b


Joined: 15 Aug 2015
Posts: 11

PostPosted: Sun Aug 16, 2015 12:26 am    Post subject: Reply with quote

What's funny is that I did have xterm installed! Very confusing. :? But it's fine, I wanted to use dwm anyway.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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