Clevo P150EM/P170EM Sager NP9150/9170 backlit keyboard driver beta testers needed

Discussion in 'Linux Compatibility and Software' started by klystron34, Feb 17, 2013.

Thread Status:
Not open for further replies.
  1. klystron34

    klystron34 Notebook Enthusiast

    Reputations:
    0
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    15
    I bought a NP9150 a couple months ago and was tired of not having all the features work under linux. After a few hours here and there of spare time I finally figured out how to talk to the backlit keyboard. I will be writing a driver this week to expose a simple to use interface in /sys for easy scriptability. Is anyone interested in helping me beta test it? You will need some kernel knowledge of course as it will require building a module.

    All color combinations and animations work. I can even control the individual R, G, and B for all three zones.

    The only thing that I notice (and maybe someone with a windows install can back me up) is once I write to it if I hit the fn-disable key it disabled but it won't reenable. The only thing I can write in that enables that functionality is the default behavior. There may be an ACPI event that can be triggered for it but I don't know how to do that at this time.

    The other thing I looked into was the subwoofer. Turns out it just works. I honestly thought the schematic was wrong. If you don't think your subwoofer works just take notice that the audio balance is biased to the right on this laptop. That's due to the subwoofer being on the right. (stupid design.) What you need to really make it work (check out some of the sub tests on youtube) is an equalizer. Google some stuff for an alsa equalizer and it works very well. I actually really love how this laptop sounds now that I have it dialed in.

    I even put a temporary windows install on it and tested out the sound to when that THX "speaker" thing is turned up and it's the same. I had to reformat that drive so I can't do further testing on the keyboard to compare.

    Anyway, let me know. I'll try to have it ready for testing by next weekend.
     
  2. pete.h

    pete.h Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    Hi,

    Last friday I got my new XMG P502 (Clevo P150EM) and I would like to help test your linux driver for the backlit keyboard... :)

    What kind of dGPU do you have? If Nvidia, are you using bumblebee or even primusrun?

    Pete
     
  3. klystron34

    klystron34 Notebook Enthusiast

    Reputations:
    0
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    15
    I have the 675 with 4gb vram. I'm using bumblebee and it works well. I am not really a gamer but I do have a couple of games installed to test the GPU. This is primarily a work computer. Right now the state of the driver is I change a value, make, insert module, remove module, repeat. So like I said I will try and get something more concrete this week. Thanks for volunteering! One thing I can't seem to figure out is how to read the current setting. I guess writing it is more important though. :)

    Congrats on the new laptop. They are nice machines! I removed my bezel and painted it because I hated glossy (there was a writeup on this site) and I also had to swap the keyboard since my original had a defect. They sent me a model of keyboard that was different than what it came with and I just love how it feels.
     
  4. pete.h

    pete.h Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    I took the troublesome journey and booted Windows, just to check it out... ;)
    Under Win you can always enable and disable the keyboard light with the fn-disable key, no matter what color you set it to.

    What Linux do you run on your Clevo? I went with Ubuntu 12.10 for now, the problem is that the fn-brightness keys only work with Kernel 3.7.0 and up (Ubuntu 12.10 comes with 3.5.0).

    I went with the smaller brother, the 670MX with 3GB :)

    Wow, you painted the bezel. :) I haven't thought about that, I'm not really bothered by it (yet?).

    If you want to, I could check out your code even at the state it is in now.
     
  5. klystron34

    klystron34 Notebook Enthusiast

    Reputations:
    0
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    15
    There is no code to check out right now. It was just me figuring out how to do it. Right now I have to set a value in the code, build the module, insert it, remove it, repeat. My suspicion is that there is a way to turn on an ACPI event for that key (enable) that provides that functionality. Or it is a flag that I'm missing. The first version of the driver is likely to not have this working. I plan on doing this work Thursday evening or possibly Saturday and then I will share it with you and Pete.

    I am running Gentoo with a 3.7.2 kernel. I actually had brightness keys working on my first kernel, and then when I upgraded (a 3.6 I think) they were not working. But then they worked again on the 3.7.2. The issue I have now is that KDE's OSD (on screen display) for brightness does not work because the keys are only generating a key release event and never a key press event.
     
  6. Penguissimo

    Penguissimo Notebook Enthusiast

    Reputations:
    31
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    15
    You're awesome!! I'm running Ubuntu 12.04 on a P170EM, and I would be glad to help beta test! I can't claim to be a Linux pro, but I can find my way around compiling a module.
     
  7. ALLurGroceries

    ALLurGroceries   Super Moderator

    Reputations:
    15,720
    Messages:
    7,144
    Likes Received:
    2,316
    Trophy Points:
    331
    Would you want to post a DSDT dump somewhere?
     
  8. klystron34

    klystron34 Notebook Enthusiast

    Reputations:
    0
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    15
    I can post a DSDT sure. I plan on working on the sysfs layer tonight. If I get that "done" I will post a tbz2 here on the forum with an entire module directory. If your kernel is in /usr/src/linux it should "just build." I will post the required kernel options as well.

    I am thinking about having the patterns be somehing you can echo a 1 to to turn them on. One of them will be "stop" and that will stop all patterns. I will have 3 zones (left, mid, right) that you can echo "xxx" to where x is a 0 or 1 for r, g, b. I also plan to have a "raw" input where you can just pass in any number you want in hex.

    Does anyone else have any ideas?

    BTW I've been doing kernel stuff for about 10 years so I am hopeful I won't crash anyone's computer. :) I do a lot of device drivers as consulting work.
     
  9. pete.h

    pete.h Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    Sounds good :)

    Those funky patterns you can turn on under windows (like flashing, color fading...), is that done by hardware or with the windows software?

    I'm a Hardware-/Software-developer for Embedded Linux, so I'm not worried :D

    Strange about your OSD under KDE. I played around with a 3.7.9 kernel under Ubuntu 12.10, the brightness keys and the gnome-shell OSD worked. But the bluetooth fn-enable/-diable-key didn't work anymore (BT was always turned on).
     
  10. klystron34

    klystron34 Notebook Enthusiast

    Reputations:
    0
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    15
    Interesting on the OSD. Maybe they fixed that. I am still running 3.7.2. It's nice to meet a fellow embedded linux guy. I have been doing this stuff for many, many years. I was the MIPS maintainer on RTAI for a couple of years. Most of my embedded Linux work has been in the medical device industry. ARM, MIPS, x86, and ppc. A lot of battery powered devices, too. I am planning to get a first draft posted either tonight (late) or this weekend.

    Maybe I will set up a sourceforge.net project for collaboration. Or I could fork the kernel on github and we could work there. Thoughts?

    The patterns are part of the embedded firmware. I was able to tell that when I had the thing running Windows because when I would shut down the keyboard would still flash even when everything had closed down just before the power shut off.
     
Loading...
Thread Status:
Not open for further replies.

Share This Page