Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4419

Kindle DX Kernel Module for Contrast

$
0
0
Having obtained a Kindle DX, I immediately tried the upgrade to 3.2.1. Although it worked, I didn't want to deal with the quirks, so I rolled back. All I wanted was the PDF contrast anyway.

So I have updated the kernel module to add contrast ability not just to PDF but to the whole unit! For now you need to have usbnetworking enabled. From the attached ZIP, copy eink_fb_hal.ko to /lib/modules/2.6.22.19-lab126/kernel/drivers/video/eink/hal/eink_fb_hal.ko and then reboot.

It adds a command 99 to /proc/eink_fb/update_display which takes 16 numbers as arguments. These are the shades 0-15 that each shande should be mapped to before it is displayed. This allows you to set up pretty much any mapping you want (including inverting the screen). Some example usage is below. Enjoy!

Code:

# Greatly increase contrast
echo "99 0 3 6 9 12 15 15 15 15 15 15 15 15 15 15 15" >/proc/eink_fb/update_display
echo "18 0" >/proc/eink_fb/update_display

Code:

# Monochrome (eliminates flashing!)
echo "99 0 0 0 0 15 15 15 15 15 15 15 15 15 15 15 15" >/proc/eink_fb/update_display
echo "18 0" >/proc/eink_fb/update_display

Code:

# Invert screen!
echo "99 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0" >/proc/eink_fb/update_display
echo "18 0" >/proc/eink_fb/update_display


Attached Files
File Type: zip eink_fb_hal.zip (25.3 KB)

Viewing all articles
Browse latest Browse all 4419

Trending Articles