Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 83280 Details for
Bug 127629
new ebuild - sleepd-1.9
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to make sleepd run on desktop computers
01_all_without-battery.patch (text/plain), 802 bytes, created by
Chr. Schaefer
on 2006-03-28 01:04:30 UTC
(
hide
)
Description:
patch to make sleepd run on desktop computers
Filename:
MIME Type:
Creator:
Chr. Schaefer
Created:
2006-03-28 01:04:30 UTC
Size:
802 bytes
patch
obsolete
>--- orig/acpi.c 2006-03-26 11:14:51.000000000 +0200 >+++ sleepd/acpi.c 2006-03-26 13:34:08.000000000 +0200 >@@ -281,6 +281,16 @@ > int acpi_read (int battery, apm_info *info) { > char *buf, *state; > >+ if (acpi_batt_count == 0) { >+ info->battery_percentage = 0; >+ info->battery_time = 0; >+ info->battery_status = BATTERY_STATUS_ABSENT; >+ acpi_batt_capacity[battery] = 0; >+ /* Where else would the power come from, eh? ;-) */ >+ info->ac_line_status = 1; >+ return 0; >+ } >+ > /* Internally it's zero indexed. */ > battery--; > >--- orig/sleepd.c 2006-03-26 11:15:22.000000000 +0200 >+++ sleepd/sleepd.c 2006-03-26 13:43:27.000000000 +0200 >@@ -316,7 +316,7 @@ > } > > if (apm_exists() != 0) { >- if (acpi_supported() && acpi_batt_count > 0) { >+ if (acpi_supported()) { > use_acpi=1; > } > else {
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 127629
:
83279
|
83280
|
83281
|
83282
|
84001
|
145412
|
224031
|
224033
|
267139
|
267141