GearLock-Package Android-x86 kernel for Microsoft Surface, based on linux-surface patches

HMTheBoy154

Supreme
Moderator
Blog Author
IMG_20210101_120316.jpg


There are a lot of people asking about Microsoft Surface support for Android-x86 OSes like PhoenixOS Darkmatter or BlissOS. So I decided to compile some separate version for them, using patches from linux-surface team.

There are 2 version I ported so far : benares (4.19.x) and pledge (5.10.x). I port 4.19.x too for people who want to use the old ipts driver.

1. Benares (4.19.x) :

bernares-pos.jpg


- Same source and config as normal one, but with additional patches from linux-surface.
- No external modules, just the one provided by linux-surface.

Download Link


2. Pledge (5.10.x)

pledge.jpg


- Same source and config as normal one, but with additional patches from linux-surface.
- No external modules, just the one provided by linux-surface.
- To make touchscreen work you'll need to install this daemon : iptsd

Download Link


* Credit :
- @LegacyGamerHD and @TheLonelyPotato for testing.
- linux-surface team for the patches, the drivers and iptsd.
 
Last edited:

yagay

New member
VC
2
after install iptsd can you try to run it on terminal ?
and by the way which OS are you using ?
how to run iptsd in boot??if not ,it"s really annoyed to run it in terminal every time after boot ,and cant close terminal
Post automatically merged:

kernel 5.10.10, google service fc
 
Last edited:

VirtalPeguin

New member
VC
2
I'm on a Surface Book 1 13.5" and I tried Pledge and installed IPTS and touch does not work.
Touch seems to work only sometimes on Benares. Stylus also didn't work for me on Benares.
 
Last edited:

iCAROS7

New member
VC
6
On my Surface Pro 4 i5 model,

On Intel generic build,
BlissOS 11.14 Pledge - > didn't work / Only Stylus work
BlissOS 11.13/14 Benares - > Working / Stylus um... I can use only at landscape.

AG-9,10,11 Pledge/Benares - > Didn't work

Thx for working ny Touchscreen working after 10min...! Jakeday's patches arr stuck after 10 min...

- Camera not working
- Auto-brightness not working
- Battery management is too late to refresh
 

AfternoonMatcha

New member
VC
8
My device is: surface Pro 5 (2017) 6300u 4 + 128G

After installing Benares (4.19. X), the touch screen and stylus work normally. The only bug is that the audio is slowed down when playing the audio, which is equivalent to turning on the same feeling of 0.5x. One second of audio plays for more than one second. At the same time, the tone becomes lower. Playing female voice sounds more like male voice. This is a fatal bug for music games.

After installing pledge (5.10. X), and then installing iptsd (0.31 and 0.4 versions have been tried), the stylus works normally, the touch screen needs to execute the command "iptsd" in the gearlock command line window of ALT + F1 to work, and it needs to manually re-enter this command to start the touch screen every time it starts. At the same time, the noise of sensor information obtained by iptsd is too large, which makes the touch screen easy to break, almost unable to use.
After installing pledge (5.10. X) or not installing or uninstalling Benares (4.19. X) and pledge (5.10. X), when playing audio, the audio is slowed down and the bug disappears. At this time, the audio works normally.

Benares (4.19. X) seems to be perfect for the touch screen of surface Pro 5. I hope that we can repair the bug of slow audio playback on Pro 5 as soon as possible, or give corresponding solutions. Surface Pro 5 users will not have the above problems when using bliss OS 11.10 and 11.11, But 11.13 and above must solve the problem that the touch screen cannot be used by installing a kernel similar to that provided here. If you need to debug the surface Pro 5, I have this device here to help you debug to solve the bug. be deeply grateful.
Post automatically merged:

After installing Benares (4.19. X), the bug of slow audio playback is likely to be solved after each restart, but the new frequency is still very high. I will continue to test the functions of Benares (4.19. X) on surface Pro 5 bliss OS 11.13.
 
Last edited:

MrMiy4mo

Well-known member
My device is: surface Pro 5 (2017) 6300u 4 + 128G

After installing Benares (4.19. X), the touch screen and stylus work normally. The only bug is that the audio is slowed down when playing the audio, which is equivalent to turning on the same feeling of 0.5x. One second of audio plays for more than one second. At the same time, the tone becomes lower. Playing female voice sounds more like male voice. This is a fatal bug for music games.

After installing pledge (5.10. X), and then installing iptsd (0.31 and 0.4 versions have been tried), the stylus works normally, the touch screen needs to execute the command "iptsd" in the gearlock command line window of ALT + F1 to work, and it needs to manually re-enter this command to start the touch screen every time it starts. At the same time, the noise of sensor information obtained by iptsd is too large, which makes the touch screen easy to break, almost unable to use.
After installing pledge (5.10. X) or not installing or uninstalling Benares (4.19. X) and pledge (5.10. X), when playing audio, the audio is slowed down and the bug disappears. At this time, the audio works normally.

