sebanc / brunch

Boot ChromeOS on x86_64 PC - Supports Intel CPU/GPU from 8th gen or AMD Ryzen
GNU General Public License v3.0
3.56k stars 388 forks source link

HP Spectre X2 (2015,skylake) support #263

Open daemongloom opened 4 years ago

daemongloom commented 4 years ago

HP Spectre X2 12-a000 series. CPU: Intel® Core™ M5-6Y30 Using r83 (with custom kernel) and rammus recovery image.

Volume and power buttons require intel-hid patch. I've attached it for r83 branch. 0001-Fix-power-and-volume-buttons-on-HP-Spectre-X2.txt One of back cameras works (maximum available resolution is 2.1MP, should be 8MP), front one doesn't. Back camera is shown as front-facing in default Camera app. Suspend leaves keyboard backlight on in both usual and suspend_s3 modes. Backlight turns off after 15 minutes of suspend. Switching to tablet mode (via detaching keyboard or folding it to the back of tablet) works, automatic rotation works.

I will try to fix other issues but it would be great if you include patches in next builds.

Is there a way to update kernel only without having to reinstall everything?

It should be noted that 2015 version of tablet differs a lot from previous one (https://github.com/sebanc/brunch/issues/186)

sebanc commented 4 years ago

Hi,

I added the button patch and attempted a fix for microphone in the below build: https://github.com/sebanc/brunch-testing/releases

Could you try it ?

daemongloom commented 4 years ago

Buttons and microphone work ok in that build.

sebanc commented 4 years ago

Buttons working was expected but microphone is a good surprise, could you please attach a dmesg ? (run "dmesg > ~/Downloads/dmesg.txt" and attach dmesg.txt from your downloads folder)

Some devices have camera issues with "rammus" recovery image that I have not yet been able to fix, they should work correctly with "samus" recovery image.

daemongloom commented 4 years ago

I've attached logs and hardware info. lsusb_v.txt lspci_v.txt lsmod.txt dmesg.txt

sebanc commented 4 years ago

Thanks for all the logs :)

daemongloom commented 4 years ago

Hm. I have strange issue with tablet mode. Sometimes it works perfectly, disconnecting keyboard (or folding it back) changes interface on-screen keyboard popup automatically and automatic rotation works. But sometimes it just ignores everything. No on-screen keyboard, no interface change and no rotation. I've attached both dmesg logs. log_no_tablet_mode.log log_with_tablet_mode.log

Chrome OS 83.04103.97 and brunch build from https://github.com/sebanc/brunch/issues/263#issuecomment-638922173

sebanc commented 4 years ago

I see nothing weird in the logs, also the driver used to report tablet mode is very basic and is the same as my Surface Go where it works fine. This issue might be caused by the bios/ec not sending the events properly, a bios update might help if you are not on the latest one.

daemongloom commented 4 years ago

Ok, even stranger things happen now. When I fold keyboard backwards (or disconnect it) interface changes, but on-screen keyboard does not popup automatically and automatic orientation is not enabled.