21
Hardware / Re: HiBy R1
« Last post by Milardo on June 21, 2025, 02:47:41 AM »In firmware/export/config/hibyr1.h I have set HAVE_DUMMY_CODEC.
If you enable HAVE_HIBY_R1_LINUX_CODEC instead, you would have to implement firmware/drivers/audio/hibylinux_codec.c.
However, ALSA shows no devices when you run ‘amixer’ or ‘amixer contents’ like described here for the AGPtEK Rocker device: https://www.rockbox.org/wiki/AgptekRocker.html
This part seems to be different in this ‘X1600E’ generation of HibyOS.
Does this help in any way? Specifically, (google translate)
https://www.ingenic.com.cn/news-detail/nid-338.html
7. Updating the Audio driver
a. Deprecate amixer and configure the data path in the form specified in the board header file
7. Update Audio Driver
a. Abandon amixer and configure the data path in the board header file
22
Theming and Appearance Customization / Re: %t(0) not functioning as intended
« Last post by Dook on June 20, 2025, 08:05:37 PM »So I've made a few tests and the results are a bit strange.
I first made a super simple test that used the hold switch for it's conditional and %t(0) worked exactly like you were saying it should, but only in one way and not the other.
If you're on the "themes" page, then there is no blinking if the hold switch is off. 3 will be displayed indefinitely, no blinking in and out.
However if you're not on the themes page, and you turn the hold switch on, 1 should be displayed indefinitely but instead it blinks in and out like it had been for you.
Based on this, it seems the second conditional is influencing the entire thing. Which is a very long-winded way to say that this definitely isn't working as documented and as intended. As you suspected, I'd agree that this is a bug. I'll put together a test file for this when I'm free next and get it on the bug tracker asap
I first made a super simple test that used the hold switch for it's conditional and %t(0) worked exactly like you were saying it should, but only in one way and not the other.
Code: [Select]
%?mh<1|%t(0)>;%?if(%Lt,=,themes)<%t(2)2|%t(0)>
If you're on the "themes" page, then there is no blinking if the hold switch is off. 3 will be displayed indefinitely, no blinking in and out.
However if you're not on the themes page, and you turn the hold switch on, 1 should be displayed indefinitely but instead it blinks in and out like it had been for you.
Code: [Select]
%?mh<1|%t(0)2>;%?if(%Lt,=,themes)<%t(2)3|%t(0)4>
When I set it up like this, 4 displays at the start when the hold is off. Then when the hold is on, it switches between 1 and 4. And even worse, when hold is switched off, 2 will show for a split second before being switched to 4 indefinitely.Code: [Select]
%?if(%Lt,=,themes)<%t(2)3|%t(0)4>;%?mh<1|%t(0)2>
I swapped it around, and now the first conditional works as intended but the second one bugs on the %t(0) and displays the contents anyway.Based on this, it seems the second conditional is influencing the entire thing. Which is a very long-winded way to say that this definitely isn't working as documented and as intended. As you suspected, I'd agree that this is a bug. I'll put together a test file for this when I'm free next and get it on the bug tracker asap

23
Theming and Appearance Customization / Re: %t(0) not functioning as intended
« Last post by Dook on June 20, 2025, 06:50:31 PM »My apologies! You're absolutely right about %t functioning like that. I'd never seen that example on p.206 before in the manual, still learning new things it seems haha. I'm so sorry for being patronising, I should've double checked before replying.
I understand what you're trying to do now as well I think. You're basically trying to animate the charging icon, but make it's starting state reflect the actual level. It's a nice touch.
I'm gonna hack it out over the weekend and see if I can dig deeper into why this isn't working, based on what you shared you'd definitely assume that %t(0) would work. One possibility is that changes over time to %t has broken this, but can't say for certain yet.
I understand what you're trying to do now as well I think. You're basically trying to animate the charging icon, but make it's starting state reflect the actual level. It's a nice touch.
I'm gonna hack it out over the weekend and see if I can dig deeper into why this isn't working, based on what you shared you'd definitely assume that %t(0) would work. One possibility is that changes over time to %t has broken this, but can't say for certain yet.
Quote
Funny you should say that, because that's exactly what I found in the AdwaitaPod, and putting ; inside the conditional appears to be the only functioning way to skip a subline. So the practical problem has been solved, but I still have to wonder why %t(0) doesn't work.Also great point, shows how little I know my own codebase these days. Pretty sure I've used %t recently in a conditional too and just forgot about it.
24
Theming and Appearance Customization / Re: Need to Remove Messed up Themes
« Last post by Dook on June 20, 2025, 06:35:11 PM »I guess technically the issue is that OneBit VFD didn't use the exact theme name for its cfg file and resources folder. Seems to make sense to enforce that for future themes .
Hmm, I suppose it is possible to ensure all theme contents are uniquely named (we already extract the file list from the theme zip files) but we'd want to exclude "shared" stuff -- fonts come to mind. Is there anything else that may be typically shared?
(Being able to see what fonts are shared across multiple themes might make it easier to identify fonts that could be pulled into the global font pack...)
Anything in the icons folder and bitmaps in a theme's wps folder are the two things I can think of. Excluding bitmap and .icon files probably makes the most sense. A few themes have reshipped icon sets I made for my themes without renaming them, an argument could be made that each theme's icon sets should be named with the theme name but you have cases like the refresh series on iPods where it makes some sense for them to share the same icon set.
25
Rockbox General Discussion / Re: Rockbox on HiFi Walker H2
« Last post by dconrad on June 20, 2025, 05:02:35 PM »Ok, that's strange but I think we can work around it for the time being. Let's try a slightly different approach. Do you have a microSD card reader you can use instead of connecting the device via USB? Now that the card is formatted, all we need to do is put the installation on the card.
So put the SD card in your reader and then do steps 2 and 3.
Also, I'm not sure if you mentioned, what is the original firmware version on your player? And does it have USB C or micro USB?
Edit to add: if you get the .rockbox on there correctly (matches my picture) and it still does not work, I have some theories about something more fundamental which may be going awry. But I want to go one step at a time.
So put the SD card in your reader and then do steps 2 and 3.
Also, I'm not sure if you mentioned, what is the original firmware version on your player? And does it have USB C or micro USB?
Edit to add: if you get the .rockbox on there correctly (matches my picture) and it still does not work, I have some theories about something more fundamental which may be going awry. But I want to go one step at a time.
26
Rockbox General Discussion / Re: Rockbox on HiFi Walker H2
« Last post by psyscott on June 20, 2025, 04:13:53 PM »I hope I'm not duplicating my post I've tried to post this 3 times (reducing the size of photo each time. Now it's 33 KB), but I'll try again, like I have your instructions which I have tried 3 times:
1. On my M4 MAC MINI
2. On my INTEL MAC MINI
3. On my INTEL MACBOOK
Each time, I repeated the first 2 steps, exactly. Each time, I had the same results. The H2 would not show that it was connected via USB. Instead, its display would eventually change into a lightened mirror image.
I will try once more to attach this photo, although this has failed to post before, without warning.
1. On my M4 MAC MINI
2. On my INTEL MAC MINI
3. On my INTEL MACBOOK
Each time, I repeated the first 2 steps, exactly. Each time, I had the same results. The H2 would not show that it was connected via USB. Instead, its display would eventually change into a lightened mirror image.
I will try once more to attach this photo, although this has failed to post before, without warning.
Ok, good. Now I need you to do the following:
1. Format the SD card with the player
2. Download the correct rockbox build for a Hosted Aigo Eros Q/K
3. Extract it onto the card.
Here is a video showing exactly how to do it, start to end. Please do exactly as this video does. Don't take any shortcuts or do anything a different way: https://www.youtube.com/watch?v=iLKC42w8jYw
At the end, this is what your SD card should look like:
https://imgur.com/a/JrNQD77
27
Theming and Appearance Customization / Re: OneBit_OLED
« Last post by gnomacor on June 20, 2025, 03:25:33 PM »Quote
I’m pretty sure I fixed the battery indicator in my version of the theme. Unless I’m mistaken….I meant the original theme by Ben Clayton. I forgot that you also had the theme with a same name (which unfortunately is confusing, as others have pointed out).
Quote
And I apologize if it rubbed anyone the wrong way by uploading so many recolors. I really just wanted to fix all the bugs with Ben’s theme and re-upload but I got creative and thought myself as well as others might enjoy some different version to play around with.There's really no shame in getting creative with existing themes, that's bulk of what I've uploaded as well. Perhaps I just wished there was more... variety.
Also you can upload .sbs and .wps files in the forum, so you can share colour variants that way.
28
Theming and Appearance Customization / Re: %t(0) not functioning as intended
« Last post by gnomacor on June 20, 2025, 03:05:01 PM »First off, let me preface this by saying that what I've been doing is based on what was written in the manual, which AFAIK should be updated frequently if not in tandem with the code. I often use the CustomWPS wiki section for convenience but when I encounter problems I always compare it with the contents of the manual.
Second, nested %Vd calling has nothing to do with %t(0) not working. I know it's not its intended use, but it works somewhat (not using it in production though), and switching it out with normal expressions doesn't resolve the subline problem.
This is false; each subline is given 2s by default (per the manual). Indeed the first subline works, and it's not the problem I'm having.
So this viewport is supposed to work like this: first you display the current battery level, then you display what would be the charge level if it was charged up, and then some more, until you reach the 100% charge state (bitmap). If the current charge state is 20%, it will show 20 -> 40 -> 60 -> 80 -> 100, if it's 50, 50 -> 60 -> 80 -> 100, if it's 90, 90 -> 100. It's not about displaying batt and battCharging at once, rather it's a shorthand for temporarily displaying the current charge status. As I explained earlier, calling %Vd isn't the problem here, and copypasting the content of batt viewport doesn't solve the timing issue.
This to me sounds like you're saying it's simply impossible to put %t tag inside a conditional, which is also false. At least it should be, per the manual (12.2.4.0):
Just as a sanity check, I've put in everything inside the conditional just like in the example, so ... ;%?if(%bl,>=,80)<%t(0)|%t(2)%xd(battery,9)>; ..., and now it just displays nothing rather than skipping, which is still incorrect. So it's either a bug or the manual needs changing (but why retract a feature that you clearly see the use case of?).
Hopefully I've elaborated enough till now that you can understand why this doesn't make sense. I could create a conditional jungle and basically create a viewport for every charge levels (of interest), but I'm just trying to use the function that should exist and will make the code cleaner.
Second, nested %Vd calling has nothing to do with %t(0) not working. I know it's not its intended use, but it works somewhat (not using it in production though), and switching it out with normal expressions doesn't resolve the subline problem.
Quote
For starters, you have a ; on it's own near the begininning, this does absolutely nothing unless it comes after a %t tag.
This is false; each subline is given 2s by default (per the manual). Indeed the first subline works, and it's not the problem I'm having.
Quote
call on %Vd(batt) the same time you call %Vd(battCharging), it will have the exact same result you're looking for anyway.
So this viewport is supposed to work like this: first you display the current battery level, then you display what would be the charge level if it was charged up, and then some more, until you reach the 100% charge state (bitmap). If the current charge state is 20%, it will show 20 -> 40 -> 60 -> 80 -> 100, if it's 50, 50 -> 60 -> 80 -> 100, if it's 90, 90 -> 100. It's not about displaying batt and battCharging at once, rather it's a shorthand for temporarily displaying the current charge status. As I explained earlier, calling %Vd isn't the problem here, and copypasting the content of batt viewport doesn't solve the timing issue.
Quote
Take for example your first usage %?if(%bl,>=,20)<%t(0)>%xd(battery,3); If you take out %t(0)>%xd(battery,3);, you're left with invalid theme code, but that's exactly how the %t tag works.
This to me sounds like you're saying it's simply impossible to put %t tag inside a conditional, which is also false. At least it should be, per the manual (12.2.4.0):
Quote
Conditionals can be used with sublines to display a different set and/or number of sublines on the line depending on the evaluation of the conditional. Example subline with conditionals:Quote%?it<%t(8)%s%it|%s%fn>;%?ia<%t(3)%s%ia|%t(0)>The format above will do two different things depending if ID3 tags are present. If the ID3 artist and title are present:If the ID3 artist and title are not present:
- Display id3 title for 8 seconds,
- Display id3 artist for 3 seconds,
- repeat…
Note that by using a subline display time of 0 in one branch of a conditional, a subline can be skipped (not displayed) when that condition is met.
- Display the filename continuously.
Just as a sanity check, I've put in everything inside the conditional just like in the example, so ... ;%?if(%bl,>=,80)<%t(0)|%t(2)%xd(battery,9)>; ..., and now it just displays nothing rather than skipping, which is still incorrect. So it's either a bug or the manual needs changing (but why retract a feature that you clearly see the use case of?).
Quote
I might be wrong here, but they shouldn't even work if they were inside a conditional like %?bl<%t(0);..> as rockbox would treat each subline as a new line thus breaking the conditional.Funny you should say that, because that's exactly what I found in the AdwaitaPod, and putting ; inside the conditional appears to be the only functioning way to skip a subline. So the practical problem has been solved, but I still have to wonder why %t(0) doesn't work.
Quote
It's worth stressing though that the %t tag is not the solution to your problem here. Displaying a different battery icon when charging is far better suited to conditionals on their own.
Hopefully I've elaborated enough till now that you can understand why this doesn't make sense. I could create a conditional jungle and basically create a viewport for every charge levels (of interest), but I'm just trying to use the function that should exist and will make the code cleaner.
29
Theming and Appearance Customization / Re: Need to Remove Messed up Themes
« Last post by speachy on June 20, 2025, 02:58:23 PM »I guess technically the issue is that OneBit VFD didn't use the exact theme name for its cfg file and resources folder. Seems to make sense to enforce that for future themes .
Hmm, I suppose it is possible to ensure all theme contents are uniquely named (we already extract the file list from the theme zip files) but we'd want to exclude "shared" stuff -- fonts come to mind. Is there anything else that may be typically shared?
(Being able to see what fonts are shared across multiple themes might make it easier to identify fonts that could be pulled into the global font pack...)
30
Theming and Appearance Customization / Re: Need to Remove Messed up Themes
« Last post by chris_s on June 20, 2025, 01:18:11 PM »I guess technically the issue is that OneBit VFD didn't use the exact theme name for its cfg file and resources folder. Seems to make sense to enforce that for future themes .