FreeBSD Bugzilla – Attachment 196523 Details for
Bug 227191
Cannot check battery status after upgrading to 12-CURRENT after r330957 (ACPI _STA method removed)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix battery detection code
000-fix-battery-detection.patch (text/plain), 698 bytes, created by
Ali Abdallah
on 2018-08-25 11:01:17 UTC
(
hide
)
Description:
Fix battery detection code
Filename:
MIME Type:
Creator:
Ali Abdallah
Created:
2018-08-25 11:01:17 UTC
Size:
698 bytes
patch
obsolete
>Index: acpi.c >=================================================================== >--- acpi.c (revision 338311) >+++ acpi.c (working copy) >@@ -2232,7 +2232,7 @@ > > /* If no _STA method, must be present */ > if (ACPI_FAILURE(status)) >- return (status == AE_NOT_FOUND ? TRUE : FALSE); >+ return ((status == AE_NOT_FOUND || status == AE_NOT_EXIST) ? TRUE : FALSE); > > return (ACPI_DEVICE_PRESENT(s) ? TRUE : FALSE); > } >@@ -2254,7 +2254,7 @@ > > /* If no _STA method, must be present */ > if (ACPI_FAILURE(status)) >- return (status == AE_NOT_FOUND ? TRUE : FALSE); >+ return ((status == AE_NOT_FOUND || status == AE_NOT_EXIST) ? TRUE : FALSE); > > return (ACPI_BATTERY_PRESENT(s) ? TRUE : FALSE); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 227191
: 196523