ubuntu下
关闭swap
sudo swapoff /dev/hdax
启用/关闭 网卡
usage: /etc/init.d/networking {stop|start|restart}
重启网卡
/etc/init.d/networking restart
启用/关闭 无线网卡
sudo iwconfig wlan0 power on
sudo iwconfig wlan0 power off
检查电池信息
/proc/acpi/battery/
比如info文件内容
present:yes
designcapacity:4400mAh
lastfullcapacity:4191mAh
batterytechnology:rechargeable
designvoltage:10800mV
designcapacitywarning:205mAh
designcapacitylow:143mAh
capacitygranularity1:62mAh
capacitygranularity2:3986mAh
modelnumber:Primary
serialnumber:
batterytype:LION
OEMinfHewlett-Packard
比如info文件内容
present:yes
designcapacity:4400mAh
lastfullcapacity:4191mAh
batterytechnology:rechargeable
designvoltage:10800mV
designcapacitywarning:205mAh
designcapacitylow:143mAh
capacitygranularity1:62mAh
capacitygranularity2:3986mAh
modelnumber:Primary
serialnumber:
batterytype:LION
OEMinfHewlett-Packard
2.无法添加打印机 ,
先检查cups(Common UNIX
Printing System)是否启用, 通过以下命令来重启。
sudo /etc/init.d/cupsys restart
然后在系统设置里配置打印机, 或者使用HP Printer Toolbox
(使用不同的驱动PPD,打印机的设置选项不同。比如需要设置双面打印, 使用Foomatic/hpijs PPD文件并开启duplex unit)