Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2007-11-29 3:09:47 pm

tristand
Member
From: Oxford UK
Registered: 2007-11-15
Posts: 53
Website

My eee now has a keyboard light

I've been finding the eee hard to use in the dark. I miss the keyboard light on my old Thinkpad!

I decided to fit a white LED in the frame above the LCD to light up the keyboard. And I wanted it to be software controlled - I need to be able to switch it on and off without an external switch.

To do this I have fitted a PCF8574 I2C IO expander to the SMBus on the eeePCs motherboard.

It's worked out pretty well! My eeePC is now pretty tricked out with an extra 4 gigs of internal flash, internal bluetooth and a keyboard light! (see http://forum.eeeuser.com/viewtopic.php?pid=25175#p25175.

Here's how I fitted the LED into the frame of the LCD. I drilled a hole through at an angle so the LED would shine on the keyboard. It's fixed down with hot melt glue. I had to sand the LED down a bit to let the eee close fully.
http://i240.photobucket.com/albums/ff69/tristand82/eeePC%20LED%20mod/ledgluedinframe.jpg

This is how I routed the cables (the blue ones) through the hinge. I used a bit of PVC sleeving to prevent the cables getting damaged in the hinge. The two wires go down the same hole as the fan wires and into the miniPCIe expansion area.
http://i240.photobucket.com/albums/ff69/tristand82/eeePC%20LED%20mod/CableRouting.jpg

An easy place to tap into the SMBus is on the EEPROM chip on the memory module, I did try the SMBus connections on the miniPCIe expansion connector but had no luck. They had signals on but not the ones I was expecting!
http://i240.photobucket.com/albums/ff69/tristand82/eeePC%20LED%20mod/i2cwires.jpg

http://i240.photobucket.com/albums/ff69/tristand82/eeePC%20LED%20mod/i2cwires2.jpg

This is the miniPCIe expansion bay. You can see my 4g USB flash drive and bluetooth adapter. The chip wired like a dead bug is the PCF8574 I2C IO Expander. The two blue wires go to the LED. The anode is wired to 3V, the cathode to P4 of the PCF8574. The other connections to the PCF8574 are 3V, ground, SDA, SCL and 3 address line pulled to 3V.
http://i240.photobucket.com/albums/ff69/tristand82/eeePC%20LED%20mod/pcfchip.jpg

This is what the outside of the lcd frame looks like with the LED poking out. The black tape prevents the LED blinding me while I'm working. It's not too pretty but it's OK with me!
http://i240.photobucket.com/albums/ff69/tristand82/eeePC%20LED%20mod/LEDExt.jpg

Lights off:
http://i240.photobucket.com/albums/ff69/tristand82/eeePC%20LED%20mod/dark.jpg

