Bumblebee-Project / bbswitch

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

check for power state only when ACPI is available #216

Closed arighi closed 2 years ago

arighi commented 2 years ago

In bbswitch_off() we use acpi_bus_get_device() to determine the power state, but this feature is only available if ACPI is enabled in the kernel, so make sure to do this check only when ACPI is available.

Fixes: 5593d95 ("Linux 3.8 compatibility hack") Signed-off-by: Dimitri John Ledkov dimitri.ledkov@canonical.com Signed-off-by: Andrea Righi andrea.righi@canonical.com

bluca commented 2 years ago

can you target the develop branch please?

arighi commented 2 years ago

@bluca it should target develop now, thanks!

bluca commented 2 years ago

You need to rebase your branch too

arighi commented 2 years ago

You need to rebase your branch too

@bluca I think it's rebased already, I re-applied my patch on top of devel and force pushed to my branch. Am I missing something?

bluca commented 2 years ago

Yes, it's the target that needed switching, done