jibsaramnim / gpd-pocket2-hackintosh

Clover configuration and required/related Kexts to run macOS on your GPD Pocket 2.
74 stars 18 forks source link

Touchscreen support #8

Closed lazd closed 2 years ago

lazd commented 4 years ago

I wrote a driver for the Goodix touchscreen, VoodooI2CGoodix and it's working nicely on my Chuwi MiniBook 8. Given that the GPD Pocket 2 has a Goodix touchscreen, I think it might work for the GPD Pocket 2 also.

See the README for installation, usage, and support information, and head over to releases to download the kext.

Give the kext a try and see if it works for your Pocket 2! You will need VoodooI2C.kext 2.3.

jibsaramnim commented 4 years ago

Oh man, this is amazing! I wish I still had the P2 so I could try this myself.

Are you running macOS on your Minibook as your main OS? Do you have more information available on this anywhere? I would love to read more about it. As I mentioned, I don't have the P2 anymore, but I would love to get a similar (albeit slightly larger, 7" is very pocketable but not very productive) sometime in the future and I haven't been able to see too many reviews or even just people talking about their MiniBooks, so anything you can share would be most appreciated!

Edit: I found this repository, it might be useful to add an issue there (too) as it's already specific for the Chuwi Minibook. It seems like quite a lot is supported already with the Minibook. Is the M.2 slot on the Minibook NVMe spec? Or does the Minibook do something special with the slot if it's eMMC? As macOS does not have any support for eMMC, which was causing issues with the P2 as-well. Is the microSD reader in yours working? That seems to be an issue the person who made this repository has, at least based on their README. https://github.com/THEDEVIOUS1/CHUWI-MINIBOOK-HACKINTOSH

glowingkitty commented 4 years ago

I got my GPD pocket 2 about a week ago - and I love it! And while the 7 inch format isn’t perfect all the time, in combination with my portable 15” 4K USB-C Display and my Bluetooth Keyboard and mouse - I can use the GPD pocket 2 like a regular laptop :D for me it replaced my MacBook Pro 15”. And yes, sometimes the performance is a bit annoying, but I am happy with it 90-95% of the time. However I had to adapt to windows again, since MacOS will all its limitations (no eMMC support, no WiFi, no sleep and awake) is too much of an experiment and i wanted something more stable to work with. But if those driver issues would be fixed... omg yes I would totally install macOS on it instead ^.^

lazd commented 4 years ago

@hellodeibu hey, glad to hear from you -- your blog post and efforts in this repo served as the impetus for my exploration into my own MacBook Nano!

Like you saw, @THEDEVIOUS1 has an excellent repo for the Chuwi MiniBook that gets up most of the way there. Once I found that, it was game on and I set to work on VoodooI2CGoodix to get the touch screen working. With some DSDT patching and a little help from the VoodooI2C team, I got it working nicely! I just shipped a version that I consider complete (for now), including tap-and-hold to right click, stylus support, and working multitouch. It's confirmed working on the GPD P2 Max, and of course, the Chuwi MiniBook. It's a dream to use, with Mission Control gestures and right clicking cementing the experience. I find myself fruitlessly poking my MacBook Pro all the time now.

As for your questions, I have macOS installed on a NVMe drive and Windows on the eMMC. The microSD reader won't work on the MiniBook, as mentioned. We're currently grappling with making fan control work from a cold boot (it works fine with a warm boot from Windows), there are a couple Bluetooth issues, and it seems the EC on this is buggy (which means battery status issues), but overall, it's a great little machine.

glowingkitty commented 4 years ago

So how can we install now the touchscreen driver for a GPD Pocket 2 hackintosh?:)

THEDEVIOUS1 commented 4 years ago

So how can we install now the touchscreen driver for a GPD Pocket 2 hackintosh?:)

u will likely need a modded dsdt which i dont mind my doing for u especially if u dont mind helping me out in return by doing a fan test for me...lol. here goes an experimental efi but please keep in mind some things may work right or it may not boot at all but hopefully brightness is fixed, battery & lid sleep are working and touch is too...i will send another version using the actual pocket file later gpd-pocket2-hackintosh-touchtest.zip

edit....if that doesnt work then replace the dsdt in acpi/patched with this one below(use same folder from above) DSDT.aml.zip

glowingkitty commented 4 years ago

Using the files in the touchtest.zip (after changing in Clover Configurator the Serial Num & UUID) didn't boot (endless Apple booting screen).

Copying the file from the DSDT zip made it boot again - but nothing improved in comparison to before. Touchscreen doesn't work, brightness & loudness buttons still don't work, sleep & awake don't work.

THEDEVIOUS1 commented 4 years ago

oh...its the brightness buttons that dont work?(reading the readme it seemed like the slider was broken). just to be clear i dont own the device and thats one of the few things that has to be probed to figured out the codes for the keys...to be more specific are u saying that LID sleep didnt work?(it takes a while/maybe a minute to actually start "snoring" sometimes...lol) if not then that may be tied to the fact that the battery status is broken...im sure i probably just missed a patch for touch since its been a minute but i wonder is this the same issue like the win2 where the touchscreen was missed named on some versions

glowingkitty commented 4 years ago

the GPD pocket goes to sleep, yes. But when waking up the internal screen stays black and only the backlight is on. Connecting an external display in that case still shows an image on the external display and the external display can be used normally - but the internal screen stays black (up to the next reboot). also:

THEDEVIOUS1 commented 4 years ago

i will probably only be replying in this issue but a few of these things cn definitely be fixed...if u have any darkwake boot flags remove those and see if it fixes black screen after sleep(may have to find the right one or dig deeper on this though). i will supply u with a debug dsdt in order to figure out the keyboard button codes when i can....4k is a step by step fix thats gonna require a modded/unlocked bios(easy way) OR a lil patience for the modded grub method(harder way). @hellodeibu dont know if u want to add me as a collaborator but i feel like we might be able to fix at least a few of these problems...thats if @marcoEDU wants to work with me to do so

jibsaramnim commented 4 years ago

@THEDEVIOUS1 I've sent you an invite to become a collaborator. Anything to get the P2 and related devices to get as close to 100% Hackintoshable as possible is great news in my book! :D

glowingkitty commented 4 years ago

I would be happy to collaborate on this. Although I just started to get into hackintosh, so I am still relatively new to this. The dark wake flag can be changed in the config I assume? Also - it seem others had success with different values on different systems (https://www.reddit.com/r/hackintosh/comments/2t09fb/what_do_darkwakeno_and_darkwake010_do_for_you/). But you suggest removing the values if they exist?

EDIT: I just removed the darkwake=0 from the config - didn't change anything.

THEDEVIOUS1 commented 4 years ago

which means we will need to find the right number but its not needed on the gpd win2 or the p2 max so i assume it isnt on the pocket 2 either...if i cant find an unlocked(or any) version of your bios then i will need u to send me a backup of yours(wil walk u through it). for now...while im working on making a debug dsdt and finding other files i want u to try the minibook folder as-is since the pocket 2 efi will start on our device untouched (may need a change or 2 to actually boot but worked on win2 without modifications)

CHUWI-MINIBOOK-HACKINTOSH-master (16).zip

@hellodeibu thx...i think we are all in agreement which is why @balopez and @azkali and i have been trying to work together

glowingkitty commented 4 years ago

download link doesn't work - file not found.

THEDEVIOUS1 commented 4 years ago

https://github.com/THEDEVIOUS1/CHUWI-MINIBOOK-HACKINTOSH of course dont attempt to flash our bios...lol

glowingkitty commented 4 years ago

I just replaced the EFI folder on my GPD P2 with the EFI folder of the CHUWI MINIBOOK folder, but in the boot devices selector I wasn't able to select the SSD where I have my MacOS and EFI installed on - it just reloaded the menu instead. Some files missing? Do i need to leave the boot folder as well in the EFI folder?

THEDEVIOUS1 commented 4 years ago

sorry...thought u were familiar with the swap process but only change the clover folder

glowingkitty commented 4 years ago

Just tested it with the clover folder swapped. It boots and connecting it to an external display also works fine. But the internal display goes completely black after the Mac OS boot screen is finished. Weird...

THEDEVIOUS1 commented 4 years ago

not that weird actually...lol. need to add your edid to the config file...do u know how?

glowingkitty commented 4 years ago

Edit what specifically in the config file?:) and yeah I know how to edit the file. And partially understand what the different parts in the config do.

THEDEVIOUS1 commented 4 years ago

actually...i forgot u guys have a separate file to handle the edid so just try this clover folder instead

CLOVER.zip

glowingkitty commented 4 years ago

The GPD 2 hackintosh files but with the clover folder in the zip? Well that didn’t work. After the initial apple boot loading screen I only get this... A2955ACF-6541-4F22-9486-B833EABB8D2C

THEDEVIOUS1 commented 4 years ago

not sure what happened here but lets do it this way...use the folder from my repo that worked earlier (but gave u the blank screen) and only add the Display-756e6b6-717 file from the pocket 2 efi to kexts/other

glowingkitty commented 4 years ago

Still the same issue - the internal display gets turned off completely

THEDEVIOUS1 commented 4 years ago

CLOVER2.zip just keep in mind...all youre doing is deleting your clover and replacing with mine. try this one though...trying not to hav eto fool with battery patches and stuff at the moment but if this wont work then not too many choices i guess. if this doesnt get it then swap the dsdt acpi/patched with the one from the pocket 2 folder...one of those ways should work but if not then will be back with the diangostic dsdt and do this the harder way then

glowingkitty commented 4 years ago

Hell yess you are awesome! Booting works, internal display works, sleep and awake works!!!!! The brightness buttons work (but in the wrong order, the brightness up button turns brightness down and vise versa). What doesn’t work: the loudness buttons, the touchscreen, recognizing a 4K display as a 4K display.

Guess I can also give it a try to upgrade on Catalina - should that work as well? And how about FileVault encryption? Any extra drivers needed?

THEDEVIOUS1 commented 4 years ago

whoa whoa...slow down buddy. lol..just joking. glad u got it...first did u use the folder or insert the file? loudness buttons will still need the diag dsdt seems like...can take a educated guess or 2 about whats wrong with the touchscreen but got a good idea. i can tell u how to get 4k working but will take a few steps...for the time being see if power button sleep works at all and more than once in a row if it does and also check brightness buttons after sleep because they break on our device

THEDEVIOUS1 commented 4 years ago

we're gonna use this app to backup your bios...let me know when u are in windows with it open(this will get 4k going)

glowingkitty commented 4 years ago

“This App”? Which app? And not sure what you mean with “in windows with it”. You mean I have to boot into windows 10 first and use a specific app?

glowingkitty commented 4 years ago

Closing the laptop doesn’t make it sleep. (Can you fix that?) But pressing sleep via Mac OS does - after maybe 10 seconds. The brightness buttons seem to work fine after waking up. Can tell you in a few hours if the sleep/awake also works after hours of sleeping.

THEDEVIOUS1 commented 4 years ago

https://drive.google.com/open?id=1bDwKTo4r9D829_WpH4yIShawDyp4ENtW

THEDEVIOUS1 commented 4 years ago

open the file AFUWINGUIx64.EXE within the bios/afuwin64 folder...u need to be on windows though so let when youre ready. i still need to know what method u used...did u use the clover folder at the top of the post OR did u replace the dsdt? (right now...this the most important question as far as fixing lid sleep and touch etc)

glowingkitty commented 4 years ago

I only used the clover folder from the CLOVER2.zip.

