You are not logged in.

#1 2011-06-30 12:46:49

tah_206207
Member
Registered: 2011-06-30
Posts: 24

Arch runs hot on hp laptop!

hello
I have a problem after installing Arch Linux on my HP DV6 6080 laptop!
my cpu temperature in Arch is very hot but my cpu temperature in win7 is cool and cpu temperature in ubuntu 11.4 is like windows

Arch
cpu:67 C
graphic card: 69
windows 
cpu:52
Ubuntu 11.4
cpu:54

how can I configure Arch to run as cool as win7?
2)win7 use battery energy best but ubuntu can't use battery energy efficiency! like win7!!
how can I configure Arch to use battery energy like win7?
my arch Linux kernel is 2.6.39
please help me to solve these problems... 
thanks

Offline

#2 2011-06-30 12:49:34

evr
Arch Linux f@h Team Member
Registered: 2009-01-23
Posts: 554

Re: Arch runs hot on hp laptop!

check out Laptop Mode Tools in the wiki for some ideas on power saving features.  Do you have CPU frequency scaling enabled?

Offline

#3 2011-07-01 14:03:51

bahyx
Member
Registered: 2011-05-20
Posts: 9

Re: Arch runs hot on hp laptop!

Is your GPU an ATI by any chance?

Offline

#4 2011-07-01 15:24:13

brebs
Member
Registered: 2007-04-03
Posts: 3,456

Re: Arch runs hot on hp laptop!

Offline

#5 2011-07-03 10:00:17

tah_206207
Member
Registered: 2011-06-30
Posts: 24

Re: Arch runs hot on hp laptop!

evr wrote:

check out Laptop Mode Tools in the wiki for some ideas on power saving features.  Do you have CPU frequency scaling enabled?

Thanks for your reply
I do any things in Laptop Mode Tools until Networking topic! and i do any thing in CPU Frequency Scaling but my laptop tempreture still is hot!

sudo sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +65.0°C  (crit = +99.0°C)

radeon-pci-0100
Adapter: PCI adapter
temp1:        +72.5°C  

why sensors can't show my cpu cores temperatures?

this is my rc.conf file options

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="Asia/Tehran"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(acpi-cpufreq cpufreq_ondemand cpufreq_powersave)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="Hp"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0 wlan0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng netfs crond dbus networkmanager kdm laptop-mode @cpufreq)

and this is output of lspci:

sudo lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation 2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB Controller: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 2 (rev b4)
00:1c.2 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 3 (rev b4)
00:1c.3 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 4 (rev b4)
00:1d.0 USB Controller: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series Chipset Family 6 port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: ATI Technologies Inc Device 6740
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
0d:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
13:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5209 (rev 01)
19:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)

I can't see my audio card chipset in lspci! how can i detect it?

when i use powertop:

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 3.5%)       Turbo Mode     0.0%
polling          10.6ms ( 0.1%)         2.00 Ghz     0.1%
C1 mwait          0.3ms ( 1.5%)         1.91 Ghz     0.0%
C2 mwait          0.7ms ( 0.7%)         1.71 Ghz     0.0%
C3 mwait          1.0ms ( 0.1%)         1000 Mhz    99.9%
C4 mwait          9.3ms (94.2%)
Wakeups-from-idle per second : 161.4    interval: 15.0s                                       
no ACPI power usage estimate available

Top causes for wakeups:

Suggestion: Enable the CONFIG_INOTIFY kernel configuration option.
This option allows programs to wait for changes in files and directories
instead of having to poll for these changes

please help me to fix my laptop temprature and energy efficiency usage..
thanks

Offline

#6 2011-07-03 10:01:33

tah_206207
Member
Registered: 2011-06-30
Posts: 24

Re: Arch runs hot on hp laptop!

Thanks
how can i do this?

pcie_aspm=force

Offline

#7 2011-07-04 18:50:51

tah_206207
Member
Registered: 2011-06-30
Posts: 24

Re: Arch runs hot on hp laptop!

No every one can help me?
please help me to run arch as cool as win7 on my laptop

