Kode: Vælg alt
sudo aptitude install build-essential
Kode: Vælg alt
sudo aptitude install build-essential
zob skrev:Jeg er ikke sikker, da jeg praktisk taget aldrig kompiler noget selv, men skal pakken build-essential ikke være installeret for at 'sudo make' fungerer. Du kan jo prøve.Kode: Vælg alt
sudo aptitude install build-essential
Kode: Vælg alt
lsmod
Kode: Vælg alt
sudo aptitude install dkms
Miscni skrev:Hej lath
Sidder og prøver nogle af de ting du lige har forslået.
1.
Ved at bruge Modprobe lader det til, at den bliver installeret ind, har godt nok ikke prøvt at genstarte endnu, men skal nok lige skrive en tråd, hvis det har gjort nogen ændrening.
2.
Har tjekket /var/log/dmesg og den finder mit G13:
[ 11.841123] generic-usb 0003:046D:C21C.0001: hiddev96,hidraw0: USB HID v1.11 Device [G13] on usb-0000:00:1d.1-1/input0
OBS OBS OBS
Prøvede at genstarte, og G13 virkede godt nok ikke, men jeg fik set tingene fra en anden vinkel, er jeg skam kun glad for, så mit næste træk, ville være at sende en mail. Men ville stadig prøve mig frem.
3.
Sjovt nok, når jeg bruger disse informationer fra dette link http://wiki.jarfil.net/Logitech_G13 I terminalen.
Så reagere min G13 fint, på de forskellige G-taster som den har, problemet er bare I, at hvergang jeg gør det, så skifter de Raw Scancodes hele tiden, det jeg mener er.
Hvis G1 Knap er Scankode : f6011f7b0000800080
Så når computeren er genstartet, så er scankode skiftet til: (f6011B7b0000800080 eller f6011C7b0000800080) det variere meget.
options usbhid quirks=0x046d:0xc21c:0x4
Plug in the G13, and cross your fingers
If the driver correctly recognizes the G13, you should see the following image on the LCD display:
You can interface with the driver through the files in /sys/kernel/g13.
/sys/kernel/g13/rgb
This sets the backlight, write three decimal integers values between 0 and 255 separated by spaces to set it:
# set the backlight to medium red
echo "100 0 0" > /sys/kernel/g13/rgb
/sys/kernel/g13/m_keys
This sets the M-keys lights, write a decimal integer value between 0 and 15 that specifies which lights to activate:
Key Value
M1 1
M2 2
M3 4
MR 8
The integer is the sum of the values of the lights to set.
# set the M2 and MR lights, unset M1 and M3
echo 10 > /sys/kernel/g13/m_keys
/sys/kernel/g13/lcd
This sets the LCD. The data needs to be a single block of 160 x 48 bits, representing the pixels in the image. For details, look at pbm2lpbm.c (compile with g++ pbm2lpbm.c, then run ./a.out < input.pbm > output.lpbm. It converts raw pbm images of size 160x43 to the correct format (conveniently named lcd-pbm or lpbm).
# set the LCD to show hello.lpbm
cat hello.lpbm > /sys/kernel/g13/lcd
/sys/kernel/g13/keymap
This sets the keymap for all the keys and buttons on the G13. The values are four digit hexadecimal integers representing the keycodes (from /usr/src/linux/include/linux/input.h) that the respective key or button sends. The values are in order:
Key Explanation
G1 - G22 The Gxx keys
Button-Left The button to the left of the stick
Button-Down The button below the stick
Button-Stick The button that is activated when pushing the stick hard
M1 - MR The Mx keys
Next The round key to the left of the LCD
Left The leftmost key right below the LCD
Left-Center The second-to-left key right below the LCD
Right-Center The second-to-right key right below the LCD
Right The rightmost key right below the LCD
Light The key that toggles the LCD backlight, with a small sun on it
# set my custom dvorak keymap
echo "003b 003c 002d 0033 0020 003d 003e 003f 0040 001e 0027 0023 0041 0042 0043 0035 0030 0017 0044 000e 001c 0039 0110 0111 0112 0002 0003 0004 0005 0006 0007 0008 0009 000a 000b " > /sys/kernel/g13/keymap