Category Archives: hardware

from Sparcs to Ipods, with other gear and gadgets

laptop battery capacity

Current Mood:Sad emoticon Sad

I lost some capacity on my laptop battery to{day,night} because I accidentally left it on and unplugged when I went out to dinner tonight. :(

Tue May  8 04:40:45 MST 2007
alarm:                   unsupported
present:                 yes
design capacity:         8800 mWh
last full capacity:      8075 mWh
battery technology:      rechargeable
design voltage:          10800 mV
design capacity warning: 807 mWh
design capacity low:     403 mWh
capacity granularity 1:  264 mWh
capacity granularity 2:  8 mWh
model number:            351s1
serial number:           001
battery type:            LiOn
OEM info:                OEM
present:                 yes
capacity state:          ok
charging state:          charging
present rate:            unknown
remaining capacity:      7529 mWh
present voltage:         12597 mV

The last full capacity had been 8331 mWh for quite a long time after I began keeping track of my battery usage, and draining the battery at least once every two weeks hoping to extend the life of my new battery. Ohwell.

I deserve cools toys

More and more lately I’ve been wanting to get a Nintendo DS. Especially since I first read about people getting under their hoods and shall we say, extending their functionality. So about a month ago when I was in California, I was at a friend’s place, her DS was laying around, so I checked it out while we chatted a bit. This again peaked my interest so I mentioned my interest in getting one. She said one of the games she plays is Mario Kart DS. My money situation being what it is, deficient, and also feeling the need to get something nice for myself I splurged.

…so to make a short story shorter tonight (monday night) I decided to get myself an Onyx Nintendo DS Lite, and as a starter game I got Mario Kart DS for a couple reasons, I knew that would be a safe bet to start off with for a first game for multi-player action with friends or even random people over the internet it should work over the wifi I have blanketing my house. ( It didn’t work at first and after some reading up and a couple modifications all was fine. )I actually had to retard, and I say this nicely, one of my access points to 1-2mbps, as apparently 11mbps is too much for these lil toys. So to make my DS feel special, not that it actually can, it has it’s own SSID and access point on my network at home, “OPEN4BUSINESSds”. No more fumbling with it anymore, it just works fine, I played a few people earlier over it and they kicked my ass pretty good.

Oh yeah, I got a friend code after I got online with Mario Kart DS, so I’m putting it on here mostly for a point of reference, maybe/hopefully it’s the same for all the online multi-player DS games.

536 964 812 678

Another reason I wanted to get the DS lite, is I’ve been running out of Xbox games to rent from GameFly. I’d feel foolish just giving them money and not renting video games or playing the games, as they tend to sit around stagnant for weeks on end sometimes before being played. I need to make a list of all the games to try out for the DS. One game I definately want to try is Brain Age. Which is in my queue, and hopefully will get to me before I get to California next week.

It would be most helpful if I could get some opinions from the other known DS junkies including some favorite games and helpful comments.

laptop battery

I haven’t posted any statistics about my laptop battery in quite some time.
Noticeably I haven’t lost any more capacity since November.

$ battery.sh 
Thu Mar  1 18:13:06 MST 2007
alarm:                   unsupported
present:                 yes
design capacity:         8800 mWh
last full capacity:      8331 mWh
battery technology:      rechargeable
design voltage:          10800 mV
design capacity warning: 833 mWh
design capacity low:     416 mWh
capacity granularity 1:  264 mWh
capacity granularity 2:  8 mWh
model number:            351s1
serial number:           001
battery type:            LiOn
OEM info:                OEM
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            unknown
remaining capacity:      8331 mWh
present voltage:         12631 mV

boredom, let’s write about…

I got my PayPal security key today. My PayPal and eBay accounts are now more secure I believe, not that I use either of them often, if only rarely. But if I ever lose the FOB I will be SOL for at least a week, and of course probably have to deal with customer service which no one likes to do. If you use either service regularly i would suggest getting it for that extra bit of satisfaction with security. I got mine for free because years ago I made my PayPal account business level, but they are only $5 for everyone else. Although I think they should be free for all the users.

I wish i had stereo vision like a raptor, or fly for that matter. sorry watching a thing on PBS, nature: raptor force.

oh yeah, I saw this cool background, I just had to save. Set this as your background on a page, or desktop and stare for hours. :)
7477ho7cl987eb.gif

Also it rained yesterday pretty hard for about 5 minutes around 5:30 pm, and then again later once the sun set. Today the weather has been beautiful, clear, and kind of warm.

Today for lunch I had my favorite sandwich from Debbie’s Deli. MMmmm, Rob’s Reuben. Hot corned beef, sour kraut, sourdough bread, and thousand island dressing. It’s sooo good, best sandwich in town, hands down. This should have been written in a microformat so search engines pick it up, but ohwell.

[note] automagical save draft feature in wordpress 2.1 saved this post from the bit bucket of being lost in /dev/null

Pocket PC Windows Tax

I read something the other day about the “Windows Tax” via [linux-watch.com] basically a method for getting a refund on the OEM version of MS Windows you are “Forced” to buy with a PC from some manufacturers. I wonder if this method will also work when purchasing a Pocket PC with Microsoft Software on it. I’m thinking about this because I just read on the this weeks GWN, that a member of the Russian Gentoo Community managed to get E17 running on his HP iPAQ hx4700. Obviously users have managed to get Linux running on their PDA’s for quite some time, but my brain didn’t really put the one and two together. Why should you have to buy the Pocket PC OS when your just going to put Linux on it anyway? Does Palm have the same terms in their license I wonder?

Now I wonder how difficult this could be mostly because I don’t think I’ve ever seen the Pocket PC OS sold separately. In the Linux.com article the person uses the Microsoft Windows Home Edition as a baseline for his requested refund amount.

Perhaps the refund amount will be more substantial since the cost of a sweet PDA is almost twice as much as the run of the mill PC.

wish list

just adding that I’d like some bluetooth devices;
latest/greatest bluetooth dongle
a pair of headphones
an optical mouse with lots of buttons
split keyboard.

all rechargeable somehow.

mega changer

I wonder if this works with linux.

Sony VGP-XL1B2
200 Disc Changer; CD, DVD, etc.
Firewire connection.

Maybe once these are around $200 I’ll put it on my wish list.
:)

DIY Jukebox.

Control your robot with six axis.

Now that people have figured out those Wii Remote Controllers are bluetooth devices.

I’d like to control my futuristic LEGO robotic army with a Wii-mote and nunchuck.

Wii-mote
+
LEGO Mindstorms NXT
=
Priceless.

pci config space bits.

[disclaimer]THE FOLLOWING CAN DAMAGE STUFF[/disclaimer]

My laptop has a SiS5513, well atleast linux thinks it is.  It’s really a SiS962.  I’ve had my laptop for a few years now, and I wish I would have “figured” this out sooner.

/*
* The original SiS5513 comes from a SiS5511/55112/5513 chipset. The original
* SiS5513 was also used in the SiS5596/5513 chipset. Thus if we see a SiS5511
* or SiS5596, we can assume we see the first MWDMA-16 capable SiS5513 chip.
*
* Later SiS chipsets integrated the 5513 functionality into the NorthBridge,
* starting with SiS5571 and up to SiS745. The PCI ID didn't change, though. We
* can figure out that we have a more modern and more capable 5513 by looking
* for the respective NorthBridge IDs.
*
* Even later (96x family) SiS chipsets use the MuTIOL link and place the 5513
* into the SouthBrige. Here we cannot rely on looking up the NorthBridge PCI
* ID, while the now ATA-133 capable 5513 still has the same PCI ID.
* Fortunately the 5513 can be 'unmasked' by fiddling with some config space
* bits, changing its device id to the true one - 5517 for 961 and 5518 for
* 962/963.
*/

In order to fix this, I need to use pcitweak to change some bits.  There isn’t a whole lot of information around the internet about pcitweak, so I have no idea if this is permanent.  Hopefully if it works it is, and if it does not work, then it was merely temporary.

px@pmobilex ~ $ sudo pcitweak -r 00:02:5 -h 02
0x5513
px@pmobilex ~ $ sudo pcitweak -r 00:02:5 0x0
0x55131039
# 5513 is the device ID, 1039 is the Vendor ID
 
px@pmobilex ~ $ sudo pcitweak -w 00:02:5 0x0 0x55181039
px@pmobilex ~ $ sudo pcitweak -r 00:02:5 0x0
0x55131039
px@pmobilex ~ $ sudo pcitweak -w 00:02:5 0x0 0x55181039
px@pmobilex ~ $ sudo pcitweak -r 00:02:5 0x0
0x55131039

When I write the information I get no output.
I can’t for the life of me figure out why pcitweak won’t actually write the values.  Using su, or sudo makes no difference.

[update]
OK, maybe this can help me. I found another program called setpci. why it took me so long to find i’ll never know. On Gentoo you’ll need to have >=sys-apps/pciutils-2.2.0-r1 installed.
I’ll explain the options I’m using first.
-v be verbose
-D Don’t actually do anything, just list it.

px@pmobilex ~ $ sudo setpci -v -D -H1 -d 1039:5513 0
00:02.5:00 = 39
px@pmobilex ~ $ sudo setpci -v -D -H1 -d 1039:5513 1
00:02.5:01 = 10
px@pmobilex ~ $ sudo setpci -v -D -H1 -d 1039:5513 2
00:02.5:02 = 13
px@pmobilex ~ $ sudo setpci -v -D -H1 -d 1039:5513 3
00:02.5:03 = 55
[/bash
 
We only need to change registers 2 and 3, well really only 2 in my case.
# You can also ask for multiple registers in one command.
px@pmobilex ~ $ sudo setpci -v -D -H1 -d 1039:5513 0 1 2 3
00:02.5:00 = 39
00:02.5:01 = 10
00:02.5:02 = 13
00:02.5:03 = 55
px@pmobilex /etc/portage $ sudo setpci -v -H1 -d 1039:5513 device_id.W=0x5518
00:02.5:02 5518
px@pmobilex /etc/portage $ sudo setpci -v -D -H1 -d 1039:5513 device_id
00:02.5:02 = 5513

Grrr, still won’t change. What’s the point of these tools if they don’t work?

# as root.
pmobilex px # setpci -v -H1 -s 0:02.5 device_id
00:02.5:02 = 5513
pmobilex px # setpci -v -H1 -s 0:02.5 device_id.W=0x5518
00:02.5:02 5518
pmobilex px # setpci -v -H1 -s 0:02.5 device_id
00:02.5:02 = 5513

OK, it works, but not for what I need? argh.

pmobilex px # setpci -v -d *:* latency_timer
00:00.0:0d = 40
00:01.0:0d = 40
00:02.0:0d = 00
00:02.1:0d = 00
00:02.3:0d = 40
00:02.5:0d = 80
00:02.6:0d = 40
00:02.7:0d = 40
00:03.0:0d = 40
00:03.1:0d = 40
00:03.2:0d = 40
00:03.3:0d = 40
00:04.0:0d = 40
00:08.0:0d = a8
00:0a.0:0d = a8
01:00.0:0d = f8
pmobilex px # setpci -v -d *:* latency_timer=b0
00:00.0:0d b0
00:01.0:0d b0
00:02.0:0d b0
00:02.1:0d b0
00:02.3:0d b0
00:02.5:0d b0
00:02.6:0d b0
00:02.7:0d b0
00:03.0:0d b0
00:03.1:0d b0
00:03.2:0d b0
00:03.3:0d b0
00:04.0:0d b0
00:08.0:0d b0
00:0a.0:0d b0
01:00.0:0d b0
pmobilex px # setpci -v -d *:* latency_timer
00:00.0:0d = b0
00:01.0:0d = b0
00:02.0:0d = 00
00:02.1:0d = 00
00:02.3:0d = b0
00:02.5:0d = b0
00:02.6:0d = b0
00:02.7:0d = b0
00:03.0:0d = b0
00:03.1:0d = b0
00:03.2:0d = b0
00:03.3:0d = b0
00:04.0:0d = b0
00:08.0:0d = b0
00:0a.0:0d = b0
01:00.0:0d = b0

I guess I’ll see if I can patch the sis5513.c to be always be hard coded as a sis5518.

resources:
http://lkml.org/lkml/2003/6/20/208
file:///usr/src/linux/drivers/ide/pci/sis5513.c
http://www.linux-hacker.net/cgi-bin/UltraBoard/UltraBoard.pl?Action=ShowPost&Board=technical&Post=2489
http://www-128.ibm.com/developerworks/library/l-hw2.html
http://www.daniel.nofftz.net/linux/Athlon-Powersaving-HOWTO.html
http://www.fedoraforum.org/forum/showthread.php?p=556644
http://www.mail-archive.com/linux-ide@vger.kernel.org/msg01794.html

laptop battery weirdness

while updating my system today, I decided to let my laptop use some of the battery because it’s been plugged in all week. now something interesting happened after trying to plug the system back into the wall. the battery says it’s charged.

Click to continue reading “laptop battery weirdness”