Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Recent Posts

Recent Posts

Pages: [1] 2 3 ... 10
1
Rockbox General Discussion / Re: Rockbox on HiFi Walker H2
« Last post by psyscott on Today at 03:09:56 PM »
Thank you for your help.
Should try a different installation method, or just give up on this H2?
2
Audio Playback, Database and Playlists / Re: How to disable new "Prevent sleep timer from shutting down when charging" ?
« Last post by DTSyX on Today at 02:34:47 PM »
Well, I have been using v3.15 for the last few years on my H140. It stayed turned on for the duration of the sleep timer when paused and did not change it sleep timer behavior when the battery was charging - otherwise those I would not have noticed those changes after installing v4.0.

I'm still of the opinion that at least my player uses more battery life if shut down and rebooted than staying on in idle mode or paused where there's essentially no hdd/ssd activity - that of course is dependent on the time duration, but certainly true for the time difference between idle timer and sleep timer in my case. That's why I'd rather have my player stay turned on when paused than shut down after the idle timer is up.

But as I didn't have any issues with v3.15, I can also go back to that version - no biggy.
3
Theming and Appearance Customization / Re: %t(0) not functioning as intended
« Last post by Dook on Today at 11:17:50 AM »
You are definitely misunderstanding the %t tag. The tag works by defining "sublines" and then telling rockbox how long to display each one. "Sublines" in this context are containers with content, originally intended to display different kinds of metadata in the music player hence the name sublines.

There's a lot of reasons as to why your example isn't working, I'll try my best to explain but if there's any part you don't get then let me know and I can focus on it more. For starters, you have a ; on it's own near the begininning, this does absolutely nothing unless it comes after a %t tag. Secondly, I don't believe you can call on Viewports like that. They just aren't designed to work that way, call on %Vd(batt) the same time you call %Vd(battCharging), it will have the exact same result you're looking for anyway.

Next, your usage of %t ignores how they work. 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. It sees each subline instance as an independent object that can be removed and reinserted, hence they can't work inside conditionals.

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.

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.
4
Theming and Appearance Customization / Re: OneBit_OLED
« Last post by Dook on Today at 10:53:19 AM »
I'm not too sure, but I suspect the number comparisons are seperate to the character ones. I don't remember if I took down any notes when exploring this last year, but it definitely tries to interpret characters as numbers when comparing to a number (and ultimately struggles).

Re: battery icons. Try changing it out for a simpler version. The current way of doing battery icons is based on a legacy way of doing things with a ton of conditionals. It's not wrong, but it makes it far too easy for stuff like this to happen. You can plug the battery tag into the image loading tag itself, and rockbox will handle picking what image to show at the right time. It automatically spreads them out over the range so it doesn't matter how many you throw at it. Just make sure to account for error states, maybe check out the implementation in adwaitapod but I don't remember exactly how I handled that.

Simpler version example: %xd(battery_icons,%bl)
5
Hardware / Weird screen problem with 6th gen ipod
« Last post by Frankenpod on Today at 10:29:25 AM »
This isn't really a Rockbox issue, though it does relate to RB in a way...

Have a 6th gen (I think, or it might be a 120GB 7th gen logic board) ipod classic with RB installed on it.  The weird thing is the screen doesn't work if I boot in original firmware or disk mode - it comes out whited-out/blank.  Yet it works fine in Rockbox mode.  Was wondering if the original firmware was corrupted or something, so restored it, and now it doesn't work at all (as RB has now been removed), comes out still whited-out.  Suspect if I put RB back on (PC can still 'see' the drive when connected) it will go back to working only in RB mode again.

Anyone have any idea why this would happen?  Seems _really_ odd to me that RB can drive the display correctly while the OF can't.  One thought is that maybe iTunes is for some reason restoring it with the wrong firmware version (not sure if this logic board is a 6th gen or a 7.0 gen originally, iTunes seems to think it wants 2.0.1 version firmware).
6
Theming and Appearance Customization / Re: OneBit_OLED
« Last post by gnomacor on Today at 06:07:48 AM »
thanks for the help, dook. nice to know that you can compare letters, is it perhaps based on ascii value?

aside from that, it turns out the battery indicator was broken. i learned it the hard way when my player ran out of battery. i woud have rather waited before i push another update but i had to. v1.2 fixes this and incorporates dook's logic.

also because the battery indicator logic was previously not modified, this also means that OneBit_VFD/Mono has a broken battery indicator.
7
Theming and Appearance Customization / %t(0) not functioning as intended
« Last post by gnomacor on June 18, 2025, 07:00:30 PM »
I'm creating something like this:

%Vl(battCharging,277,17,23,10,-)
%Vf(-)
%Vd(batt);%?if(%bl,>=,20)<%t(0)>%xd(battery,3);%?if(%bl,>=,40)<%t(0)>%xd(battery,5);%?if(%bl,>=,60)<%t(0)>%xd(battery,7);%?if(%bl,>=,80)<%t(0)>%xd(battery,9);%xd(battery,11)

(the nested %Vd tag inside a tagged viewport also has some problems but that's a story for another day)

the intention is that you first display the current battery level, and animate up to 100%. the charge level lower than current should be skipped by the conditional and %t(0) tag, as indicated in the manual.
However, the theme behaves as if %t(0) tag didn't exist and will proceed to display everything no matter the charge level. this has happened as long as i have worked on themes and is present in the latest nightly (2025-06-18). The device I'm using is Eros Q (Surfans F20 to be more specific). i have previously worked around this by repeating the tags before and after the subline, so something like %tag;%?condition<%tag|%something_else>, but this charging animation has multiple levels that i'm uncomfortable using this workaround. i wonder if it's just me and if not, how long it's been known.
8
Audio Playback, Database and Playlists / Re: Playback Logging is crashing on Mini 2G w/ 256GB card ONLY (iFlash SD/CF)
« Last post by cirdanlunae on June 18, 2025, 04:17:27 PM »
I'm buying a new 256GB card to see if the card I have is indeed the problem. Curious if the card is bad, but it's not reporting so with badblocks. Will report back with my findings
9
Plugins/Viewers / Re: fopen file in .rockbox dir
« Last post by rockbox_dev123 on June 18, 2025, 04:12:04 PM »
Up to ~70 people downloaded the plugin so there must be some interest.

I spent time fixing bugs and polishing the plugin.

Some of the changes:
  • The text file containing the verses has been modified to change the chapter numbering to Roman numerals. This prevents accidentally treating the chapter numbers as verses when reading the file.
  • I added missing verses 246, 247 which were accidentally omitted. I've verified that all verses are now present in the file.
  • There is now a header which displays "Dhammapada verses x - y" when displaying a range and "Dhammapada verse x" when displaying a single verse.
  • The sizes of variables should be more accurate. I've verified that the longest verse range fits within the buffer.
  • The marks struct has been rewritten to reflect the new structure of the text file for this plugin compared with the original display-dhammapada format.
  • If the selected verse is supposed to be viewed with surrounding verses for context, they're no longer displayed as separate screens. They're now combined into a single string which is nicely scrollable by the simple_viewer plugin.

EDIT: To compile for hardware and not just the simulator, the call to strcmp has be changed to rb->strcmp. I forgot to do this before posting. I can't reupload an attachment without making a separate post. It's easy enough to make that change!
10
Theming and Appearance Customization / Re: Issue with Win95 theme
« Last post by 7o9 on June 18, 2025, 02:15:48 PM »
Worst case, make a back-up of your .rockbox dir (or rename it) and install a fresh version of Rockbox to get everything default.
Pages: [1] 2 3 ... 10
  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.081 seconds with 17 queries.