MrMEEE / ironhide

Optimus Support for Linux Through VirtualGL - PPA version also available: https://launchpad.net/~mj-casalogic/+archive/ironhide
http://www.martin-juhl.dk
88 stars 0 forks source link

NVIDIA card doesn't detected after chancge of configuration #155

Open sfehlandt opened 12 years ago

sfehlandt commented 12 years ago

Hi

I have a Samsung RF511 with an NVIDIA GeForce GT540M, mi OS is Ubuntu 11.04 Natty 64 bits I first tried bumblebee but then I heard of ironhide so I installed it and I installed the ironhide ui. I ran ironhide-configuration and selected one of the recommended settings, continued with the steps and it was done. Everything was fine, optirun command were ok and the ironhide notification icon showed when the discrete card was enabled.

But I couldn't ran the ironhide-app-settings and the recommended setting I selected didn't have power managemente script so I tried to reconfigure it and selected another setting recommended but with power management script. But in this case the NVIDIA dindn't work and I got this error message in the terminal:

The nvidia driver was not loaded, try: sudo modprobe nvidia-current * The Ironhide Xserver failed to start. Please check /var/log/Xorg.8.log[fail]

So please helpe me!! What should I do? I've heard that reinstall the nvidia drivers can make my system crash, but i'm not sure, now I get the full Intel fonctionality, like the Unity and compiz effects...

Please help!!! Best Regards

sfehlandt commented 12 years ago

This is the content of: /var/log/Xorg.8.log

