Sound with FN Button
Hi, how can I use the FN Buttons to regular the sound? I'm using fluxbox. Regards, alokat ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sound with FN Button
On Thu, 24 Mar 2011 21:28:05 +0100, Alokat mail...@alokat.org wrote: Hi, how can I use the FN Buttons to regular the sound? I'm using fluxbox. Use the xev program to check which keysymbols (or at least codes) are output by those keys. For example, on my Sun keyboard I have those for audio: 141 142 143 Then write a file ~/.xmodmaprc to assign names to those keys, for example: ! Sound off keycode 141 = F24 ! Lower volume keycode 142 = F25 ! Raise volume keycode 143 = F26 You can also use SunAudioMute SunAudioLowerVolume SunAudioRaiseVolume or XF86AudioMute XF86AudioLowerVolume XF86AudioRaiseVolume I decided to continue the enumeration as function keys for all the extra keys on my keyboard. :-) Incorporate the settings upon X startup, using ~/.xinitrc or maybe ~/.xsession: xmodmap ~/.xmodmaprc Then use the keyboard action configuration of Fluxbox. As I don't use it anymore, I can't tell you where it is, but there should be a configuration file which selects which action to be taken when a specific key is pressed. I'm using WindowMaker's configuration utility for that. I did add menu entries and set a custom key for them. For example, I made the following settings: F24 - mixer 0 F25 - mixer vol -5 F26 - mixer vol +5 You should be able to find a similar approach in FLuxbox. I'm sure you got the idea: You identify what the keys DO and then connect them to a keyname. This keyname is then connected to a specific program call, mixer with the intended parameters in case of volume control. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sound with FN Button
On 03/24/11 21:52, Polytropon wrote: On Thu, 24 Mar 2011 21:28:05 +0100, Alokatmail...@alokat.org wrote: Hi, how can I use the FN Buttons to regular the sound? I'm using fluxbox. Use the xev program to check which keysymbols (or at least codes) are output by those keys. For example, on my Sun keyboard I have those for audio: 141 142 143 Then write a file ~/.xmodmaprc to assign names to those keys, for example: ! Sound off keycode 141 = F24 ! Lower volume keycode 142 = F25 ! Raise volume keycode 143 = F26 You can also use SunAudioMute SunAudioLowerVolume SunAudioRaiseVolume or XF86AudioMute XF86AudioLowerVolume XF86AudioRaiseVolume I decided to continue the enumeration as function keys for all the extra keys on my keyboard. :-) Incorporate the settings upon X startup, using ~/.xinitrc or maybe ~/.xsession: xmodmap ~/.xmodmaprc Then use the keyboard action configuration of Fluxbox. As I don't use it anymore, I can't tell you where it is, but there should be a configuration file which selects which action to be taken when a specific key is pressed. I'm using WindowMaker's configuration utility for that. I did add menu entries and set a custom key for them. For example, I made the following settings: F24 - mixer 0 F25 - mixer vol -5 F26 - mixer vol +5 You should be able to find a similar approach in FLuxbox. I'm sure you got the idea: You identify what the keys DO and then connect them to a keyname. This keyname is then connected to a specific program call, mixer with the intended parameters in case of volume control. I get an output like this: FocusOut event, serial 31, synthetic NO, window 0x181, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 31, synthetic NO, window 0x181, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 31, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 FocusOut event, serial 31, synthetic NO, window 0x181, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 31, synthetic NO, window 0x181, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 31, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sound with FN Button
On Thu, 24 Mar 2011 22:52:03 +0100, Alokat mail...@alokat.org wrote: On 03/24/11 21:52, Polytropon wrote: On Thu, 24 Mar 2011 21:28:05 +0100, Alokatmail...@alokat.org wrote: Hi, how can I use the FN Buttons to regular the sound? I'm using fluxbox. Use the xev program to check which keysymbols (or at least codes) are output by those keys. For example, on my Sun keyboard I have those for audio: 141 142 143 I get an output like this: FocusOut event, serial 31, synthetic NO, window 0x181, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 31, synthetic NO, window 0x181, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 31, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 FocusOut event, serial 31, synthetic NO, window 0x181, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 31, synthetic NO, window 0x181, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 31, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 You need to look for those events: KeyPress event, serial 27, synthetic NO, window 0x201, root 0x73, subw 0x0, time 3923776537, (162,2), root:(271,490), state 0x10, keycode 154 (keysym 0xffd4, F23), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 27, synthetic NO, window 0x201, root 0x73, subw 0x0, time 3923776635, (162,2), root:(271,490), state 0x10, keycode 154 (keysym 0xffd4, F23), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False The 2nd line, the information in the middle is important: keycode 154 (keysym 0xffd4, F23): It indicates that the keycode generated has been identified with the code 154, and this code is already mapped to the symbol F23. This is (just for completeness) the Cut key of the 2x5 field to the left. Erm... just a side question... you're refering to pressing the Fn key with a function key (e. g. Fn+F1) for volume control, or are there other special keys for volume? I'm asking this as in the past, volume control was managed by the BIOS (I think), but NOT by the operating system or application programs. This means it was possible to change the volume INDEPENDENTLY from any driver. I'm not sure if this is still the case. Maybe - just MAYBE - you need a hardware and software (!) specific driver to do those basic things... history teaches that all the simple things that worked in the past are a high mountain to climb today... thanks to YOU, hardware manufacturers! :-) Please understand the paragraph as follows: MAYBE (!!!) it's not even possible to do what you're intending. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sound with FN Button
On 03/24/11 23:04, Polytropon wrote: On Thu, 24 Mar 2011 22:52:03 +0100, Alokatmail...@alokat.org wrote: On 03/24/11 21:52, Polytropon wrote: On Thu, 24 Mar 2011 21:28:05 +0100, Alokatmail...@alokat.org wrote: Hi, how can I use the FN Buttons to regular the sound? I'm using fluxbox. Use the xev program to check which keysymbols (or at least codes) are output by those keys. For example, on my Sun keyboard I have those for audio: 141 142 143 I get an output like this: FocusOut event, serial 31, synthetic NO, window 0x181, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 31, synthetic NO, window 0x181, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 31, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 FocusOut event, serial 31, synthetic NO, window 0x181, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 31, synthetic NO, window 0x181, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 31, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 You need to look for those events: KeyPress event, serial 27, synthetic NO, window 0x201, root 0x73, subw 0x0, time 3923776537, (162,2), root:(271,490), state 0x10, keycode 154 (keysym 0xffd4, F23), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 27, synthetic NO, window 0x201, root 0x73, subw 0x0, time 3923776635, (162,2), root:(271,490), state 0x10, keycode 154 (keysym 0xffd4, F23), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False The 2nd line, the information in the middle is important: keycode 154 (keysym 0xffd4, F23): It indicates that the keycode generated has been identified with the code 154, and this code is already mapped to the symbol F23. This is (just for completeness) the Cut key of the 2x5 field to the left. Erm... just a side question... you're refering to pressing the Fn key with a function key (e. g. Fn+F1) for volume control, or are there other special keys for volume? I'm asking this as in the past, volume control was managed by the BIOS (I think), but NOT by the operating system or application programs. This means it was possible to change the volume INDEPENDENTLY from any driver. I'm not sure if this is still the case. Maybe - just MAYBE - you need a hardware and software (!) specific driver to do those basic things... history teaches that all the simple things that worked in the past are a high mountain to climb today... thanks to YOU, hardware manufacturers! :-) Please understand the paragraph as follows: MAYBE (!!!) it's not even possible to do what you're intending. No I don't .. I thought it, but the volume buttons are extra buttons - without FN. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org