Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 127629 | Differences between
and this patch

Collapse All | Expand All

(-)orig/acpi.c (+10 lines)
Lines 281-286 Link Here
281
int acpi_read (int battery, apm_info *info) {
281
int acpi_read (int battery, apm_info *info) {
282
	char *buf, *state;
282
	char *buf, *state;
283
	
283
	
284
	if (acpi_batt_count == 0) {
285
		info->battery_percentage = 0;
286
		info->battery_time = 0;
287
		info->battery_status = BATTERY_STATUS_ABSENT;
288
		acpi_batt_capacity[battery] = 0;
289
		/* Where else would the power come from, eh? ;-) */
290
		info->ac_line_status = 1;
291
		return 0;
292
	}
293
284
	/* Internally it's zero indexed. */
294
	/* Internally it's zero indexed. */
285
	battery--;
295
	battery--;
286
	
296
	
(-)orig/sleepd.c (-1 / +1 lines)
Lines 316-322 Link Here
316
	}
316
	}
317
	
317
	
318
	if (apm_exists() != 0) {
318
	if (apm_exists() != 0) {
319
		if (acpi_supported() && acpi_batt_count > 0) {
319
		if (acpi_supported()) {
320
			use_acpi=1;
320
			use_acpi=1;
321
		}
321
		}
322
		else {
322
		else {

Return to bug 127629