Bumblebee-Project / bbswitch

Disable discrete graphics (currently nvidia only)
GNU General Public License v2.0
487 stars 78 forks source link

Surfacebook 2 surface-linux 4.19 bbswitch not working #183

Open jmccaffrey42 opened 5 years ago

jmccaffrey42 commented 5 years ago

This is similar to another issue but I have slightly different outputs so I'm creating a new one. bbswitch seems to be installed:

$ dmesg | grep bbswitch
[   10.327394] bbswitch: loading out-of-tree module taints kernel.
[   10.327434] bbswitch: module verification failed: signature and/or required key missing - tainting kernel
[   10.327594] bbswitch: version 0.8
[   10.328036] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[   10.328069] bbswitch: Found discrete VGA device 0000:02:00.0: \_SB_.PCI0.RP05.PXSX
[   10.332322] bbswitch: No suitable _DSM call found.
$ modinfo bbswitch
filename:       /lib/modules/4.19.23-surface-linux-surface/updates/dkms/bbswitch.ko
version:        0.8
author:         Peter Wu <lekensteyn@gmail.com>
description:    Toggle the discrete graphics card
license:        GPL
srcversion:     188CCD09D63D15D7BF9726D
depends:        
retpoline:      Y
name:           bbswitch
vermagic:       4.19.23-surface-linux-surface SMP mod_unload 
sig_id:         PKCS#7
signer:         
sig_key:        
sig_hashalgo:   md4
signature:      30:82:01:B5:06:09:2A:86:48:86:F7:0D:01:07:02:A0:82:01:A6:30:
        82:01:A2:02:01:01:31:0D:30:0B:06:09:60:86:48:01:65:03:04:02:
        03:30:0B:06:09:2A:86:48:86:F7:0D:01:07:01:31:82:01:7F:30:82:
        01:7B:02:01:01:30:56:30:3E:31:3C:30:3A:06:03:55:04:03:0C:33:
        6A:6D:63:2D:53:75:72:66:61:63:65:2D:42:6F:6F:6B:2D:32:20:53:
        65:63:75:72:65:20:42:6F:6F:74:20:4D:6F:64:75:6C:65:20:53:69:
        67:6E:61:74:75:72:65:20:6B:65:79:02:14:32:5B:C6:85:61:79:1D:
        08:C3:4B:3A:4E:1A:FA:26:57:25:62:5B:0A:30:0B:06:09:60:86:48:
        01:65:03:04:02:03:30:0D:06:09:2A:86:48:86:F7:0D:01:01:01:05:
        00:04:82:01:00:D7:EC:79:34:E4:8A:A1:22:A6:B0:68:C4:F1:5B:FA:
        26:67:5F:D4:D9:10:DF:05:36:00:15:09:38:4B:7F:3B:D4:F2:3E:38:
        E7:E3:DE:5B:05:48:86:FC:56:66:14:F3:02:B4:1B:E9:41:34:51:AD:
        61:19:70:17:4B:30:8F:A6:01:CB:AB:4A:CA:72:F4:A3:F5:54:8B:E8:
        0A:E3:00:74:1A:56:4B:FA:6A:8B:92:2E:A8:D0:07:D7:FC:0C:FD:4D:
        1C:0F:CE:A4:2C:96:E3:F7:A3:F8:BF:AC:E9:9F:D7:A6:C2:C2:8C:15:
        F9:6B:04:26:49:62:51:0C:DC:6B:73:BF:F7:64:4B:C6:EA:C5:C7:5B:
        74:F6:4C:33:6F:10:DE:A9:FC:0E:90:DE:1A:E1:A4:CE:4F:14:64:E6:
        E3:BA:81:5E:1F:3A:F1:02:1B:47:E1:67:CC:97:07:AE:72:60:C2:9D:
        48:C3:EF:6F:8B:34:63:D9:E2:74:2E:3B:93:01:FC:0E:E9:AF:6C:F9:
        D8:4D:0A:1C:2C:01:DF:02:16:A4:8F:9A:8E:69:19:1C:92:C3:4E:84:
        22:F0:2B:0B:40:D5:96:04:AE:74:9E:A7:4F:13:BC:C7:EA:3B:C8:84:
        41:6E:4D:8F:29:B0:1B:20:1E:B8:22:2F:7D:86:7E:BC:5E:21:49:D4:
        2E
parm:           load_state:Initial card state (0 = off, 1 = on, -1 = unchanged) (int)
parm:           unload_state:Card state on unload (0 = off, 1 = on, -1 = unchanged) (int)
parm:           skip_optimus_dsm:Skip probe of Optimus discrete DSM (default = false) (bool)

That said, I can't cat the bbswitch status...

$ sudo cat /proc/acpi/bbswitch 
cat: /proc/acpi/bbswitch: No such file or directory

I'm running on a patched linux kernel for surface devices

$ uname -a
Linux jmc-Surface-Book-2 4.19.23-surface-linux-surface #1 SMP Mon Feb 18 09:24:10 EST 2019 x86_64 x86_64 x86_64 GNU/Linux

Based on this, my understanding is that bbswitch is not working at the moment, what can I do about it?