Giter Site home page Giter Site logo

gled-rs / linux-hp_ap0xxx Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 2.02 GB

Linux kernel with a few patches to support HP Spectre x360 ap0xxxx models

Home Page: https://wiki.archlinux.org/index.php/HP_Spectre_x360_-_13-ap0xxxx

License: Other

Makefile 0.25% C 96.49% Assembly 1.17% C++ 1.28% Objective-C 0.27% Shell 0.23% Perl 0.12% Awk 0.01% sed 0.01% Python 0.13% Yacc 0.01% Lex 0.01% UnrealScript 0.01% XS 0.01% Perl 6 0.01% Roff 0.02% Clojure 0.01% M4 0.01% Gherkin 0.01% SmPL 0.02%
linux kernel spectre x360 hp

linux-hp_ap0xxx's Introduction

About this kernel
==================


*** This is not needed anymore as of official kernel 5.4.1:
- sound is supported in mainline now
- autorotation bug got patched
- Nvme suspend was worked on and seems to be way better (11% loss in 15h )
 ***

This is not an official maintained kernel, just a convenience repository for the time for the patches included to be included upstream. Use at your own risks !

This is based on https://github.com/thesofproject/linux/commits/topic/sof-dev for supporting the spectre x360 ap0xxxx digital mic array with merges from linux-stable upstream. 
Also added a patch to hid-sensor ( https://lkml.org/lkml/2019/3/8/2 ) to allow the accelerometer sensor to work ( fix autorotation )
And added a patch to the nvme driver ( https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1801875 ) to prevent the hynix drive to enter suspend ( bug in the drive firmware that cause extra power consumption in s2idle suspend mode  )

Don't forget to blacklist legacy modules ( snd-hda-intel and snd-soc-skl ).

It can be also useful for pulseaudio to know about the card mic ( load-module module-alsa-source device=hw:0,7 in /etc/pulse/default.pa, check your hw reference though ).

Tested and working on an 'HP Spectre x360 Convertible 13-ap0xxx'.

The default config was generated with make localmodconfig, it is very minimal and tailored for a barebone x360, so probably miss drivers you may needi, but compile faster. See below to use a default archlinux config instead.

To compile
==========

git clone https://github.com/gled-rs/linux-hp_ap0xxx;

cd linux-hp_ap0xxx;

cp default-arch-config .config; # optional, only if you want to use the default Archlinux config ( more modules compiled, try this if you have unsupported hardware missing drivers ).

cp mkinitcpio-ap0xxxx.preset /etc/mkinitcpio.d/linux-ap0xxxx.preset;

make -j9; # if you have 8 cores... adapt the number to your cores + 1;

sudo cp arch/x86_64/boot/bzImage /boot/vmlinuz-linux-ap0xxxx;

sudo make modules_install;

sudo mkinitcpio -p linux-ap0xxxx;

sudo grub-mkconfig -o /boot/grub/grub.cfg;

To update
=========

git pull

make -j9

sudo cp arch/x86_64/boot/bzImage //boot/vmlinuz-linux-ap0xxxx;

sudo make modules_install;

sudo mkinitcpio -p linux-ap0xxxx;

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.