hasee.wu 写了:floydfan 写了:
您好,请问n148上网本如果实现调节背光呢?
谢谢。
另外,实现背光调节之余,fn功能键可以使用吗/?
10.04 下,三星N148-DA:
FN 可关闭或打开触摸板
音量静音 调大 调小
打开关闭数字键
不能用的FN为:
1. 调节亮度不能用
解决办法:用脚本调
2.打开关闭无线网卡不能用
解决办法:bios中可以调节
除了上述FN有一点点不完美外,三星N148-DA装上ubuntu 10.04 后所有硬件全部正常驱动
1.skype 语音视频效果美轮美奂
2. 3D桌面的表现也是美轮美奂,在机场,高铁或starbuck使用无比拉风。
3.无线网卡Atheros Communications Inc. AR9285 完美支持,图形界面下操作,轻松实现无线软路由(WEP)
4. N148声卡的SRS环绕效果也可以在音量控制中进行操作, 打开关闭SRS或进行环绕深度调节,调节后明显能听到不同的环绕效果,所以N148在linux下音质很好。
5. 6芯电,6芯电本身的价钱就比3芯电池贵300元,所以现在报价2.2K的三星N148非常超值。电池上网4个小时不成问题。
6. 硬盘loadcylce 正常
N148-DA亮度调节:
sudo setpci -s 00:02.0 F4.B=xx
xx取0到255, 要换算成16进制
10%的亮度大概为:
代码: 全选
sudo setpci -s 00:02.0 F4.B=1a
50%亮度大概为:
代码: 全选
sudo setpci -s 00:02.0 F4.B=80
关闭显示器(延迟10秒):
代码: 全选
sleep 10
xset dpms force off
为方便操作,可写成脚本放在桌面,其它自己用计算器换算一下。N148是LED背光,10%就很亮了,让它开机自动执行就行了, 除非是看电影,没必要调成其它
首先,非常感谢您的回答。我已经大概明白了。
下面一段是我在Archlinux里面摘抄的一段关于实现fn功能的内容。据说有人在n148上面可以成功。
对比之下,请问哪种方法更好呢?
=========================================================================================我是分割线
Fn keys
Several of the special Fn key combinations work out of the box with the N150, but most do not. Unusual scancodes are reported to the kernel, which does not know how to convert these codes to keycodes natively. Worse, many of the scancodes produce a key press event without a corresponding key release event. Appending the following lines to /etc/rc.local will enable all Fn keys and map them properly:
代码开始:
setkeycodes e002 227 # Fn+F4 maps to switchvidmode
setkeycodes e003 236 # Fn+F2 maps to battery
setkeycodes e004 148 # Fn+F5 maps to prog1
setkeycodes e006 238 # Fn+F9 maps to wlan
setkeycodes e008 225 # Fn+Up maps to brightnessup
setkeycodes e009 224 # Fn+Dn maps to brightnessdown
setkeycodes e031 149 # Fn+F7 maps to prog2
setkeycodes e033 202 # Fn+F8 maps to prog3
setkeycodes e077 191 # Fn+F10 maps to F21 whenever the touchpad is enabled
setkeycodes e079 192 # Fn+F10 maps to F22 whenever the touchpad is disabled
# Ensure key release events occur for all except Fn+F7, which properly reports a key release for some reason
echo 130,131,132,134,136,137,179,247,249 > /sys/devices/platform/i8042/serio0/force_release
代码结束
To enable hotkeys to change backlight, wireless, and system performance settings, it is necessary to give regular users certain permissions via the sudo command. Run visudo as root and add the following to the Cmnd alias specifications:
代码开始:
Cmnd_Alias NETBOOK_CMDS = /usr/local/sbin/backlight,
/usr/local/sbin/rftoggle, /usr/local/sbin/cpufreq_toggle
代码结束
Then add the following to the bottom of the file:
代码开始
%users ALL=(ALL) NOPASSWD: NETBOOK_CMDS
代码结束
Now custom keyboard shortcuts can be added to Gnome by means of the "Keyboard Shortcuts" preferences.
Name /
Command /
Key
Touchpad disabled
/usr/local/bin/report_touchpad off Press Fn+F10 while touchpad enabled
Touchpad enabled
/usr/local/bin/report_touchpad on Press Fn+F10 while touchpad disabled
Toggle CPU frequency scaling
/usr/local/bin/cpufreq_toggle_osd Fn+F8
Raise backlight
sudo /usr/local/sbin/backlight up Fn+Up arrow
Lower backlight
sudo /usr/local/sbin/backlight down Fn+Down arrow
Toggle wireless
sudo /usr/local/sbin/rftoggle Fn+F9
Toggle backlight
sudo /usr/local/sbin/backlight toggle Fn+F5
不太会使用论坛的工具,所以排版比较混乱,如果看不懂,请回复个,我截图发上来。