Post Reply 
Building SleepyHead on Linux
Author Message
archangle Online
Wiki Editor
Advisory Members

Posts: 3,163
Joined: Feb 2012

Machine: ResMed S9 AutoSet
Mask Type: Nasal pillows
Mask Make & Model: ResMed Swift FX
Humidifier: ResMed S9 H5i
CPAP Pressure: 16-20
CPAP Software: ResScan SleepyHead EncoreBasic

Other Comments: Happy PAPper

Sex: Undisclosed
Location: USA

Post: #1
Building SleepyHead on Linux
"Note: Mark, the author of SleepyHead, has updated the code and the process here may not work.
Read the whole thread for updated info. We may have an updated process later.

- 03/31/2016 - Archangle"





I've recently built SleepyHead on Linux.

Here's my notes on the build.

YMMV with different linux distributions.

How I just built the Linux version of SH.


From a fairly virgin Mint 17.1 32 bit cinnamon distribution.

------

$ sudo -i


# apt-get install libqt5serialport5
# apt-get install git
# apt-get install qt5-qmake
# apt-get install qt5-default
# apt-get install libqt5webkit5-dev
# apt-get install libqt5serialport5-dev
# apt-get install g++
# apt-get install libudev-dev

exit from sudo

# exit

Go to your home directory and create a directory for SleepyHead.
Or put it somewhere else if you want to.

$ cd
$ mkdir shbuild
$ cd shbuild


$ git clone git://git.code.sf.net/p/sleepyhead/code sleepyhead-code

$ cd sleepyhead-code

$ qmake
$ make

Executable is shbuild/sleepyhead/SleepyHead

---------

Depending on the distribution you use, you might need to pull some other packages.

Here's a script I made.

---------

#/bin/bash


sudo apt-get install libqt5serialport5 git qt5-qmake qt5-default libqt5webkit5-dev libqt5serialport5-dev g++ libudev-dev

mkdir shbuild
cd shbuild


git clone git://git.code.sf.net/p/sleepyhead/code sleepyhead-code

cd sleepyhead-code

qmake
make

Get the free SleepyHead software here.
Useful links.
Click here for information on the main alternative to CPAP.
If it's midnight and a DME tells you it's dark outside, go and check it yourself.
(This post was last modified: 02-20-2015 02:25 PM by archangle.)
02-20-2015 02:24 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
archangle Online
Wiki Editor
Advisory Members

Posts: 3,163
Joined: Feb 2012

Machine: ResMed S9 AutoSet
Mask Type: Nasal pillows
Mask Make & Model: ResMed Swift FX
Humidifier: ResMed S9 H5i
CPAP Pressure: 16-20
CPAP Software: ResScan SleepyHead EncoreBasic

Other Comments: Happy PAPper

Sex: Undisclosed
Location: USA

Post: #2
BrokenGL build for Linux
You may get an error about needing the "BrokenGL" version, depending on your hardware.

If you need to build the "BrokenGL" version for Linux, put

DEFINES+=BrokenGL

on the end when you do the qmake step.

i.e.

qmake DEFINES+=BrokenGL

If you've already built without the BrokenGL, you'll need to force make to rebuild things. There's probably a smarter way, but I THINK

make -B

would rebuild everything.

Get the free SleepyHead software here.
Useful links.
Click here for information on the main alternative to CPAP.
If it's midnight and a DME tells you it's dark outside, go and check it yourself.
02-20-2015 02:26 PM
Find all posts by this user Post Reply Quote this message in a reply
archangle Online
Wiki Editor
Advisory Members

Posts: 3,163
Joined: Feb 2012

Machine: ResMed S9 AutoSet
Mask Type: Nasal pillows
Mask Make & Model: ResMed Swift FX
Humidifier: ResMed S9 H5i
CPAP Pressure: 16-20
CPAP Software: ResScan SleepyHead EncoreBasic

Other Comments: Happy PAPper

Sex: Undisclosed
Location: USA

Post: #3
RE: Building SleepyHead on Linux
BTW, there will be a ton of error messages and warnings during the build processes above. My compiled version still ran.

There are also a lot of debug messages that come out to the console when you run the executable. Mine still runs OK.

Get the free SleepyHead software here.
Useful links.
Click here for information on the main alternative to CPAP.
If it's midnight and a DME tells you it's dark outside, go and check it yourself.
02-20-2015 02:29 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
pholynyk Offline

Advisory Members

Posts: 308
Joined: Mar 2015

Machine: ResMed AirSense 10 APAP
Mask Type: Full face mask
Mask Make & Model: Amara View
Humidifier: included
CPAP Pressure: 11-17
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location: Ontario, Canada

Post: #4
RE: Building SleepyHead on Linux
If you are building SH with QtCreator (the first recommendation), you don't get to add to the qmake line (AFAIK). So I added a file called BrokenGL as suggested, but it wouldn't build the BrokenGL version until I changed line 18 in the file _sleepyhead.pro_ from
contains(DEFINES, BrokenGL) {
to
exists(BrokenGL) {

Now all is well and I can read all the Daily Report graphs.
Of course I could have added the _DEFINES += BrokenGL_ bit to the beginning of the sleepyhead.pro file... but I had already added the BrokenGL file to the directory - which the comments said was required...

So, two ways to make a BrokenGL version for those of us with old graphics cards.

BTW, my clue that I needed the BrokenGL version was that most of the text in the Daily Report page was solid black blocks. Now if I could convince QtCreator to do a BrokenGL... Cool

Excellent software, I'm glad I found it and the ApneaBoard.

Phil
03-26-2015 10:44 PM
Find all posts by this user Post Reply Quote this message in a reply
SuperSleeper Offline

Administrators

Posts: 9,976
Joined: Feb 2012

Machine: PR System One REMstar Auto (DS560)
Mask Type: Nasal pillows
Mask Make & Model: ResMed Mirage Swift II
Humidifier: none
CPAP Pressure: 12.5 - 18.5 cmH20 (auto range)
CPAP Software: SleepyHead

Other Comments: Have diabetes Type II

Sex: Male
Location: Illinois, USA

Post: #5
RE: Building SleepyHead on Linux
I went ahead and added a link to this thread on the SleepyHead Interim Download Page, here:

http://www.SleepFiles.com/SH2/

SuperSleeper
Apnea Board Administrator
www.ApneaBoard.com


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.

03-27-2015 08:59 AM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
BadGoodDeb Offline

Advisory Members

Posts: 210
Joined: Apr 2015

Machine: ResMed Airsense 10 autoset
Mask Type: Nasal pillows
Mask Make & Model: AirFit P10 for Her
Humidifier: no
CPAP Pressure: 8 (testing 7.8-10)
CPAP Software: SleepyHead

Other Comments: New to AirSense 10 and AirFit P10, but 4 years on prev unit

Sex: Female
Location: Chicago outskirts (Aurora, IL)

Post: #6
RE: Building SleepyHead on Linux
@PHolyNyk: (1) I see you are using a ResMed AirSense 10 and yet you mention the SleepyHead software. I just got an AirSense 10 two days ago (much older Respironics REMaster Pro M series for 4 to 8 years before that (broken usage time period, hence weird year designation)). I was looking at SleepyHead, and it doesn't mention being compatible with the ResMed AirSense, so I wasn't going to set up the software. What gives? Do you use the software now, or was that an older usage, with a previous machine?

(2) Your avatar makes me wonder if I know you from MobileRead? Even your username seems similar ..... Or is it just a coincidence that you picked a photo that somebody over there uses too? I haven't loaded my Xena piccy here yet .... I just joined here.

Deb aka bgDeb
04-24-2015 04:17 PM
Find all posts by this user Post Reply Quote this message in a reply
pholynyk Offline

Advisory Members

Posts: 308
Joined: Mar 2015

Machine: ResMed AirSense 10 APAP
Mask Type: Full face mask
Mask Make & Model: Amara View
Humidifier: included
CPAP Pressure: 11-17
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location: Ontario, Canada

Post: #7
RE: Building SleepyHead on Linux
(04-24-2015 04:17 PM)BadGoodDeb Wrote:  @PHolyNyk: (1) I see you are using a ResMed AirSense 10 and yet you mention the SleepyHead software. I just got an AirSense 10 two days ago (much older Respironics REMaster Pro M series for 4 to 8 years before that (broken usage time period, hence weird year designation)). I was looking at SleepyHead, and it doesn't mention being compatible with the ResMed AirSense, so I wasn't going to set up the software. What gives? Do you use the software now, or was that an older usage, with a previous machine?

(2) Your avatar makes me wonder if I know you from MobileRead? Even your username seems similar ..... Or is it just a coincidence that you picked a photo that somebody over there uses too? I haven't loaded my Xena piccy here yet .... I just joined here.

Deb aka bgDeb

Hi bgD (2) yep, it's me. I seem to be spending more time here than there while I get used to my new machine Oh-jeez

(1) The latest beta versions support the AirSense - 0.9.8-1-testing -- I think there are versions for Windows and Mac already built, but I needed a Linux version for broken GL -- hence the earlier note.

Small world, eh?

Phil
04-24-2015 05:06 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
BadGoodDeb Offline

Advisory Members

Posts: 210
Joined: Apr 2015

Machine: ResMed Airsense 10 autoset
Mask Type: Nasal pillows
Mask Make & Model: AirFit P10 for Her
Humidifier: no
CPAP Pressure: 8 (testing 7.8-10)
CPAP Software: SleepyHead

Other Comments: New to AirSense 10 and AirFit P10, but 4 years on prev unit

Sex: Female
Location: Chicago outskirts (Aurora, IL)

Post: #8
RE: Building SleepyHead on Linux
Indeed, small world! It's nice to meet a friendly "face" whom I already recognize. Smile And thanks for the tip that the software does work. I'll install it after all!

I love my AirSense 10 after only 2 days. My only "adjustment" is to the face straps on my mask system. If I don't find an over-the-head position which loosens their tension, I may ask for the "Him" version, assuming the elastics are longer. I'll give it another few days first. Are you new to CPAPs as a whole? (Or shouldn't I continue this thought, in this thread?)

bgDeb
(This post was last modified: 04-24-2015 05:20 PM by BadGoodDeb.)
04-24-2015 05:19 PM
Find all posts by this user Post Reply Quote this message in a reply
DariaVader Offline
Apnea Board Facebook Editor
Monitors

Posts: 1,828
Joined: Nov 2014

Machine: Resmed S9 AutoSet
Mask Type: Nasal pillows
Mask Make & Model: Airfit P10 for Her
Humidifier: H5i humidifier with ClimateLine heated hose
CPAP Pressure: 8-15
CPAP Software: SleepyHead

Other Comments: diabetes II, Thyroidectomized, Primary Immune Deficiency, and the list goes on :P

Sex: Female
Location: Oregon

Post: #9
RE: Building SleepyHead on Linux
(04-24-2015 05:19 PM)BadGoodDeb Wrote:  Indeed, small world! It's nice to meet a friendly "face" whom I already recognize. Smile And thanks for the tip that the software does work. I'll install it after all!

I love my AirSense 10 after only 2 days. My only "adjustment" is to the face straps on my mask system. If I don't find an over-the-head position which loosens their tension, I may ask for the "Him" version, assuming the elastics are longer. I'll give it another few days first. Are you new to CPAPs as a whole? (Or shouldn't I continue this thought, in this thread?)

bgDeb

you should start a thread... alternately there are several old ones discussing the elastic on the P10 Airfit... (his is not bigger than hers - you can stretch, or alter if needed or choose a more adjustable mask)

هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه
Tongue Suck Technique for prevention of mouth breathing:
  • Place your tongue behind your front teeth on the roof of your mouth
  • let your tongue fill the space between the upper molars
  • gently suck to form a light vacuum
Practising during the day can help you to keep it at night

هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه هههههه
04-24-2015 06:12 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
lunaticds Offline

Members

Posts: 17
Joined: Mar 2015

Machine: F&P Icon+ Auto
Mask Type: Nasal mask
Mask Make & Model: Respironics Wisp
Humidifier: internal
CPAP Pressure: 7 to 14
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location: Oz

Post: #10
RE: Building SleepyHead on Linux
I tried a build on Mint a while ago and found a few bugs; times were out of whack, and the reports were missing data that the Windoze version provided. Really didn't have time to dig too deep - had new machine so was more interested in seeing data than doing something resembling my day job.

Wound up running the BrokenGL version in WINE as an interim. Ideally would like it to run on my primary desktop (currently Ubuntu.. yeah, yeah, I know..). Will give these instructions a crack when time permits.
04-24-2015 06:16 PM
Find all posts by this user Post Reply Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Idea SleepyHead and Linux MartinT 3 116 11-29-2016 07:41 AM
Last Post: OpalRose
  did Linux corrupt my SD card? AirPlease 6 844 09-23-2016 02:06 AM
Last Post: zagam
  SleepyHead and Linux Mint 17.3 (Ubuntu 14.04) necochino 4 281 08-21-2016 07:16 PM
Last Post: pholynyk
  Oximetry - Do any of the pulse oximeters work with linux? happydreams 47 5,208 07-17-2016 08:31 AM
Last Post: johanh
  SleepyHead 1.0.0 Linux kazoni 23 1,498 05-23-2016 03:36 PM
Last Post: palerider
  Add Linux download to the Sleep Files site hfinger 11 1,113 01-13-2016 05:48 PM
Last Post: DariaVader
  SleepyHead and Linux Sleepster 31 6,151 05-02-2014 08:45 AM
Last Post: SnuffySleeper

Forum Jump:

Who's Online (Complete List)