[ 4600.015] X.Org X Server 1.10.1 Release Date: 2011-04-15 [ 4600.015] X Protocol Version 11, Revision 0 [ 4600.015] Build Operating System: Linux 2.6.24-28-server x86_64 Ubuntu [ 4600.015] Current Operating System: Linux sfehland-RF511-RF411-RF711 2.6.38-12-generic #51-Ubuntu SMP Wed Sep 28 14:27:32 UTC 2011 x86_64 [ 4600.015] Kernel command line: BOOTIMAGE=/boot/vmlinuz-2.6.38-12-generic root=UUID=8b22c5c7-0cc5-416f-a40e-bed63436d5fd ro quiet splash vt.handoff=7 [ 4600.015] Build Date: 13 October 2011 05:43:01PM [ 4600.015] xorg-server 2:1.10.1-1ubuntu1.3 (For technical support please see http://www.ubuntu.com/support) [ 4600.015] Current version of pixman: 0.20.2 [ 4600.015] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 4600.015] Markers: (--) probed, (*) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. 4600.015 Log file: "/var/log/Xorg.8.log", Time: Sat Oct 29 01:38:56 2011 4600.015 Using config file: "/etc/X11/xorg.conf.nvidia" 4600.015 Using system config directory "/usr/share/X11/xorg.conf.d" 4600.016 ServerLayout "Layout0" 4600.016 |-->Screen "Screen0" (0) 4600.016 | |-->Monitor "Monitor0" 4600.016 | |-->Device "Device0" 4600.016 Option "AutoAddDevices" "false" 4600.016 Not automatically adding devices 4600.016 Automatically enabling devices 4600.017 The directory "/usr/share/fonts/X11/cyrillic" does not exist. [ 4600.017] Entry deleted from font path. 4600.017 The directory "/usr/share/fonts/X11/100dpi/" does not exist. [ 4600.017] Entry deleted from font path. 4600.017 The directory "/usr/share/fonts/X11/75dpi/" does not exist. [ 4600.017] Entry deleted from font path. 4600.017 The directory "/usr/share/fonts/X11/100dpi" does not exist. [ 4600.017] Entry deleted from font path. 4600.017 The directory "/usr/share/fonts/X11/75dpi" does not exist. [ 4600.017] Entry deleted from font path. 4600.017 FontPath set to: /usr/share/fonts/X11/misc, /usr/share/fonts/X11/Type1, /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, built-ins 4600.017 ModulePath set to "/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules" 4600.017 Extension "Composite" is enabled 4600.017 |-->Input Device "" 4600.017 |-->Input Device "" 4600.017 The core pointer device wasn't specified explicitly in the layout. Using the default mouse configuration. 4600.017 The core keyboard device wasn't specified explicitly in the layout. Using the default keyboard configuration. 4600.017 Loader magic: 0x7e17e0 4600.017 Module ABI versions: [ 4600.017] X.Org ANSI C Emulation: 0.4 [ 4600.017] X.Org Video Driver: 10.0 [ 4600.017] X.Org XInput driver : 12.3 [ 4600.017] X.Org Server Extension : 5.0 4600.018 PCI:_(0:0:2:0) 8086:0116:144d:c0a5 rev 9, Mem @ 0xf5400000/4194304, 0xc0000000/268435456, I/O @ 0x0000e000/64 4600.018 PCI: (0:1:0:0) 10de:0df4:144d:c0a5 rev 161, Mem @ 0xf4000000/16777216, 0xd0000000/268435456, 0xe0000000/33554432, I/O @ 0x0000d000/128, BIOS @ 0x????????/524288 4600.019 Open ACPI successful (/var/run/acpid.socket) 4600.019 "extmod" will be loaded. This was enabled by default and also specified in the config file. 4600.019 "dbe" will be loaded. This was enabled by default and also specified in the config file. 4600.019 "glx" will be loaded. This was enabled by default and also specified in the config file. 4600.019 "record" will be loaded. This was enabled by default and also specified in the config file. 4600.019 "dri" will be loaded by default. 4600.019 "dri2" will be loaded by default. 4600.019 LoadModule: "dbe" 4600.020 Loading /usr/lib/xorg/modules/extensions/libdbe.so 4600.020 Module dbe: vendor="X.Org Foundation" [ 4600.020] compiled for 1.10.1, module version = 1.0.0 [ 4600.020] Module class: X.Org Server Extension [ 4600.020] ABI class: X.Org Server Extension, version 5.0 4600.020 Loading extension DOUBLE-BUFFER 4600.020 LoadModule: "extmod" 4600.020 Loading /usr/lib/xorg/modules/extensions/libextmod.so 4600.021 Module extmod: vendor="X.Org Foundation" [ 4600.021] compiled for 1.10.1, module version = 1.0.0 [ 4600.021] Module class: X.Org Server Extension [ 4600.021] ABI class: X.Org Server Extension, version 5.0 4600.021 Loading extension MIT-SCREEN-SAVER 4600.021 Loading extension XFree86-VidModeExtension 4600.021 Loading extension XFree86-DGA 4600.021 Loading extension DPMS 4600.021 Loading extension XVideo 4600.021 Loading extension XVideo-MotionCompensation 4600.021 Loading extension X-Resource 4600.021 LoadModule: "glx" 4600.021 Loading /usr/lib/nvidia-current/xorg/libglx.so 4600.037 Module glx: vendor="NVIDIA Corporation" [ 4600.037] compiled for 4.0.2, module version = 1.0.0 [ 4600.037] Module class: X.Org Server Extension 4600.037 NVIDIA GLX Module 270.41.06 Mon Apr 18 15:10:15 PDT 2011 4600.037 Loading extension GLX 4600.037 LoadModule: "record" 4600.038 Loading /usr/lib/xorg/modules/extensions/librecord.so 4600.038 Module record: vendor="X.Org Foundation" [ 4600.038] compiled for 1.10.1, module version = 1.13.0 [ 4600.038] Module class: X.Org Server Extension [ 4600.038] ABI class: X.Org Server Extension, version 5.0 4600.038 Loading extension RECORD 4600.038 LoadModule: "dri" 4600.038 Loading /usr/lib/xorg/modules/extensions/libdri.so 4600.039 Module dri: vendor="X.Org Foundation" [ 4600.039] compiled for 1.10.1, module version = 1.0.0 [ 4600.039] ABI class: X.Org Server Extension, version 5.0 4600.039 Loading extension XFree86-DRI 4600.039 LoadModule: "dri2" 4600.039 Loading /usr/lib/xorg/modules/extensions/libdri2.so 4600.039 Module dri2: vendor="X.Org Foundation" [ 4600.039] compiled for 1.10.1, module version = 1.2.0 [ 4600.039] ABI class: X.Org Server Extension, version 5.0 4600.039 Loading extension DRI2 4600.039 LoadModule: "nvidia" 4600.040 Loading /usr/lib/nvidia-current/xorg/nvidia_drv.so 4600.040 Module nvidia: vendor="NVIDIA Corporation" [ 4600.040] compiled for 4.0.2, module version = 1.0.0 [ 4600.040] Module class: X.Org Video Driver 4600.044 NVIDIA: Failed to load the NVIDIA kernel module. Please check your 4600.044 NVIDIA: system's kernel log for additional error messages. 4600.044 UnloadModule: "nvidia" 4600.044 Unloading nvidia 4600.044 Failed to load module "nvidia" (module-specific error, 0) 4600.044 LoadModule: "mouse" 4600.044 Loading /usr/lib/xorg/modules/input/mouse_drv.so 4600.044 Module mouse: vendor="X.Org Foundation" [ 4600.044] compiled for 1.9.99.902, module version = 1.6.99 [ 4600.044] Module class: X.Org XInput Driver [ 4600.044] ABI class: X.Org XInput driver, version 12.3 4600.044 LoadModule: "kbd" 4600.046 Warning, couldn't open module kbd 4600.046 UnloadModule: "kbd" 4600.046 Unloading kbd 4600.046 Failed to load module "kbd" (module does not exist, 0) 4600.046 No drivers available. [ 4600.046] Fatal server error: [ 4600.046] no screens found [ 4600.046] Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 4600.046] Please also check the log file at "/var/log/Xorg.8.log" for additional information. [ 4600.046]

lunderlini commented 12 years ago

$sudo ironhide-settings

then change "Always enable the nVidia card before disabling" option to "No" reboot and try again to work

sfehlandt commented 12 years ago

Thanks for your help.

I was searching for solutions before your answer and I found this: https://github.com/MrMEEE/ironhide/issues/13. So I tried it with a manual configuration (It seems what happened before was because of the another users settings I used) and it works again. I just had to get the power off working.

After a lot of reading and searching I found an script for Dell L702x that powers off and on the nvidia card (this is the link: http://linux-hybrid-graphics.blogspot.com/2011/06/dell-l702x-linux-hybrid-graphics-step.html). This script works perfect in mi Samsung RF511. So I tried to use it with the ironhide-disablecard and ironhide-enablecard.

I tried making the ironhide-disablecard and ironhide-enablecard run the script. It worked ok the first time I called optirun glxgears, then I closed, ok too. But when I tried to call optirun glxgears again it didn't work, throwing this:

"FATAL: Error inserting nvidia_current (/lib/modules/2.6.38-12-generic/updates/dkms/nvidia-current.ko): No such device ... * The nvidia driver was not loaded, try: sudo modprobe nvidia-current * The Ironhide Xserver failed to start. Please check /var/log/Xorg.8.log[fail] ironhide could not be started - optirun cannot be executed."

Then I realized my script is very similar to an example I found here for the Dell L702x, so I used those ironhide-disablecard and ironhide-enablecard files instead of calling the script, but o got the same result.

This is my ironhide-disablecard: https://github.com/MrMEEE/ironhide/blob/master/examples/ironhide-disablecard.dell.InspironN5110.XPSL702X

And this is my ironhide-enablecard file: https://github.com/MrMEEE/ironhide/blob/master/examples/ironhide-enablecard.dell.InspironN5110.XPSL702X

Also the ironhide indicator works fine but the ironhide-app-settings isn't. I tried to erase the examples.desktop in my home/.local/shar/applications but there's no file with that name.

Also I made what lunderlini said.

lunderlini commented 12 years ago

The nvidia driver was not loaded is one thing what I talk about. The indicator-app-settings is another problem, #77 give a way to fix. First, edit /usr/share/ironhide-ui/app/Config.py as #77 said. Second, copy the script under #77 to replace /usr/share/ironhide-ui/ironhide-indicator then reboot to see if it works with indicator-app-settings

sfehlandt commented 12 years ago

Thanks! That fixed the app-settings problem :)

But I still have the other problem. I re-installed nvidia-current, nvidia-settings, ironhide and ironhide-ui, reconfigured ironhide, and I made some tests.

When I don't use the power management scripts (ironhide-enablecard and ironhide-disablecard), it works ok. If I just use the ironhide-enablecard it works ok too, but if I use the ironhide-disablecard it crashes after the 2° optirun call. Also (even just after a reboot) if I power off the card and then I powered it on, the optirun call crashes too. So the problem is disabling the card (it is in fact powered off, but then, even if I powered it back on, I can't enable it)

PS: I did what you said about change "Always enable the nVidia card before disabling" option to "No". And I have Option ConnectedMonitor DFP-0 in my /etc/X11/xorg.conf.nvidia.

lunderlini commented 12 years ago

I had confuse before, about how to use ironhide-enable and ironhide-disable. I know now optirun can control the card on or off with ironhide-enable and ironhide-disable. So you just use the ironhide-app-settings to control if app use card or not, or write some shortcut for app with optirun. Whenever the app close, the card turn off automatically. Only some case eg. #156, need to use ironhide-enable and ironhide-disable to make thing right.

sfehlandt commented 12 years ago

I think you misunderstood me. I know optimus automatically powers on or off the card, by running the ironhide-enablecard before calling the application and then running ironhide-disablecard after it is closed.

What I did was always try optirun but editing the ironhide-enablecard and the ironhide-disablecard, and commenting the instructions that power the card on and off in each file. So when I run optimus when the ironhide-enablecard with all the instructions (including the one that powers the card on) it works fine.

But when I run optimus with ironhide-disablecard with the instructions to power the card off, it crashes the 2° time. I mean, I call optirun glxgears and works fine, I close the window it's still ok, but then I call optimus glxgears again and then it crashes throwing:

"FATAL: Error inserting nvidia_current (/lib/modules/2.6.38-12-generic/updates/dkms/nvidia-current.ko): No such device ... * The nvidia driver was not loaded, try: sudo modprobe nvidia-current * The Ironhide Xserver failed to start. Please check /var/log/Xorg.8.log[fail] ironhide could not be started - optirun cannot be executed."

I made some tests now without the AC plug (just battery) and the battery life is about 3 hours, then I run optirun glxgears and the battery life is about 1:30 hours. Then I closed the window, the battery life goes back to 3 hours. Then I run the other script I mentioned later to just power the card off and the battery life goes up to 5 hours. (all this with the same programs running, the same screen bright, etc). So I have to configure the ironhide-disablecard to do this.

lunderlini commented 12 years ago

Maybe you can try ironhide-xen: ironhide is Optimus support for Linux, with real offloading, but I never try. https://launchpad.net/~mj-casalogic/+archive/ironhide/+sourcepub/2035562/+listing-archive-extra