You are not logged in.

#1 2013-10-13 15:14:26

bigboss
Member
Registered: 2013-10-09
Posts: 34

Lenovo Y580 Nvidia gtx660m not working

Can't power up the graphics card... I followed every step in the wiki as described in Nouveau or Nvidia installation but both failed. I tried power it on with bbswitch https://wiki.archlinux.org/index.php/NVIDIA_Optimus as described here... Both Nvidia/intel or Nuveau/Intel didn't work. Still using xrandr --listproviders just showing Intel HD graphics card and not the gtx660. I also read the wiki about lenovo Y580 but didn't help. Feel free to ask me for more info to help you help me.

Offline

#2 2013-10-13 16:57:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Lenovo Y580 Nvidia gtx660m not working

Is there any errors in the logs when you try and start X? Saying it "didn't work" doesn't provide any useful information that can help people assist you.

Not an Installation issue, moving to Multimedia...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-10-13 19:38:31

bigboss
Member
Registered: 2013-10-09
Posts: 34

Re: Lenovo Y580 Nvidia gtx660m not working

I said ask me for more info because I really don't know what I need to provide for troubleshooting this. Checking the xorg logs I don't find any error. Seems that the card is just disabled but I can't turn it on, xrandr --listproviders find just 1 provider.

Offline

#4 2013-10-13 21:00:55

bigboss
Member
Registered: 2013-10-09
Posts: 34

Re: Lenovo Y580 Nvidia gtx660m not working

Ok somehow I managed to bring her up... Question : article on wiki says

https://wiki.archlinux.org/index.php/Optimus
now you can run programs on the NVIDIA GPU like this:
$ DRI_PRIME=1 glxgears

Do I have to do that everytime I want to launch something with GTX660M? Can't I just set it to work all the time, on xfce and all programs?

Also I experience something like screen tearing when I scroll down pages like youtube. Videos play very normal but I have that "tearing" on scrolling

Offline

#5 2013-10-15 02:18:40

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: Lenovo Y580 Nvidia gtx660m not working

can you post here your xorg.conf and .xinitrc file please ? I have same laptop and can't make it work...

are you using nvidia drivers to work woth optimus or bumbleebee ? I'm trying nvidia drivers and getting black screen during startx as I wrote here https://bbs.archlinux.org/viewtopic.php?id=171099

Regards,
siamer

Offline

#6 2013-10-15 10:12:50

bigboss
Member
Registered: 2013-10-09
Posts: 34

Re: Lenovo Y580 Nvidia gtx660m not working

Well I thought I made it work but I actually didn't. I am using bumblebee with nvidia. I followed exactly the guide in the wiki. I do not have a xorg.conf , I read somewhere that if I dont have a conf xorg is doing his deffaults. Also I didn't find a xinitrc in the locations it's supposed to be.
What I get when trying to use optirun is :

[root@boss-laptop bigboss]# optirun glxgears
[  360.733687] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)

[  360.733729] [ERROR]Aborting because fallback start is disabled.

I am really frustrated with that Nvidia optimus crap...

Edit:As for the screen tearing thing was firefox's problem. I installed opera instead and scrolling is very smooth.

Last edited by bigboss (2013-10-15 11:19:13)

Offline

#7 2013-10-15 19:25:42

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: Lenovo Y580 Nvidia gtx660m not working

it's working now for me but with bumblebee...

siamer@lenovo ~ # optirun -vvv glxspheres
[   57.692674] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[   57.692926] [DEBUG]optirun version 3.2.1 starting...
[   57.692979] [DEBUG]Active configuration:
[   57.692999] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[   57.693025] [DEBUG] X display: :8
[   57.693038] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[   57.693058] [DEBUG] Socket path: /var/run/bumblebee.socket
[   57.693076] [DEBUG] Accel/display bridge: auto
[   57.693090] [DEBUG] VGL Compression: proxy
[   57.693106] [DEBUG] VGLrun extra options: 
[   57.693120] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[   57.693149] [DEBUG]Using auto-detected bridge virtualgl
[   60.521195] [INFO]Response: Yes. X is active.

[   60.521232] [INFO]Running application using virtualgl.
[   60.521327] [DEBUG]Process vglrun started, PID 922.
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GTX 660M/PCIe/SSE2
219.602921 frames/sec - 245.076860 Mpixels/sec
153.644672 frames/sec - 171.467454 Mpixels/sec
154.471458 frames/sec - 172.390147 Mpixels/sec
154.413577 frames/sec - 172.325552 Mpixels/sec
153.492992 frames/sec - 171.298179 Mpixels/sec
154.830470 frames/sec - 172.790805 Mpixels/sec
155.418128 frames/sec - 173.446631 Mpixels/sec
[   75.953300] [DEBUG]SIGCHILD received, but wait failed with No child processes
[   75.953335] [DEBUG]Socket closed.
[   75.953362] [DEBUG]Killing all remaining processes.
siamer@lenovo ~ # 

and here is with intel

siamer@lenovo ~ # glxspheres 
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Ivybridge Mobile 
61.024187 frames/sec - 68.102993 Mpixels/sec
59.799933 frames/sec - 66.736725 Mpixels/sec
siamer@lenovo ~ #

here is my /etc/bumblebee/xorg.conf.nvidia

 Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "true"
Option "AutoAddGPU" "false"
EndSection
Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "ProbeAllGpus" "false"
BusID "PCI:01:00:0"
Option "NoLogo" "false"
Option "UseEDID" "true"
Option "UseDisplayDevice" "none"
Option "ConnectedMonitor" "CRT"
EndSection

here is my /etc/bumblebee/bumblebee.conf

# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=true
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

installed packages:

bumblebee
primus
bbswitch-git
nvidia
nvidia-utils

if any more info needed let me know wink

Regards,
siamer

PS. if someone have any ideas how to get normal nvidia drivers to work with optimus I will be more than happy to test it... wink

Last edited by siamer (2013-10-15 19:31:06)

Offline

#8 2013-10-15 23:46:35

bigboss
Member
Registered: 2013-10-09
Posts: 34

Re: Lenovo Y580 Nvidia gtx660m not working

Here's my output

[bigboss@boss-laptop ~]$ optirun -vvv glxgears
[   91.532747] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[   91.533266] [DEBUG]optirun version 3.2.1 starting...
[   91.533284] [DEBUG]Active configuration:
[   91.533290] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[   91.533295] [DEBUG] X display: :8
[   91.533301] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[   91.533306] [DEBUG] Socket path: /var/run/bumblebee.socket
[   91.533311] [DEBUG] Accel/display bridge: auto
[   91.533316] [DEBUG] VGL Compression: proxy
[   91.533321] [DEBUG] VGLrun extra options: 
[   91.533347] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[   91.533389] [DEBUG]Using auto-detected bridge virtualgl
[   91.556106] [INFO]Response: No - error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)

[   91.556131] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)

[   91.556138] [DEBUG]Socket closed.
[   91.556160] [ERROR]Aborting because fallback start is disabled.
[   91.556170] [DEBUG]Killing all remaining processes.

Offline

#9 2013-10-16 00:04:22

bigboss
Member
Registered: 2013-10-09
Posts: 34

Re: Lenovo Y580 Nvidia gtx660m not working

Well apparently using the tee /proc/acpi/bbswitch <<<ON made it work I think

[root@boss-laptop bigboss]# optirun -vvv glxgears
[  165.454399] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  165.454961] [DEBUG]optirun version 3.2.1 starting...
[  165.454976] [DEBUG]Active configuration:
[  165.454980] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  165.454984] [DEBUG] X display: :8
[  165.454988] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[  165.455002] [DEBUG] Socket path: /var/run/bumblebee.socket
[  165.455007] [DEBUG] Accel/display bridge: auto
[  165.455012] [DEBUG] VGL Compression: proxy
[  165.455017] [DEBUG] VGLrun extra options: 
[  165.455022] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[  165.455075] [DEBUG]Using auto-detected bridge virtualgl
[  170.878007] [INFO]Response: Yes. X is active.

[  170.878024] [INFO]Running application using virtualgl.
[  170.878145] [DEBUG]Process vglrun started, PID 744.
10006 frames in 5.0 seconds = 2001.026 FPS
10044 frames in 5.0 seconds = 2008.755 FPS
10006 frames in 5.0 seconds = 2001.176 FPS
10048 frames in 5.0 seconds = 2009.582 FPS
10040 frames in 5.0 seconds = 2007.835 FPS
10052 frames in 5.0 seconds = 2010.399 FPS
8912 frames in 5.0 seconds = 1782.202 FPS
8334 frames in 5.0 seconds = 1666.778 FPS
8342 frames in 5.0 seconds = 1668.395 FPS
[VGL] ERROR: in readback--
[VGL]    246: Window has been deleted by window manager

So now that means that if I want to switch Nvidia off I need to run the reverse command? <<<OFF ? Or nvidia works only with optirun command?

Offline

#10 2013-10-16 01:29:37

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: Lenovo Y580 Nvidia gtx660m not working

yes, as I understand nvidia will work only when you run it with optirun command... and if I good understand wiki bbswitch (module) is looking after nvidia to power on and power off...  I really would like to get nvidia drivers to work with optimus inseed of bumblebee but no luck for now with that...

tomorrow I will test new nvidia card with steam to check how it's working big_smile

tip: If you have laptop lenovo y580 try linux-ck-ivybridge kernel, is working much better, for me at least smile here more info https://wiki.archlinux.org/index.php/repo-ck

Regards,
siamer

edit yes I forgot to write that I turned on nvidia as well in same way...

Last edited by siamer (2013-10-16 01:31:32)

Offline

Board footer

Powered by FluxBB