Light on! (It's not easy to see from the photo but the keyboard has enough light to use easily).
http://i240.photobucket.com/albums/ff69/tristand82/eeePC%20LED%20mod/light.jpg

Now for the software side.

I compiled the PCF8574 module from the ASUS source tree and installed it. I needed these modules:

Code:

modprobe i2c-dev
modprobe i2c_i801
modprobe pcf8574

Now, to control the LED I wrote this script:

/usr/bin/kblighttoggle:

Code:

#!/bin/sh
LIGHTSTATE=`cat /sys/bus/i2c/drivers/pcf8574/0-0027/read`

if [ $LIGHTSTATE = "255" ]; then
echo 239 > /sys/bus/i2c/drivers/pcf8574/0-0027/write
else
echo 255 > /sys/bus/i2c/drivers/pcf8574/0-0027/write
fi

Each time it is run it toggles the state of the LED.

I have bound it the the key combination Ctrl-Alt-L by adding this to my ~/.icewm/keys file:

Code:

key "Alt+Ctrl+l"                sudo kblighttoggle

So now when I hit ctrl-alt-L the light comes on or goes off.

Done!

Last edited by tristand (2007-11-29 3:51:39 pm)

Offline

 

#2 2007-11-29 3:14:11 pm

PaulMdx
Senior Member
From: Eee PC 4G White w/Xandros - UK
Registered: 2007-09-23
Posts: 536

Re: My eee now has a keyboard light

Haha, great mod.  Not sure how useful it would be for me personally, but what a great job!! big_smile


eee-developers.com - For software dev, hardware mods and more

Offline

 

#3 2007-11-29 3:14:37 pm

quagga
Senior Member
From: Virginia, Earth
Registered: 2007-10-31
Posts: 411

Re: My eee now has a keyboard light

Now that's pretty wicked.  Nicely done!

Offline

 

#4 2007-11-29 4:23:09 pm

streetUK
Senior Member
Registered: 2007-11-06
Posts: 178

Re: My eee now has a keyboard light

lol i just noticed your wallpaper. Its a similar thing to mine where i took a pic of the sunset from my window. Nice mod btw, i was alittle dissapointed when i realised it was just a light, i actually thought the keys actually lit up (imagine there was a light underneath the keyboard).

Offline

 

#5 2007-11-29 4:30:11 pm

LazerTag
Senior Member
From: STL
Registered: 2007-11-14
Posts: 506
Website

Re: My eee now has a keyboard light

That is cool, but it begs the question


"Great mod?  or, Reason to buy EEE in white?"  lol


LT
----------------------------------------------------------------------

Offline

 

#6 2007-11-29 4:32:59 pm

flinch
Member
Registered: 2007-11-27
Posts: 52

Re: My eee now has a keyboard light

awesome


black 4g with beryl on default xandros & ubuntu 7.10 on external harddrive

Offline

 

#7 2007-11-29 4:42:15 pm

Phantaxus
Member
From: UK
Registered: 2007-11-16
Posts: 24

Re: My eee now has a keyboard light

LazerTag: i bought one in white for exactly that reason

Last edited by Phantaxus (2007-11-29 4:43:00 pm)

Offline

 

#8 2007-11-29 5:08:40 pm

refl3x
Member
Registered: 2007-11-16
Posts: 83

Re: My eee now has a keyboard light

Very nice! Don't fancy doing that myself but a very nice idea.


Black Eee 4G // 2GB DDR-2 6400 // Win XP Pro // Currently Modding my Eee!

Offline

 

#9 2007-11-29 5:34:19 pm

tnkgrl
Member
From: San Francisco
Registered: 2007-10-31
Posts: 71
Website

Re: My eee now has a keyboard light

@tristand, that's a pretty awesome mod! Thanks for sharing...

Offline

 

#10 2007-11-29 5:50:34 pm

a06play
Member
From: London, UK
Registered: 2007-11-16
Posts: 13

Re: My eee now has a keyboard light

wow, very impressive! i couldn't even dream of being able to do something like that.

Offline

 

#11 2007-11-29 6:03:49 pm

Haku
Senior Member
From: Glos. UK
Registered: 2007-10-23
Posts: 435
Website

Re: My eee now has a keyboard light

Neat idea, the Fujitsu U810 UMPC (looks great, wish I could afford one) has a couple of LEDs built-in to illuminate the keyboard: http://digital-lifestyles.info/copy_ima … 10-lg1.jpg

Does anyone know if on the Eee the white text on the black keys shows up in UV light? or wether the white Eee shows up in UV light?


The Asus Eee is not a laptop, it's a legtop!

Offline

 

#12 2007-11-29 11:03:55 pm

Hahutzy
Senior Member
Registered: 2007-11-03
Posts: 263

Re: My eee now has a keyboard light

I really want to try and take this to the next level -- putting led lights in the keyboard to light them from below...

Here's the question: will LED light shine thru the black 3e's keyboard keys? I can confirm that LED will light up white keyboard keys, because I just tested it with my (and soon to be my brother's) white 3e.

Offline

 

#13 2007-11-30 1:28:30 am

devil2k
Senior Member
Registered: 2007-11-16
Posts: 256

Re: My eee now has a keyboard light

you've got balls...that's all i have to say

Offline

 

#14 2007-11-30 3:51:16 am

KaiBosh
Member
Registered: 2007-11-26
Posts: 45

Re: My eee now has a keyboard light

That is truly sick dude.  Shocking how actual little work needed to be done, you need to do a tiny bit more cosmetic mounting with littly retracting hood for the LED.  Then it will become prime-time stuff...

Offline

 

#15 2007-11-30 4:40:06 am

Triple-E Wannabe
Senior Member
Registered: 2007-10-29
Posts: 142

Re: My eee now has a keyboard light

*applause*

That is an impressive and technically very slick mod indeed. I would love to be able to hack my EEE (when I get one) to bits on that level, but I have nowhere near the electronic expertise (nor hand-eye co-ordination I reckon! wink ).

Very well done.


...and the black 4G!

Offline

 

#16 2007-11-30 5:44:20 am

Crihz
Member
From: Amsterdam
Registered: 2007-11-28
Posts: 86

Re: My eee now has a keyboard light

I like the software on/off capabilities of this mod more than the actual mod itself. How much load can this IO expander take?

Chris

Last edited by Crihz (2007-11-30 7:05:16 am)

Offline

 

#17 2007-11-30 7:01:31 am

tristand
Member
From: Oxford UK
Registered: 2007-11-15
Posts: 53
Website

Re: My eee now has a keyboard light

The PCF8475 can drive 25mA on each of its 8 IO pins, although you can't take more than a total of 100mA. Each of its IO pins is also an input so it can be used for monitoring other things.

I'm considering adding a proper (hardware) caps lock LED using one of the other IO pins. I'm also considering using other ones to switch the power supply to my internal bluetooth adapter, although it really doesn't use enough power to warrant it. See http://forum.eeeuser.com/viewtopic.php?id=3043.

Last edited by tristand (2007-11-30 7:04:59 am)

Offline

 

#18 2007-11-30 7:07:46 am

Crihz
Member
From: Amsterdam
Registered: 2007-11-28
Posts: 86

Re: My eee now has a keyboard light

This is getting more interesting by the minute!
How would I go about switching in XP? (thinking of GPS usage)

Good work on the current draws there. Do you know of any other IO boards with a higher output rating?

Chris

Offline

 

#19 2007-11-30 7:16:44 am

tristand
Member
From: Oxford UK
Registered: 2007-11-15
Posts: 53
Website

Re: My eee now has a keyboard light

I have no idea how to access the I2C bus from windows I'm afraid.

I'm using a single IC not a board and 25mA for a logic level IC is considered pretty high! It wouldn't be hard to use a transistor / FET to increase the current handling capability.

If anyone else is considering this, the MCP23016 would allow 16 IO ports (if you need more than the 8 I have) or the PCA9536 would allow 4 IO ports.

The PCA9536 would be ideal as it has no address strap pins so it is in a 8 pin package (nice and small). I don't stock the PCA9536 so I used what I had to hand.

Offline

 

#20 2007-11-30 7:19:57 am

Crihz
Member
From: Amsterdam
Registered: 2007-11-28
Posts: 86

Re: My eee now has a keyboard light

True, a FET set-up should work without any problems.
I was just wondering if there is anything "out of the box" I could use to get a clean setup.

Good find man!

Now for a way to control it in XP...hmm

Offline

 

#21 2007-11-30 10:34:51 am

madmandegge
Senior Member
From: United Kingdom
Registered: 2007-11-28
Posts: 175

Re: My eee now has a keyboard light

Nice mod! If I had the skill/balls I'd certainly try it!

Offline

 

#22 2007-11-30 2:26:29 pm

Haku
Senior Member
From: Glos. UK
Registered: 2007-10-23
Posts: 435
Website

Re: My eee now has a keyboard light

If you have a white Eee then you might want to buy UV LEDs because the keyboard glows up under UV whilst the rest of the unit doesn't.

I might have a go at making a couple of USB LED thingys that plugin to the USB ports immediately either size of the keyboard with UV LEDs so the keyboard is lit up from either side and no having to take the Eee apart to achieve this.


The Asus Eee is not a laptop, it's a legtop!

Offline

 

#23 2007-11-30 2:46:30 pm

Engineer
Senior Member
From: Germany
Registered: 2007-10-18
Posts: 612

Re: My eee now has a keyboard light

You could use the remaining pins of the PCF8574 to emulate a serial port at the unused modem plug,


The three most dangerous things in the world are a programmer with a soldering iron,
a hardware type with a program patch and a user with an idea    --computer saying / R. Cook

Offline

 

#24 2007-11-30 2:54:39 pm

addik
Member
Registered: 2007-11-02
Posts: 18

Re: My eee now has a keyboard light

Sadly I'm typing this reply in the dark with my screen angeled to spread the needed light onto my keyboard. If I had the electronic know know to achieve what you did It would make my epc experience even better. Maybe ill go into my University soon and pester some other capable student! Very interesting work.

Offline

 

#25 2007-11-30 3:03:25 pm

tristand
Member
From: Oxford UK
Registered: 2007-11-15
Posts: 53
Website

Re: My eee now has a keyboard light

Engineer wrote:

You could use the remaining pins of the PCF8574 to emulate a serial port at the unused modem plug,

With the SMBus running at 100kbps and with roughly 18 bit periods being needed to transfer the output states to the PCF8574 I could possibly emulate a serial port at 5kbps. although I'd not be happy about using 100% of the SMBus's bandwidth! And I'm pretty sure the timing would prove tricky! And I've only covered transmitting - if you wand Rx too you can half that bit rate. Oh and for Rx to work well you need 3x oversampling so divide it by 3 again.

All in all, I could possibly get 800 baud! wink

Last edited by tristand (2007-11-30 3:04:25 pm)

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson