r/SurfaceLinux • • Nov 20 '15

Out-of-the-box support for Linux Mint 17.3 Cinnamon (BETA/RC1) on Surface Pro 3

With the release of Linux Mint 17.3, I've been able to create a LiveCD with a patched 4.2.0-19.23 kernel, including the BFQ I/O scheduler. Here's the link to my Google Drive folder with the latest stable and beta ISO (within its own folder):

https://drive.google.com/folderview?id=0B0E-zt0RT0Y_OFltXzJSYTBtU1k&usp=sharing

Things that work and I've tested:

  • Physical buttons (power, volume)

  • Touchscreen

  • Type cover (SP3 edition)

  • Trackpad

  • Wifi

  • Bluetooth

  • Battery status

Things that should work, but are untested:

  • Front and rear cameras

  • Type cover (SP4 and SB edition)

Things that pretty much work:

  • Suspend (works perfectly the first time upon closing the type cover, but subsequently, only works when closing twice in a row)

If you want to try to create the LiveCD or compile the kernel yourself, I've created a GitHub page with the relevant patches, instructions and links. You can find it here: https://github.com/tiggerite/mint-17.3-for-surface-pro-3

For any SP4 or SB users out there, please also give this LiveCD a try. Initial testing has been positive, although the physical buttons plus (probably) touchscreen don't work, but the type cover and touchpad should, along with wifi, cameras and bluetooth. Also, at present I have not enabled preliminary i915 support by default, and the backport module from 3.19.0 is not available in 4.2.0 (in fact, the backport itself was from 4.2-rc3).

EDIT 1 : Bluetooth now works, the Marvell firmware files have been added to the LiveCD and blueman has been installed by default too. I've also added a script to /etc/pm/power.d to ensure Wifi power management is always off, to prevent slow connection speeds. And finally the linux firmware package has been updated to 1.127.18, which has more up-to-date i915 drivers (for SP4/SB). Full details can be found on the GitHub page.

EDIT 2 : This also works on the Surface Pro 2, with the caveat that (unlike the SP3) you have to turn Secure Boot off and then power up with volume down pressed, to boot from USB/SD card (thanks to the dumb BIOS). Type cover, touchpad, touchscreen, physical buttons, battery status and bluetooth all work. Wifi also works but wouldn't connect to the 5Ghz band, only 2.4Ghz.

EDIT 3 : I have reverted the i915 patches as these were causing a black screen on the Surface Book, and probably the Surface Pro 4 as well.

EDIT 4 : The patches from https://bugzilla.kernel.org/show_bug.cgi?id=69661#c66 have now also been applied, which should improve wifi stability for anyone trying this on a Surface Pro or Surface Pro 2. Again, full details in GitHub, and the LiveCD link has been updated once more.

EDIT 5 : I have applied the touchscreen patch from https://bugzilla.kernel.org/show_bug.cgi?id=94281 in the hope that this may prevent the intermittent problems (where the touchscreen stops functioning properly) on the Surface Pro 3, and enable the touchscreen at all on the SP4 and SB. It's a bit of a shot in the dark though.

EDIT 6 : Now that Linux Mint 17.3 stable is out, I've performed the exact same steps (including the same patched kernel) to that image. So the link is now to the final full 17.3, rather than the RC1. I've tested it on my SP3 and everything works as expected.

EDIT 7 : Added in the patch for SP2 from https://bugzilla.kernel.org/show_bug.cgi?id=89211 to hopefully prevent repeated suspend after lid closure. This "fixes" suspend on the SP3, although I seem to have to close the lid twice for it to take effect after the first time.

EDIT 8: Updated the kernel from 3.19.0-32.37 to the more up-to-date 4.2.0-19.23, built directly from Ubuntu's source and then patched so that touch cover, button, camera work, and the fixes listed above are integrated. Also tidied up this post, as it was in a bit of a state!

EDIT 9: Another update, time for a new post as there's just too much to include here.. (the newest LiveCD link is still here though)

37 Upvotes

111 comments sorted by

4

u/tigerite Nov 21 '15

Just curious as to why people are downvoting this? If it's not working for anyone, please let me know, then maybe I can put it right (like I did for Bluetooth already).

2

u/sgmurga Nov 21 '15

I just up-voted it, I'm about to try your new build and really appreciate the work you put into this. Thanks and keep up the good work :-)

2

u/sgmurga Nov 20 '15

SP3 - Boot menu didn't a default/timer, so I had to plug a keyboard in. Then I found that Bluetooth didn't appear to work so I couldn't use my mouse.

Will try again later, any hints on what to look for around Bluetooth ?

And a side question, does the type cover work with Grub ?

3

u/tigerite Nov 20 '15

Hmm, that's odd about Bluetooth. I'll check this evening that the Marvell adapter for it is in the ISO image and if not, I'll add it and then reupload. It may be that I need to update the linux-firmware package as well. In the meantime you could try manually:

