Windows Key on Fedora, Thank you Ruben

I’ve been running compiz fusion on Fedora 8 for a while and found that my windows key short-cuts only work half the time; well I found that if I…

add Option "XkbOptions" "altwin:super_win" to the InputDevice section of my /etc/X11/xorg.conf

It works every time. I’ve logged in and out of my laptop a few times over the last couple of days and had no problems since.

Thank you Ruben :D

Fedora HP Compaq nc6320: Overheating CPU

I’ve been having issues with my laptop overheating recently, in fact ever since loading fedora the cpu has run hot. According to CoreTemp when in windows my CPU idles at 56ºC ( i.e. I’ve logged into windows opened outlook and walked away) considering my AMD Desktop machine runs at 40ºC with two users logged and the CPU peaking at 100%, means that my laptop cooks. In Fedora I’ve found that the CPU actually Idles at around 70ºC which is a joke, it means that the fan is kicking out hot air causing my desk and everything around it to get proper hot – don’t leave any chocolate bars near me!

I need to get some colleagues to run coretemp for a while to see if my laptop is broken or if it’s normal for this model of latop to run hot; in the meantime I thought I’d post some tips on what I’ve done to cool my laptop down. I’ve managed to get Fedora to idle at around 58ºC which is much closer to my windows base-line.

CPUSpeed is a service/daemon which controls what the processor is doing, i.e. if you’re not running a lot it scales down the processor to run slower and use less power, thus runs cooler. I found that my daemon was actually crashing at boot up….

#/etc/init.d/cpuspeed status
cpuspeed dead but subsys locked	

The config file for cpuspeed is /etc/sysconfig/cpuspeed, I’ve changed the govenor from blank (default: auto detect) to GOVERNOR=ondemand which seems to have solved my crashing issue. The second thing I’ve changed is IGNORE_NICE=1 (default: 0) which is now restricting which processes can scale up the CPU. The only performance impact I’ve seen is that this setting now stops VMWARE from consuming my CPU, and since I’m a patient man this is no bad thing :)

Whilst comparing my windows temp to my linux one it occurred to me that it wasn’t entirely fair, in linux I’ve got compiz graphics enabled, and a load of gnome applets which tell me information about networking, cpu speed, cpu temperature, the weather etc…. since windows has none of these it’s fair to say that my linux desktop should run a little hotter…. so the “other” trick I’ve done to bring the temperature down is to renice the applets to a lower priority…

ps ax | grep "applet" | grep -v grep|cut -c 1-5|xargs sudo renice 1

This seems to have done the trick, anything called “applet” now runs at nice 1 rather than 0, the net effect is these processes are queued up behind the “important” ones rather than continuously scaling up the processor.

I’m happy with the results so far, the desk is a lot cooler!

Learned something new recently…

Learned something new recently, Nokia IPSO supports "backup interface" except they call it "link redundancy", it’s all the same really

Cisco Pix Firewall in front of a Playstation 3.

If you saw this tweet, you’ll see that a little while ago I had some fun with Playstation 3 online gaming; it’s probably my own fault because I’m possibly the only person with a version 6 Cisco Pix Firewall at home in front of their playstation.

If you want to get online gaming working though your firewall there’s a really good online reference here and my specific grumble about having to open up a shed load of ports for EA’s Burnout paradise is documented in their support area.

To summarize, this is what I’ve got open:

General Playstation Network Ports, these always need to be open.

udp 3658
udp 3478-3479

Open these extra ones for Motor Storm

udp 3659 – 3660

Open these extra ones for Burnout

udp 3659
udp 9600-9699

If you to have a cisco pix, you’ll need to open an entry on your outside access-list, something like

access-list outside permit udp any any eq  3658

and you’ll need a static entry….

static (inside,outside) udp interface 3658 playstation3 3658 netmask

For lots of ports the access-list command supports the range statement, so

access-list outside permit udp any any range 9600 9699

But you won’t be so lucky with statics, you’ll have to add an entry for each port, I created a small bash shell script to automate the task…

for i in `seq 9600 9699`;
        echo "static (inside,outside) udp interface $i playstation3 $i netmask"

I then pasted the output into my pix. If you are having problems here are some references that might be useful are the cisco pix command ref and the pix nat guide.