so, i just woke up (greets from Berlin, Germany by the way). Had the laptop connected to power overnight and when i unplugged it from power I noticed the laptop was running and warm. So at some point it woke up and didn't go to sleep again. Power Nap while connected to power is enabled in the enery saver settings. Maybe that's the reason. Also: after disconnecting the charger the battery status of MacOS still tells me the batterry is currently being charged. So the battery status checker also doesn't work.

glowingkitty commented 4 years ago

Also I just noticed... sound doesn't work anymore on macOs. But the microphone does work.

THEDEVIOUS1 commented 4 years ago

it takes anywhere from a while to a LONG time to update after being plugged & unplugged....im sure theres a fix for that but we havent had much time to focus on figuring it out. with that said...since u used the folder then lid sleep SHOULD be already working. i still need to create the diag dsdt....for thetime being we can be making a bios backup and getting 4k going. sound should be easy....give me a minute on that

glowingkitty commented 4 years ago

by the way an issue I had with every hackintosh config so far - the display color profile cannot be changed it seems. Whenever I select a different color profile it goes back to this overly bright color profile after just a few seconds.

So I will switch to windows now and open the bios updater, right?

THEDEVIOUS1 commented 4 years ago

yes...afuwinguix64 and simply hit save(dont change any settings...name it whatever u want then upload here)

glowingkitty commented 4 years ago

Here you go. afuwin.zip

THEDEVIOUS1 commented 4 years ago

thx...so here's how this is gonna go. u will startup the clover boot screen then go select shell(tools?). once there...u will type "setup_var_3 0x83F 0x2" (without the quotations) then hit enter. typing exit afterwards may get u back to the previous screen but if not just reboot then select the config4k.plist(or go ahead and rename it to config.plist now and it will auto start using it as usual)

glowingkitty commented 4 years ago

and what should be improved with that command? what impact is it supposed to have?

THEDEVIOUS1 commented 4 years ago

good question...that increases the dvmt to 64mb so u can now enable 4k

THEDEVIOUS1 commented 4 years ago

actually...i got another folder for u with the fixed sound so i can go ahead and rename the config too i guess., plus i just thought about it...your 4k file is missing the edid still since i didnt change both so u will need to swap folders again anyway basically

THEDEVIOUS1 commented 4 years ago

DONT WORRY ABOUT RENAMING OR SELECTING THE CONFIG4K.PLIST...its already done and sound should be back. please keep in mind...this will not boot until u have successfully set the dvmt with the command above(if u need to get in before then go select configOG at the clover boot screen)

CLOVER4.zip

glowingkitty commented 4 years ago

C3A4D0E6-8AD2-4DE5-B04F-FEA26F68607F The command failed

THEDEVIOUS1 commented 4 years ago

trust me...it worked. better yet...try the folder i just posted with your external monitor now(see the middle part saying succesful....thats the only thing that matters)

glowingkitty commented 4 years ago

also... its weird how notably the screen is flickering. Despite that it should be on 60hz.

THEDEVIOUS1 commented 4 years ago

as far as i know...we can only do 4k at 30 hz on our chipset but i may be mistaken

glowingkitty commented 4 years ago

I was referring to the internal display - the internal display is flickering on Mac OS. Not suuuuper strong but still it’s possible to notice it and doesn’t happen with windows.

glowingkitty commented 4 years ago

And the new clover folder gives me again the circle... 503AF0F8-8D9E-42FB-8F33-A02A4DC48738

THEDEVIOUS1 commented 4 years ago

oh yeah...it seems to only do the flickering sometimes but havent ever pin pointed the pattern though. so...success yet? (edit...nope) theres gotta be something weird youre doing when u replace but it may be my fault...swap back to the clover2 folder and add voodoohda from kext/other and replace the config.plist with the one from clover4 i guess

glowingkitty commented 4 years ago

Not sure what exactly you mean... your message is a bit confusing / unclear ^^