Forum
[SOLVED] Keyboard volume up working, volume down not - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Remotes and CEC support (/forum-26.html)
+--- Thread: [SOLVED] Keyboard volume up working, volume down not (/thread-3471.html)



Keyboard volume up working, volume down not - Peiote - 28th Mar, 2016 01:02 AM

Software
XBian version: 1.0 (knockout) (kernel: Linux 4.4.6+)
XBMC/Kodi version: 16.0 Git:2016-03-11-a3eb4fa
Overclock settings: I didn't overclock it

Hardware
Device type and model: Raspberry Pi 3
Power supply rating: 1,8 Amp
SD card size and make/type: 16 GB
Network (Ethernet or wireless): Ethernet
Connected devices (TV, USB, network storage, ...): Keyboard-> Microsoft Wireless Entertainment keyboard 700

Problem description:
Volume controls work fine in other raspberry pi systems. In XBIAN it works just "UP Volume".
Funny?




RE: Keyboard volume up working, volume down not - Nachteule - 28th Mar, 2016 02:11 AM

Strange, could reproduce it with my Logitech MK250

Don't know where the culprit is, but you can solve this by providing your own keymap.

Please store this into /home/xbian/.kodi/userdata/keymaps/keyboard.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the mapping of keyboard keys to actions within Kodi.              -->
<!--                                                                                      -->
<!-- The format is:                                                                       -->
<!--  <window>                                                                            -->
<!--    <device>                                                                          -->
<!--      <button>action</button>                                                         -->
<!--    </device>                                                                         -->
<!--  </window>                                                                           -->
<!--                                                                                      -->
<!-- The <global> section is a fall through - they will only be used if the button is     -->
<!-- not used in the current window's section.                                            -->
<!--                                                                                      -->
<!-- Actions can be built-in functions.                                                   -->
<!--  eg <B>ActivateWindow(MyMusic)</B>                                                   -->
<!-- would automatically go to Music on the press of the B button.                        -->
<!--                                                                                      -->
<!--  Long presses                                                                        -->
<!--   A limitation is that if a single press is mapped in a section, a global "longpress"-->
<!--   will be ignored. The workaround is to duplicate the long mapping in the section.   -->
<!--                                                                                      -->
<!-- An empty action removes the corresponding mapping from default and parent keymaps.   -->
<!-- This is different from a "noop" action, which disables a button.                     -->
<!--                                                                                      -->
<!-- More documentation on keymaps can be found on http://kodi.wiki/view/keymaps          -->
<keymap>
  <global>
    <keyboard>
      <f14>VolumeDown</f14>                 <!-- Vol down -->
    </keyboard>
  </global>
</keymap>

and restart Kodi


RE: Keyboard volume up working, volume down not - Peiote - 28th Mar, 2016 02:23 AM

It works perfect.

Thank you


RE: Keyboard volume up working, volume down not - Peiote - 17th Apr, 2016 07:44 PM

Shouldn't this be implemented in the new versions of xBian?

I think it is a bug of Kodi itself. Same happens on RaspBian (although not in other distros).


RE: Keyboard volume up working, volume down not - Nachteule - 17th Apr, 2016 11:02 PM

(17th Apr, 2016 07:44 PM)Peiote Wrote:  I think it is a bug of Kodi itself. Same happens on RaspBian (although not in other distros).

Agree, will have a look if I can find a solution Smile


RE: Keyboard volume up working, volume down not - Peiote - 20th Nov, 2016 04:31 AM

(17th Apr, 2016 11:02 PM)Nachteule Wrote:  
(17th Apr, 2016 07:44 PM)Peiote Wrote:  I think it is a bug of Kodi itself. Same happens on RaspBian (although not in other distros).

Agree, will have a look if I can find a solution Smile

Just in case it was an easy solution, but was forgot ;p
I've tried recently the keyboard again, surprisingly still not working. Is it more difficult than supposed? In this case, no problem, I'll keep using Function keys.

Best regards.