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
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

Donate to Apnea Board  
Just a screenshot of my SleepyHead data. It works.

Attached Files Thumbnail(s)
Post Reply Post Reply
Great job!
Please organize your SleeyHead screenshots like this.
I'm an epidemiologist, not a medical provider. 
Post Reply Post Reply
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.

Apnea Board Moderator

Organize your SleepyHead Charts
Using Attachments to Post ScreenShots and Images.
Machine choices

Post Reply Post Reply
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

Donate to Apnea Board  
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
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
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
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

Donate to Apnea Board  
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
  Latest ChromeOS to Support Linux Apps Crimson Nape 0 182 06-19-2018, 10:24 AM
Last Post: Crimson Nape
  Oximetry - Do any of the pulse oximeters work with linux? happydreams 51 10,705 06-02-2018, 10:21 AM
Last Post: GordK
  SleepyHead 1.0.0 Linux kazoni 31 3,938 06-02-2018, 03:28 AM
Last Post: ndstate
  did Linux corrupt my SD card? AirPlease 6 1,234 09-23-2016, 02:06 AM
Last Post: zagam
  SleepyHead and Linux Mint 17.3 (Ubuntu 14.04) necochino 4 950 08-21-2016, 07:16 PM
Last Post: pholynyk
  Building SleepyHead on Linux archangle 38 10,183 04-09-2016, 12:40 PM
Last Post: happydreams
  Add Linux download to the Sleep Files site hfinger 11 1,879 01-13-2016, 05:48 PM
Last Post: DariaVader

Forum Jump:

New Posts   Today's Posts

About Apnea Board

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