Giter Site home page Giter Site logo

Comments (8)

vrolife avatar vrolife commented on May 21, 2024

理论上能用于任何发行版,但是有两个情况要注意。

ACPI补丁有两个版本一个是patch.archlinux.diff另一个是patch.diff. 这两个版本内容是一样的,只是有些发行版的ACPI反编译器会莫名多/少一个空格导致补丁失败。比如ubuntu就有空格,arch系的就少一个空格。

所以你修改下这个脚本,在两个版本间切换试试看。

if test $ID = "manjaro" -o $ID_LIKE = "arch"; then

from modern_laptop.

xmu714 avatar xmu714 commented on May 21, 2024

from modern_laptop.

xmu714 avatar xmu714 commented on May 21, 2024

理论上能用于任何发行版,但是有两个情况要注意。

ACPI补丁有两个版本一个是patch.archlinux.diff另一个是patch.diff. 这两个版本内容是一样的,只是有些发行版的ACPI反编译器会莫名多/少一个空格导致补丁失败。比如ubuntu就有空格,arch系的就少一个空格。

所以你修改下这个脚本,在两个版本间切换试试看。

if test $ID = "manjaro" -o $ID_LIKE = "arch"; then

刚刚重新拉了一遍代码,把系统环境检测的代码注释掉以后,patch.sh里面最后改成用arch的那个版本,就可以通过了,不过opensuse没有update-grub命令,改成update-bootloader就可以了,现在重启已经可以用键盘了。

from modern_laptop.

vrolife avatar vrolife commented on May 21, 2024

我的系统上,执行脚本会报test: 参数太多 这个是咋回事啊

---原始邮件--- 发件人: @.> 发送时间: 2022年8月23日(周二) 中午12:44 收件人: @.>; 抄送: @.@.>; 主题: Re: [vrolife/modern_laptop] 这个patch不能用于其他发行版吗 (Issue #12) 理论上能用于任何发行版,但是有两个情况要注意。 ACPI补丁有两个版本一个是patch.archlinux.diff另一个是patch.diff. 这两个版本内容是一样的,只是有些发行版的ACPI反编译器会莫名多/少一个空格导致补丁失败。比如ubuntu就有空格,arch系的就少一个空格。 所以你修改下这个脚本,在两个版本间切换试试看。

if test $ID = "manjaro" -o $ID_LIKE = "arch"; then
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

这个可能是因为你的发行版/etc/os-release里的相关值含空格。方便提供这个文件的内容吗?

from modern_laptop.

xmu714 avatar xmu714 commented on May 21, 2024

以下为/etc/os-release文件内容:

NAME="openSUSE Tumbleweed"
# VERSION="20220821"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20220821"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20220821"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"

@Vliro @vrolife

from modern_laptop.

vrolife avatar vrolife commented on May 21, 2024

搞了个suse的分支https://github.com/vrolife/modern_laptop/tree/suse 你看能不能用,能用我再合并到主分支

from modern_laptop.

xmu714 avatar xmu714 commented on May 21, 2024

搞了个suse的分支https://github.com/vrolife/modern_laptop/tree/suse 你看能不能用,能用我再合并到主分支

试了下suse分支的test没有报错了,acpi跟wmi都成功了,就是背光和wifi,指纹报错,我另外开issue把log贴上来。

from modern_laptop.

xmu714 avatar xmu714 commented on May 21, 2024

ACPI的问题应该差不多了,辛苦啦

from modern_laptop.

Related Issues (20)

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.