git clone git://git.marvell.com/mwifiex-firmware.git
sudo cp mwifiex-firmware/mrvl/* /lib/firmware/mrvl/

Please let me know if that works.

As for the type cover in Grub, it worked for me, as I could press Enter on the first selection. Strange that there was no default or timer though.

1

u/sgmurga Nov 20 '15

I was on battery, and for some reason the git download was not working on Wifi. I plugged in a USB Ethernet and it was fine.

Anyway, I did the above, but I assume that I have to modprobe the appropriate module ?

re: Grub, first line is selected by default, but there is no counter

Also, went to preferences "general" and set high-dpi, and then to "fonts" and set font scaling to 0.8 ... It's looks very nice right now :-)

2

u/tigerite Nov 20 '15 edited Nov 20 '15

I checked the iso image and the Marvell firmware is in /lib/firmware/mrvl already, but I'll upgrade the linux-firmware to 1.127.18 anyway (it's 1.127.16 on the default LiveCD), and add the script to power.d to force wifi power management off. That's the only surefire way I've found of having a wifi connection which isn't terrible.

As for modprobe I don't believe that should be necessary.. just service start bluetooth?

1

u/sgmurga Nov 20 '15

I got the following : "unrecognized service bluetooth"

2

u/tigerite Nov 20 '15

Sorry that should have been systemctl start bluetooth.. blame Friday afternoon.. ;) It may need systemctl enable bluetooth first, also.

EDIT: Actually the latter is to have it always-enabled at startup. So just the former should be fine.

1

u/sgmurga Nov 20 '15

Not sure it is using systemd as that didn't work either. I tried installing blueman as I remembered that Mint didn't have it by default, but that failed to enable the Bluetooth adapter also.

2

u/tigerite Nov 20 '15

Hi, LiveCD has now been updated, with Bluetooth fully functional and blueman installed for good measure ;)

2

u/a103928 Nov 24 '15 edited Nov 25 '15

I have a Surface Book (base model without the discrete GPU) and would be happy to give this a shot. I just tried booting and after the grub menu ended up with an error:

(initramfs) mount: mounting /dev/sda1 on /casper-rw-backing failed: Device or resource busy
mount: mounting /dev/loop0 on //filesystem.squashfs failed: No such device
Can not mount /dev/loop0 (/cdrom/casper/filesystem.squashfs) on //filesystem.squashfs

I have disabled Secure Boot and fast boot (which was necessary because I was getting an error about the drive being hibernated). Any ideas?

Update: Tried again to create the USB stick using Rufus and was able to boot. Keyboard, trackpad, and wifi work. Two finger scrolling and multitouch on the trackpad do not appear to work, nor does the touch screen or hardware buttons. Having tried once, disconnecting and reattaching the tablet portion works fine (though without the touch screen one can't interact with the tablet while it's disconnected).

1

u/tigerite Nov 24 '15

Hmm, I haven't come across that message before, /dev/sda1 is the EFI partition I believe? Are you trying to boot from a burned DVD because that seems to cause the second issue: http://ubuntuforums.org/showthread.php?t=1588547 .. I always use mkusb (as I like working from the command line, there are alternatives available though) to write to the SD card and boot from that. It could also be that you have a corrupted download?

1

u/a103928 Nov 25 '15

I was booting from a USB stick, but I tried it again (redownloaded and used Rufus from windows rather than usb-creator-kde from kubuntu) and successfully booted (updated my post above). Thanks for creating this LiveCD. Any thoughts on what is needed to get the touch screen working?

1

u/tigerite Nov 25 '15

That's great you got it to work and it boots up! The touchscreen is a tougher nut to crack.. I'm wondering if it's anything to do with this issue: https://bugzilla.kernel.org/show_bug.cgi?id=94281 Did you install the LiveCD, and if so, would you mind installing a new kernel if I rebuild with the patch from that link?

1

u/a103928 Nov 25 '15

I didn't install but I could and test the new kernel. I'd really like to get the touch screen working so I'd be happy to try things out.

1

u/tigerite Nov 25 '15 edited Nov 25 '15

If you don't mind downloading the entire ISO again, I compiled the kernel with the patch (I have also removed BFS) and built the LiveCD. I haven't tested it myself yet though.. https://drive.google.com/open?id=0B0E-zt0RT0Y_TTFhWGktdTdqa0k

Edit: the kernel runs fine on my SP3, touchscreen still works, so it hasn't done any harm at any rate ;) Edit 2: the main post has now been updated with this link.

1

u/a103928 Nov 25 '15

I made a new USB stick with this new image and booted it, but unfortunately still no touch screen support. dmesg and lsusb don't show anything related to one. On the plus side, it looks like multitouch on the trackpad does actually work. Not sure why it didn't seem to be working with the previous image. Two finger scrolling required manually enabling it with synclient.

1

u/tigerite Nov 26 '15

Ah, that's a shame about touchscreen, but it was always a long shot that this would make any difference. There's another bugzilla report for the Surface 3's touchscreen, but the patch for that is based on 4.3, and would take some serious backporting to 3.19.0-32. I'll search around and see if I can find anything else that might help.

At least multitouch works now, that's great :)

1

u/tigerite Nov 26 '15

I've been looking through the Windows driver packs for the Book and SP4 today, plus the latest Linux code (4.4rc2). There isn't support for all of the I2C identifiers in 3.19 unfortunately, they seem to be present in the latest but then there'll be problems with the graphics driver. There's a ton to back port so not sure that's feasible either..

1

u/a103928 Nov 27 '15

Interesting, so perhaps the 4.4 kernel would work? Maybe I will give that a shot in the coming week. I didn't experience any graphics issues during the brief time I booted from a Kubuntu 15.10 LiveCD.

1

u/tigerite Nov 27 '15

4.4 is still only in RC, and the trackpad needs to be patched in for the SP4 and SB, but you could certainly give it a try. I don't think I'll be able to set that as the default kernel in the LiveCD though - at least, it never worked with Mint 17.2..

1

u/[deleted] Nov 20 '15

I'm going to try this over the weekend with the 512/16/i7/dGPU version of the Surface Book.

The main thing I'll be doing differently though is trying to get the Windows bootloader to open grub instead of having grub in the MBR. That way I can encrypt Windows with Bitlocker still.

3

u/tigerite Nov 20 '15

Please download the newest version before you do, as I've just updated the link. Bluetooth is now fully functional and the latest i915 firmware is present by default (from the slightly more up-to-date linux firmware package I've installed).

1

u/sgmurga Nov 21 '15

Hey, tried installing a few times. With my brand new SF4 type cover. It would actually lock up for me at the last page of the install wizard right after entering my name. I tried removing the typecover and an SD card I had also, but it did not make any difference until I tried installing in compatibility mode. However doing that meant that for some reason it failed when installing Grub, so I booted back into the live CD and tried to install grub myself, to find out that the typecover was actually locking up quite a bit when trying to type normally (works fine under Windows). At the point I kinda gave up for the evening.

I might try your older image with the previous firmware again and see if it is different, as with the typecover I don't need bluetooth as badly right now.

2

u/tigerite Nov 21 '15 edited Nov 21 '15

Unfortunately I had to delete the old image, as Google Drive only give me 15Gb of storage. Funny you mention that about the type cover though, I had the same happen during install of Mint 17.2. It worked the second time though after a reboot. I haven't tried to actually install the OS from the new LiveCD as I'm afraid to break my working version, but it looks like they didn't fix that issue yet or maybe it's because it's only a beta release of 17.3. I've not experienced locking up of the type cover (standard SP3 edition) under normal operation though.

Edited to add, the old image had the same kernel anyway; the only difference is the added bluetooth firmware plus blueman installed by default, updated Linux-firmware package (which only has i915 and Atheros drivers different from the original), and the wifi power management fix so I really doubt there would have been any difference. I will try an install from the LiveCD to another partition later today if I get chance.

1

u/sgmurga Nov 21 '15

So I have been using Ubuntu mostly these days ... But that doesn't work with new type cover, so I booted into Windows and found that there was an actual firmware update out, applying the firmware update seems to have fixed the type-cover flakiness on Mint.

How I tried another install and it also failed when trying to install Grub :-(

Would disabling secure boot make a difference to the Grub installation ?

1

u/tigerite Nov 21 '15

I would try to disable Secure Boot for the installation process, it should be possible to re-enable afterwards. Secure Boot is a pain, I have to use rEFInd to 'bypass' it (using Shim and a MOK), but getting rEFInd installed in the first place is a work of art..

I'm glad you got the type cover working though :) and now you mention it, I also booted to Windows and installed a firmware update a couple of weeks ago so that is probably why it's more stable for me too.

1

u/tigerite Nov 21 '15 edited Nov 21 '15

I followed a lot of the instructions here when I originally set up, by the way - hope it might help you.. Naturally you can ignore the kernel and Marvell firmware stuff, that's all patched and ready on the LiveCD.

http://blog.davidelner.com/dual-booting-ubuntu-14-10-on-the-surface-pro-3/

If you need the kernel filename for the grub part near the bottom, it's vmlinuz-3.19.0-32-generic and the same for initrd.

1

u/sgmurga Nov 21 '15

I actually used @neoreeps Kernel to sort out the Ubuntu install : https://www.reddit.com/user/neoreeps When it updated Grub it picked also picked up my Mint install, and that seems to be working fine now too :-)

1

u/tigerite Nov 21 '15

Yep neoreeps has done some great work, it was his github that got me started on this whole adventure ;) and the patches he posted there (except the battery and sleep ones, I had to find those elsewhere) were the ones I backported to work with the Mint kernel. Great you got it to work, it was probably due to Ubuntu (and thus its grub loader) being officially signed by Canonical which Secure Boot "knows", whereas I don't think Mint's grub is signed, despite being based on Ubuntu.

1

u/[deleted] Nov 22 '15

Downloading the new image now. I'm going to use Rufus to make a bootable USB stick since the SB (and I) have no DVD drive.

1

u/tigerite Nov 22 '15

I used mkusb to do pretty much the same thing, but wrote the image to the SD card instead - I do have an external USB DVD drive but never use it;) would really like to know how you got on too; the boot environment is a little beyond me, you might need to do the grub tweaking mentioned in the article http://blog.davidelner.com/dual-booting-ubuntu-14-10-on-the-surface-pro-3/ (using 3.19.0-32-generic for vmlinuz and initrd) as I know Windows 10,to which I never upgraded,likes to take ownership of the MBR for itself.

1

u/[deleted] Nov 22 '15

Well Mint started to boot but the screen just kept flashing. Black 10 seconds flash of Mint wallpaper back to the 10 seconds of black repeat

I'd try the surface book without the keyboard attached but the only ports on the tablet section are headphone and the surface connector so that's out.

Kind of disappointing :(

1

u/tigerite Nov 22 '15

Really sorry to hear that.. sounds like a graphics problem? I can try to patch the kernel differently and revert the i915 changes, barring preliminary support and the BPO module. It won't be ready till tomorrow though, as it takes a good couple of hours to build the kernel the "Ubuntu-way" which the LiveCD needs.

1

u/[deleted] Nov 22 '15

Ok awesome. I'll have it with me tomorrow so I can definitely try it then. I never tried the original image so I don't know if it would have worked or not

1

u/tigerite Nov 22 '15

The kernel was the same in the original LiveCD I posted, so the issue would surely have been present there too. I'm quietly optimistic that reverting the patch will help, because nothing else graphics-related has been changed and hughkollas (without this patch, but with the backport i915 module, which I've included) had 3.19.0-31 working with his Surface Book, which is only one minor step back from the one I'm patching.

Unfortunately despite all my CPUs being virtually maxxed out on the compile at the moment, it's still going to take some time.. but at least making the LiveCD is relatively quick, compared to kernel compiling anyway!

1

u/[deleted] Nov 22 '15

Ah good to know. I may actually exchange my SB tomorrow for the non-dGPU model since the dGPU isn't enough to game on, so it's not worth the extra cost. I wonder if going dGPU free will make a difference in Linux compatibility

1

u/tigerite Nov 23 '15 edited Nov 23 '15

I'm not sure if the non-dGPU model still uses Skylake or not, if it does, the problem would probably still persist. At any rate, I've now uploaded the new LiveCD. I'll be making one further version later on today as apparently the wifi is not stable on the Surface Pro 2 with this kernel without the patches at https://bugzilla.kernel.org/show_bug.cgi?id=69661#c66 - these have now been applied and the kernel is building again. It shouldn't affect any other models though. Edit: Patched version is now up.

→ More replies (0)

1

u/tigerite Nov 22 '15

Actually having just looked at https://www.reddit.com/r/SurfaceLinux/comments/3qcqha/ubuntu_on_surface_book/ it seems the i915 patches made things worse on 4.3 with the Surface Book (black screen), although they only patch the new identifiers so I find it hard to believe they had that effect on their own. At any rate, I've reverted those and am now rebuilding.. I do wish there were some way to speed the process up ;)

0

u/[deleted] Nov 22 '15

[deleted]

1

u/[deleted] Nov 22 '15

I'll let you know. My only concern is being able to encrypt both sides. I'm not sure it these instructions will work because the SB is UEFI: http://stomp.colorado.edu/blog/blog/2011/12/05/on-dual-booting-tpm-linux-windows-and-bitlocker/

1

u/jantari Nov 23 '15

I can already tell you it's no problem to dualboot encrypted Wjndows 10 and UNENCRYPTED Arch-Linux. This is on a Surface Pro 3, but UEFI ut is.

1

u/[deleted] Nov 23 '15

Hmm there must be a way to encrypt both.

1

u/aera Nov 20 '15

On my SP3 I used BootNext to switch (the EFI feature where an OS can say which one to boot next time) - set up the partition, installed grub on that partition only, and then used the Windows "boot to device" menu to change over to that partition next time (shift+click restart is the easiest way to get there). I'd hope that still works on the SB, but haven't tried on mine yet.

1

u/[deleted] Nov 21 '15

Oh I'll give that a shot. Only EFI machines ice used before the SB were Macs and those are very good at booting how you want.

1

u/endJuser Nov 20 '15

It's impossible to chainload grub from the Windows efi Bootmanager. It was possible in good old Bios, though.

1

u/[deleted] Nov 21 '15

That's not good. I'd want both OS's encrypted. Maybe Linux will boot off an SD card to achieve that.

1

u/sgmurga Nov 22 '15

What DPI settings do you use for this ? I am trying HiDPI(double), and then offsetting the massiveness by down-scaling the fonts to 0.8 ... But it doesn't look quite right, is there a better way ?

1

u/tigerite Nov 22 '15

I use standard rather than double, and scale fonts by 1.3. Everything on cinnamon looks ok then, some things like a few Conky themes aren't quite perfect, but all in all it's pretty good at that setting for me.

1

u/widby Nov 24 '15

Will this be merged into the mainstream Linux Mint when it is final?

1

u/tigerite Nov 24 '15

I could ask, as I am a member of the beta tester group, but probably not as they normally use the stock Ubuntu ones. I'll make an up to date version of the LiveCD when it goes final, at any rate.

1

u/widby Nov 24 '15

Perhaps it can be transformed into a package that can be set up via a custom repository (PPA) ?

I suppose that making a spin-off distro involves some overhead, while keeping it as a separate entity might make it easier to get some form of endorsement from Clem et al?

1

u/tigerite Nov 24 '15

The thing is though that the next Mint release, in 6 months or so will be based on Ubuntu 16.04 LTS with a much more up-to-date kernel; the patches probably won't be required then, as they should have made their way into mainstream. So I'm not sure it's worth my creating a PPA etc for this one release?

1

u/widby Nov 25 '15

You're right.

1

u/tigerite Dec 01 '15

Thanks for the idea though :) anyway, ISO updated to the final 17.3, now it's stable!

1

u/zetsurin Nov 25 '15 edited Nov 25 '15

Thanks a lot for making this, will try out on my SP2 tonight.

EDIT: So far this works great on my i5 SP2! So if I was to install updates on this post-installation, provided it's not a kernel update, this should theoretically continue to work fine, right?

2

u/tigerite Nov 25 '15

Oh yes, updates are completely fine, I've applied several already on my live system. It shouldn't try to update the kernel automatically, as the original version on the LiveCD was ~14.04.1 which I changed to ~14.04.3 - but yes, don't select one manually! I'm really glad it works well on the SP2. I updated the main post link to a version which removes BFS and patches the touchscreen, but the original version is fine. You're welcome to update the kernel to this new version (links on GitHub) after installation if you want to (no need to re-download the whole ISO). It will replace it like-for-like, it's still 14.04.3.

1

u/zetsurin Dec 02 '15

Thanks, have been experimenting with a few kernels now including the official 4.3 which seems to also work fairly well on the SP2 now. However, I wanted to compare my suspend behaviour on my SP2. For me it will correctly suspend with the lid closed, but upon resuming all seems fine for about 10 seconds, then it decides to re-suspend again. If I press power it will come back to life again, only to suspend again after 10 seconds. This will just repeat until I reboot. Is that the same with your SP3? I've seen an issue of this nature being discussed on the Ubuntu issue tracker but it's going nowhere towards any sort of resolution it seems.

1

u/tigerite Dec 02 '15

Yes, almost all of the SP2 and most of the SP3 patches are in 4.3 except one of the wifi ones (it actually still isn't in 4.4 rc3 even). As for suspend, it doesn't work properly on my SP3 either unfortunately, although for me it suspends once when I close the lid, but then never does again. I don't get the behaviour you're describing, I can try on my wife's SP2 to see if it happens there though. I believe the cause is InstantGO not being supported yet in Linux?

1

u/zetsurin Dec 03 '15

This is the issue that someone else raised which describes the situation I see on the SP2. It appears towards the end that someone may have a patch to resolve it: https://bugzilla.kernel.org/show_bug.cgi?id=89211

Seems to be a little different to the SP3 behaviour you have as the darn SP2 keeps re-suspending anyway, so hard to tell if it ever responds to the second lid closing, but it sounds like this problem is due to the device thinking the lid is still closed. Given this is technically related to the lid state, I do wonder if it could improve your suspend behaviour on the SP3.

1

u/tigerite Dec 03 '15 edited Dec 03 '15

Thanks for the link, I will see what I can do about patching the kernel with that later today. Hopefully it will help!

Edit: I've patched the kernel, and uploaded the DEBs, unfortunately after building the LiveCD and starting the upload my connection went down. You can find the DEBs at https://drive.google.com/drive/folders/0B0E-zt0RT0Y_ZkktbXU4QUtIZUE

Edit 2: it does improve the suspend on the SP3, although I need to close the lid twice for it to do so after the first time. It might be Mint though, rather than the kernel, hard to tell.

1

u/zetsurin Dec 03 '15

Cheers for that. I'll try it on the SP2 and report back to see if it makes a difference as well.

1

u/cass00 Nov 26 '15

Regarding Edit 5: Does it improve the touchscreen performance on the SP3?

1

u/tigerite Nov 26 '15 edited Nov 26 '15

I haven't fully tested yet, so far the touchscreen hasn't stopped working, but I probably need to run it for several hours and several times over to say for certain.

Just wanted to edit to say, I have been purposefully using the touchscreen a ton this evening for a good couple of hours, rather than the trackpad and it hasn't stopped working once. I can't remember a time it would be so consistent in the past, sometimes I'd barely get 5 minutes before it cut out. Very promising so far.

1

u/nimoscar Dec 03 '15

Thank you for the great work! I'm going to try it on my SP1, hoping everything works, as you said. What about a link to the patched kernel only? I already have gnome-shell installed on ubuntu 14.04...would like to try to update just the kernel and see if it's enough to improve my machine's performance.

1

u/tigerite Dec 03 '15 edited Dec 03 '15

That's already present in my Gdrive, linked from my GitHub page:

https://drive.google.com/folderview?id=0B0E-zt0RT0Y_ZkktbXU4QUtIZUE&usp=sharing

(that's to the 3.19.0-32.37 kernel). It sounds like there are still issues with closing the lid and suspend though, I'll try to patch in the entry from https://bugzilla.kernel.org/show_bug.cgi?id=89211 and recompile later today.

EDIT: Compile complete, LiveCD and debs updated, and link modified ;)

1

u/nimoscar Dec 04 '15

thanks again. the kernel you compiled is awesome. everything works. I also tried a live usb made with the mint installation and it is very good as well. it only lacks, perhaps, of some scripts for autorotate or screen brightness, but you can easily find them here in this forum (user FreundTech has made something really good). in SP1 with ubuntu gnome 14.04 I was able manage multitouch via touchegg but how multitouch could be integrated in your mint liveCd? I especially missed a way to manage right click via touchscreen. has anyone had any idea of how to get it without using other programs? maybe some gnome 3.18 installation could do, but I have to stay with 14.04, that works better on SP1.

1

u/tigerite Dec 04 '15 edited Dec 07 '15

Thanks for the feedback, really appreciated :) as for the LiveCD, that's a great suggestion about the scripts, I should be able to implement those quite easily. As for touchegg, it looks like there are ways to make it work with Linux Mint - I'll investigate this weekend. It would be nice to have right-click possible from the touchscreen, I agree completely there. Will see what I can do :)

Edit: Ok, the new LiveCD has touchegg, plus its GUI (with some fixes by myself, as it wouldn't restart touchegg without them); onboard, for on-screen keyboard, docked to the bottom of the screen and with the Blackboard theme; redshift-gtk, because blue light is bad for sleep (the lat/long defaults to Greenwich though, so might not be very useful if you're not in the UK); the scripts from https://github.com/freundTech/surface-tools; and the auto-rotate script from https://github.com/AykoPoel/surface3-scripts (as FreundTech's aren't valid for the SP3). Plus a new kernel to hopefully fix the long-standing issue where the touchscreen stops working on the SP3 after a while. It's uploading now, will edit this post again when it's done, and the main post later once I've had chance to test it properly ;)

Edit 2: The upload is now complete, but I've taken the link down because I've missed a dependency for autorotate, so it doesn't start. I also messed up the autostart script for autorotate-SP3 so that needs redoing. And the touchscreen fix isn't working right, plus touchegg is interfering with menus on Mint. So a few things to fix, I'm afraid.

1

u/nimoscar Dec 08 '15

https://code.google.com/p/touchegg/issues/detail?id=98 here's a link that explains better what I mean: gestures don't work if there are no windows opened, but touch on menus works only with overview opened

1

u/tigerite Dec 08 '15

I'm not sure I completely understand about the "overview" bit, but it doesn't sound very user-friendly;) I might just remove the gestures from the "All" group, and try to add them specifically to nemo, as this then means menus work as expected (from my limited testing last evening, at least).

I found the dependencies for autorotate and autobacklight, so those should work when I re-make the LiveCD. Still working on the kernel for touchscreen with SP3; I've got a hunch about a possible fix, but it needs testing, which I can't do until this evening..

1

u/tigerite Dec 08 '15

You know, I've just downloaded the source from the Ubuntu version of touchegg, and realised it's missing a load of fixes, including the one you linked. I've now managed to compile it from the latest source (loosely following the instructions here: http://forums.linuxmint.com/viewtopic.php?f=42&t=128971 except using a symbolic link to the existing libgeis, rather than muck about with the installed libraries, and downloading the actual source from https://code.google.com/p/touchegg/source/browse/) - hopefully, this one works! Then there'll be no need for the "overview" or removal of the "All" group. Fingers crossed!

1

u/nimoscar Dec 08 '15

I hope hou will post a step by step totorial so I can compile touchegg in my gnome installation too!thanks again.

2

u/tigerite Dec 08 '15

Sure, that's straightforward-ish. First download the latest source via

svn checkout http://touchegg.googlecode.com/svn/touchegg/

(or, if you prefer git, via git clone https://github.com/JoseExposito/touchegg - the code is exactly the same).

Then:

sudo apt-get install build-essential libqt4-dev libx11-6 libxtst-dev
cd touchegg
qmake

Now, download the two .h files from https://www.dropbox.com/sh/xnpldgj1ont1x21/AAAiVw-Dx6ff7lBkTS5SOu8Qa/Touchegg/geis?dl=0 and:

sudo mkdir /usr/include/geis
sudo cp geis*.h /usr/include/geis
sudo ln -s /usr/lib/x86_64-linux-gnu/libgeis.so.1.3.0 /usr/lib/x86_64-linux-gnu/libgeis.so

Finally, cross fingers and:

make && sudo make install

That's it, you should now have the latest touchegg installed at /usr/bin/touchegg.

1

u/tigerite Dec 08 '15

Just to let you know, it works! The menus function correctly, even with the 'all' group and with no 'overview'. Unfortunately my touch screen fix for SP3 didn't work, but that's another story ;)

1

u/elarson006 Jan 31 '16

I was able to get the beta BFS on my surface book, dual booting with W10. It was working fine (minus the known issues). However, I turned on my book this morning, and am getting absurd screen flickering, every second or so, sometimes more.

Nothing has changed since the last time I used it (no screen flickering at all). Could a display driver be bonky?

1

u/tigerite Jan 31 '16

I actually just uploaded a new version of the 'Alpha' ISO, it has a whole new graphics stack (X.org 1.18.0) and the fixed BFS patched 4.4 kernel, based on drm-intel-nightly from a couple of weeks ago. I have also uploaded the script and debs to upgrade an existing Mint installation - please run the upgrade.sh and be sure to copy the folder structure as well, it's necessary to remove the -lts-vivid versions. If going this route, you should also install the new kernel debs and firmware deb.

1

u/rankitt1123 Feb 05 '16

Hi Tigerite, Can you please help me or tell me the step by step guide to upgrade it to your latest version as I already have installed your old ISO and now said you came out with new patch. How can i upgrade it to the latest one as in your old version Camera and Touthsceen doesnt work

1

u/tigerite Feb 06 '16

Hey, just so you don't think I am ignoring you! I'll see what I can do about a guide to upgrade. It's certainly possible, although there are quite a few new features. I'm not sure you should bother with the graphics stack though, it's quite complex and I'm planning on a PPA for that anyway. But, touchscreen and camera still don't work on the SP4 and SB; the kernel just doesn't support them yet I'm afraid.

1

u/rankitt1123 Feb 07 '16

ok no prob. Thank you so much.

1

u/tigerite Feb 19 '16

If you're interested in upgrading, I now have two PPAs for you! Firstly for the kernel, that's at ppa:tigerite/kernel and secondly for the graphics stack, which can be found at ppa:tigerite/mint-xorg-update. The instructions for the latter can be found if you follow the link. I'm also currently uploading the latest linux-firmware (1.156) to the kernel PPA, so that will be available shortly.

1

u/tigerite Jan 31 '16

Hopefully, you didn't follow the link in the last post to the Xorg drivers, as it wasn't completely perfect. I've tidied it up now as much as possible, so it gets libdrm from the repository, and uses the trusty versions (rather than vivid) of mesa-11.2, which are downloaded directly from the repository albeit with slightly modified control files (so that they replace the -lts-vivid versions).

1

u/elarson006 Jan 31 '16 edited Jan 31 '16

Thanks for the help. I ended up just fresh installing the alpha build since I had very little installed and set up. After the fresh install, still had screen flickering, so i tried installing the firmware deb linked above. No flickers so far! Nice to have helpful people like you around while I'm trying to learn this whole linux thing.

Edit: about an hour of use now, still some flickering once a minute or so. Not ideal, but can live with it. If I can help troubleshoot i'd be happy to assist with my limited knowledge

1

u/tigerite Jan 31 '16

Was that the original Alpha you downloaded previously? I'm actually in the midst of uploading the new version, which I created from the amended scripts and debs (shouldn't be much difference from the earlier version from this morning, but it has trusty-specific packages where possible rather than vivid, for the added repository; also apt-get update has only been called for that one repo, so cleaner). I also added the new Redshift GUI (replaces -gtk) and made it disabled by default. It should be done in less than an hour. I've also just checked but 1.155 is still the latest Xenial version for linux-firmware.

1

u/elarson006 Jan 31 '16 edited Feb 01 '16

the clean install i used just now was the alpha version from your live CD folder on drive. Looked like it was updated around 12 am MST. ill check back later to see if you get something new up tonight

edit: oh jeez looks like the alpha I used was from much earlier. Didn't realize that, when in the folder, it only says a time. Figured that it mean today since there was no date - going up a folder showed Jan 6th modified!

1

u/tigerite Feb 01 '16

That's a real bugbear of mine with Google Drive, the folder time never gets updated (unless I delete and recreate the folder, but then I'd have to change the links all the time), only the file times get modified. If you downloaded the Alpha I uploaded earlier yesterday, there probably won't be any difference from the later one, but it's worth a try. Are you using the discrete (NVIDIA) graphics on the Book, by the way, or the standard (Intel)? I only ask because the nouveau drivers aren't as up-to-date as the Intel ones, at least in terms of acceleration and integration with the newest kernel.

1

u/elarson006 Feb 02 '16

so I've tried the current alpha (downloaded twice to be sure). Running it as livecd off USB drive boots in to fallback mode. It asks to restart but just keeps going to fallback mode. I tried to install linux, but got an error with an installer crash. Back on the beta BFS version now, which is working fine again with no screen flickering - not sure what caused the screen flickering to begin with on that version.

1

u/tigerite Feb 02 '16

Sorry - I made a mistake with that alpha, with permissions for the packages I compiled and installed. I uploaded a new one today (modified date should be 2pm). That one definitely works, no fallback mode, however I forgot some libraries for RedshiftGUI. I've amended that so, if you are worried about Redshift, you may want to wait until I've uploaded - chances are you won't be, so you can just go with the current one. :)

1

u/elarson006 Feb 02 '16

no problem. Got the alpha, installed it just fine. Still screen flickering. It comes and goes in spurts - can't seem to figure out if there's something I'm doing that causes more flickering or not.
Maybe the drivers for the SB still ideal. I'll keep my eye on these forums to see if you or anyone get something more stable for SP4 and SB

1

u/tigerite Feb 02 '16

Thanks for trying and glad that it worked this time, at least! Hmm, that's a real shame about the flickering. I've updated everything I can, and Skylake was meant to be out of preliminary support as of kernel 4.3 with its associated stack, which this release has virtually every facet of, even down to the Cairo libraries. I could compile and upload a closer-to-stock 4.4 kernel, with only the patches required for the Surface 3 support, rather than the entire drm-intel tree? (Plus relevant type cover etc patches, BFS, BFQ, TuxOnIce and UKSM)

1

u/tigerite Feb 03 '16

Ok, I've built the latest Xenial linux source, with the patches for BFS, BFQ, TuxOnIce and UKSM. I would appreciate any Surface 3 people out there (who have installed any Alpha ISO) testing this kernel, as I've patched the minimum for MIPI support from the drm-intel-nightly branch. Here's the link to the packages.

→ More replies (0)

1

u/elarson006 Feb 01 '16

Thanks. Running the integrated Intel graphics

1

u/[deleted] Apr 04 '16 edited Apr 04 '16

Nice Work ! Confirming that your LiveCD (Linux Mint 17.3) works with "Surface Pro 4, i5, 8GB, 256 GB" !

Not working: Touchscreen/touchpen, cameras, Multitouch for Touchpad, (Normal functions OK), sleeping-options (buggy, better Shutdown after use)

Working: Typecover, hardware keys, bluetooth, wifi, brightness control, AC or battery recognition, fully supported original Microsoft Dock (LAN,double DP, Audio, 4 USB Ports)...

...and: Yes, it seems stable ! Iḿ working with it ( IT-Business, not only Writer and Calc !!! )

You save us so much time with patches and Kernel. Thank you !!!!!!!!!!!!!!

2

u/tigerite Apr 04 '16

Thanks very much for the feedback :) I take it you are using my latest release, not this one (which must be 6 months old by now?) as it's moved on considerably since then. My kernel PPA has actually run out of space at the moment, awaiting cleanup, then I'll be publishing a new version with some further power saving tweaks and several backports from 4.5 and even 4.6-rc. I doubt highly they will improve the current state of affairs on the SP4/SB/S3 (non Pro) regarding the touchscreen/pen and cameras, but I figure they can't hurt anyway..

1

u/nimoscar Dec 08 '15

Hi tigerite. don't you mind, you've made a great job, as usual. I think I can give you a hint about touchegg messing with menus. I've been using gnome on my sp1 for the last 2 years and soon realised that touchegg interferes with touchscreen in this way: it only works when the "overview" is opened. since mint has something in common with gnome, I tried to use touch on panel with the "overview" of mint opened and it worked correctly. No idea how to fix it. in gnome I associated a gesture for overview and run it all the time. double tap for right click works great, much better than under gnome shell, don't know why.

0

u/[deleted] Dec 08 '15

[deleted]

1

u/tigerite Dec 08 '15

Hmm, I haven't had that problem with the type cover not working at boot, but I use rEFInd rather than grub. Have you tried that, it's not quite as easy to install, and you have to re-sign the kernel every time you install a new one, but I much prefer it personally. Unfortunately the touchscreen doesn't work, due to a lack of drivers for the EFI, but the type cover is fine, even the function keys.

0

u/[deleted] Dec 08 '15

[deleted]

1

u/tigerite Dec 08 '15

I can't take any credit for the Mint distro, it is really slick and why I like it the most (I tried Ubuntu GNOME, even with cinnamon, but it just wasn't as good) - plus it's based on 14.04 which, as an LTS, is pretty rock-solid stable. I have run in a fair few patches to the kernel, all Surface related, some backported too which was the biggest pain by far. I've mostly been focussing on the default applications the last few days, along with trying to get the touchscreen to not stop working on the SP3, such as onboard, touchegg, autorotate, and autobacklight along with blueman. Those should hopefully make Mint more touch-friendly.

1

u/tigerite Dec 08 '15

Actually I've just thought, the decent speed despite it running from the SD may be down to the BFQ I/O scheduler (which sadly isn't in mainline). I patched it in because it knocks the socks off the other schedulers, especially for SSD.