Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
c92fd49c
K
Kernel
项目概览
openeuler
/
Kernel
接近 2 年 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
c92fd49c
编写于
10月 14, 2006
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Pull ibm into test branch
上级
9443d7c9
2fe6dffa
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
52 deletion
+25
-52
Documentation/ibm-acpi.txt
Documentation/ibm-acpi.txt
+25
-50
drivers/acpi/ibm_acpi.c
drivers/acpi/ibm_acpi.c
+0
-2
未找到文件。
Documentation/ibm-acpi.txt
浏览文件 @
c92fd49c
...
@@ -30,9 +30,10 @@ detailed description):
...
@@ -30,9 +30,10 @@ detailed description):
- ACPI sounds
- ACPI sounds
- temperature sensors
- temperature sensors
- Experimental: embedded controller register dump
- Experimental: embedded controller register dump
-
Experimental:
LCD brightness control
- LCD brightness control
-
Experimental: v
olume control
-
V
olume control
- Experimental: fan speed, fan enable/disable
- Experimental: fan speed, fan enable/disable
- Experimental: WAN enable and disable
A compatibility table by model and feature is maintained on the web
A compatibility table by model and feature is maintained on the web
site, http://ibm-acpi.sf.net/. I appreciate any success or failure
site, http://ibm-acpi.sf.net/. I appreciate any success or failure
...
@@ -52,40 +53,7 @@ Installation
...
@@ -52,40 +53,7 @@ Installation
If you are compiling this driver as included in the Linux kernel
If you are compiling this driver as included in the Linux kernel
sources, simply enable the CONFIG_ACPI_IBM option (Power Management /
sources, simply enable the CONFIG_ACPI_IBM option (Power Management /
ACPI / IBM ThinkPad Laptop Extras). The rest of this section describes
ACPI / IBM ThinkPad Laptop Extras).
how to install this driver when downloaded from the web site.
First, you need to get a kernel with ACPI support up and running.
Please refer to http://acpi.sourceforge.net/ for help with this
step. How successful you will be depends a lot on you ThinkPad model,
the kernel you are using and any additional patches applied. The
kernel provided with your distribution may not be good enough. I
needed to compile a 2.6.7 kernel with the 20040715 ACPI patch to get
ACPI working reliably on my ThinkPad X40. Old ThinkPad models may not
be supported at all.
Assuming you have the basic ACPI support working (e.g. you can see the
/proc/acpi directory), follow the following steps to install this
driver:
- unpack the archive:
tar xzvf ibm-acpi-x.y.tar.gz; cd ibm-acpi-x.y
- compile the driver:
make
- install the module in your kernel modules directory:
make install
- load the module:
modprobe ibm_acpi
After loading the module, check the "dmesg" output for any error messages.
Features
Features
--------
--------
...
@@ -523,13 +491,8 @@ registers contain the current battery capacity, etc. If you experiment
...
@@ -523,13 +491,8 @@ registers contain the current battery capacity, etc. If you experiment
with this, do send me your results (including some complete dumps with
with this, do send me your results (including some complete dumps with
a description of the conditions when they were taken.)
a description of the conditions when they were taken.)
EXPERIMENTAL: LCD brightness control -- /proc/acpi/ibm/brightness
LCD brightness control -- /proc/acpi/ibm/brightness
-----------------------------------------------------------------
---------------------------------------------------
This feature is marked EXPERIMENTAL because the implementation
directly accesses hardware registers and may not work as expected. USE
WITH CAUTION! To use this feature, you need to supply the
experimental=1 parameter when loading the module.
This feature allows software control of the LCD brightness on ThinkPad
This feature allows software control of the LCD brightness on ThinkPad
models which don't have a hardware brightness slider. The available
models which don't have a hardware brightness slider. The available
...
@@ -542,13 +505,8 @@ commands are:
...
@@ -542,13 +505,8 @@ commands are:
The <level> number range is 0 to 7, although not all of them may be
The <level> number range is 0 to 7, although not all of them may be
distinct. The current brightness level is shown in the file.
distinct. The current brightness level is shown in the file.
EXPERIMENTAL: Volume control -- /proc/acpi/ibm/volume
Volume control -- /proc/acpi/ibm/volume
-----------------------------------------------------
---------------------------------------
This feature is marked EXPERIMENTAL because the implementation
directly accesses hardware registers and may not work as expected. USE
WITH CAUTION! To use this feature, you need to supply the
experimental=1 parameter when loading the module.
This feature allows volume control on ThinkPad models which don't have
This feature allows volume control on ThinkPad models which don't have
a hardware volume knob. The available commands are:
a hardware volume knob. The available commands are:
...
@@ -611,6 +569,23 @@ with the following command:
...
@@ -611,6 +569,23 @@ with the following command:
echo 'level <level>' > /proc/acpi/ibm/thermal
echo 'level <level>' > /proc/acpi/ibm/thermal
EXPERIMENTAL: WAN -- /proc/acpi/ibm/wan
---------------------------------------
This feature is marked EXPERIMENTAL because the implementation
directly accesses hardware registers and may not work as expected. USE
WITH CAUTION! To use this feature, you need to supply the
experimental=1 parameter when loading the module.
This feature shows the presence and current state of a WAN (Sierra
Wireless EV-DO) device. If WAN is installed, the following commands can
be used:
echo enable > /proc/acpi/ibm/wan
echo disable > /proc/acpi/ibm/wan
It was tested on a Lenovo Thinkpad X60. It should probably work on other
Thinkpad models which come with this module installed.
Multiple Commands, Module Parameters
Multiple Commands, Module Parameters
------------------------------------
------------------------------------
...
...
drivers/acpi/ibm_acpi.c
浏览文件 @
c92fd49c
...
@@ -1702,13 +1702,11 @@ static struct ibm_struct ibms[] = {
...
@@ -1702,13 +1702,11 @@ static struct ibm_struct ibms[] = {
.
name
=
"brightness"
,
.
name
=
"brightness"
,
.
read
=
brightness_read
,
.
read
=
brightness_read
,
.
write
=
brightness_write
,
.
write
=
brightness_write
,
.
experimental
=
1
,
},
},
{
{
.
name
=
"volume"
,
.
name
=
"volume"
,
.
read
=
volume_read
,
.
read
=
volume_read
,
.
write
=
volume_write
,
.
write
=
volume_write
,
.
experimental
=
1
,
},
},
{
{
.
name
=
"fan"
,
.
name
=
"fan"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录