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
    No problem. Glad you are enjoying it!
     
  2. pete.h

    pete.h Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    @klystron34, did you have time to look into the bluetooth bug yet?
    BTW: turning off Wifi doesn't work either.
     
  3. klystron34

    klystron34 Notebook Enthusiast

    Reputations:
    0
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    15
    No time yet. I just finished my midterm yesterday then I have a project due Monday. Then I need to finish side work by the end of next week. Then hopefully I'll have time for that.

    You can turn off the LAN with /etc/init.d/net.wlan0 stop on my machine. That actually turns off the light. But yes, the hotkey does not work.
     
  4. pete.h

    pete.h Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    How do you send the code to turn bluetooth off, is that an acpi-call?
     
  5. corpdecker

    corpdecker Newbie

    Reputations:
    0
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    5
    klystron34 - Thanks a ton for this, it built and works perfectly on Arch Linux 64bit, currently 3.7.10-1 kernel.
    izifortune - I tried getting the UI working but got several python errors, I fixed a few but ended up over my head. I'm guessing it's some issue with python on my lappy. I'll pull it again at a later date and see if it wants to work out.

    Thanks for the effort you both put in on this, it's great to get the keyboard lights back on after waking from sleep without having to hit the fn key combo,\as well as being able to change the lighting :)
     
  6. pete.h

    pete.h Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    @corpdecker, could you check if you have the bluetooth/wifi-bug where bluetooth and wifi can't be turned off with kernel 3.7 and newer. Thanks :)
     
  7. klystron34

    klystron34 Notebook Enthusiast

    Reputations:
    0
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    15
    You're welcome. :)
     
  8. PopeJamal

    PopeJamal Notebook Consultant

    Reputations:
    7
    Messages:
    104
    Likes Received:
    4
    Trophy Points:
    31
    Thank you so much klystron34. You are the MAN! *brofist*

    I wanted to do this, but I didn't even know where to start, let alone how to proceed. Awesome job too, it works without a hitch.

    I was able to successfully get this installed on Ubuntu 12.04. I'm currently running kernel 3.5.0-26.

    To help and give back a little something to the internet community, I've posted a tutorial on how to get the module loaded over on the askubuntu forums.

    Thanks again!
     
  9. klystron34

    klystron34 Notebook Enthusiast

    Reputations:
    0
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    15
    You're welcome. Thanks for the thanks. :)
     
  10. PopeJamal

    PopeJamal Notebook Consultant

    Reputations:
    7
    Messages:
    104
    Likes Received:
    4
    Trophy Points:
    31
    Here's a neat trick I just enabled:
    Anytime my screensaver turns on, I have my keyboard flash in a pattern.
    When I disable the screensaver, the keyboard goes back to normal.

    Here's how I did it. These instructions are for Ubuntu, but can probably be modified for your distro of choice.

    1) Install Cuttlefish

    2) Create a script in ~/bin/ called "keyboard-pattern-on.sh". It should contain the following code:
    Code:
    #! /bin/bash
    echo 1 >| /sys/devices/platform/clevo_wmi/kbled/left_right
    3) Create a script in ~/bin/ called "keyboard-pattern-off.sh". It should contain the following code:
    Code:
    #! /bin/bash
    echo 1 >| /sys/devices/platform/clevo_wmi/kbled/pattern_off
    4) Make sure both of the scripts are executable (chmod u+x _name>)

    5) Add this line to the bottom of the file: /etc/sudoers
    Code:
    ALL ALL=NOPASSWD: /home/*PUT-YOUR-USERNAME-HERE*/bin/keyboard-pattern-on.sh, /home/*PUT-YOUR-USERNAME-HERE*/bin/keyboard-pattern-off.sh
    6) Test the scripts. After step 5, you should be able to execute the scripts with sudo without having to supply a password (sudo /home/*PUT-YOUR-USERNAME-HERE*/bin/keyboard-pattern-on.sh). (I'm not sure, but you might have to logout and then log back in. Also, make sure you use the full pathname for the file )

    7) Create a Cuttlefish "Reflex"
    -Give it a name like "Keyboard Pattern - ON"
    -"Show Notification" = No
    -"Activated by Stimulus" = Yes
    -Click the button next to "Stimulus"
    -Category = "Screensaver", Type = "Screen is locked", Click OK
    -Click on "Reaction" tab
    -Click the "+" sign to add a reaction
    -Category = "Applications", Type = "Start application (advanced) mode"
    -Click "OK"
    -"Executable" = /usr/bin/sudo
    -"Parameters" = /home/*PUT-YOUR-USERNAME-HERE*/bin/keyboard-pattern-on.sh
    -Click "Back"

    8) Create a Cuttlefish "Reflex"
    -Give it a name like "Keyboard Pattern - OFF"
    -"Show Notification" = No
    -"Activated by Stimulus" = Yes
    -Click the button next to "Stimulus"
    -Category = "Screensaver", Type = "Screen is unlocked", Click OK
    -Click on "Reaction" tab
    -Click the "+" sign to add a reaction
    -Category = "Applications", Type = "Start application (advanced) mode"
    -Click "OK"
    -"Executable" = /usr/bin/sudo
    -"Parameters" = /home/*PUT-YOUR-USERNAME-HERE*/bin/keyboard-pattern-off.sh
    -Click "Back"

    If all has gone according to plan, whenever you enable your screensaver (CTRL + ALT + L), the keyboard pattern will start. Whenever you unlock your screensaver, the keyboard pattern will stop.
    Good Luck!
     
Loading...
Thread Status:
Not open for further replies.

Share This Page