For 12.04 LTS
Good day all,
I was battling with this for some time until I've discovered Linux's "dmesg" and "xev"
Long story short, you need to do the following to get your keys to work:
Create a new mapping file and paste the content and save it
CTRL + ALT + T
gksudo gedit /lib/udev/keymaps/msi-gt780dx
Code:
0xA8 prog1 # backlight key
0xBB media # movie key
0xBD prog3 # fan key
0xC2 ejectcd # eject key
0xD5 f24 # P1 key
Now we need to determine the keyboard details:
/lib/udev/findkeyboards
This should give you something along the lines of:
Code:
AT keyboard: input/event3
The important part here is input/event3
No that we know the event (and number), let's get the name:
dmesg | grep -i input3
This should give you something similar to:
Code:
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
Next step is to load this mapping during startup
gksudo gedit /etc/udev/rules.d/10-msi-sbar.rules
Code:
SUBSYSTEM=="input", ATTRS{name}=="AT Translated Set 2 keyboard", RUN+="/lib/udev/keymap input/event3 /lib/udev/keymaps/msi-gt780dx"
Test this by running the command directly (i.e. no need to restart):
Code:
sudo /lib/udev/keymap input/event3 /lib/udev/keymaps/msi-gt780dx
Setup your newly mapped keys with (you can run the following from the terminal too):
gnome-control-center keyboard
And done.
Changing your backlight colour (KLM), you might want to look at:
https://github.com/PaNaVTEC/MSI_GT_GE_Led_Enabler
(Didn't work 100%, wrong colours were displayed, so I changed the source and recompiled)
from
Code:
arguments[kLevel] = (unsigned char)argv[x + 1][0];
to
Code:
arguments[kLevel] = (unsigned char)argv[x + 1][0] - 49;
Bookmarks