Benares (4.19. X) seems to be perfect for the touch screen of surface Pro 5. I hope that we can repair the bug of slow audio playback on Pro 5 as soon as possible, or give corresponding solutions. Surface Pro 5 users will not have the above problems when using bliss OS 11.10 and 11.11, But 11.13 and above must solve the problem that the touch screen cannot be used by installing a kernel similar to that provided here. If you need to debug the surface Pro 5, I have this device here to help you debug to solve the bug. be deeply grateful.
Post automatically merged:

After installing Benares (4.19. X), the bug of slow audio playback is likely to be solved after each restart, but the new frequency is still very high. I will continue to test the functions of Benares (4.19. X) on surface Pro 5 bliss OS 11.13.
Can you try disabling gearlock bootsound?
It is cause low picth sound on my laptop, especially when sounds play in android while gearlock sound playing.
 

AfternoonMatcha

New member
VC
8
Can you try disabling gearlock bootsound?
It is cause low picth sound on my laptop, especially when sounds play in android while gearlock sound playing.
Gearlock has bootsound? I know that sometimes when bliss OS 11.13 enters the lock screen after boot, there will be a very loud mechanical boot sound by default. I don't know if it's from gearlock or bliss OS. Also, how do you turn off the sound?
 

iCAROS7

New member
VC
6
Can you try disabling gearlock bootsound?
It is cause low picth sound on my laptop, especially when sounds play in android while gearlock sound playing.
Gearlock has bootsound? I know that sometimes when bliss OS 11.13 enters the lock screen after boot, there will be a very loud mechanical boot sound by default. I don't know if it's from gearlock or bliss OS. Also, how do you turn off the sound?

You can disable boot sound with follow steps.

1. Go to everywhere you can access your ext4 partition
1-1. gearlock recovery mode & file manager or terminal emulation
1-2. boot other operation system like linux or windows with ext4 mount application
2. Copy 'gearlock' file in /gaerlock/gearroot/ or /android partition/your rom/ to other location where you can access!
3. That is cpio file. Just rename 'gearlock' to 'gearlock.cpio' and you can extract with cpio like a ramdisk (cpio built-in every linux system or use wsl in windows)
4. Find 'gearlock/etc/bootsound.wav'
5. Atfer delete that file & re archive with cpio
6. Override 'gearlock' file to new one.



FYI, https://hvera.wordpress.com/2010/10/19/step-by-step-to-createmodify-ramdisk-img/

It's need to each other rom, kernel and environment.

+ Oh after this step, you can't use gearlock menu on normally boot mode. Only can use on recovery mode!
However, all pre-stored functions such as kernel patches will work.


Post automatically merged:

My device is: surface Pro 5 (2017) 6300u 4 + 128G

After installing Benares (4.19. X), the touch screen and stylus work normally. The only bug is that the audio is slowed down when playing the audio, which is equivalent to turning on the same feeling of 0.5x. One second of audio plays for more than one second. At the same time, the tone becomes lower. Playing female voice sounds more like male voice. This is a fatal bug for music games.

After installing pledge (5.10. X), and then installing iptsd (0.31 and 0.4 versions have been tried), the stylus works normally, the touch screen needs to execute the command "iptsd" in the gearlock command line window of ALT + F1 to work, and it needs to manually re-enter this command to start the touch screen every time it starts. At the same time, the noise of sensor information obtained by iptsd is too large, which makes the touch screen easy to break, almost unable to use.
After installing pledge (5.10. X) or not installing or uninstalling Benares (4.19. X) and pledge (5.10. X), when playing audio, the audio is slowed down and the bug disappears. At this time, the audio works normally.

Benares (4.19. X) seems to be perfect for the touch screen of surface Pro 5. I hope that we can repair the bug of slow audio playback on Pro 5 as soon as possible, or give corresponding solutions. Surface Pro 5 users will not have the above problems when using bliss OS 11.10 and 11.11, But 11.13 and above must solve the problem that the touch screen cannot be used by installing a kernel similar to that provided here. If you need to debug the surface Pro 5, I have this device here to help you debug to solve the bug. be deeply grateful.
Post automatically merged:

After installing Benares (4.19. X), the bug of slow audio playback is likely to be solved after each restart, but the new frequency is still very high. I will continue to test the functions of Benares (4.19. X) on surface Pro 5 bliss OS 11.13.
Thank you for your information. I think it would be helpful to insert 'ipstd' command in init.rc on ramdisk or use tasker on your android :)

In my case, It's perfectly working with Benares (4.19) at every android 10 rom based on Android Generic.
I recommend for you, test in Android Generic rom!

But I didn't test about Pledge (5.10) with 'ipstd' command.
 
Last edited:

AfternoonMatcha

New member
VC
8
Thank's for your detailed reply:D