Offline

#8 2011-07-04 19:14:41

york824
Member
Registered: 2008-11-26
Posts: 77

Re: Arch runs hot on hp laptop!

I have similar issue here also. In Arch my laptop's cpu temperature goes up and down too frequently. For example, if I leave the system idle, the temperature will stay pretty low, around 55°C; but when I do even a small move, like open a new blank tab in Firefox, it instantly goes up 5~10°C. When using Firefox for browsing this forum, the temperature stays around 65°C.
When using Windows 7 or Ubuntu 10.10, it seems the CPU frenquency stay as low as possible for the most of time, therefore the temperature always stays at 55°C, unless I do some intensive works such as video converting or fullscreen flash video playback.
I also tried the conservative governor, not much help. So unless I use 'powersave' I would never get the low temperature and the silence of the cpu fan.

Offline

#9 2011-07-04 20:08:29

einhard
Member
From: Poland
Registered: 2010-01-05
Posts: 89

Re: Arch runs hot on hp laptop!

tah_206207 Do you have Catalyst installed or xf86-video-ati. Catalyst are way cooler than open source drivers.

Add pcie_aspm=force to kernel line in grub.cfg

But first give output for:

dmesg|grep -i aspm

If you have hybrid graphics look at https://wiki.archlinux.org/index.php/Hybrid_graphics

Offline

#10 2011-07-04 21:54:02

tah_206207
Member
Registered: 2011-06-30
Posts: 24

Re: Arch runs hot on hp laptop!

einhard wrote:

tah_206207 Do you have Catalyst installed or xf86-video-ati. Catalyst are way cooler than open source drivers.

Add pcie_aspm=force to kernel line in grub.cfg

But first give output for:

dmesg|grep -i aspm

If you have hybrid graphics look at https://wiki.archlinux.org/index.php/Hybrid_graphics

No i don't installed my catalyst driver! my laptop graphic card is ( ati 6770m ) which driver should i install? is this driver in arch repositories or i can install it manualy? which driver should  I download from ati site?
this is output of command that you saied.

dmesg|grep -i aspm
[    1.495894] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it

can i add pcie_aspm=force to kernel line in grub?
I have other question.
my laptop has 2 graphic card one is sandy bridge card  and other is ATI how can i use them for use energy efficiency like WIN7? in Win7 when i download my ati graphic card driver from hp site and install it i can choose to switch between cards when battery is enabaled! how can i do this in Arch?

Last edited by tah_206207 (2011-07-04 21:59:34)

Offline

#11 2011-07-04 22:13:14

einhard
Member
From: Poland
Registered: 2010-01-05
Posts: 89

Re: Arch runs hot on hp laptop!

tah_206207 wrote:
dmesg|grep -i aspm

No i don't installed my catalyst driver! my laptop graphic card is ( ati 6770m ) which driver should i install? is this driver in arch repositories or i can install it manualy? which driver should  I download from ati site?
this is output of command that you saied.

dmesg|grep -i aspm
[    1.495894] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it

can i add pcie_aspm=force to kernel line in grub?
I have other question.
my laptop has 2 graphic card one is sandy bridge card  and other is ATI how can i use them for use energy efficiency like WIN7? in Win7 when i download my ati graphic card driver from hp site and install it i can choose to switch between cards when battery is enabaled! how can i do this in Arch?

Yes, you can add pcie_aspm=force to line in grub. It is possible that this will help a lot but if you notice stability problems remove this option.

You can switch between cards but it seems, for now, only with open source drivers. If you want most power efficient config I will consider turning off Radeon card. You have everything, including links to other sites at the bottom here https://wiki.archlinux.org/index.php/Hybrid_graphics

Offline

#12 2011-07-04 22:22:00

tah_206207
Member
Registered: 2011-06-30
Posts: 24

Re: Arch runs hot on hp laptop!

einhard wrote:
tah_206207 wrote:
dmesg|grep -i aspm

No i don't installed my catalyst driver! my laptop graphic card is ( ati 6770m ) which driver should i install? is this driver in arch repositories or i can install it manualy? which driver should  I download from ati site?
this is output of command that you saied.

dmesg|grep -i aspm
[    1.495894] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it

can i add pcie_aspm=force to kernel line in grub?
I have other question.
my laptop has 2 graphic card one is sandy bridge card  and other is ATI how can i use them for use energy efficiency like WIN7? in Win7 when i download my ati graphic card driver from hp site and install it i can choose to switch between cards when battery is enabaled! how can i do this in Arch?

Yes, you can add pcie_aspm=force to line in grub. It is possible that this will help a lot but if you notice stability problems remove this option.

You can switch between cards but it seems, for now, only with open source drivers. If you want most power efficient config I will consider turning off Radeon card. You have everything, including links to other sites at the bottom here https://wiki.archlinux.org/index.php/Hybrid_graphics

thanks for your reply
i do instructions for my hybird graphic but my laptop temperature is high!
how can i decrease my laptop temperature? if i install catalyst driver can this driver decrease my laptop temperature?
after enabling hybird graphic!

sudo sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +65.0°C  (crit = +99.0°C)

radeon-pci-0100
Adapter: PCI adapter
temp1:        +73.0°C  

Offline

#13 2011-07-04 22:28:10

einhard
Member
From: Poland
Registered: 2010-01-05
Posts: 89

Re: Arch runs hot on hp laptop!

But did you turn off radeon card with

 # echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

this for sure will drop your temperatures

and did you add pcie_aspm=force?

Installing Catalyst driver will be performance effective but I don't think temperatures will go down drastically. Instructions to how to install Catalyst driver you have here https://wiki.archlinux.org/index.php/Catalyst

But you must remember that you probably can't have intel drivers and Catalyst drivers at the same time. Also I don't know if you must disable intel graphics in Bios to install Catalyst.

Last edited by einhard (2011-07-04 23:12:41)

Offline

#14 2011-07-05 08:57:28

tah_206207
Member
Registered: 2011-06-30
Posts: 24

Re: Arch runs hot on hp laptop!

einhard wrote:

But did you turn off radeon card with

 # echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

this for sure will drop your temperatures

and did you add pcie_aspm=force?

Installing Catalyst driver will be performance effective but I don't think temperatures will go down drastically. Instructions to how to install Catalyst driver you have here https://wiki.archlinux.org/index.php/Catalyst

But you must remember that you probably can't have intel drivers and Catalyst drivers at the same time. Also I don't know if you must disable intel graphics in Bios to install Catalyst.

Yes I add

 # echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

to the end of /etc/rc.local file.

I use ubuntu and Arch in my laptop and i use ubuntu grub for booting OSs!.
for adding pcie_aspm=force to grub.cfg should i add this to ubuntu's grub.cfg?
like this:
before adding pcie_aspm=force

menuentry "Arch Linux (on /dev/sda8)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos9)'
    search --no-floppy --fs-uuid --set=root 377dbf15-cc6c-4a64-89b0-7028de3d6a8a
    linux /boot/vmlinuz26 root=/dev/sda8 ro
    initrd /boot/kernel26.img
}
menuentry "Arch Linux Fallback (on /dev/sda8)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos9)'
    search --no-floppy --fs-uuid --set=root 377dbf15-cc6c-4a64-89b0-7028de3d6a8a
    linux /boot/vmlinuz26 root=/dev/sda8 ro
    initrd /boot/kernel26-fallback.img
}

after adding:

menuentry "Arch Linux (on /dev/sda8)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos9)'
    search --no-floppy --fs-uuid --set=root 377dbf15-cc6c-4a64-89b0-7028de3d6a8a
    linux /boot/vmlinuz26 root=/dev/sda8 ro   pcie_aspm=force
    initrd /boot/kernel26.img
}
menuentry "Arch Linux Fallback (on /dev/sda8)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos9)'
    search --no-floppy --fs-uuid --set=root 377dbf15-cc6c-4a64-89b0-7028de3d6a8a
    linux /boot/vmlinuz26 root=/dev/sda8 ro  pcie_aspm=force
    initrd /boot/kernel26-fallback.img
}

is the above instructions true?

Offline

#15 2011-07-05 10:30:13

einhard
Member
From: Poland
Registered: 2010-01-05
Posts: 89

Re: Arch runs hot on hp laptop!

I use ubuntu and Arch in my laptop and i use ubuntu grub for booting OSs!.
for adding pcie_aspm=force to grub.cfg should i add this to ubuntu's grub.cfg?

Of course in Ubuntu grub config file.

is the above instructions true?

Yes, this config is correct.

You can check if the option is set with

dmesg|grep -i aspm

You should have somewhere beetween lines

[    0.000000] PCIe ASPM is forcedly enabled
[    1.495894] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it

Don't worry about second entry, it doesn't do anything with pcie_aspm=force



Answers to questions from your 2nd post

why sensors can't show my cpu cores temperatures

Because you don't have coretemp i modules in rc.conf

I can't see my audio card chipset in lspci! how can i detect it?

There is, look closely

00:1b.0 Audio device: Intel Corporation 6 Series Chipset Family High Definition Audio Controller (rev 04)

It's standard intel HDA.

I also noticed that you shouldn't have sound if you are using alsa. Your modules should look:

MODULES=(soundcore coretemp acpi-cpufreq cpufreq_ondemand cpufreq_conservative cpufreq_powersave)

One more thing, get rid of cpufreq from daemons, instead change your laptop-mode-tools config to set cpu frequency. Your DAEMONS should look:

DAEMONS=(syslog-ng dbus @networkmanager @netfs @crond @kdm @laptop-mode)

And now edit /etc/laptop-mode/conf.d/cpufreq.conf and change line 34 to this:

CONTROL_CPU_FREQUENCY=1

In this file you can change your cpu scaling configuration.


For clarification, this isn't your CPU temperature. It's probably some sensor placed by manufacturer, maybe near cooling system. In most cases it shows garbage.

acpitz-virtual-0
Adapter: Virtual device
temp1:        +65.0°C  (crit = +99.0°C)

Last edited by einhard (2011-07-05 11:04:46)

Offline

#16 2011-07-05 19:02:22

tah_206207
Member
Registered: 2011-06-30
Posts: 24

Re: Arch runs hot on hp laptop!

einhard wrote:

I use ubuntu and Arch in my laptop and i use ubuntu grub for booting OSs!.
for adding pcie_aspm=force to grub.cfg should i add this to ubuntu's grub.cfg?

Of course in Ubuntu grub config file.

is the above instructions true?

Yes, this config is correct.

You can check if the option is set with

dmesg|grep -i aspm

You should have somewhere beetween lines

[    0.000000] PCIe ASPM is forcedly enabled
[    1.495894] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it

Don't worry about second entry, it doesn't do anything with pcie_aspm=force



Answers to questions from your 2nd post

why sensors can't show my cpu cores temperatures

Because you don't have coretemp i modules in rc.conf

I can't see my audio card chipset in lspci! how can i detect it?

There is, look closely

00:1b.0 Audio device: Intel Corporation 6 Series Chipset Family High Definition Audio Controller (rev 04)

It's standard intel HDA.

I also noticed that you shouldn't have sound if you are using alsa. Your modules should look:

MODULES=(soundcore coretemp acpi-cpufreq cpufreq_ondemand cpufreq_conservative cpufreq_powersave)

One more thing, get rid of cpufreq from daemons, instead change your laptop-mode-tools config to set cpu frequency. Your DAEMONS should look:

DAEMONS=(syslog-ng dbus @networkmanager @netfs @crond @kdm @laptop-mode)

And now edit /etc/laptop-mode/conf.d/cpufreq.conf and change line 34 to this:

CONTROL_CPU_FREQUENCY=1

In this file you can change your cpu scaling configuration.


For clarification, this isn't your CPU temperature. It's probably some sensor placed by manufacturer, maybe near cooling system. In most cases it shows garbage.

acpitz-virtual-0
Adapter: Virtual device
temp1:        +65.0°C  (crit = +99.0°C)

