Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message

X230 FHD nb51 mod, software brightness control

X230-X280, X390 Series
Post Reply
Message
Author
stasheck
Posts: 16
Joined: Mon Aug 03, 2015 5:00 am
Location: Krakow, Poland

X230 FHD nb51 mod, software brightness control

#1 Post by stasheck » Wed Jan 01, 2020 3:27 pm

Hi, I recently completed my X330 mod, using parts from XYTech (nb51 adapter and Sharp screen). The brightness is controlled using power button.

I keep running into mentions of Windows software capable of controlling brightness, does such thing exist?

RealBlackStuff
Admin Emeritus
Admin Emeritus
Posts: 23822
Joined: Mon Sep 18, 2006 5:17 am
Location: Loch Garman, Éire

Re: X230 FHD nb51 mod, software brightness control

#2 Post by RealBlackStuff » Thu Jan 02, 2020 2:55 am

Lovely day for a Guinness! (The Real Black Stuff)
Lenovo: X240, X250, T440p, T480, M900 Tiny.

PS: the old Boardroom website is still available on the Wayback Machine
.

stasheck
Posts: 16
Joined: Mon Aug 03, 2015 5:00 am
Location: Krakow, Poland

Re: X230 FHD nb51 mod, software brightness control

#3 Post by stasheck » Thu Jan 02, 2020 3:49 am

Uh-huh. This is supposed to work with modded screen? And for some reason all of those work, but Linux still has not figured how to control the brightness?

RealBlackStuff
Admin Emeritus
Admin Emeritus
Posts: 23822
Joined: Mon Sep 18, 2006 5:17 am
Location: Loch Garman, Éire

Re: X230 FHD nb51 mod, software brightness control

#4 Post by RealBlackStuff » Thu Jan 02, 2020 3:58 am

You asked for Windows programs.
AFAIK Linux brightness control should work OOTB, at least with nitrocaster's mod, but I don't know what nb51 has cobbled up.
Lovely day for a Guinness! (The Real Black Stuff)
Lenovo: X240, X250, T440p, T480, M900 Tiny.

PS: the old Boardroom website is still available on the Wayback Machine
.

stasheck
Posts: 16
Joined: Mon Aug 03, 2015 5:00 am
Location: Krakow, Poland

Re: X230 FHD nb51 mod, software brightness control

#5 Post by stasheck » Thu Jan 02, 2020 4:02 am

Yes, I asked for Windows.

I assumed (wrongly, perhaps) that since Fn combinations don't work, there's some magic involved and brightness can only be controlled with power button. I read a lot of threads where there's mention of some special software, such as: viewtopic.php?t=125243#p811491, but no link to actual software :(

iamdmc
Senior Member
Senior Member
Posts: 745
Joined: Fri Sep 21, 2007 11:37 pm
Location: Downtown Toronto, Canada

Re: X230 FHD nb51 mod, software brightness control

#6 Post by iamdmc » Thu Feb 13, 2020 11:24 am

why'd you go for the 51nb instead of the nitrocaster mod?
ThinkPad P14sgen2 (2021)
i7-1185G7 | 32+8GB RAM | 1TB Samsung 980 Pro (PCIe 3.0 speed) | UHD upgrade | Glass Touchpad | Intel AX210

The X61 is dead... long live the X61

Past IBM ThinkPads: T480s, T450s, X250, X230, X220, X300, T410, X61s, T60p, T41, X31, T23, A21m

stasheck
Posts: 16
Joined: Mon Aug 03, 2015 5:00 am
Location: Krakow, Poland

Re: X230 FHD nb51 mod, software brightness control

#7 Post by stasheck » Fri Feb 14, 2020 7:37 am

Mostly to get everything from a single source: top half assembly and the mod board. Was also somewhat cheaper than 2 separate postings.

ranw
Posts: 3
Joined: Mon Oct 26, 2020 12:51 pm
Location: Spain, Cadiz IP=Gibralter

Re: X230 FHD nb51 mod, software brightness control

#8 Post by ranw » Fri Nov 06, 2020 7:53 am

You should go with coreboot FHD mode varient.

atagunov
Senior Member
Senior Member
Posts: 921
Joined: Thu Apr 02, 2020 3:11 pm
Location: London, UK

