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

SleepyHead and Linux
#1
Idea 
Thanks for this great site! I'm new to CPAP and am learning a great deal.

One thing missing has been the data software that runs on Linux. SleepyHead has a Linux version but it's very specific to versions of Linux rather than general distributions and some of the dependencies are not standard or unnecessary. It didn't work out of the box even with the specific operating version mentioned on the page. SO... I went ahead and did some minor changes to the program, repackaged it (kept all the original programmers work and kudos) and it works like a dream. It's a fun little piece of software.

Since the programming and libraries are Open Source and publicly available, I think it should work on any Linux machine if it's recompiled with some changes to fit your particular OS needs. I have a way to make it fit any Debian based system I.E. Debian8, Ubuntu (all flavors 15.04 and up, maybe earlier) and any of possibly 30 Linux versions as long as they're deb or deb/rpm hybrid based. (debian based only because I'm familiar with deb not rpm, Susi, Red Hat etc. although there is nothing keeping it from working if you know those systems)

If any data deprived non-sleepers would like to get it working on your Linux machine, I'd be glad to help you get it working... Although I won't upload any modified software for safety reasons, I may be able to guide you through your own "redo" process if you're having problems.

Of course, I'll bow to the site administrators/moderators approval to do such a thing.

Outside of that, the info SleepyHead gives me is eyeopening and educational for sure.

Post Reply Post Reply
#2
Just a screenshot of my SleepyHead data. It works.


Attached Files Thumbnail(s)
   
Post Reply Post Reply
#3
Great job!
                                                                                                                                                                                  
Please organize your SleeyHead screenshots like this.
I'm an epidemiologist, not a medical provider. 
Post Reply Post Reply


#4
Hi MartinT,
Great that you have that working, now you need to post in the main forum to get some help with such a high AHI?

What I see are too many Obstructives and too low of a minimum pressure.
You may need to start inching up your minimum pressure to 9cm, with a ramp starting at 6cm.

You also have a high leak rate. Probably your mask, but that needs some attention.

OpalRose
Apnea Board Moderator
www.ApneaBoard.com

How to Organize and Post ScreenShots

http://sleep.tnet.com/resources/sleepyhead/shorganize
https://sleep.tnet.com/reference/tips/imgur

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
#5
I'm switching my main machine to Linux and testing with a new install of Slackware64 14.2 on another machine. Jedimark's page shows an Ubuntu binary package, but this can be converted to the tgz format with deb2tgz (available from the usual places--SourceForge among others).

The binary extracted and loaded, but failed at runtime, since I don't have Qt5 installed. Jedimark says 5.5 works, but 5.6 or higher causes problems when building from source. I found the 5.5 files from Qt.io by going through the archives. (If it's for a personal project, you don't have to pay the subscription fee.) Haven't downloaded it just yet; it's over 600Mb and my data cap says it's an early morning download. (Satellite broadband is odd.)

The Linux binary is 1.0.0. I don't know if it will play with 1.0.0-beta2 records; if not, I'll see if I can build from source. The Qt5.5-SDK might be in that big download. We'll see.
Post Reply Post Reply
#6
Building from source is not too difficult. The major point is to use QT 5.4 or 5.5. QT5.4 added a couple of methods that Jedimark used, but QT5.6 changed all the web rendering routines. I don't recall the details; they are in the release notes on the QT site. I'm sure it caused much pain to a lot of QT programmers.

The thread http://www.apneaboard.com/forums/Thread-...d-on-Linux has lots of useful hints for building. I particularly like building the object files and executable in a separate directory.
Post Reply Post Reply


#7
Thanks for the pointer. I'm happy to build from source, but the notes on Mark's page were a little sketchy for me. I'm rusty at Unix/Linux--did a lot with it from the '90s until '03, then not much.
Post Reply Post Reply
#8
Hmm, today the jedimark site is under re-construction. (I saw the main page was hacked as of a few days ago.) The main download page is there, but the source code page is offline, and I don't know the right command to get the source code from Gitlab. My previous Linux experience predates git.

Could somebody give me the command? I got an account with Gitlab when I got the debian binary--I need to install Qt5.5, but I'd rather start from scratch with the SleepyHead code.

Thanks in advance.
Post Reply Post Reply
#9
To get your own copy on your machine, use

git clone https://gitlab.com/sleepyhead/sleepyhead-code.git

preferably in a new directory. Do read the README - jedimark recommends building in a shadow directory because it keeps things cleaner

Mind you, it's been 9 months since I used gitlab, so I'm a little shaky myself
Post Reply Post Reply


#10
That did it. Thanks!

Tiny, compared to Qt5.5. Slackware14.2 ships with Qt4, and Qt.io has 5.5 lumped into a 622Mb file.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  did Linux corrupt my SD card? AirPlease 6 1,065 09-23-2016, 02:06 AM
Last Post: zagam
  SleepyHead and Linux Mint 17.3 (Ubuntu 14.04) necochino 4 597 08-21-2016, 07:16 PM
Last Post: pholynyk
  Oximetry - Do any of the pulse oximeters work with linux? happydreams 47 6,816 07-17-2016, 08:31 AM
Last Post: johanh
  SleepyHead 1.0.0 Linux kazoni 23 2,195 05-23-2016, 03:36 PM
Last Post: palerider
  Building SleepyHead on Linux archangle 38 8,777 04-09-2016, 12:40 PM
Last Post: happydreams
  Add Linux download to the Sleep Files site hfinger 11 1,529 01-13-2016, 05:48 PM
Last Post: DariaVader
  SleepyHead and Linux Sleepster 31 7,234 05-02-2014, 08:45 AM
Last Post: SnuffySleeper

Forum Jump:

New Posts   Today's Posts




About Apnea Board

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

For any more information, please use our contact form.