Thinkpad X270 drivers by Codex (Beta 6)

Hi, this is my first post to the Haiku community. I am loving Haiku and intend to daily drive it on a spare laptop (an X270, i7-7600U, 16gb).

The touchpad, trackpoint, bluetooth, camera, and microphone do not work out of the box on Beta 6. WiFi and keyboard work perfectly out of the box.

Codex successfully generated a driver for the trackpoint and touchpad, which enabled full functionality of the mouse. This took about 2 hours for GPT-6 Ultra.

I will update this post with a Github link soon. I do not have software experience and therefore have no idea how correctly written this driver is, so use it at your own risk.

Codex is working on the remaining drivers, but so far none of them are working. If they do function, I’ll add links to those too.

Hopefully this will help another X270 or similar Thinkpad machine user.

7 Likes

Bluetooth is very uncomplete, so there’s far more than just device drivers required for most uses there. What exactly are you intending to use Bluetooth for?

i have same x270 machine with different processor.. thanks for your work

2 Likes

Here is the repo with the drivers. I’ll keep updating it for a bit. Currently everything is semi-usable except Bluetooth.

Known issues:
-Webcam is somewhat choppy
-Tap to click not working yet on touchpad
-Dragging with touchpad slightly jerky

5 Likes

Hi Escardel, very nice ! Just installed them on my X270.

Touchpad is more usable than before, also the Thinkpad stick runs well. Very nice !

Webcam is shown with Firefox preview dialog when testing in https://webcamtests.com/ but seems to stop working in test.

Micro doesn’t seems to work on https://mictests.com/ .

BT has not been tested yet.

3 Likes

I appreciate you testing them on your X270. I’m glad to hear the mouse is behaving better! The camera and mic updates are in progress - I am able to reproduce the bugs you described.

In the meantime, an updated mouse driver is available with touchpad improvements. Unless a serious bug is found, I don’t plan to update it any further:

Tap to click, 2 finger tap to right click, and 3 finger tap to middle click are added.

Two finger scrolling bugs and random jumpy cursor is fixed.

The updated installer requires uninstalling the previous packaged version first:

  1. Run bash install.sh --uninstall from the old installer’s extracted folder.

  2. Run bash install.sh --install from the new installer’s folder.

  3. Reboot.

2 Likes

Wow, it’s almost a bit »spooky« reading this post – only the other day I was thinking about looking for another ThinkPad, since my X270 is simply unusable without an external mouse. I’m writing this on my MacBook at the moment, but I’ll give it a try and report back … :wink:

Wow, spooky stuff indeed :shaking_face: ! I hope they work for you.

I do not recommend the BT driver, it does enable discovery of BT devices, but the OS is not ready to make practical use of it as cian pointed out.

Responding from my X270 :love_you_gesture:

1 Like

Unfortunately, I did the calculation without my installed nightly :grimacing:
Is there a way to use your patch with > hrev6XXXX as well? I’ve already carefully worked through the lovingly put-together documentation, but I’m still lacking the experience at the moment.

Okay, check the pre-release section in the repo. I added a set of packages that simply don’t check the Haiku version number. Install at your own risk :skull_and_crossbones:

1 Like

Hey, since i also have a x270 with a unsupported wifi card: which one is in your x270?

Thanks for the drivers! I hope somone adopt it to ship with haiku in b7 :slight_smile:

I am not sure, I installed a newer Intel WiFi 6E card in the machine, so not using the stock X270 card which shipped with a WiFi 5 card I believe.

I added two more X270 -specific utilities to the Github repo:

  1. A keyboard utility that enables most of the Fn shortcuts, plus some Alt shortcuts, with proper system popups:
  • F1: Mute (indicator light does not work)
  • F2: Vol-
  • F3: Vol+
  • F4: Unused (mic is still not working)
  • F5: Brightness -
  • F6: Brightness +
  • F7: Toggle windowless fullscreen
  • F8: Unused (useless WiFi toggle)
  • F9: Open Preferences
  • F10: Unused (useless BT toggle)
  • F11: Open Terminal
  • F12: Open Firefox
  • Alt+,: Window snap left (<)
  • Alt+. Window snap right (>)
  • Alt+/: Window maximize (?)

Note: If FF isn’t installed, F12 does nothing.

This utility requires the BIOS to be set to “Fn as primary function” enabled. Holding left Alt will allow the normal Fn keypress to pass.

  1. “Display Color” application that enables:
  • System wide RGB adjustment (crude)
  • Gamma and contrast
  • Blue light filter (like f.lux) with auto on/off with set times

Gamma adjustment with slight red boost particularly makes the X270 screen quite a bit nicer (less washed out).

These are both vibe-coded utilities. They work well on my system; they may not work perfectly for you.

Codex is running natively in the Haiku terminal now, so I don’t have to SSH into it from another machine to get agentic capabilities.

1 Like

Well, for Bluetooth actually right now .. just the local BT devices’ driver and firmwares requires exactly, to test the Haiku BT stack improvements done by GSOC students in this summer.

None such drivers, so all development done in VM environment on virtual BT devices.
Everyone who would have tried to experience the development on bare metal .. had to gave upon to see what improved. If we enable the BT service, we can just see just some more running threads within the team of bluetooth_server, but no further progress as lacking a local device the Bluetooth appleth seems as it was earlier.

You need a host machine with proper Haiku VM to check out what capable the Haiku BT stack now.

Of course it was not polished to complete, but many things was added and if more people start to test it the BT stuff in Haiku .. the developers would get more imput about what is its condition right now. Even would get error/warning messages back, so more feedback.

… just WOW and thanks a lot: For the first time i was able to use my x270 without an external mouse. This is really a game changer for me. I can confirm the patch is stable with beta 6 and it survived the latest system update, too.

3 Likes