Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't insert kernel module after turning on discrete card #4

Closed
Samsagax opened this issue Jun 3, 2011 · 20 comments
Closed

Can't insert kernel module after turning on discrete card #4

Samsagax opened this issue Jun 3, 2011 · 20 comments

Comments

@Samsagax
Copy link

Samsagax commented Jun 3, 2011

Now I think this issue become relevant since we are able to actually use the discrete card without a hardware mux (thanks to Bumblebee). So here comes the second part of the problem: turning the discrete card back on and be able to use it.

I've called method "_SB.PCI0.P0P1.PEGP._OFF" to turn off the card. It worked fine since the power consumption went down about 30% ~ 40%

When calling "_SB.PCI0.P0P1.PEGP._ON" (I was guessing about the on) i got the card back consuming power, the kernel recognizes it "lspci -k" lists it and the modules available to use with it but when i try to modprobe nvidia module or nouveau module I got an error: No Such Device (the nouveau driver actually prints nothing but is not loaded)

I'm using a Dell Vostro 3500 and the DSDT.dsl and SSDT tables are listed according to http://linux-hybrid-graphics.blogspot.com/ in the Launchpad tracker:
https://bugs.launchpad.net/lpbugreporter/+bug/752542/+attachment/2149902/+files/Vostro%203550.tar.gz

I'm not looking for a solution to my case in particular but for an increasing number of users. Here is a GitHub issue that was opened in Martin's bumblebee tracker: https://github.com/MrMEEE/bumblebee/issues/229

Apparently there are some steps missing in turning on/off discrete card.

Thank you very much for your effort and we are almost there in Optimus support

@mkottman
Copy link
Owner

mkottman commented Jun 5, 2011

To repeat myself, the methods used in various laptops are vendor-specific and undocumented. AFAIK there is no way to know exactly what methods to use to correctly turn the GPU off and on again. The "off" methods are guessed by their name and shown to "work" in that they decrease the power usage. We do not know if this is the correct way to turn it off, and do not know the necessary steps to turn it off again.

IMO the only way to do this correctly is to reverse-engineer the process directly in Windows using ACPI debugging tools available in Checked Builds of Windows. Unfortunately, I do not have access to such builds (they are available for MSDN subscribers).

@ArchangeGabriel
Copy link
Contributor

acpidump is your friend !

In fact, reversing in the only correct way to do it.

@paolopat
Copy link

Sorry for bothering, but how to use it? I'll work on it by myself...