It seems that if you delete 'gearlock / etc / bootsound. wav' to turn off the boot tone and try to solve the audio playback BUG, this is really not a good way, because according to your description, it seems that you can no longer use 'gearlock' in the normal way.

The latest stable version with GMS provided by bliss OS official website is only 11.13 (Android 9.0). Android 10.0 and higher, bliss OS official does not recommend daily use, may not be very stable (although the "stable version" is not very stable)

So, I don't know if I should change the version now? Or continue with the current version? Repeat boot sometimes audio bug will disappear temporarily.

What I used before: the surface special edition 11.10 provided by bliss OS is very stable, but it does not support "arm compatibility", so some applications cannot be installed. I don't know why bliss OS no longer provides a special page for surface. They just link to this post on their official website.
You can disable boot sound with follow steps.

1. Go to everywhere you can access your ext4 partition
1-1. gearlock recovery mode & file manager or terminal emulation
1-2. boot other operation system like linux or windows with ext4 mount application
2. Copy 'gearlock' file in /gaerlock/gearroot/ or /android partition/your rom/ to other location where you can access!
3. That is cpio file. Just rename 'gearlock' to 'gearlock.cpio' and you can extract with cpio like a ramdisk (cpio built-in every linux system or use wsl in windows)
4. Find 'gearlock/etc/bootsound.wav'
5. Atfer delete that file & re archive with cpio
6. Override 'gearlock' file to new one.



FYI, https://hvera.wordpress.com/2010/10/19/step-by-step-to-createmodify-ramdisk-img/

It's need to each other rom, kernel and environment.

+ Oh after this step, you can't use gearlock menu on normally boot mode. Only can use on recovery mode!
However, all pre-stored functions such as kernel patches will work.


Post automatically merged:


Thank you for your information. I think it would be helpful to insert 'ipstd' command in init.rc on ramdisk or use tasker on your android :)

In my case, It's perfectly working with Benares (4.19) at every android 10 rom based on Android Generic.
I recommend for you, test in Android Generic rom!

But I didn't test about Pledge (5.10) with 'ipstd' command.
Post automatically merged:

Got it! It looks safer. I'll try it right away. :D
WTF you did, gearlock just provide enable/disable option. K_K
@iCAROS7 @AfternoonMatcha
 
Last edited:

AfternoonMatcha

New member
VC
8
WTF you did, gearlock just provide enable/disable option. K_K
@iCAROS7 @AfternoonMatcha
It really works! After turning off the start-up sound of Gearlock, my Surface Pro 5 has been running bliss OS 11.13 stably for one month without any sound delay bug! Thank you very much 😀 !!!
Post automatically merged:

Indeed, it's the same on my side. Maybe for the hardware driver of surface Pro 5, it is not included. I installed FydeOS official version of surface Pro 5 optimization and found that the physical keys work normally, indicating that it should be feasible to solve this problem.
Hello, tested on Surface 2017, Bliss OS & Android X86
touchscreen is ok, but power and volume button do not work
 
Last edited:

zhengfan2016

New member
VC
6
Hi, I have a problem in kernel 5.8.0 compilation, the kernel 5.8.0 can't start android-x86, infinite reboot, what is the .config configuration of your kernel compilation?

os: lineageos 17.1
kernel:5.8.0
 

TheLegendGamR

New member
VC
2
Has anyone got this working in a stable state in 2022? I'm genuinely amazed that for a device that is super mainstream, there is no official support and incomplete unofficial support.

I ended up installing the 4.19 kernel on Bliss OS 11.13 but the firmware update broke my windows 11 install and I had to completely reinstall that and all the firmware for the Surface.

Even when the touchscreen worked (which it did on 11.13 despite what previous comments are saying), none of the hardware buttons such as the power and volume rocker are working.

Is there no one that has a better solution for this? Could someone recompile the surface-linux drivers for Bliss OS 11.13 specifically again or could the main Devs merge the drivers/ firmware directly in with the main build? I'm really surprised by how little attention this recieves on mainstream Surface devices.. anyway if there are any further solutions please reply to this.
 

Xtr

Well-known member
Has anyone got this working in a stable state in 2022? I'm genuinely amazed that for a device that is super mainstream, there is no official support and incomplete unofficial support.

I ended up installing the 4.19 kernel on Bliss OS 11.13 but the firmware update broke my windows 11 install and I had to completely reinstall that and all the firmware for the Surface.

Even when the touchscreen worked (which it did on 11.13 despite what previous comments are saying), none of the hardware buttons such as the power and volume rocker are working.

Is there no one that has a better solution for this? Could someone recompile the surface-linux drivers for Bliss OS 11.13 specifically again or could the main Devs merge the drivers/ firmware directly in with the main build? I'm really surprised by how little attention this recieves on mainstream Surface devices.. anyway if there are any further solutions please reply to this.
According to Bliss OS developer, IPTS builds don't work properly on other devices
 

Similar threads

Similar threads

Get Connected

Discord Server

New Threads

Top