Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

[ci skip] Unset CONFIG_ADB_PMU_LED_DISK for ppc. #48

Closed
wants to merge 1 commit into from

Conversation

mahiuchun
Copy link

General

Have the results of the proposed changes been tested?

  • I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
  • I generally don't use the affected packages but briefly tested this PR

Does it build and run successfully?

(Please choose at least one native build and, if supported, at least one cross build. More are better.)

  • I built this PR locally for my native architecture, (ARCH-LIBC)
  • I built this PR locally for these architectures (if supported. mark crossbuilds):
    • aarch64-musl
    • armv7l
    • armv6l-musl
    • ppc (crossbuild on x86-64)

Why am I making this change? There is a LED driver that is using this config:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/macintosh/via-pmu-led.c
It is exposed as /sys/class/leds/pmu-led:front. If CONFIG_ADB_PMU_LED_DISK is yes then the value of trigger will be "disk-activity" otherwise it will be "none" (the value can be overwritten by writing to /sys/class/leds/pmu-led:front/trigger after boot). I think "none" is a better default because the LED is not used as a disk activity indicator in Mac OS, rather it would pulse slowly when the notebook is in sleep mode. The LED is a bit too bright as a disk activity indicator, someone made a video showing this:
https://youtu.be/cbmnuUc-G6c?t=55
( The video was made using a different Linux distro but void ppc would behave the same wrt the LDE.)

For reference, Ubuntu, which used to ship a PowerPC version, is not enabling CONFIG_ADB_PMU_LED_DISK (formerly CONFIG_ADB_PMU_LED_IDE). I can find out more config choices from other distributions, if needed.

Should we change ppc64 as well? I don't know at this point. Note that in the code it appears that only PowerMac7,2 and PowerMac7,3 are allowed to drive the LED.

@mahiuchun mahiuchun deleted the led branch April 11, 2021 20:27
adbrown101 pushed a commit to adbrown101/void-packages that referenced this pull request Apr 12, 2021
Programmierschmied pushed a commit to Programmierschmied/void-packages that referenced this pull request Apr 13, 2021
hazayan pushed a commit to hazayan/void-packages that referenced this pull request Apr 15, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant