New Computer case.

Posted: January 31, 2011. At: 4:40 AM. This was 7 years ago. Post ID: 917

I have just got a Gigabyte case to match my Gigabyte motherboard and it is a black color and the same size tower case I had previously, but it has two fans, one in front at the bottom and one at the back. After transplanting the 550W power supply and motherboard into the new case and sorting out the over 9000 cables you have to connect, I was set. This is not very difficult at all, you just need to remember what you did last time and reconnect the miscellaneous wires and cables the same as before, but the wire connections for the HDD LED’s and the power switch are a right royal pain to get right. But the Gigabyte H55 motherboard has labelling on the PCB that helps with this. Now I have proper front USB connections and a multi card reader that fits into the 3.5″ drive bay. That is very convenient. The only thing you do not want to do is dislodge the Intel cooler from your CPU and run it and wonder why the machine keeps shutting down after about a minute. Very embarrassing when that happens. The stock Intel cooler that comes with a Core i3 530 CPU is much easier to install than the previous incarnations of cooling mountings like the one that I had on my old Celeron 2.4GHZ motherboard. That was extremely difficult to remove compared to the i3 cooler, things are getting easier and easier to install, although something like a Pentium CPU would not need too big a cooler and a 486 would hardly need much cooling at all. The future of CPU’s was predicted to require huge coolers as the temperature would approach the melting point of metal, but now we have relatively cool running i3 CPU’s that require only a stock cooler to run comfortably. The future therefore, is with adding multiple cores and making the CPU run as efficiently as possible. I would love to run a Xeon CPU with eight cores, but a 4 core i3 is just fine. With the CPU Frequency Scaling support in the latest Linux Kernels you can run the CPU at 1.20GHZ and have it scale up to 2.93GHZ if needed. That is what I have configured in my 2.6.38-rc2 kernel, in the CPU Frequency Scaling section, you just enable the

CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y

Like this.

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
CONFIG_CPU_FREQ_DEBUG=y
CONFIG_CPU_FREQ_STAT=m
CONFIG_CPU_FREQ_STAT_DETAILS=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=m
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m

#
# CPUFreq processor drivers
#
CONFIG_X86_PCC_CPUFREQ=m
CONFIG_X86_ACPI_CPUFREQ=m
CONFIG_X86_POWERNOW_K8=m
# CONFIG_X86_SPEEDSTEP_CENTRINO is not set
CONFIG_X86_P4_CLOCKMOD=m

#
# shared options
#
CONFIG_X86_SPEEDSTEP_LIB=m
CONFIG_CPU_IDLE=y
CONFIG_CPU_IDLE_GOV_LADDER=y
CONFIG_CPU_IDLE_GOV_MENU=y
CONFIG_INTEL_IDLE=y

This is good for saving a very small amount of power and still having some on reserve when you need it. The 2.6.38-rc2-12 kernel is performing very well indeed for a mainline kernel, it is very fast and smooth and I have had no problems with it at all. This is the best version of the kernel yet and my 64bit OpenSuse Linux system is faster and better than the Ubuntu systems I have used before, and more reliable too. I think I may have posted this before, but this is a little program I am working on that writes a text string to a file. I have got it to work perfectly and it compiles without errors using gcc -Wall.

/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/

/********************************************************************
* Description:
* Author:  <shoggoth>
* Created at: Wed Jan 19 13:06:21 EST 2011
* Computer: myhost
* System: Linux 2.6.33-ARCH on x86_64
*
* Copyright (c) 2011   All rights reserved.
*
********************************************************************/

#include <stdio.h>
#include <time.h>

#define format "At this time: %H:%M:%S"
#define text "OP is a Troll."

int lineofstars (void) {
	int x = 0;
	while (x < 64) {
		printf("*");
		x++;
		if (x == 31) {
			printf("<|>");
		} else if (x == 64) {
			printf("\n-\n");
		}
	}
	return 0;
}

int main (int argc, char** argv) {

	lineofstars();

	char *File;
	char String[60];
	struct tm *ptr;
	time_t tm;
	char length[60];

	tm = time(NULL);
	ptr = localtime(&tm);
	strftime(length, 100, format, ptr);

	File = "log.txt";
	snprintf(String, 100, "%s, %s\n", length, text);

	FILE *f;
	f = fopen (File, "a+");

	if (!f) {
		printf("Sorry, I cannot open the file %s.\n", File);
		return 0;
	}

	fprintf(f, String);

	fflush(stdout);
	fclose(f);

	return 0;
}

And this is the ~/.xsession file I am currenty using when I want a minimal desktop. Larswm is the fastest desktop available for Linux and very minimal.

#!/bin/sh

#
# Copyright (c) 2004 Lars Bernhardsson, see README for licence details
#
# sample.xsession - Login script for larswm
#

# Clear root window settings and set background color
xsetroot && xsetroot -solid DarkSlateGrey

# 2nd screen
# xsetroot -display :0.1 && xsetroot -display :0.1 -solid lightgray

# Start a couple of tools
xload -geometry 96x48-0-0 &
xbiff -geometry 48x48-100-0 &
oclock -geometry 48x48-152-0 &

# Start a background job that feeds date/time to larswm
larsclock &

# Start wm.
exec larswm
[Ackley] took another look at my hat . . . "Up home we wear a hat like that to shoot deer in, for
Chrissake", he said. "That's a deer shooting hat."
Like hell it is. I took it off and looked at it. I sort of closed one eye, like I was taking aim at it.
"This is a people shooting hat," I said. "I shoot people in this hat."
	--The Catcher in the Rye, J.D Salinger. 1951.

No comments have been made. Use this form to start the conversation :)

Leave a Reply