LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-09-2014, 05:42 PM   #16
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142

You already know how to grab the cpu temperature from "sensors", so I don't see what's stopping you from writing a simple daemon to monitor and take action if necessary?

I didn't like the fan controller on my laptop, so I wrote my own using the same idea. It's just a simple bash script that parses the output of sensors to grab the cpu temp, and then it sets the fan speed using my own algorithm. It keeps the cpu around 10-20C cooler than with the fan set to "auto". It starts up as root on boot using the "@reboot" directive in cron and runs forever on a 5 second loop. No reason you couldn't do something similar but just have it pop up a warning or kill minecraft if the temp is over some threshold.

Last edited by suicidaleggroll; 07-09-2014 at 05:44 PM.
 
Old 07-09-2014, 08:42 PM   #17
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Original Poster
Rep: Reputation: 265Reputation: 265Reputation: 265
Quote:
Originally Posted by suicidaleggroll View Post
You already know how to grab the cpu temperature from "sensors", so I don't see what's stopping you from writing a simple daemon to monitor and take action if necessary?

I didn't like the fan controller on my laptop, so I wrote my own using the same idea. It's just a simple bash script that parses the output of sensors to grab the cpu temp, and then it sets the fan speed using my own algorithm. It keeps the cpu around 10-20C cooler than with the fan set to "auto". It starts up as root on boot using the "@reboot" directive in cron and runs forever on a 5 second loop. No reason you couldn't do something similar but just have it pop up a warning or kill minecraft if the temp is over some threshold.
So how does your setup work? Do you just do some "grep" and "cut" commands on the output of "sensors"? Or is there a file in /sys or /proc that has the current temp?

I've never messed with cron, but if I have trouble with that I think I should start another thread...

I think the script would probably just kill X, wait a few secs for it to stop, then "wall" a message saying that it's overheating, wait a few seconds for her to read it, save the date in a log somewhere, then shutdown. Maybe, if I'm feeling adventurous (and lucky) I'll have it check for if it's happened previously on that day...if it happens 3 or 4 times, then disable her account.

EDIT: Even if the Arch account gets disabled, there's still Windows... maybe the script could swap my grub.cfg with one without the Win7 boot option? Any thoughts if this is a good or bad idea?

Last edited by maples; 07-09-2014 at 08:52 PM.
 
Old 07-09-2014, 09:22 PM   #18
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Wonder if this is a motherboard versus cpu sensor deal?

Does bios have any health settings to adjust when standby or shutdown happens?
 
Old 07-09-2014, 09:23 PM   #19
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by maples View Post
So how does your setup work? Do you just do some "grep" and "cut" commands on the output of "sensors"
Yep. REAL simple and works like a champ.
 
Old 07-10-2014, 07:16 AM   #20
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

Most do! Look at the output of 'lspci -vv' & 'dmesg' for your GPU.
 
Old 07-10-2014, 04:24 PM   #21
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Original Poster
Rep: Reputation: 265Reputation: 265Reputation: 265
From the output of 'lspci -vv' I don't think there's a separate graphics chip, but I'll post the relevant parts. I've never looked at dmesg before, so I have no idea what to look for...

Code:
[anthony@anthonyGoodLaptop ~]$ lspci -vv
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
	Subsystem: Dell Device 04d7
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Dell Device 04d7
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 48
	Region 0: Memory at d0000000 (64-bit, non-prefetchable) [size=4M]
	Region 2: Memory at c0000000 (64-bit, prefetchable) [size=256M]
	Region 4: I/O ports at 3000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915

00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
	Subsystem: Dell Device 04d7
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 47
	Region 0: Memory at d0705000 (64-bit, non-prefetchable) [size=16]
	Capabilities: <access denied>
	Kernel driver in use: mei_me
	Kernel modules: mei_me

<snip>

00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC Controller (rev 05)
	Subsystem: Dell Device 04d7
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich

<snip>

00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
	Subsystem: Dell Device 04d7
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin C routed to IRQ 18
	Region 0: Memory at d0704000 (64-bit, non-prefetchable) [size=256]
	Region 4: I/O ports at efa0 [size=32]
	Kernel modules: i2c_i801

<snip>
To me, it looks like there's not a separate chip, but I've been wrong before...
 
Old 07-11-2014, 08:00 AM   #22
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

You are using;
Code:
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
Do a 'modinfo i915' for module information. Intel is your GPU on this system.

On my Dell XPS;
Code:
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Dell Device 0571

01:00.0 VGA compatible controller: nVidia Corporation Device 124d (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Dell Device 0571
I must use 'bumblebeed' for Optimus to utilize the nVidia chipset. The Intel chipset provides decent graphics generally but the Optimus blows it away.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
overheating of laptop Bhagirathi08 Linux - Desktop 8 01-21-2014 08:11 AM
Laptop overheating Alexvader General 11 06-28-2010 03:43 AM
Laptop overheating gammalyrae Linux - Laptop and Netbook 3 06-14-2010 01:59 PM
Laptop Overheating Oxagast Linux - Hardware 4 03-17-2007 02:50 PM
Laptop Overheating maelstrom209 SUSE / openSUSE 12 10-07-2006 05:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration