Posts

A ebay fake GTX 1050/2GB video card is really a GK107B4 GTX 650ti/1GB: restoring functionality by flashing video BIOS with CH431A board

I (knowingly) purchased a fake GTX1050 from ebay for about $90. That's how you know it's fake, of course. It performed OK for desktop apps but was way slow for any benchmarks and also crashed with corrupted video garbage whenever more than 1GB of RAM was used. Of course eBay gave me my money back, which I was counting on when I made the purchase. 


The back of the board gave no real hints to the actual GPU, though it did expose a video bios flash ram chip. NVFLASH couldn't reprogram it, probably due to intentional corruption of the firmware, so I had to purchase a CH431a programmer (for all of $3 on ebay, plus a clip to connect it while still soldered onto the board!!). Before flashing it I had to decide what it actually was. Taking off the heat sink revealed a model number on the board: gk107b4, which could be just about anything in the GTX 600 series. Interestingly, the chip had some of the writing on it worn off. Like they were trying to head off possible returns. Only this part remained: 220-a.


 I eventually guessed it was a GTX650ti, and using tech powerup's video bios database flashed the card. The first flash didn't work - no video output. But I hadn't been that careful about matching up the outputs - this card had HDMI out, and the bios I downloaded only had MiniHDMI. So I tried again with a perfect match. Bingo: Working video card. I benchmarked using userbenchmark which allowed me to compare video card performance to all the other 650ti's out there. The card benchmarked right in the middle of the pack so either I guessed right, or just close enough.

I also tried a longer benchmark with unigine heaven 4.0. Worked fine, no glitches or otherwise. Success! But it's a damn slow card compared to a GTX 1050. Who falls for this kind of thing, anyway? On the upside, this card performs way better than a rectangular scrap of cardboard that I scrawled GTX 1050 on, and for about the same cost. If you discount my time that is, which is always a mistake :-(.

Replacing video BIOS on fake GTX video cards on ebay

For a 3rd or less of the price of a new video card it's possible to purchase the "same" thing from ebay, also new, with slow boat shipping from china. Sadly, the cards are fake, with real GPUs but much older low-end that what's advertised. 

The fake cards I purchased had been reprogrammed to show different, much fancier GPU names, but also more memory than they really had. Thankfully ebay refunded my money with little fuss. Next question: can the cards be reflashed to their original BIOS? A fake name is no big deal but faking more memory than you really have causes massive issues in games.

Here are the tools I used:

A $3 USB eprom flasher called the CH341A. Software to drive this is here (not sure if it has malware, virus total thinks so, so I used a burner winxp image). 

The general method for using the CH341A to flash nvidia firmware is written up here, with some errors (extra steps, not harmful).

The replacement firmware can be found online in this excellent database, for instance here's all the GTX 550 Ti firmware that could be tried for a 1GB card.

After using the CH43A1it's possible to use a hacked version of nvflash to swap in new firmware without using the finicky hardware. nvflash XYZ.rom -4 -5 -6 

I was able to flash 2 out of 3 cards, but only for 1 card could I find a BIOS that made it work properly. So "success" but not full success. Kind of a lot of time wasted! Later I'll discuss each card in detail and post photos.

Weekly grocery specials for Clairemont Mesa Balboa/Genesee area


Food 4 Less (4995 Shawline St)
Harvest international, on balboa ( 4220 Balboa Ave San Diego, CA 92117 )
Ranch 99 (good parking/limited selection or: amazing selection/horrid parking )
Balboa International market (5905 Balboa Ave)

Configuring Raspberry Pi Zero W as NAS/backup server using Unison

"Free" cloud storage: overview 

I built a super cheap linux box for backing up my files remotely. I used the cheapest components, mostly what I had on hand. My costs were less than $50, one time, if you factor in my friend who's willing to let this live at his house permanently ($free/pricele$$). The total power draw is about 3.4W at idle which works out to about $7/year at least in southern California where rates are sky high.  

Parts:

  • Raspberry pi Zero W: ~$12
  • 2GB Micro SD card ($3?)
  • Samsung S7 phone charger
  • WD Elements 500GB HD (<$30)
  • Old USB hub with power adapter ($10?)

Linux on a raspberry pi


Using Rufus, I wrote 2018-04-18-raspbian-stretch-lite to a microSD card.  This fit nicely on a 2GB SD card with ~400mb free/leftover.

You can install an OS on the Pi without any screen. To summarize, add these files to the FAT partition of the SD card:

1) wpa_supplicant.conf with unix line endings:

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev 
update_config=1
network={
       ssid="YourNetworkSSID"
       psk="Your Network's Passphrase"
       key_mgmt=WPA-PSK
    }

2) ssh (file is empty).

On my first boot of the Pi didn't manage to log into my network. Checking the SD card is confusing because on boot the Pi deletes the ssh and wpa file from the fat partition. To find out what's going wrong connect your pi to HDMI and run journalctl (dmesg reported wlan0 wasn't ready but not why). I had a typo in wpa_supplicant. I wasted a lot of time trying to find solutions, which involved lots of commands and configuration files which are all no longer used in a modern raspbian-stretch image. Don't believe what you read online.

The Pi's green light flashes quite a bit during boot but once it is solid the machine was ssh'able (about 1 minute). I removed the pi user (userdel) and made one for me (adduser), adding it to /etc/sudoers with sudoedit.

The idle power usage at this point was less than 1w if you can believe my killawatt.

Plugging in a hard drive

In /boot/config.txt I added max_usb_current=1 so that enough power is available to run the spinning HD. Actually, this wasn't enough for my drive, so I had to "backpower" the Pi.  That means that I plugged the drive into a 1A powered hub and the hub into the pi's usb (not power) port. The hub powered both the pi and the drive. Some people say this is a bad idea, but only because it bypasses a fuse that would protect the Pi from a surge. My Pi didn't cost that much. Unfortunately in this configuration the power draw was too high to consistently start up the hard drive, so I ended up forward and backward powering the Pi. Which seems to cause no problems, but probably isn't the most efficient. 

This explains how to mount and format an USB drive (not that different from any other type of drive).

Adding   /dev/sda /mnt ext4 defaults,nofail   to /etc/fstab makes the drive mount automatically at boot. chown user /mnt makes it so that your user can write to the mounted drive.

I wanted my hard drive to spin down while not in use. The first hard drive I tried (coolmax)  did not default to this, either under linux or windows.  So I learned all about how to change that setting, which is preserved here.  I tried 4 packages that didn't work before finding the 5th that did:

  1. hdparm is the standard program you see everywhere, but mostly doesn't work with USB drives
  2. sdparm is specific to SCSI drives in theory, but apparently many USB mass storage devices emulate SCSI.  Not in my case anyway.
  3.  sg3-utils is another way of sending SCSI commands. I'm really starting to doubt this whole USB pretends to be SCSI since it didn't work either
  4. udisks2 is another generic disk control program & deamon (not just for SCSI!) that didn't work.
  5.  smartmontools from the name you'd think it's only for SMART (drive health) but apparently they threw the kitchen sink in there (total install footprint is 30MB!). This worked.

Cutting to the chase:

apt-get install smartmontools

add this line to /etc/rc.local:

smartctl --set=standby,15 /dev/sda

When spun up the total power usage reached 6W, but more importantly the idle consumption is just 3.4 W. That's around 3W for the HD for those keeping track. I suspect it could be much better but for the low-efficiency powered hub I'm using. The power adapter actually feels warm to the touch even at idle.  When I was using the coolmax drive my idle consumption was just 2.4W, total using a LG phone USB charger, but the drive didn't always spin up on reboot.


Attempting to save more power (made a tiny difference)


https://scribles.net/disabling-bluetooth-on-raspberry-pi/
https://www.jeffgeerling.com/blogs/jeff-geerling/raspberry-pi-zero-conserve-energy

Installing unison

apt-get install unison

Best to read the manual because there's lots of options to consider. Here's the basics of my pi.prf file on my PC. There's really too much to cover here sorry.

# Unison preferences
auto = true
fastcheck = yes
# Skip files ending in Name (mind the /)
ignore = Name *.tmp
ignore = Name Thumbs.db
ignore = Name ZbThumbnail.info
ignore = Name Release/*.pch
ignore = Name Debug/*.pch
ignore = Name Release/*.bsc
ignore = Name Debug/*.bsc
ignore = BelowPath $RECYCLE.BIN
ignore = BelowPath RECYCLER
ignore = Name System Volume Information
ignore = Name lost+found
root = h:/
root = ssh://user@DNS//mnt
times = true
xferbycopying = true
perms = 0
maxthreads = 1

Dynamic DNS if you don't have static IP 

Afraid.org offers free and reliable dynamic DNS so that you can connect to the machine remotely even when it gets assigned a new IP. I used the wget/cron script and crontab -e to install it. Just editing the cron file doesn't work, even though comments in the file suggest it would. 

Conclusion 

Cheap. Reliable? I hope so. My last attempt at this using a netbook wasn't reliable, but I think that was the hardware. Plus the netbook used about 3W more power at idle so in the long term this will be a better option (I guess that depends on who pays for the power though). 

update: worked great for a year and then the hard drive died. I suspect I wasn't powering it well enough since it was driven by the same USB adapter that also powered the pi. I switched to a new hard drive with it's own external brick, described here. While the power consumption was higher when on, I was able to make it overall much lower by hot-unplugging the USB hardware when not in use


Choosing a new low-input lag monitor for gaming

I'm looking for a new IPS LCD for my gaming/exercise rig. Because I'm using it for exercise, I need the color to be stable  independent of viewing angle, which means IPS. Which is too bad for gaming, where TN offers the highest speed and the lowest prices. But IPS is non-negotiable.

Modern IPS monitors offer much better response times than what was available a decade ago, which is when my current Samsung LCD was sold. There's no specific measurements for my model, but a very similar one was clocked at 60ms more lag than a CRT.  Even though the measurement methods used in those days were questionable, that's awful.

So far I've found a couple options that don't break the bank:

Dell SE2717HR

27 inches, 75hz max refresh rate, and freesync compatible. Regular lower price is $144, has been as low as $110 with MIR. I have not found a good measure of lag though. Tom's Hardware has some numbers for the same mode minus the R; it looks like very similar specs so???  They measure lag by pushing a button and waiting for the screen to actually change, which is realistic but gives a number much larger than any other measurement method: 47ms. I tried to find some way to translate this to the numbers from prad.de, whom supposedly use an oscilloscope to measure response time.

I looked for a common monitor review. The one I found is the asus mg24uq, which Tom's method rates at 63ms, and prad rates at 6ms! Yikes. How can they be talking about the same thing here? I'd like to trust prad here, since I went to all the work of letting google translate the german review into english :-)

VC279H 27in, 60hz max. Not freesync. Currently $160, has been $130 with MIR. prad rates the lag as 13ms in game mode. And it has vesa mounting. Some issues tho: for DVI inputs it seems that it doesn't do a good job of scaling < 1080p inputs. On HDMI it scales properly, but expects "video" luminance levels, meaning it maps the lower 16 shades of gray all to black (presumably a similar issue for white). Interesting that the two inputs clearly use different different hardware paths. No word on VGA.

VC239h 23in, 60hz, no freesync VESA mountable. $136. Presumably the same as above but smaller by 4 inches. This is actually what I purchased. The low-lag is really quite good, and quite a bit noticeably improved over my acient samsung LCD. Interestingly, it took awhile for me to adjust in some of my more twitch-orgiented games to the lower lag. Which is to say it was actually harder to play with less lag at first. I got over it, though.

The ergonomics of this display are so bad though. Most painful is that there's no button for switching between inputs. You have to mess around with the on-screen menus and it requires 3-5 button presses depending on which mode you are in and where you want to go. Man I'm regretting this purchase for that reason alone.







Does anybody prefer windows 10 to windows 7

I'm serious. I've yet to meet anyone who does. And I can't think of a real world usage case where I would prefer 10. I'm open to new perspectives, so enlighten me!

Meanwhile, how embarrassing for Microsoft. Somewhat reminiscent of the xp to 7 transition, where there were some advantages to 7, but not so many that it made the pain of the transition easy to ignore.  In each case the "killer" freature was that Microsoft literally killed the older OS by stopping security updates.

It's unfair to expect Microsoft to continue to improve or support an os so old that many customers payed for it more than 5 years ago. But forcing an unloved "update" on your users is not the way to maintain market share. If only osx wasn't a crappy alternative or Linux had better q/a the choice would be obvious.

PS. I'm not saying there are zero improvements in 10. Although the only one that comes to mind is the improved file copying status dialog box. I'm just saying none of those mild improvements justifies all the huge regressions in usability.

Lg Stylo 4: a disappointing "upgrade'

I've been saying a lot of positive things about the Stylo 3, and had high hopes for the 4th edition. Sadly LG is not the only one not reading my blog ;-)
Most disappointing is that the Stylo 4 does not have a removable back. No longer can you replace they battery. Or other broken components (which I have actually done on my Stylo 3). In this day and age there isn't such a huge improvement in phones every year. Continuing to make them disposable instead of repairable is morally questionable, and I thought that at least the the Stylo team had this figured out. The Stylo 3 was trivially easy to disassemble, and replacing a broken LCD took 10 minutes. No longer with the Stylo 4, which has a glued on back just all the other phone of this era.

Email me

Name

Email *

Message *