HP_Compaq_530
Please format this article according to the guidelines and Wikification suggestions, then remove this notice {{Wikify}} from the article
Contents |
Output of lspci
| Code: lspci output |
00:00.0 Host bridge: Intel Corporation Unknown device 27ac (rev 03) 00:02.0 VGA compatible controller: Intel Corporation Unknown device 27ae (rev 03) 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 01) 02:06.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller (rev 01) 02:08.0 Ethernet controller: Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller Mobile (rev 01) 10:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02) |
Wireless
Wireless adapter intel 3945ABG works well with net-wireless/iwl3945-ucode and >=kernel-2.6.25. In this article will be small example for setup intel-wifi
example of config for wireless conection with WPA-PSK:
| File: /etc/wpa_supplicant/wpa_supplicant.conf |
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=users
network={
ssid="my_network"
scan_ssid=1
psk="secret_passkey"
key_mgmt=WPA-PSK
priority=10
}
|
| File: /etc/conf.d/net |
config_wlan0=("dhcp")
modules_wlan0=("!iwconfig" "wpa_supplicant" "!ifplugd")
wpa_supplicant_wlan0=("-Dwext")
dhcp_wlan0="nonis nontp"
preup() {
if [ ${IFACE} == "wlan0" ]; then
ifconfig wlan0 up > /dev/null 2 >&1
iwlist wlan0 scanning > /dev/null 2 >&1
fi
}
postdown () {
if [ ${IFACE} == "wlan0" ]; then
einfo "Disabling Wireless"
ifconfig ${IFACE} down
fi
}
|
After start may be error:
| Code: /etc/init.d/net.wlan0 start |
* Starting wlan0 * Running preup function Invalid scanning option [2] [ ok ] * Starting wpa_supplicant on wlan0 ... ioctl[SIOCSIWAUTH]: Operation not supported [ ok ]th param 4 value 0x0 - * Starting wpa_cli on wlan0 ... [ ok ] * Backgrounding ... |
need wait about 10-20 seconds and wlan0 begin work
Xorg
First please read Intel_GMA
| File: /etc/X11/xorg.conf |
Section "ServerLayout"
Identifier "X.Org Configured"
Screen 0 "Screen0" 0 0
Option "AutoAddDevices" "False" # i turn off hal, remove this line if you want them back
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Touchpad" "SendCoreEvents"
InputDevice "Mouse1" "SendCoreEvents"
EndSection
Section "Module"
Load "dri"
Load "bitmap"
Load "dbe"
Load "glx"
Load "extmod"
Load "fbdevhw"
Load "record"
Load "freetype"
Load "type1"
Load "i2c"
Load "vbe"
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail" "true"
Option "AutoAddDevices" "False" # i turn off hal, remove this line if you want them back
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc101"
Option "XkbLayout" "us,ru"
Option "XkbOptions" "grp:caps_toggle,grp_led:scroll"
Option "XkbVariant" ",winkeys"
EndSection
Section "InputDevice"
Identifier "Touchpad"
Driver "synaptics"
Option "SendCoreEvents"
Option "Device" "/dev/input/event4"
Option "Protocol" "Auto"
Option "SHMConfig" "on"
Option "LeftEdge" "1900"
Option "RightEdge" "5400"
Option "TopEdge" "1400"
Option "BottomEdge" "4500"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "45"
Option "MinSpeed" "0.02"
Option "MaxSpeed" "0.20"
Option "AccelFactor" "0.0010"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "HP"
ModelName "HP notebook"
HorizSync 30.0 - 81.0
EndSection
Section "Device"
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
Option "AccelMethod" "exa" # Can make 2d faster
Option "MigrationHeuristic" "greedy" #
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x800" "1024x178" "800x600"
Virtual 2560 1824 # This line need for dualhead configuration
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800" "1024x178" "800x600"
Virtual 2560 1824 # This line need for dualhead configuration
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Disable"
EndSection
Section "DRI"
Mode 0666
EndSection
|
Misc
Advanced powersave
It really can save 1-2 hours.
| Code: |
#!/bin/bash # Red_Lion@inbox.ru case $1 in battery) echo "Settings laptop for BATTERY work" echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor echo 1 > /sys/devices/system/cpu/sched_mc_power_savings for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo min_power > $i; done echo 5 > /proc/sys/vm/laptop_mode echo 40 > /proc/sys/vm/dirty_ratio echo 10 > /proc/sys/vm/dirty_background_ratio echo 1500 > /proc/sys/vm/dirty_writeback_centisecs echo 1 > /sys/module/snd_hda_intel/parameters/power_save echo 5 > /sys/bus/pci/drivers/iwl3945/0000:10:00.0/power_level ;; power) echo "Setting laptop for POWER work" echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor echo 0 > /sys/devices/system/cpu/sched_mc_power_savings for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo max_performance > $i; done echo 0 > /proc/sys/vm/laptop_mode echo 10 > /proc/sys/vm/dirty_ratio echo 5 > /proc/sys/vm/dirty_background_ratio echo 500 > /proc/sys/vm/dirty_writeback_centisecs echo 0 > /sys/module/snd_hda_intel/parameters/power_save echo 0 > /sys/bus/pci/drivers/iwl3945/0000:10:00.0/power_level ;; *) echo "Use key 'power' or 'battery'" ;; esac |
P.S. use powertop!
Fan control
Script for control fan speed
| Code: |
#!/bin/bash
# Red_Lion@inbox.ru
total=`ls /sys/class/thermal/cooling_device*/cur_state|wc -l`
function make_bar(){
echo -n '['
ink=0
while [[ $ink != $1 ]]; do
echo -n "#"
ink=$(( $ink + 1 ))
done
while [[ $ink != $total ]]; do
echo -n " "
ink=$(( $ink + 1 ))
done
echo "] $1 of $total"
}
[[ $1 > $total ]] && echo "Level more max ($total)" && exit 1
if [[ $1 != "" ]] && [[ $USER == "root" ]]; then
ink=$(( $total - $1 ))
ink2=0
for i in /sys/class/thermal/cooling_device*/cur_state; do
if [[ $ink == $ink2 ]]; then
echo 1 > $i
else
echo 0 > $i
fi
ink2=$(( $ink2 + 1 ))
done
fi
ink=` cat /sys/class/thermal/cooling_device*/cur_state | grep -n 1 | head -n1 | cut -d: -f1`
[ -z $ink ] && ink=0 || ink=$(( $total - $ink + 1 ))
if [[ $2 == "nobar" ]]; then
echo $ink
else
make_bar $ink
fi
exit 0
|
I will be very happy if you make code of this better :)
Browse categories > Gentoo Linux Wiki > Wiki maintenance > Wikify
Browse categories > Hardware > Laptop
Browse categories > Hardware > Manufacturer > Compaq
Browse categories > Hardware > Manufacturer > HP
Last modified: Mon, 15 Sep 2008 07:00:00 +1000 Hits: 2,761
Created by NickStallman.net, Luxury Homes Australia
Real estate agents should be using interactive floor plans and list their apartments, townhouses and units.
