Opened 2 years ago

Last modified 8 months ago

#13916 new bug

PowerStatus: KDL while on APM

Reported by: Giova84 Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Drivers/Power Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

hrev51713 gcc2h

Since I have to stay on APM instead of ACPI (ticket:13915) I would however check the status of my battery. Whenever I launch the app PowerStatus it cause a KDL. Screenshot attached.

Attachments (1)

DSC_0055.JPG (1.9 MB ) - added by Giova84 2 years ago.

Download all attachments as: .zip

Change History (7)

by Giova84, 2 years ago

Attachment: DSC_0055.JPG added

comment:1 by Giova84, 2 years ago

Has a Patch: set

comment:2 by Giova84, 2 years ago

Has a Patch: unset

comment:3 by waddlesplash, 2 years ago

Component: Applications/PowerStatusSystem/Kernel

http://xref.plausible.coop/source/xref/haiku/src/system/kernel/arch/x86/32/apm.cpp#91

	// TODO: Fix this for GCC 4.3! The direct reference to sAPMBiosEntry
	// in the asm below causes undefined references.

Hmm, maybe the undefined references are legitimate and GCC2 just references the pointer anyway?

comment:4 by Giova84, 2 years ago

If is System/Kernel related as you set this ticket, so could be also related the fact that APM, from time to time, freeze the system?

comment:5 by Giova84, 2 years ago

I also noticed an odd and fun behaviour. remember that I have ACPI disabled in the kernel setting file.

Despite the fact that I have apm enabled or disabled (i prefer keep it disable because freeze the system), when the battery is near to the full discharge, on the panel of the laptop I see blinking the power led (green) and the battery led (orange).

By look to the user manual, these two leds which are blinking (green and orange), indicate that the laptop is in standby mode. (low battery - near to 15% - instead is indicated by single blink of the battery orange led - and double blink occurs while charging). About 5 minutes after blinking with green and orange led, the laptop send a shutdown command which is like to do shutdown -q from a Terminal window (quick shutdown). In this case (auto shutdown), if I have some file or app opened, at the next boot the checkfs command, luckily, doesn't find corrupted files.

Well: the interesting thing is that when I power on the laptop after auto-shutdown, I see for few seconds (the battery is discharged) the Haiku's Desktop, like if the boot icons (startup process) are bypassed. Maybe is related to video shadow? Is the only explication, since Haiku doesn't still implemented standby nor hibernation, and also because this behavior occurs with ACPI and APM disabled.

comment:6 by waddlesplash, 8 months ago

Component: System/KernelDrivers/Power

Still an issue?

Note: See TracTickets for help on using tickets.