I've created the DSL files with:
acpidump > acpidump.txt
acpixtract acpidump.txt
ls *.dat | while read i; do iasl -d "${i}"; done && name=`sudo dmidecode -s system-product-name

now what...?

@ArchangeGabriel
Copy link
Contributor

You have to read the DSDT and SSDT files looking for the commands that power on/off your card and then reverse them. I'm doing this for as much models as possible, but I'm lacking time.

@paolopat
Copy link

It seems that _OFF and _ON work (the led on the laptop changes color and the battery lasts much more), but after turning on the card it's impossibile to modprobe nvidia driver: the output is
FATAL: Error inserting nvidia (/lib/modules/2.6.37.6-0.5-desktop/weak-updates/updates/nvidia.ko): No such device

Is there a way to find which command combination is the right one?

@ArchangeGabriel
Copy link
Contributor

The only way to do it is reversing, but I think that you're problem isn't related to the ACPI calls.

Can you upload the /etc/X11/xorg.conf.nvidia file ?

@paolopat
Copy link

Here is the xorg.conf.nvidia generated by bumblebee:

Section "DRI"
Mode 0666
EndSection

Section "ServerLayout"
Identifier "Layout0"
Screen "Screen1"
Option "AutoAddDevices" "false"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
EndSection

Section "Files"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:01:00:0"
Option "IgnoreEDID"
Option "ConnectedMonitor" "CRT-0"
EndSection

Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1200" "1920x1080" "1680x1050" "1600x1200" "1440x900" "1280x1024" "1366x768" "1360x768" "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 73.0
VertRefresh 43.0 - 72.0
Option "DPMS"
Modeline "1920x1200" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
Modeline "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Modeline "1680x1050" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
Modeline "1600x1200" 161.00 1600 1712 1880 2160 1200 1203 1207 1245 -hsync +vsync
Modeline "1440x900" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
Modeline "1368x768" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
Modeline "1280x800" 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync
Modeline "1280x1024" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
EndSection

@ArchangeGabriel
Copy link
Contributor

Could you try to replace CRT-0 by DFP-0 and see if there is any changes ?

And could you upload the Xorg.1.log file ?

@paolopat
Copy link

Changing to DFP-0 doesn't change anything (I changed to CRT-0 to see if anything's was different). BTW, the Xorg.1.log says: "Invalid ConnectedMonitor request; request was for 'DFP-0', but the valid display devices are 'CRT-0'."

Here's the Xorg.1.log file after a clean reboot:

[ 207.102]
X.Org X Server 1.9.3
Release Date: 2010-12-13
[ 207.102] X Protocol Version 11, Revision 0
[ 207.102] Build Operating System: openSUSE SUSE LINUX
[ 207.102] Current Operating System: Linux avernux.site 2.6.37.6-40-desktop #1 SMP PREEMPT 2011-07-04 12:14:05 +0200 x86_64
[ 207.102] Kernel command line: root=/dev/disk/by-id/ata-ST95005620AS_5YX0QZE8-part6 resume=/dev/disk/by-id/ata-ST95005620AS_5YX0QZE8-part5 splash=silent quiet vga=0x31a
[ 207.102] Build Date: 06 July 2011 06:52:16PM
[ 207.102]
[ 207.102] Current version of pixman: 0.22.0
[ 207.102] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 207.102] Markers: (--) probed, (*) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
207.103 Log file: "/var/log/Xorg.1.log", Time: Mon Jul 11 16:27:18 2011
207.103 Using config file: "/etc/X11/xorg.conf.nvidia"
207.103 Using config directory: "/etc/X11/xorg.conf.d"
207.104 ServerLayout "Layout0"
207.104 |-->Screen "Screen1" (0)
207.104 | |-->Monitor "Monitor0"
207.104 | |-->Device "Device1"
207.104 Option "AutoAddDevices" "false"
207.104 Not automatically adding devices
207.104 Automatically enabling devices
207.104 The directory "/usr/share/fonts/TTF/" does not exist.
[ 207.105] Entry deleted from font path.
207.105 The directory "/usr/share/fonts/OTF/" does not exist.
[ 207.105] Entry deleted from font path.
207.105 The directory "/usr/share/fonts/misc/sgi" does not exist.
[ 207.105] Entry deleted from font path.
207.105 FontPath set to:
/usr/share/fonts/misc:unscaled,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi:unscaled,
/usr/share/fonts/75dpi:unscaled,
/usr/share/fonts/URW/,
/usr/share/fonts/cyrillic:unscaled,
/usr/share/fonts/truetype/
207.105 ModulePath set to "/usr/lib64/xorg-nvidia/modules/updates,/usr/lib64/xorg-nvidia/modules"
207.105 Extension "Composite" is enabled
207.105 |-->Input Device ""
207.105 |-->Input Device ""
207.105 The core pointer device wasn't specified explicitly in the layout.
Using the default mouse configuration.
207.105 The core keyboard device wasn't specified explicitly in the layout.
Using the default keyboard configuration.
207.105 Loader magic: 0x7db900
207.105 Module ABI versions:
[ 207.105] X.Org ANSI C Emulation: 0.4
[ 207.105] X.Org Video Driver: 8.0
[ 207.105] X.Org XInput driver : 11.0
[ 207.105] X.Org Server Extension : 4.0
207.105 PCI:
(0:0:2:0) 8086:0126:1558:1500 rev 9, Mem @ 0xf6400000/4194304, 0xc0000000/268435456, I/O @ 0x0000f000/64
207.105 PCI: (0:1:0:0) 10de:0dce:0000:0000 rev 161, Mem @ 0xf4000000/33554432, 0xd0000000/268435456, 0xe0000000/67108864, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
207.105 Open ACPI failed (/var/run/acpid.socket) (Connection refused)
207.106 Open ACPI failed (/var/run/acpid.socket) (Connection refused)
207.106 "extmod" will be loaded. This was enabled by default and also specified in the config file.
207.106 "dbe" will be loaded. This was enabled by default and also specified in the config file.
207.106 "glx" will be loaded. This was enabled by default and also specified in the config file.
207.106 "record" will be loaded. This was enabled by default and also specified in the config file.
207.106 "dri" will be loaded by default.
207.106 "dri2" will be loaded by default.
207.106 LoadModule: "dbe"
207.166 Loading /usr/lib64/xorg-nvidia/modules/extensions/libdbe.so
207.167 Module dbe: vendor="X.Org Foundation"
[ 207.168] compiled for 1.9.3, module version = 1.0.0
[ 207.168] Module class: X.Org Server Extension
[ 207.168] ABI class: X.Org Server Extension, version 4.0
207.168 Loading extension DOUBLE-BUFFER
207.168 LoadModule: "extmod"
207.168 Loading /usr/lib64/xorg-nvidia/modules/extensions/libextmod.so
207.171 Module extmod: vendor="X.Org Foundation"
[ 207.171] compiled for 1.9.3, module version = 1.0.0
[ 207.171] Module class: X.Org Server Extension
[ 207.171] ABI class: X.Org Server Extension, version 4.0
207.171 Loading extension MIT-SCREEN-SAVER
207.171 Loading extension XFree86-VidModeExtension
207.171 Loading extension XFree86-DGA
207.171 Loading extension DPMS
207.171 Loading extension XVideo
207.171 Loading extension XVideo-MotionCompensation
207.171 Loading extension X-Resource
207.171 LoadModule: "glx"
207.171 Loading /usr/lib64/xorg-nvidia/modules/updates/extensions/libglx.so
207.537 Module glx: vendor="NVIDIA Corporation"
[ 207.537] compiled for 4.0.2, module version = 1.0.0
[ 207.537] Module class: X.Org Server Extension
207.537 NVIDIA GLX Module 270.41.06 Mon Apr 18 15:10:15 PDT 2011
207.537 Loading extension GLX
207.537 LoadModule: "record"
207.537 Loading /usr/lib64/xorg-nvidia/modules/extensions/librecord.so
207.539 Module record: vendor="X.Org Foundation"
[ 207.539] compiled for 1.9.3, module version = 1.13.0
[ 207.539] Module class: X.Org Server Extension
[ 207.539] ABI class: X.Org Server Extension, version 4.0
207.539 Loading extension RECORD
207.539 LoadModule: "dri"
207.541 Loading /usr/lib64/xorg-nvidia/modules/extensions/libdri.so
207.543 Module dri: vendor="X.Org Foundation"
[ 207.543] compiled for 1.9.3, module version = 1.0.0
[ 207.543] ABI class: X.Org Server Extension, version 4.0
207.543 Loading extension XFree86-DRI
207.543 LoadModule: "dri2"
207.544 Loading /usr/lib64/xorg-nvidia/modules/extensions/libdri2.so
207.546 Module dri2: vendor="X.Org Foundation"
[ 207.546] compiled for 1.9.3, module version = 1.2.0
[ 207.546] ABI class: X.Org Server Extension, version 4.0
207.546 Loading extension DRI2
207.546 LoadModule: "nvidia"
207.546 Loading /usr/lib64/xorg-nvidia/modules/updates/drivers/nvidia_drv.so
207.620 Module nvidia: vendor="NVIDIA Corporation"
[ 207.620] compiled for 4.0.2, module version = 1.0.0
[ 207.620] Module class: X.Org Video Driver
207.620 LoadModule: "mouse"
207.620 Loading /usr/lib64/xorg-nvidia/modules/input/mouse_drv.so
207.623 Module mouse: vendor="X.Org Foundation"
[ 207.623] compiled for 1.9.3, module version = 1.6.0
[ 207.623] Module class: X.Org XInput Driver
[ 207.623] ABI class: X.Org XInput driver, version 11.0
207.623 LoadModule: "kbd"
207.623 Loading /usr/lib64/xorg-nvidia/modules/input/kbd_drv.so
207.624 Module kbd: vendor="X.Org Foundation"
[ 207.624] compiled for 1.9.3, module version = 1.5.0
[ 207.624] Module class: X.Org XInput Driver
[ 207.624] ABI class: X.Org XInput driver, version 11.0
207.624 NVIDIA dlloader X Driver 270.41.06 Mon Apr 18 14:55:25 PDT 2011
207.624 NVIDIA Unified Driver for all Supported NVIDIA GPUs
207.624 using VT number 9

207.624 xf86OpenConsole: setpgid failed: Operation not permitted
207.625 Loading sub module "fb"
207.625 LoadModule: "fb"
207.625 Loading /usr/lib64/xorg-nvidia/modules/libfb.so
207.629 Module fb: vendor="X.Org Foundation"
[ 207.629] compiled for 1.9.3, module version = 1.0.0
[ 207.629] ABI class: X.Org ANSI C Emulation, version 0.4
207.629 Loading sub module "wfb"
207.629 LoadModule: "wfb"
207.629 Loading /usr/lib64/xorg-nvidia/modules/libwfb.so
207.633 Module wfb: vendor="X.Org Foundation"
[ 207.633] compiled for 1.9.3, module version = 1.0.0
[ 207.633] ABI class: X.Org ANSI C Emulation, version 0.4
207.633 Loading sub module "ramdac"
207.633 LoadModule: "ramdac"
207.633 Module "ramdac" already built-in
207.633 NVIDIA(0): Depth 24, (--) framebuffer bpp 32
207.633 NVIDIA(0): RGB weight 888
207.633 NVIDIA(0): Default visual is TrueColor
207.633 NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
207.633 NVIDIA(0): Option "ConnectedMonitor" "DFP-0"
207.633 NVIDIA(0): ConnectedMonitor string: "DFP-0"
209.581 NVIDIA(GPU-0): Invalid ConnectedMonitor request; request was for 'DFP-0', but
209.581 NVIDIA(GPU-0): the valid display devices are 'CRT-0'.
209.583 NVIDIA(GPU-0): Unable to read EDID for display device CRT-0
209.584 NVIDIA(0): NVIDIA GPU GeForce GT 555M (GF106) at PCI:1:0:0 (GPU-0)
209.584 NVIDIA(0): Memory: 2097152 kBytes
209.584 NVIDIA(0): VideoBIOS: 70.06.35.00.a4
209.584 NVIDIA(0): Detected PCI Express Link width: 8X
209.584 NVIDIA(0): Interlaced video modes are supported on this GPU
209.584 NVIDIA(0): Connected display device(s) on GeForce GT 555M at PCI:1:0:0
209.584 NVIDIA(0): CRT-0
209.584 NVIDIA(0): CRT-0: 400.0 MHz maximum pixel clock
209.590 NVIDIA(0): Assigned Display Device: CRT-0
209.590 NVIDIA(0): No valid modes for "1920x1200"; removing.
209.590 NVIDIA(0): No valid modes for "1600x1200"; removing.
209.590 NVIDIA(0): No valid modes for "1366x768"; removing.
209.590 NVIDIA(0): No valid modes for "1360x768"; removing.
209.590 NVIDIA(0): Validated modes:
209.590 NVIDIA(0): "1920x1080"
209.590 NVIDIA(0): "1680x1050"
209.590 NVIDIA(0): "1440x900"
209.590 NVIDIA(0): "1280x1024"
209.590 NVIDIA(0): "1280x800"
209.590 NVIDIA(0): "1024x768"
209.590 NVIDIA(0): "800x600"
209.590 NVIDIA(0): "640x480"
209.590 NVIDIA(0): Virtual screen size determined to be 1920 x 1080
209.592 NVIDIA(0): Unable to get display device CRT-0's EDID; cannot compute DPI
209.592 NVIDIA(0): from CRT-0's EDID.
209.592 NVIDIA(0): DPI set to (75, 75); computed from built-in default
209.592 Depth 24 pixmap format is 32 bpp
209.592 NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
209.592 NVIDIA: access.
209.597 NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
209.597 NVIDIA(0): may not be running or the "AcpidSocketPath" X
209.597 NVIDIA(0): configuration option may not be set correctly. When the
209.597 NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
209.597 NVIDIA(0): try to use it to receive ACPI event notifications. For
209.597 NVIDIA(0): details, please see the "ConnectToAcpid" and
209.597 NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
209.597 NVIDIA(0): Config Options in the README.
209.601 NVIDIA(0): Setting mode "1920x1080"
209.636 Loading extension NV-GLX
209.695 NVIDIA(0): Disabling shared memory pixmaps
209.695 NVIDIA(0): Backing store disabled
209.695 NVIDIA(0): Silken mouse enabled
209.696 NVIDIA(0): DPMS enabled
209.696 Loading extension NV-CONTROL
209.696 Loading extension XINERAMA
209.696 NVIDIA(0): Option "IgnoreEDID" is not used
209.696 Loading sub module "dri2"
209.696 LoadModule: "dri2"
209.696 Reloading /usr/lib64/xorg-nvidia/modules/extensions/libdri2.so
209.696 NVIDIA(0): [DRI2] Setup complete
209.696 RandR enabled
209.696 Initializing built-in extension Generic Event Extension
209.696 Initializing built-in extension SHAPE
209.696 Initializing built-in extension MIT-SHM
209.696 Initializing built-in extension XInputExtension
209.696 Initializing built-in extension XTEST
209.696 Initializing built-in extension BIG-REQUESTS
209.696 Initializing built-in extension SYNC
209.696 Initializing built-in extension XKEYBOARD
209.696 Initializing built-in extension XC-MISC
209.696 Initializing built-in extension SECURITY
209.696 Initializing built-in extension XINERAMA
209.696 Initializing built-in extension XFIXES
209.696 Initializing built-in extension RENDER
209.696 Initializing built-in extension RANDR
209.696 Initializing built-in extension COMPOSITE
209.696 Initializing built-in extension DAMAGE
209.698 Initializing extension GLX
209.726 XKB: reuse xkmfile /var/lib/xkb/compiled/server-02D8252E59564A234380F1E5417646A9DB3B7452.xkm
209.729 : No Device specified, looking for one...
209.761 : Setting Device option to "/dev/input/mice"
209.761 : Device: "/dev/input/mice"
209.761 : Protocol: "Auto"
209.761 Option "CorePointer"
209.761 : always reports core events
209.793 : Emulate3Buttons, Emulate3Timeout: 50
209.793 : ZAxisMapping: buttons 4 and 5
209.793 : Buttons: 9
209.793 : Sensitivity: 1
209.793 XINPUT: Adding extended input device "" (type: MOUSE)
209.793 : (accel) keeping acceleration scheme 1
209.793 : (accel) acceleration profile 0
209.793 : (accel) acceleration factor: 2.000
209.793 : (accel) acceleration threshold: 4
209.801 : Setting mouse protocol to "ExplorerPS/2"
210.094 : ps2EnableDataReporting: succeeded
210.095 Option "CoreKeyboard"
210.095 : always reports core events
210.095 Option "Protocol" "standard"
210.095 : Protocol: standard
210.095 Option "XkbRules" "base"
210.095 : XkbRules: "base"
210.095 Option "XkbModel" "pc105"
210.095 : XkbModel: "pc105"
210.095 Option "XkbLayout" "us"
210.095 : XkbLayout: "us"
210.095 Option "CustomKeycodes" "off"
210.095 : CustomKeycodes disabled
210.095 XINPUT: Adding extended input device "" (type: KEYBOARD)
210.106 config/udev: Adding input device Power Button (/dev/input/event6)
210.106 AutoAddDevices is off - not adding device.
210.107 config/udev: Adding input device Video Bus (/dev/input/event12)
210.107 AutoAddDevices is off - not adding device.
210.108 config/udev: Adding input device Video Bus (/dev/input/event11)
210.108 AutoAddDevices is off - not adding device.
210.109 config/udev: Adding input device Power Button (/dev/input/event3)
210.109 AutoAddDevices is off - not adding device.
210.109 config/udev: Adding input device Lid Switch (/dev/input/event5)
210.109 AutoAddDevices is off - not adding device.
210.109 config/udev: Adding input device Sleep Button (/dev/input/event4)
210.109 AutoAddDevices is off - not adding device.
210.110 config/udev: Adding input device HDA Digital PCBeep (/dev/input/event10)
210.110 AutoAddDevices is off - not adding device.
210.110 config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event8)
210.110 AutoAddDevices is off - not adding device.
210.110 config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event9)
210.110 AutoAddDevices is off - not adding device.
210.112 config/udev: Adding input device USB OPTICAL MOUSE (/dev/input/event1)
210.112 AutoAddDevices is off - not adding device.
210.112 config/udev: Adding input device USB OPTICAL MOUSE (/dev/input/mouse0)
210.112 AutoAddDevices is off - not adding device.
210.113 config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
210.113 AutoAddDevices is off - not adding device.
210.113 config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event2)
210.113 AutoAddDevices is off - not adding device.
210.114 config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse1)
210.114 AutoAddDevices is off - not adding device.
210.114 config/udev: Adding input device PC Speaker (/dev/input/event7)
210.114 AutoAddDevices is off - not adding device.
210.723 UnloadModule: "mouse"
210.723 UnloadModule: "kbd"

@ArchangeGabriel
Copy link
Contributor

Ok, replace DFP-0 by CRT-0 and upload the new Xorg.1.log

@paolopat
Copy link

Here it is. Now I have an error on nvidia driver... very strange...

[ 1573.867]
X.Org X Server 1.9.3
Release Date: 2010-12-13
[ 1573.867] X Protocol Version 11, Revision 0
[ 1573.867] Build Operating System: openSUSE SUSE LINUX
[ 1573.867] Current Operating System: Linux avernux.site 2.6.37.6-40-desktop #1 SMP PREEMPT 2011-07-04 12:14:05 +0200 x86_64
[ 1573.867] Kernel command line: root=/dev/disk/by-id/ata-ST95005620AS_5YX0QZE8-part6 resume=/dev/disk/by-id/ata-ST95005620AS_5YX0QZE8-part5 splash=silent quiet vga=0x31a
[ 1573.867] Build Date: 06 July 2011 06:52:16PM
[ 1573.867]
[ 1573.867] Current version of pixman: 0.22.0
[ 1573.867] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 1573.867] Markers: (--) probed, (*) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
1573.867 Log file: "/var/log/Xorg.1.log", Time: Mon Jul 11 16:53:50 2011
1573.867 Using config file: "/etc/X11/xorg.conf.nvidia"
1573.867 Using config directory: "/etc/X11/xorg.conf.d"
1573.867 ServerLayout "Layout0"
1573.867 |-->Screen "Screen1" (0)
1573.867 | |-->Monitor "Monitor0"
1573.868 | |-->Device "Device1"
1573.868 Option "AutoAddDevices" "false"
1573.868 Not automatically adding devices
1573.868 Automatically enabling devices
1573.868 The directory "/usr/share/fonts/TTF/" does not exist.
[ 1573.868] Entry deleted from font path.
1573.868 The directory "/usr/share/fonts/OTF/" does not exist.
[ 1573.868] Entry deleted from font path.
1573.868 The directory "/usr/share/fonts/misc/sgi" does not exist.
[ 1573.868] Entry deleted from font path.
1573.868 FontPath set to:
/usr/share/fonts/misc:unscaled,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi:unscaled,
/usr/share/fonts/75dpi:unscaled,
/usr/share/fonts/URW/,
/usr/share/fonts/cyrillic:unscaled,
/usr/share/fonts/truetype/
1573.868 ModulePath set to "/usr/lib64/xorg-nvidia/modules/updates,/usr/lib64/xorg-nvidia/modules"
1573.868 Extension "Composite" is enabled
1573.868 |-->Input Device ""
1573.868 |-->Input Device ""
1573.868 The core pointer device wasn't specified explicitly in the layout.
Using the default mouse configuration.
1573.868 The core keyboard device wasn't specified explicitly in the layout.
Using the default keyboard configuration.
1573.868 Loader magic: 0x7db900
1573.868 Module ABI versions:
[ 1573.868] X.Org ANSI C Emulation: 0.4
[ 1573.868] X.Org Video Driver: 8.0
[ 1573.868] X.Org XInput driver : 11.0
[ 1573.868] X.Org Server Extension : 4.0
1573.868 PCI:
(0:0:2:0) 8086:0126:1558:1500 rev 9, Mem @ 0xf6400000/4194304, 0xc0000000/268435456, I/O @ 0x0000f000/64
1573.868 PCI: (0:1:0:0) 10de:0dce:1558:1500 rev 161, Mem @ 0xf4000000/33554432, 0xd0000000/268435456, 0xe0000000/67108864, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
1573.869 Open ACPI failed (/var/run/acpid.socket) (Connection refused)
1573.869 Open ACPI failed (/var/run/acpid.socket) (Connection refused)
1573.869 "extmod" will be loaded. This was enabled by default and also specified in the config file.
1573.869 "dbe" will be loaded. This was enabled by default and also specified in the config file.
1573.869 "glx" will be loaded. This was enabled by default and also specified in the config file.
1573.869 "record" will be loaded. This was enabled by default and also specified in the config file.
1573.869 "dri" will be loaded by default.
1573.869 "dri2" will be loaded by default.
1573.869 LoadModule: "dbe"
1573.949 Loading /usr/lib64/xorg-nvidia/modules/extensions/libdbe.so
1573.950 Module dbe: vendor="X.Org Foundation"
[ 1573.950] compiled for 1.9.3, module version = 1.0.0
[ 1573.950] Module class: X.Org Server Extension
[ 1573.950] ABI class: X.Org Server Extension, version 4.0
1573.950 Loading extension DOUBLE-BUFFER
1573.950 LoadModule: "extmod"
1573.951 Loading /usr/lib64/xorg-nvidia/modules/extensions/libextmod.so
1573.953 Module extmod: vendor="X.Org Foundation"
[ 1573.953] compiled for 1.9.3, module version = 1.0.0
[ 1573.953] Module class: X.Org Server Extension
[ 1573.953] ABI class: X.Org Server Extension, version 4.0
1573.953 Loading extension MIT-SCREEN-SAVER
1573.953 Loading extension XFree86-VidModeExtension
1573.953 Loading extension XFree86-DGA
1573.953 Loading extension DPMS
1573.953 Loading extension XVideo
1573.953 Loading extension XVideo-MotionCompensation
1573.953 Loading extension X-Resource
1573.953 LoadModule: "glx"
1573.953 Loading /usr/lib64/xorg-nvidia/modules/updates/extensions/libglx.so
1574.317 Module glx: vendor="NVIDIA Corporation"
[ 1574.317] compiled for 4.0.2, module version = 1.0.0
[ 1574.317] Module class: X.Org Server Extension
1574.317 NVIDIA GLX Module 270.41.06 Mon Apr 18 15:10:15 PDT 2011
1574.317 Loading extension GLX
1574.317 LoadModule: "record"
1574.318 Loading /usr/lib64/xorg-nvidia/modules/extensions/librecord.so
1574.375 Module record: vendor="X.Org Foundation"
[ 1574.375] compiled for 1.9.3, module version = 1.13.0
[ 1574.375] Module class: X.Org Server Extension
[ 1574.375] ABI class: X.Org Server Extension, version 4.0
1574.375 Loading extension RECORD
1574.375 LoadModule: "dri"
1574.377 Loading /usr/lib64/xorg-nvidia/modules/extensions/libdri.so
1574.379 Module dri: vendor="X.Org Foundation"
[ 1574.379] compiled for 1.9.3, module version = 1.0.0
[ 1574.379] ABI class: X.Org Server Extension, version 4.0
1574.379 Loading extension XFree86-DRI
1574.379 LoadModule: "dri2"
1574.381 Loading /usr/lib64/xorg-nvidia/modules/extensions/libdri2.so
1574.382 Module dri2: vendor="X.Org Foundation"
[ 1574.382] compiled for 1.9.3, module version = 1.2.0
[ 1574.382] ABI class: X.Org Server Extension, version 4.0
1574.382 Loading extension DRI2
1574.382 LoadModule: "nvidia"
1574.382 Loading /usr/lib64/xorg-nvidia/modules/updates/drivers/nvidia_drv.so
1574.499 Module nvidia: vendor="NVIDIA Corporation"
[ 1574.499] compiled for 4.0.2, module version = 1.0.0
[ 1574.499] Module class: X.Org Video Driver
1574.862 NVIDIA: Failed to load the NVIDIA kernel module. Please check your
1574.862 NVIDIA: system's kernel log for additional error messages.
1574.862 UnloadModule: "nvidia"
1574.863 Unloading /usr/lib64/xorg-nvidia/modules/updates/drivers/nvidia_drv.so
1574.863 Failed to load module "nvidia" (module-specific error, 0)
1574.863 LoadModule: "mouse"
1574.863 Loading /usr/lib64/xorg-nvidia/modules/input/mouse_drv.so
1575.117 Module mouse: vendor="X.Org Foundation"
[ 1575.129] compiled for 1.9.3, module version = 1.6.0
[ 1575.129] Module class: X.Org XInput Driver
[ 1575.129] ABI class: X.Org XInput driver, version 11.0
1575.129 LoadModule: "kbd"
1575.129 Loading /usr/lib64/xorg-nvidia/modules/input/kbd_drv.so
1576.109 Module kbd: vendor="X.Org Foundation"
[ 1576.109] compiled for 1.9.3, module version = 1.5.0
[ 1576.109] Module class: X.Org XInput Driver
[ 1576.109] ABI class: X.Org XInput driver, version 11.0
1576.109 No drivers available.
[ 1576.109]
Fatal server error:
[ 1576.109] no screens found
[ 1576.109]
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 1576.109] Please also check the log file at "/var/log/Xorg.1.log" for additional information.
[ 1576.109]

@ArchangeGabriel
Copy link
Contributor

1574.862 NVIDIA: Failed to load the NVIDIA kernel module. Please check your
1574.862 NVIDIA: system's kernel log for additional error messages.
1574.862 UnloadModule: "nvidia"
1574.863 Unloading /usr/lib64/xorg-nvidia/modules/updates/drivers/nvidia_drv.so
1574.863 Failed to load module "nvidia" (module-specific error, 0)

The problem is here effectively. What gives the system's kernel log ? (dmesg)

@paolopat
Copy link

well... I really don't understand... I have rebooted the system and I don't find the previous error. Moreover I get this one:
373.911 NVIDIA(GPU-0): Invalid ConnectedMonitor request; request was for 'DFP-0', but
373.911 NVIDIA(GPU-0): the valid display devices are 'CRT-0'.
373.913 NVIDIA(GPU-0): Unable to read EDID for display device CRT-0
Exactly the opposite of the previous one.
In dmesg I don't see anything strange...

@ArchangeGabriel
Copy link
Contributor

Hum... It seems that something replaced your xorg.conf.nividia.

Could you sudo edit it and replace DFP-0 by CRT-0 and try again ?

@Samsagax
Copy link
Author

I think the problem does not belong to the Xorg side. Even without bumblebee enabled you can turn on/off the card but then you can't insert the nvidia kernel module (or any other) is like the kernel knows the card is there but cannot identify it.

The last was a guess, I'm not a kernel expert but seems that the problem is in the kernel side.

@ArchangeGabriel
Copy link
Contributor

You're probably right, I didn't see he was using an 2.6.37 kernel...

Maybe with a 2.6.38 one or 2.639...

@Samsagax
Copy link
Author

I'm using 2.6.39. Had no luck. Maybe if you don't remove the nvidia module before turning off? Make sure it's not used by bumblebee or any other X server or your system will freeze.

I remember I could turn off, then on and be capable of using it again, could not reproduce that again )':

Maybe a firmware issue?

@paolopat
Copy link

I can confirm: no change with kernel 2.6.39.
I there a place to which upload my DSL files so that someone more expert than me could analyze them?

@Samsagax
Copy link
Author

Try this:
http://linux-hybrid-graphics.blogspot.com/

There is a sort of database with all DSDTs submitted so far.

@paolopat
Copy link

Done. Thank you!

KobaKoNvidia pushed a commit to KobaKoNvidia/acpi_call that referenced this issue Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants