Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

RPI4 font preferences not maintained between starts of OSCAR
#21
RE: RPI4 font preferences not maintained between starts of OSCAR
Is the font variable ever initialized to PibotoLt during startup? I'm wondering if it may be a timing issue, where it has read the xml file before the font variable is initialized by the system.
Crimson Nape
Apnea Board Moderator
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Beginner's Guide to Sleepyhead and OSCAR
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply






Donate to Apnea Board  
#22
RE: RPI4 font preferences not maintained between starts of OSCAR
Phil,

Have you rebuilt with the latest updates to common.cpp? (I updated it twice.) It looks somewhat like OSCAR is failing to find the font in the list of installed fonts. The update I made would spell out in the log more exactly what the startup font setting would do.

But I still have no explanation why the font size would change to 12. A reset should set it to 10.
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#23
RE: RPI4 font preferences not maintained between starts of OSCAR
(01-15-2021, 12:02 PM)Crimson Nape Wrote: Is the font variable ever initialized to PibotoLt during startup?  I'm wondering if it may be a timing issue, where it has read the xml file before the font variable is initialized by the system.

A timing issue is my best guess too, but so far I've not figured out what it is.  PibotoLt is the system font, so QT would initialize the application font to that. Then we replace the application font with one of our choosing. The messages that are shown during that substitution process are all normal. And of course it works fine on all other platforms.

I can, and will if necessary, start shotgunning attempts to bypass the suspected timing issue. But build times on RPi are long, so I am focusing first on diagnostics so I don't have to make too many guesses.
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#24
RE: RPI4 font preferences not maintained between starts of OSCAR
While I'm sitting in the bleachers another thought came to mind, are other parameters in the xml file being acquired and updated? Basically, is the xml file even being accessed/opened this early in startup?

Changing something like, RightSidebarVisible, UserEventPieChart, and CalendarVisible, to see if it picks these up.
Crimson Nape
Apnea Board Moderator
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Beginner's Guide to Sleepyhead and OSCAR
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply






Donate to Apnea Board  
#25
RE: RPI4 font preferences not maintained between starts of OSCAR
Interesting idea, especially if something is threaded that I don't know about. My latest diagnostics should reveal if that were the case. I'm waiting to see a log with the latest tests.
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#26
RE: RPI4 font preferences not maintained between starts of OSCAR
@pholynyk Phil has captured what happens.  That's what I see.  Sorry I had to go out for a while.  Hadn't intended this to be such a vexing puzzle.  Of course, no one would have know if there was an issue if it wasn't reported.  

Why would this OS/platform be that different from the others?  Raspi OS is basically Debian.  The OS packages a Debian help section.  This doesn't happen on Ubuntu or other Debian flavors on a PC does it?  Actually that might be an interesting test.  Does it work the way you expect, in actuality, or is it just close?  Wish I could help with this, but my GUI programming is quite limited.  I've done wxWidgets, and wxPython in the distant past, but no QT.
Post Reply Post Reply
#27
RE: RPI4 font preferences not maintained between starts of OSCAR
(01-15-2021, 01:14 PM)happydreams Wrote: Why would this OS/platform be that different from the others?

That is the question! OSCAR code is the same. But is QT? I don't know. Also, the CPU is slower than most, isn't it? That could lead to a timing problem that we would not otherwise see.

I'm still working on adding more diagnostics.
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply






Donate to Apnea Board  
#28
RE: RPI4 font preferences not maintained between starts of OSCAR
Phil and/or happydreams:

I have merged a new version of common.cpp into the repository. Please rebuild, run, and send me the log.

With this change, when the program looks up a font and doesn't find it, it will dump the entire list of font families. I'm hoping that will show something useful.

For example,


Code:
validateFont found 257 installed font families
"Nobody font" 10 not found, substituting "MS Shell Dlg 2" 10
"Agency FB"
"Algerian"
"Arial"
"Arial Black"
... and on and on for 257 lines!
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#29
RE: RPI4 font preferences not maintained between starts of OSCAR
While it may be a Debian flavor, it operates on a different processor. This could be how the code is executed on the processor, little endian versus big endian for example. Note, Arm and x86 processors are little endian by default. Another "fly-in-the-ointment" is Qt. It has on occasions produced some surprises of its own. The previous examples are just speculations, but are good reasons to keep an open mind.
Crimson Nape
Apnea Board Moderator
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Beginner's Guide to Sleepyhead and OSCAR
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply
#30
RE: RPI4 font preferences not maintained between starts of OSCAR
Ok, built it and ran it.

Here's the important bits.
Code:
00187: Debug: OSCAR 1.2.1-alpha.0+master-142220c1 (linux arm)
00188: Debug: Built with Qt 5.11.3 on Jan 15 2021 14:18:31
00188: Debug:
00188: Debug: Operating system: Raspbian GNU/Linux 10 (buster)
00188: Debug: Graphics Engine: OpenGL ES 3.1 Mesa 19.3.2
00188: Debug: Graphics Engine type: OpenGL
00188: Debug:
00188: Debug: App key: OSCAR-master
00188: Debug: AppData folder already exists, so ...
00188: Debug: Using /home/pi/Documents/OSCAR_Data as OSCAR data folder
00190: Debug: Logging to /home/pi/Documents/OSCAR_Data/logs/debug.txt
00191: Debug: Opening  /home/pi/Documents/OSCAR_Data/Preferences.xml
00193: Debug: validateFont found 244 installed font families
00197: Debug: Application font set to QFont( "PibotoLt,9,-1,5,50,0,0,0,0,0" )
00197: Debug: Application font reads back as QFont( "PibotoLt,9,-1,5,50,0,0,0,0,0" )
00197: Debug: system font is "PibotoLt"
00198: Debug: Opening  ":/docs/channels.xml"
00198: Debug: Processing xml file: "channels" "en" "1.0"

56672: Debug: Application font set to QFont( "PibotoLt,9,-1,5,50,0,0,0,0,0" )
56672: Debug: Application font reads back as QFont( "PibotoLt,9,-1,5,50,0,0,0,0,0" )
56672: Debug: system font is "PibotoLt"
56764: Debug: Number of months for stats (trim to 12 max) 67
56936: Debug: Page change time (in ms): Unload = 0 Load = 181 Other = 1

Umm, seems to be basically working.  You must have fixed something.  To be honest, I'd really like to decouple the AHI=xx.xx from the rest of the fonts, but it is better - at least it obeyed the file.  AHI is too large.  Don't know, is it possible to do fontsize+2 instead of 4 for the RPI4?  I know this gets into mucking with the look and feel, but far too much space is devoted to AHI and machine (in my opinion) to the detriment of the other diagnostic info.  Here's what my display looks like.  I think the base fonts are borderline hard to read now.
Fontsize=9
   
Original was with Fontsize=12
   
Thinking about the limited display on the left hand side, it seems to me that taking 4cm total vs 22 cm of total vertical height, for AHI + machine settings is a lot, considering the amount of actual unique daily data that has to be displayed.  If it was me (and maybe I will dare to try it) I'd put 
ResMed AirCurve 10 VAuto on one line and PAP Mode: VPAPauto PS 4.2 over 9.4-15.0 (cmH20) on the other to save vertical space. 

I think what is here (OSCAR) is awesome, but maybe it could use a tweak or two.  Guess that's a personal preference.  I can tell you, I can't wait to get a real PC again.  Wouldn't want to develop for a living on an RPI4!  Too slow - even when overclocked.
Post Reply Post Reply






Donate to Apnea Board  


Possibly Related Threads...
Thread Author Replies Views Last Post
  OSCAR profiles and preferences SevereApnea 5 118 02-20-2021, 02:56 AM
Last Post: SevereApnea
  OSCAR display font small bobsroka 2 342 12-28-2019, 10:45 PM
Last Post: bobsroka
Sad Oscar kills the Ubuntu VM it is running in [solved: bug in VirtualBox, not OSCAR] fredex 1 418 12-16-2019, 08:47 PM
Last Post: fredex
  preferences sheepless 6 353 09-13-2019, 12:22 PM
Last Post: pholynyk
  OSCAR -- Preferences -- Events and Waveform Tabs RWS0022 3 741 06-02-2019, 09:09 AM
Last Post: RWS0022
  OSCAR Preferences Window too large for screen Perchas 14 821 05-04-2019, 03:16 PM
Last Post: Dormeo
  OSCAR - Maximize Toogle option, lost menu options [resolved in OSCAR v1.0.1] Perchas 7 601 05-03-2019, 05:24 PM
Last Post: Perchas


New Posts   Today's Posts






About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.