这个鼠标驱动程序补丁怎么打?

笔记本/便携移动设备,手机平板等软硬件
回复
kidalive
帖子: 87
注册时间: 2008-07-08 8:34

这个鼠标驱动程序补丁怎么打?

#1

帖子 kidalive »

我的鼠标在linux下面不能完全working在国外kernel bug网站上面file了bug现在有人解决了,
提供了个patch文件但是不会补丁,现在在论坛问问前辈。 :em04
https://launchpadlibrarian.net/71387234 ... 6.38.patch
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: 这个鼠标驱动程序补丁怎么打?

#2

帖子 funicorn »

下载驱动源代码,cd到相应目录,patch < *.patch

configure
make
make install
kidalive
帖子: 87
注册时间: 2008-07-08 8:34

Re: 这个鼠标驱动程序补丁怎么打?

#3

帖子 kidalive »

funicorn 写了:下载驱动源代码,cd到相应目录,patch < *.patch

configure
make
make install
patch <*.patch出现了几个文件output是这个

代码: 全选

patching file elantech.c
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 10.
Hunk #3 FAILED at 18.
Hunk #4 FAILED at 37.
Hunk #5 FAILED at 62.
Hunk #6 FAILED at 76.
Hunk #7 FAILED at 98.
Hunk #8 FAILED at 109.
Hunk #9 FAILED at 125.
Hunk #10 FAILED at 142.
Hunk #11 FAILED at 153.
Hunk #12 FAILED at 186.
Hunk #13 FAILED at 231.
Hunk #14 FAILED at 249.
Hunk #15 FAILED at 257.
Hunk #16 FAILED at 389.
Hunk #17 FAILED at 447.
Hunk #18 FAILED at 463.
Hunk #19 FAILED at 528.
Hunk #20 FAILED at 584.
Hunk #21 FAILED at 625.
Hunk #22 FAILED at 677.
Hunk #23 FAILED at 707.
Hunk #24 FAILED at 761.
Hunk #25 FAILED at 776.
25 out of 25 hunks FAILED -- saving rejects to file elantech.c.rej
patching file elantech.h
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 19.
Hunk #3 FAILED at 70.
Hunk #4 FAILED at 81.
Hunk #5 FAILED at 100.
5 out of 5 hunks FAILED -- saving rejects to file elantech.h.rej
configure不能运行,输出是这个

代码: 全选

configure: command not found
怎么解决?
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: 这个鼠标驱动程序补丁怎么打?

#4

帖子 funicorn »

1 有没有cd到恰当的目录?

2 原文件有没有写权限?

3 linux运行命令的方法是路径+文件名,你只写了configure这个文件名当然无法运行
kidalive
帖子: 87
注册时间: 2008-07-08 8:34

Re: 这个鼠标驱动程序补丁怎么打?

#5

帖子 kidalive »

funicorn, configure后面加什么?
kidalive
帖子: 87
注册时间: 2008-07-08 8:34

Re: 这个鼠标驱动程序补丁怎么打?

#6

帖子 kidalive »

这个是PS/2的驱动补丁,怎么安装?
回复