Re: X230 FHD nb51 mod, software brightness control

#9 Post by atagunov » Fri Nov 06, 2020 9:10 am

I suppose you could also ask XYTech (possibly via reddit messaging), he's quite happy to chat and is in contact with 51nb members. If you do find a solution, please post here
X220, 2 *T520

stasheck
Posts: 16
Joined: Mon Aug 03, 2015 5:00 am
Location: Krakow, Poland

Re: X230 FHD nb51 mod, software brightness control

#10 Post by stasheck » Fri Dec 04, 2020 7:06 am


atagunov
Senior Member
Senior Member
Posts: 921
Joined: Thu Apr 02, 2020 3:11 pm
Location: London, UK

Re: X230 FHD nb51 mod, software brightness control

#11 Post by atagunov » Fri Dec 04, 2020 7:55 am

stasheck wrote:
Fri Dec 04, 2020 7:06 am
Here's the utility: https://github.com/timothy-ha/X330-Backlight
This seems like a Linux utility, isn't this right?
var devices = HID.devices();
device = new HID.HID(4292,33742);
So is it working via the USB interface? Does nb51 kit have USB interface?
X220, 2 *T520

Yao2000
Freshman Member
Posts: 62
Joined: Mon Jul 13, 2020 2:15 am
Location: Taipei, Taiwan

Re: X230 FHD nb51 mod, software brightness control

#12 Post by Yao2000 » Sun Feb 14, 2021 4:53 am

you need to download lenovo Thinkpad Hotkey application, install it.

then you need to download the custom made app to adjust screen brightness for X330. Do a google search for this lightweight app.

it works fine and great.

peddy22
Posts: 10
Joined: Mon Sep 06, 2021 2:22 am
Location: Auckland, New Zealand

Re: X230 FHD nb51 mod, software brightness control

#13 Post by peddy22 » Sat Oct 23, 2021 4:40 am

I use this simple python script

Code: Select all

#script that changes brightness on 51NB thinkpad X230 X330 FHD 13.3" LCD modification
#detects changes in Windows system brightness and sends a command to the LCD driver
#change vendor_id and product_ID to fit your hardware device under Device Manager->Human Interface Devices

import pywinusb.hid as hid
import wmi

def sample_handler(data):
    print("Raw data: {0}".format(data))


#sends HID command between 0-255 to USB LCD controller 
def updateBrightness(brightnesslevel):
    filter = hid.HidDeviceFilter(vendor_id = 0x10C4, product_id = 0x83CE)
    hid_device = filter.get_devices()
    device = hid_device[0]
    device.open()
    device.set_raw_data_handler(sample_handler)
    out_report = device.find_feature_reports()[0]
    cmd = (0,
    brightnesslevel,
    )
    buffer = [0x00] * 2
    i = 0
    for x in cmd:
        buffer[i] = x
        i += 1
    out_report.set_raw_data(buffer)
    out_report.send()
    device.close()

#detects changes in brightness 
def brightnessChangeDetect():
    c = wmi.WMI(namespace='wmi')
    watcher = c.WmiMonitorBrightnessEvent.watch_for(
      notification_type="Modification",
      delay_secs=1
      )
    event_happened = watcher()
    brightnesslevel = int((event_happened.Brightness)*2.5)
    updateBrightness(brightnesslevel)


#main program
while True:
    brightnessChangeDetect()

DanielSip
Posts: 8
Joined: Sat Mar 20, 2021 9:41 am
Location: Vilnius, Lithuania

Re: X230 FHD nb51 mod, software brightness control

#14 Post by DanielSip » Tue Dec 07, 2021 10:08 am

You can try pm boutch55555 on reddit, he mentioned that he has some kind of driver for it "There is a windows driver for that board on 51nb, PM me if you want a Google drive link.", thread link https://www.reddit.com/r/thinkpad/comme ... d_for_the/

Not that long ago I converted my x230 to FHD too, totally different machine. Went a little further and changed speakers to iPhone XR speakers and it sounds as good as it looks

EDIT: Ooops, didn't see the date when thread was created :X

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “ThinkPad X230-X280 / X390 Series”

Who is online

Users browsing this forum: No registered users and 15 guests