Skip to main content

Posts

Showing posts with the label compaq

Linux on a Compaq Presario V2000

GNU/Linux (Ubuntu 5.10) on a Compaq Presario V2000 How to make the volume keys work Objective: Map the volume keys (Volume up/down/mute) to amixer (command-line mixer for ALSA soundcard driver). Find the keycode of the three keys using xev . After executing xev as an ordinary user in the terminal, it creates a window and then asks the X server to send it events whenever anything happens to the window (such as it being moved, resized, typed in, clicked in, etc.). Example: after pressing the keyboard key m , you will be see the following report: KeyPress event, serial 27, synthetic NO, window 0x2800001, root 0x48, subw 0x0, time 10163530, (97,69), root:(929,430), state 0x0, ''keycode 58 (keysym 0x6d, m)'', same_screen YES, XLookupString gives 1 bytes: (6d) "m" KeyRelease event, serial 27, synthetic NO, window 0x2800001, root 0x48, subw 0x0, time 10163645, (97,69), root:(929,430), state 0x0, ''keycode 58 (keysym 0x6d, m)'', s...