You are not logged in.

#1 2013-09-08 04:12:37

vanic
Member
Registered: 2013-06-20
Posts: 4

Nvidia Optimus on a Lenovo Y580

Greetings folk!

I'm trying to get optimus workings on my Lenovo Y580 laptop. I had it working a few months ago, but I ended up having to format and reinstall reciently and now I can't seem to get it working with the latest version, I think I may be due to the new kernel.  I remember a few things about the last install, i'm pretty sure bbswitch was recent enough to not need the  y580 acpi hack.  I'll go ahead and start posting some information.

Kernel:
Linux shard 3.10.10-1-ARCH #1 SMP PREEMPT Fri Aug 30 11:30:06 CEST 2013 x86_64 GNU/Linux

I followed all instructions as per https://wiki.archlinux.org/index.php/Bumblebee which worked last time.

Dmesg output of trying optirun

[  100.175650] iwlwifi 0000:03:00.0: Radio type=0x2-0x0-0x0
[  100.358840] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[  100.831398] bbswitch: version 0.7
[  100.831406] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[  100.831412] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[  100.831499] bbswitch: detected an Optimus _DSM function
[  100.831513] pci 0000:01:00.0: enabling device (0006 -> 0007)
[  100.831555] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[  100.833538] bbswitch: disabling discrete graphics
[  100.934277] pci 0000:01:00.0: power state changed by ACPI to D3cold
[  118.037654] EXT4-fs (sdb2): re-mounted. Opts: data=ordered,commit=0
[  202.453423] ACPI: \_SB_.PCI0: ACPI_NOTIFY_BUS_CHECK event: unsupported
[  202.453435] _handle_hotplug_event_root: Bus check notify on \_SB_.PCI0
[  266.639691] bbswitch: enabling discrete graphics
[  266.911157] pci 0000:01:00.0: power state changed by ACPI to D0
[  267.006887] nvidia: module license 'NVIDIA' taints kernel.
[  267.006891] Disabling lock debugging due to kernel taint
[  267.011915] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
[  267.012179] [drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:01:00.0 on minor 1
[  267.012186] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  325.15  Wed Jul 31 18:50:56 PDT 2013
[  267.809584] nvidia 0000:01:00.0: irq 48 for MSI/MSI-X
[  272.892326] NVRM: GPU at 0000:01:00.0 has fallen off the bus.
[  272.892336] NVRM: os_pci_init_handle: invalid context!
[  272.892338] NVRM: os_pci_init_handle: invalid context!
[  272.892343] NVRM: GPU at 0000:01:00.0 has fallen off the bus.
[  272.892347] NVRM: os_pci_init_handle: invalid context!
[  272.892349] NVRM: os_pci_init_handle: invalid context!
[  272.925176] NVRM: RmInitAdapter failed! (0x25:0x28:1157)
[  272.925186] NVRM: rm_init_adapter(0) failed
[  834.049719] bbswitch: enabling discrete graphics
[  835.833005] bbswitch: enabling discrete graphics
[  835.833017] nvidia 0000:01:00.0: power state changed by ACPI to D0
[  835.844752] nvidia 0000:01:00.0: Refused to change power state, currently in D3
[  837.128536] bbswitch: enabling discrete graphics
[  837.128559] nvidia 0000:01:00.0: power state changed by ACPI to D0
[  837.140758] nvidia 0000:01:00.0: Refused to change power state, currently in D3
[ 1246.103048] bbswitch: enabling discrete graphics
[ 1246.103064] nvidia 0000:01:00.0: power state changed by ACPI to D0
[ 1246.114268] nvidia 0000:01:00.0: Refused to change power state, currently in D3
[ 1247.405369] bbswitch: enabling discrete graphics
[ 1247.405384] nvidia 0000:01:00.0: power state changed by ACPI to D0
[ 1247.416942] nvidia 0000:01:00.0: Refused to change power state, currently in D3
[ 1256.883486] bbswitch: enabling discrete graphics
[ 1256.883501] nvidia 0000:01:00.0: power state changed by ACPI to D0
[ 1256.895388] nvidia 0000:01:00.0: Refused to change power state, currently in D3
[ 1262.883484] bbswitch: enabling discrete graphics
[ 1262.883499] nvidia 0000:01:00.0: power state changed by ACPI to D0
[ 1262.895655] nvidia 0000:01:00.0: Refused to change power state, currently in D3
[ 1264.602588] bbswitch: enabling discrete graphics
[ 1264.602602] nvidia 0000:01:00.0: power state changed by ACPI to D0
[ 1264.614757] nvidia 0000:01:00.0: Refused to change power state, currently in D3
[ 1272.806543] bbswitch: enabling discrete graphics
[ 1272.806561] nvidia 0000:01:00.0: power state changed by ACPI to D0
[ 1272.817224] nvidia 0000:01:00.0: Refused to change power state, currently in D3
[ 1282.073571] bbswitch: enabling discrete graphics
[ 1282.073586] nvidia 0000:01:00.0: power state changed by ACPI to D0
[ 1282.085801] nvidia 0000:01:00.0: Refused to change power state, currently in D3

Optirun Output

[matt@shard Steam]$ optirun --debug glxinfo
[ 1802.675490] [DEBUG]optirun version 3.2.1 starting...
[ 1802.675514] [DEBUG]Active configuration:
[ 1802.675519] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 1802.675523] [DEBUG] X display: :8
[ 1802.675526] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[ 1802.675530] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 1802.675533] [DEBUG] Accel/display bridge: auto
[ 1802.675537] [DEBUG] VGL Compression: proxy
[ 1802.675540] [DEBUG] VGLrun extra options: 
[ 1802.675543] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[ 1802.675561] [DEBUG]Using auto-detected bridge virtualgl
[ 1802.686737] [INFO]Response: No - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please

[ 1802.686772] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please

[ 1802.686778] [DEBUG]Socket closed.
[ 1802.686798] [ERROR]Aborting because fallback start is disabled.
[ 1802.686803] [DEBUG]Killing all remaining processes.

The default HD4000 is working fine

[matt@shard Steam]$ glxspheres
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Ivybridge Mobile 
51.118637 frames/sec - 57.048399 Mpixels/sec

Edit:
Nvidia drivers version: 325.15-1

I'm pretty sure all the packages are install correctly and not conflictings.. My user  matt is in the bumblebee group, bumblebeed is set to load correctly with systemd.

Pretty lost but maybe someone may have some ideas, I heard that there is some conflict with the latest nvidia drivers and 3.10.

Matt

Last edited by vanic (2013-09-08 04:15:21)

Offline

#2 2013-09-08 05:02:28

vanic
Member
Registered: 2013-06-20
Posts: 4

Re: Nvidia Optimus on a Lenovo Y580

Quick Update:

So I've just came across this wiki page: https://wiki.archlinux.org/index.php/NVIDIA_Optimus

and after going through it I noticed this message appear when manually trying to change the bbswitch power state and reloading the nvidia module.

[ 4635.655898] bbswitch: enabling discrete graphics
[ 4635.655909] pci 0000:01:00.0: power state changed by ACPI to D0
[ 4635.668341] pci 0000:01:00.0: Refused to change power state, currently in D3
[ 4636.643344] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
[ 4636.643366] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:0fd4)
NVRM: installed in this system is not supported by the 325.15
NVRM: NVIDIA Linux driver release.  Please see 'Appendix
NVRM: A - Supported NVIDIA GPU Products' in this release's
NVRM: README, available on the Linux driver download page
NVRM: at www.nvidia.com.
[ 4636.643372] nvidia: probe of 0000:01:00.0 failed with error -1
[ 4636.643558] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 4636.643559] NVRM: None of the NVIDIA graphics adapters were initialized!
[ 4636.643560] [drm] Module unloaded

Maybe it's happening because it's stuck in D3. Pretty sure the latest driver would support the 660m.  I guess I may have to look into installing a older kernel.

I found a similar problem here:
https://bbs.archlinux.org/viewtopic.php?id=141729
so far google's not turning up too much.

Matt

Offline

Board footer

Powered by FluxBB