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

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

Get Connected

Discord Server

New Threads

Latest From Blog

Top