Very Thanks dear einhard

Offline

#17 2011-07-10 12:04:31

Jankosevic
Member
Registered: 2008-07-06
Posts: 82

Re: Arch runs hot on hp laptop!

tah_206207 wrote:

Very Thanks dear einhard

Did it help??

Offline

#18 2011-07-10 12:32:44

rzepaczyk
Member
Registered: 2010-12-23
Posts: 74

Re: Arch runs hot on hp laptop!

It helped for me but after today's kernel update my laptop is again getting hot -.-

Offline

#19 2011-07-10 15:44:20

amsri
Member
Registered: 2011-06-17
Posts: 48

Re: Arch runs hot on hp laptop!

hi I have HP Pavillion Dv6 3141ea with AMD Phenom II N930 and ATI Radeon HD5470 (it is an all amd system) I am running xf86-video-ati
The output for lspci is :

00:00.0 Host bridge: Advanced Micro Devices [AMD] RS880 Host Bridge
00:01.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (int gfx)
00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
00:05.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 1)
00:06.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 2)
00:11.0 SATA controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
00:12.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 42)
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:16.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:05.0 VGA compatible controller: ATI Technologies Inc M880G [Mobility Radeon HD 4200]
02:00.0 VGA compatible controller: ATI Technologies Inc Manhattan [Mobility Radeon HD 5000 Series]
02:00.1 Audio device: ATI Technologies Inc Manhattan HDMI Audio [Mobility Radeon HD 5000 Series]
03:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)

The output for dmesg|grep -i aspm is just 1 line as follows

[    0.517481] Unable to assume _OSC PCIe control. Disabling ASPM

Now as it can be seen from lspci both my graphic card are radeon cards should I be using

# echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

which card will it switch off. I see that all the hybrid card discussion on wiki and forum is about integrated intel vga and ATI Radeon PCI vga.

Also would using  pcie_aspm=force have any effect.

Last edited by amsri (2011-07-10 16:08:11)

Offline

#20 2011-07-10 16:00:47

amsri
Member
Registered: 2011-06-17
Posts: 48

Re: Arch runs hot on hp laptop!

also one more thing. The heat problem is only with my vga cards and not CPU. In fact it heats up more when I leave the laptop, say for example, for 1 hour and the display is off.

Offline

#21 2011-07-10 17:40:33

amsri
Member
Registered: 2011-06-17
Posts: 48

Re: Arch runs hot on hp laptop!

/sys/kernel/debug/vgaswitcheroo/switch  (no such file or directory on y installation.

Offline

#22 2011-07-10 22:03:41

tah_206207
Member
Registered: 2011-06-30
Posts: 24

Re: Arch runs hot on hp laptop!

Hello Dear Arch users
my problem remains!!
but when i use pcie_aspm=force in ubuntu my laptop uses battery  efficiency like win7. and my laptop temperature is as cool as win7.
in Arch linux my laptop is hot!
this is instructions that i do in Arch linux but my laptop temperature remains hot!
my ubuntu grub.cfg

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos10)'
search --no-floppy --fs-uuid --set=root bf4233aa-ee92-484c-95e8-1de52145c6db
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos10)'
search --no-floppy --fs-uuid --set=root bf4233aa-ee92-484c-95e8-1de52145c6db
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos10)'
    search --no-floppy --fs-uuid --set=root bf4233aa-ee92-484c-95e8-1de52145c6db
    linux    /boot/vmlinuz-2.6.38-8-generic root=UUID=bf4233aa-ee92-484c-95e8-1de52145c6db ro   quiet splash pcie_aspm=force vt.handoff=7
    initrd    /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos10)'
    search --no-floppy --fs-uuid --set=root bf4233aa-ee92-484c-95e8-1de52145c6db
    echo    'Loading Linux 2.6.38-8-generic ...'
    linux    /boot/vmlinuz-2.6.38-8-generic root=UUID=bf4233aa-ee92-484c-95e8-1de52145c6db ro single 
    echo    'Loading initial ramdisk ...'
    initrd    /boot/initrd.img-2.6.38-8-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos10)'
    search --no-floppy --fs-uuid --set=root bf4233aa-ee92-484c-95e8-1de52145c6db
    linux16    /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos10)'
    search --no-floppy --fs-uuid --set=root bf4233aa-ee92-484c-95e8-1de52145c6db
    linux16    /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root F2D88782D8874437
    chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda5)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos6)'
    search --no-floppy --fs-uuid --set=root 8826C3C826C3B58A
    drivemap -s (hd0) ${root}
    chainloader +1
}
menuentry "Arch Linux (on /dev/sda8)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos9)'
    search --no-floppy --fs-uuid --set=root 377dbf15-cc6c-4a64-89b0-7028de3d6a8a
    linux /boot/vmlinuz26 root=/dev/sda8 ro pcie_aspm=force
    initrd /boot/kernel26.img
}
menuentry "Arch Linux Fallback (on /dev/sda8)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos9)'
    search --no-floppy --fs-uuid --set=root 377dbf15-cc6c-4a64-89b0-7028de3d6a8a
    linux /boot/vmlinuz26 root=/dev/sda8 ro pcie_aspm=force
    initrd /boot/kernel26-fallback.img
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

outpu of dmesg|grep -i aspm in Arch linux

dmesg|grep -i aspm
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz26 root=/dev/sda8 ro pcie_aspm=force
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz26 root=/dev/sda8 ro pcie_aspm=force
[    0.000000] PCIe ASPM is forcedly enabled
[    1.499181] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
[    1.681419] Unable to assume _OSC PCIe control. Disabling ASPM

my rc.conf file in Arch

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="Asia/Tehran"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(soundcore coretemp acpi-cpufreq cpufreq_ondemand cpufreq_powersave cpufreq_conservative)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="Hp"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0 wlan0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng dbus @networkmanager @netfs @crond @kdm @laptop-mode)

cpufreq in Arch

#
# Configuration file for Laptop Mode Tools module cpufreq.
#
# For more information, consult the laptop-mode.conf(8) manual page.
#

###############################################################################
# CPU frequency scaling and throttling
# ------------------------------------
#
# Laptop mode tools can automatically adjust your kernel CPU frequency
# settings. This includes upper and lower limits and scaling governors.
# There is also support for CPU throttling, on systems that don't support
# frequency scaling.
#
# This feature only works on 2.6 kernels.
#
#
# IMPORTANT: In versions 1.36 and earlier, these settings were included in the
# main laptop-mode.conf configuration file. If they are still present, they
# overrule the settings in this file. To fix this, simply delete the settings
# from the main config file.
#
###############################################################################

# Enable debug mode for this module
# Set to 1 if you want to debug this module
DEBUG=0

#
# Should laptop mode tools control the CPU frequency settings?
#
# Set to 0 to disable
CONTROL_CPU_FREQUENCY=1


#
# Legal values are "slowest" for the slowest speed that your
# CPU is able to operate at, "fastest" for the fastest speed,
# "medium" for some value in the middle, or any value listed in
# /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies.
# The "governor" can be any governor installed on your system, this usually
# includes "ondemand", "conservative", and "performance". The
# "IGNORE_NICE_LOAD" setting specifies that background programs that have
# a low priority ("nice level") should not cause the CPU frequency to
# be increased. (You generally want this to be enabled in battery mode.)
#
BATT_CPU_MAXFREQ=fastest
BATT_CPU_MINFREQ=slowest
BATT_CPU_GOVERNOR=ondemand
BATT_CPU_IGNORE_NICE_LOAD=1
LM_AC_CPU_MAXFREQ=fastest
LM_AC_CPU_MINFREQ=slowest
LM_AC_CPU_GOVERNOR=ondemand
LM_AC_CPU_IGNORE_NICE_LOAD=1
NOLM_AC_CPU_MAXFREQ=fastest
NOLM_AC_CPU_MINFREQ=slowest
NOLM_AC_CPU_GOVERNOR=ondemand
NOLM_AC_CPU_IGNORE_NICE_LOAD=0


