-
-
Notifications
You must be signed in to change notification settings - Fork 39.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Preonic startup sound broken after firmware update #14242
Comments
Hi @sbmueller , EDIT: |
I had this issue on a Planck, and while troubleshooting a different issue, this seemed to solve the issue. Does this have any effect on your Preonic? |
It does not appear to fix my planck, which has this issue (startup song still does not play) |
Same here, in both my prepnic rev3 and planck rev6. My bootmagic is set to |
I just tried this with a build of the default firmware, and it works when the board reconnects to the QMK toolbox, but then after that it seems to stop working, as was stated above. |
I also can confirm I hear a sound occasionally without re-flashing anything. But most times, I don't. |
This isn't the first time that happens. Seems independent to which platform you're compiling on too... |
I fixed it by adding "#define AUDIO_INIT_DELAY" in my keymap's config.h, like this: It seems to move audio_startup() from audio_init(): qmk_firmware/quantum/audio/audio.c Line 143 in f061ca4
to a later place at matrix_scan_quantum(): qmk_firmware/quantum/quantum.c Line 401 in f061ca4
Not an expert, nor do I understand why, but this solves my issue. Edit: misread the code and found there's no need to define a value for AUDIO_INIT_DELAY, only defining it is enough... |
I can confirm that @ReVanTis addition of |
After some days I noticed that even with @ReVanTis 's fix my Preonic doesn't reliably play the startup sound. It seems to work most of the time though. |
I've noticed the same in some occasions. Tho I think that my case has more to do with the establishment of a correct USB connection. I should do some more testing adding |
Hi @sbmueller @Cipulot , I guess a working host is required because the audio startup sound plays in matrix scan now, not right after audio init stage. I've done a very simple test to connect preonic with a usb charger, and it actually fails to play the sound nor does the led lights up. It might relates to recent changes of refactoring audio and lighting system because I somehow remember both led and audio worked when connected to a simple charger quite a long time ago (might be 1-2 years ago). |
It might very well be that my usb hub acts a bit weird and therefore powers up the board without actually initializing the USB connection. I've had some cases in which USB hubs, especially during startup of the pc, seems to have a "delay" after power before initializing the USB connection. For that I'm going to directly connect the board to the pc so that I can eliminate this possible source of error. |
I'm not sure that this may be of any help but it seems that the it was the commit a3cbc8a004 which broke the startup sound (tested with a preonic and a planck) |
I am noticing the same thing - tried reconnecting a few times to test and it sporadically doesn't work |
does |
Yeah, it seems to work most of the time, there was a few times it didn't, but I've not been able to replicate it since originally commenting on here. |
This was the github issue that addressed it qmk#14242 (comment)
This problem still appears with my planck/rev5 using latest qmk versions. Also, in } else if (timer_elapsed(delayed_task_timer) > 300) { to } else if (timer_elapsed(delayed_task_timer) > 3000) { Now, it takes several seconds before the keyboard tries to play the startup sound, but it still sounds completely broken. Apart from that, also the other sounds played back during e.g. #undef TEMPO_DEFAULT
#define TEMPO_DEFAULT 100 This not only reduces the speed by 20% as expected, but sounds like half the speed. But this is does not fix the startup sound and obviously is just a quirky workaround. |
I have a Moonlander running a 1.5 month old QMK version, and without I'm guessing it's the same or similar issue as to what's been reported here. |
After updating my fork of qmk_firmware after a long time and re-flashing, the startup sound of my preonic doesn't work anymore. Other sounds work.
Describe the Bug
I have set in
rules.mk
:and in
config.h
:In the past this was sufficient to get the startup sound when connecting the keyboard via USB. Now, I don't hear a sound. I can manually press the key for "AUD_ON" and get a audible feedback for that press, but startup sound is not enabled.
System Information
Additional Context
I did not update my firmware since about spring this year. I did not need
AUDIO_ENABLE = yes
in myrules.mk
back then, startup sound worked out of the box.The text was updated successfully, but these errors were encountered: