guillaumezin / nvidiabl

/!\ Please note that I don't maintain this repository anymore, please have a look at forked projects. /!\
82 stars 82 forks source link

insmod fails on ASUS G74Sx with nvidia GeForce GTX 560M #19

Closed rwstauner closed 12 years ago

rwstauner commented 13 years ago

I don't know if i should be using this driver or not, but I was trying to see if the nvidia driver recognizes changes to the backlight and found this thread: http://www.nvnews.net/vbulletin/showthread.php?t=143025

After attempting the source installation with make dkms-install, I get the following error trying to load the module:

*$ sudo modprobe -v nvidiabl insmod /lib/modules/2.6.38-11-generic/updates/dkms/nvidiabl.ko FATAL: Error inserting nvidiabl (/lib/modules/2.6.38-11-generic/updates/dkms/nvidiabl.ko): No such device

and found this in my syslog: Jul 31 13:59:18 raptor kernel: [ 1890.003964] nvidiabl: loading driver version 0.70 Jul 31 13:59:18 raptor kernel: [ 1890.003977] nvidiabl: No supported Nvidia graphics adapter found

Using the beta proprietary nvidia driver version 280.11 xubuntu 11.04 with the backported kernel: Linux raptor 2.6.38-11-generic #47-Ubuntu SMP Fri Jul 15 19:27:09 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

*$ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0104] (rev 09)
00:01.0 PCI bridge [0604]: Intel Corporation 2nd Generation Core Processor Family PCI Express Root Port [8086:0101] (rev 09)
00:16.0 Communication controller [0780]: Intel Corporation 6 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
00:1a.0 USB Controller [0c03]: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 05)
00:1b.0 Audio device [0403]: Intel Corporation 6 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05)
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b5)
00:1c.1 PCI bridge [0604]: Intel Corporation 6 Series Chipset Family PCI Express Root Port 2 [8086:1c12] (rev b5)
00:1c.3 PCI bridge [0604]: Intel Corporation 6 Series Chipset Family PCI Express Root Port 4 [8086:1c16] (rev b5)
00:1c.5 PCI bridge [0604]: Intel Corporation 6 Series Chipset Family PCI Express Root Port 6 [8086:1c1a] (rev b5)
00:1d.0 USB Controller [0c03]: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 05)
00:1f.0 ISA bridge [0601]: Intel Corporation HM65 Express Chipset Family LPC Controller [8086:1c49] (rev 05)
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series Chipset Family 6 port SATA AHCI Controller [8086:1c03] (rev 05)
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series Chipset Family SMBus Controller [8086:1c22] (rev 05)
01:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:1251] (rev a1)
01:00.1 Audio device [0403]: nVidia Corporation Device [10de:0bee] (rev a1)
03:00.0 Network controller [0280]: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
04:00.0 USB Controller [0c03]: Fresco Logic FL1000G USB 3.0 Host Controller [1b73:1000] (rev 04)
05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 06)

*$ cat /sys/class/dmi/id/{sys_vendor,product_name}
ASUSTeK Computer Inc.
G74Sx

$ sudo lspci -vv -d "10de":
01:00.0 VGA compatible controller: nVidia Corporation Device 1251 (rev a1) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. Device 204a
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at f2000000 (32-bit, non-prefetchable) [size=32M]
        Region 1: Memory at e0000000 (64-bit, prefetchable) [size=128M]
        Region 3: Memory at e8000000 (64-bit, prefetchable) [size=64M]
        Region 5: I/O ports at d000 [size=128]
        [virtual] Expansion ROM at f4000000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [78] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <4us, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x16, ASPM L0s L1, Latency L0 <256ns, L1 <4us
                        ClockPM+ Surprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
                        ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis+
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100 v1] Virtual Channel
                Caps:   LPEVC=0 RefClk=100ns PATEntryBits=1
                Arb:    Fixed- WRR32- WRR64- WRR128-
                Ctrl:   ArbSelect=Fixed
                Status: InProgress-
                VC0:    Caps:   PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
                        Arb:    Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
                        Ctrl:   Enable+ ID=0 ArbSelect=Fixed TC/VC=01
                        Status: NegoPending- InProgress-
        Capabilities: [128 v1] Power Budgeting <?>
        Capabilities: [600 v1] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia-current, nvidia, nouveau, nvidiafb
rwstauner commented 13 years ago

I have tried with and without the acpi_backlight=vendor kernel option. I also tried the .deb package.

rwstauner commented 13 years ago

If I add this patch the driver will load but doesn't seem to do anything:

diff --git a/nvidiabl-gpu.h b/nvidiabl-gpu.h
index 39900d3..239622c 100644
--- a/nvidiabl-gpu.h
+++ b/nvidiabl-gpu.h
@@ -321,3 +321,5 @@ NVIDIABL_DECLARE_GPU_MODEL(0x0cb0, nv5x_driver_data),
 NVIDIABL_DECLARE_GPU_MODEL(0x0cb1, nv5x_driver_data),
 /* Quadro FX 1800M (195.36) */
 NVIDIABL_DECLARE_GPU_MODEL(0x0cbc, nv5x_driver_data),
+/* GeForce GTX 560M (GF116) */
+NVIDIABL_DECLARE_GPU_MODEL(0x1251, nv5x_driver_data),
diff --git a/nvidiabl-laptops.h b/nvidiabl-laptops.h
index 8e7dc07..bee08e0 100644
--- a/nvidiabl-laptops.h
+++ b/nvidiabl-laptops.h
@@ -76,3 +76,5 @@ NVIDIABL_DECLARE_LAPTOP_MODEL("LENOVO", "4313CTO", PCI_ANY_ID, NVIDIABL_AUTO, NV

 NVIDIABL_DECLARE_LAPTOP_MODEL("LG Electronics", "R590-P.BN58P1", PCI_ANY_ID, NVIDIABL_AUTO, NVIDIABL_AUTO, 0x679a),

+NVIDIABL_DECLARE_LAPTOP_MODEL("ASUSTeK Computer Inc.", "G74Sx", PCI_ANY_ID, NVIDIABL_AUTO, NVIDIABL_AUTO, NVIDIABL_AUTO),
+
rwstauner commented 13 years ago

Spoke too soon... the brightness not adjusting seems to have been a conflict with another module i had loaded at the time (asus-nb-wmi). After a reboot both modules (nvidiabl and asus-nb-wmi) appear to be working in tandem. After a suspend the brightness keys still work. I submitted the above diff as pull request 20. Thanks!