#
# Should laptop mode tools control the CPU throttling? This is only useful
# on processors that don't have frequency scaling.
# (Only works when you have /proc/acpi/processor/CPU*/throttling.)
# 
# This is only useful on older P4 processors that do not support frequency
# scaling. On such processors, this is the only way to reduce power consumption
# but at the cost of higher performance penalty.
#
# Enable this only if you have a processor that does not support frequency scaling
# On most new processors, you might want to disable it.
#
# Set to 0 to disable.
CONTROL_CPU_THROTTLING=0


#
# Legal values are "maximum" for the maximum (slowest) throttling level,
# "minimum" for minimum (fastest) throttling level, "medium" for a value
# somewhere in the middle (this is usually 50% for P4s), or any value listed
# in /proc/acpi/processor/CPU*/throttling. Be careful when using "maximum":
# this may be _very_ slow (in fact, with P4s it slows down the processor
# by a factor 8).
#
BATT_CPU_THROTTLING=medium
LM_AC_CPU_THROTTLING=medium
NOLM_AC_CPU_THROTTLING=minimum

this is my Ubuntu rc.local file and my Arch's rc.local file

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
modprobe radeon
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
exit 0

And my laptop temperatures!

sudo sensors
Password: 
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +62.0°C  (high = +86.0°C, crit = +100.0°C)

coretemp-isa-0002
Adapter: ISA adapter
Core 1:       +61.0°C  (high = +86.0°C, crit = +100.0°C)

coretemp-isa-0004
Adapter: ISA adapter
Core 2:       +62.0°C  (high = +86.0°C, crit = +100.0°C)

coretemp-isa-0006
Adapter: ISA adapter
Core 3:       +62.0°C  (high = +86.0°C, crit = +100.0°C)

acpitz-virtual-0
Adapter: Virtual device
temp1:        +61.0°C  (crit = +99.0°C)

radeon-pci-0100
Adapter: PCI adapter
temp1:        +69.0°C  

please help me to make Arch like Ubuntu and enjoy from it.
thanks.

Last edited by tah_206207 (2011-07-10 22:10:22)

Offline

#23 2011-07-10 23:35:13

einhard
Member
From: Poland
Registered: 2010-01-05
Posts: 89

Re: Arch runs hot on hp laptop!

I don't think your radeon card is turned off and probably it heats up CPU. Are you sure you have file /sys/kernel/debug/vgaswitcheroo/switch and it's set to OFF. Check with

#cat /sys/kernel/debug/vgaswitcheroo/switch

# In order to enable or disable this script just change the execution
# bits.

Have you set your rc.local as executable?

Also you can try changing first line in rc.local

#!/bin/sh -e

to

#!/bin/bash

Last edited by einhard (2011-07-10 23:45:56)

Offline

#24 2011-07-11 22:29:11

tah_206207
Member
Registered: 2011-06-30
Posts: 24

Re: Arch runs hot on hp laptop!

einhard wrote:

I don't think your radeon card is turned off and probably it heats up CPU. Are you sure you have file /sys/kernel/debug/vgaswitcheroo/switch and it's set to OFF. Check with

#cat /sys/kernel/debug/vgaswitcheroo/switch

# In order to enable or disable this script just change the execution
# bits.

Have you set your rc.local as executable?

Also you can try changing first line in rc.local

#!/bin/sh -e

to

#!/bin/bash

Ok i cant find /sys/kernel/debug/vgaswitcheroo/switch in my Arch linux. how can i add this option to my Arch kernel?
i have another questions about Arch:
i am beginner in Arch linux how can i make Arch better distribution for use in my laptop?which desktop runs better on Arch( Kde or GNOME3)?after installing Kde which software i should install?
tnx

Offline

#25 2011-07-11 22:46:58

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Arch runs hot on hp laptop!

Perhaps you would be best served if you used xfce4 which is much smaller in footprint....not a GB install like kde4 and a simpler Desktop.........

It instaklls from pacman......


Sign of the times: Navajo blanket..made in China
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Online

Board footer

Powered by FluxBB